Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 2004 | Rev 2455 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
<?php
553 geraldo 2
 
3
declare(strict_types=1);
4
 
1 www 5
namespace LeadersLinked;
6
 
7
use Laminas\Router\Http\Literal;
8
use Laminas\Router\Http\Segment;
9
 
1044 efrain 10
/*
11
 <ul class="navLinksContainer__ul--YwrCR">
12
    <li class="navLinksContainer__ul__li--HGs2x"><a href="/">INICIO</a></li>
13
    <li class="navLinksContainer__ul__li--HGs2x"><a href="/profile/my-profiles">PERFIL</a>
14
        <nav class="navLinkDropdown--dB4zr">
15
            <ul>
16
                <li><a href="/profile/my-profiles">Mis perfiles</a></li>
17
                <li><a href="/profile/microlearning">Micro Aprendizaje</a></li>
18
                <li><a href="/job/applied-jobs">Empleos que he aplicado</a></li>
19
                <li><a href="/job/saved-jobs">Empleos guardados</a></li>
20
                <li><a href="/profile/people-viewed-profile">Quién ha visto mi perfil</a></li>
21
                <li><a href="/profile/self-evaluation">Auto evaluación</a></li>
22
                <li><a href="/profile/performance-evaluation">Evaluación de desempeño</a></li>
23
            </ul>
24
        </nav>
25
    </li>
26
    <li class="navLinksContainer__ul__li--HGs2x"><a href="/connection/my-connections">RELACIONES</a>
27
        <nav class="navLinkDropdown--dB4zr">
28
            <ul>
29
                <li><a href="/connection/my-connections">Mis relaciones</a></li>
30
                <li><a href="/connection/invitations-sent">Invitaciones enviadas</a></li>
31
                <li><a href="/connection/invitations-received">Invitaciones recibidas</a></li>
32
                <li><a href="/connection/people-you-may-know">Personas que puede conocer</a></li>
33
                <li><a href="/connection/people-blocked">Personas bloqueadas</a></li>
34
            </ul>
35
        </nav>
36
     </li>
37
     <li class="navLinksContainer__ul__li--HGs2x"><a href="/company/my-companies">EMPRESAS</a>
38
        <nav class="navLinkDropdown--dB4zr">
39
            <ul>
40
                <li><a href="/company/my-companies">Mis empresas</a></li>
41
                <li><a href="/company/following-companies">Empresas que sigo</a></li>
42
                <li><a href="/company/i-work-with">Empresas donde trabajo</a></li>
43
                <li><a href="/company/requests-sent">Solicitudes Enviadas</a></li>
44
                <li><a href="/company/invitations-received">Solicitudes Recibidas</a></li>
45
            </ul>
46
        </nav>
47
      </li>
48
      <li class="navLinksContainer__ul__li--HGs2x"><a href="/group/my-groups">GRUPOS</a>
49
        <nav class="navLinkDropdown--dB4zr">
50
            <ul>
51
                <li><a href="/group/my-groups">Mis grupos</a></li>
52
                <li><a href="/group/joined-groups">Grupos unidos</a></li>
53
                <li><a href="/group/requests-sent">Solicitudes enviadas</a></li>
54
                <li><a href="/group/invitations-received">Invitaciones recibidas</a></li>
55
            </ul>
56
        </nav>
57
       </li>
58
       <li class="navLinksContainer__ul__li--HGs2x"><a href="/marketplace">MARKETPLACE</a>
59
            <nav class="navLinkDropdown--dB4zr">
60
                <ul>
61
                    <li><a href="/marketplace?entity=capsules">Cápsulas</a></li>
62
                </ul>
63
            </nav>
64
        </li>
65
     </ul>
66
     */
67
 
68
 
1 www 69
return [
70
    'navigation' => [
71
        'menu' => [
72
            [
73
                'label' => 'LABEL_HOME',
74
                'route' => 'dashboard',
1412 efrain 75
                'class' => '/images/navbar/home.svg',
1 www 76
            ],
77
            [
78
                'label' => 'LABEL_PROFILE',
79
                'route' => 'profile',
1412 efrain 80
                'class' => '/images/navbar/perfil.svg',
1 www 81
                'pages' => [
82
                    [
83
                        'label' => 'LABEL_MY_PROFILES',
84
                        'route' => 'profile/my-profiles'
85
                    ],
86
                    [
1044 efrain 87
                        'label' => 'LABEL_JOBS_APPLIED',
88
                        'route' => 'job/applied-jobs'
263 geraldo 89
                    ],
90
                    [
1044 efrain 91
                        'label' => 'LABEL_JOBS_SAVED',
92
                        'route' => 'job/saved-jobs'
558 geraldo 93
                    ],
94
                    [
1044 efrain 95
                        'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
96
                        'route' => 'profile/people-viewed-profile'
97
                    ],
1 www 98
                ]
99
            ],
1044 efrain 100
 
1 www 101
            [
102
                'label' => 'LABEL_CONNECTIONS',
103
                'route' => 'connection',
1412 efrain 104
                'class' =>'/images/navbar/conexion.svg',
1 www 105
                'pages' => [
106
                    [
107
                        'label' => 'LABEL_MY_CONNECTIONS',
108
                        'route' => 'connection/my-connections'
109
                    ],
110
                    [
111
                        'label' => 'LABEL_INVITATIONS_SENT',
112
                        'route' => 'connection/invitations-sent'
113
                    ],
114
                    [
115
                        'label' => 'LABEL_INVITATIONS_RECEIVED',
116
                        'route' => 'connection/invitations-received'
117
                    ],
118
                    [
119
                        'label' => 'LABEL_PEOPLE_YOU_MAY_KNOW',
120
                        'route' => 'connection/people-you-may-know'
121
                    ],
122
                    [
123
                        'label' => 'LABEL_PEOPLE_BLOCKED',
124
                        'route' => 'connection/people-blocked'
125
                    ],
1044 efrain 126
 
127
 
1 www 128
                ]
129
            ],
130
            [
131
                'label' => 'LABEL_COMPANIES',
132
                'route' => 'company',
1412 efrain 133
                'class' => '/images/navbar/empresa.svg',
1 www 134
                'pages' => [
135
                    [
136
                        'label' => 'LABEL_MY_COMPANIES',
137
                        'route' => 'company/my-companies'
138
                    ],
139
                    [
140
                        'label' => 'LABEL_COMPANIES_I_FOLLOW',
141
                        'route' => 'company/following-companies'
142
                    ],
143
                    [
144
                        'label' => 'LABEL_COMPANIES_I_WORK_WITH',
145
                        'route' => 'company/i-work-with'
146
                    ],
147
                    [
148
                        'label' => 'LABEL_REQUESTS_SENT',
149
                        'route' => 'company/requests-sent'
150
                    ],
151
                    [
152
                        'label' => 'LABEL_INVITATIONS_RECEIVED',
153
                        'route' => 'company/invitations-received'
154
                    ]
155
                ]
156
            ],
1044 efrain 157
 
1 www 158
            [
159
                'label' => 'LABEL_GROUPS',
160
                'route' => 'group',
1412 efrain 161
                'class' => '/images/navbar/grupos.svg',
1 www 162
                'pages' => [
163
                    [
164
                        'label' => 'LABEL_MY_GROUPS',
165
                        'route' => 'group/my-groups'
166
                    ],
167
                    [
168
                        'label' => 'LABEL_JOINED_GROUPS',
169
                        'route' => 'group/joined-groups'
170
                    ],
171
                    [
172
                        'label' => 'LABEL_REQUESTS_SENT',
173
                        'route' => 'group/requests-sent'
174
                    ],
175
                    [
176
                        'label' => 'LABEL_INVITATIONS_RECEIVED',
177
                        'route' => 'group/invitations-received'
178
                    ]
179
                ]
180
            ],
1044 efrain 181
            [
1183 efrain 182
                'label' => 'LABEL_MARKETPLACE',
1044 efrain 183
                'route' => 'marketplace',
1412 efrain 184
                'class' => '/images/navbar/market-place.svg',
1044 efrain 185
            ],
1412 efrain 186
 
187
 
188
 
189
 
190
 
191
 
192
 
1044 efrain 193
 
553 geraldo 194
        /* [
195
          'label' => 'LABEL_MESSAGES',
196
          'route' => 'inmail',
197
          'class' => 'fa fa-envelope',
198
          ],
199
          [
200
          'label' => 'LABEL_NOTIFICATIONS',
201
          'route' => 'dashboard',
202
          'class' => 'fa fa-bolt',
203
          ], */
1 www 204
        ],
205
        'footer' => [
206
            [
207
                'label' => 'LABEL_PRIVACY_POLICY',
208
                'route' => 'privacy-policy'
209
            ],
210
            [
211
                'label' => 'LABEL_PROFESSIONALISM_POLICY',
212
                'route' => 'professionalism-policy'
213
            ],
214
            [
215
                'label' => 'LABEL_COOKIES_POLICY',
216
                'route' => 'cookies'
217
            ],
218
            [
219
                'label' => 'LABEL_TERMS_AND_CONDITIONS',
220
                'route' => 'terms-and-conditions'
221
            ],
222
        ]
223
    ],
224
    'router' => [
225
        'routes' => [
226
            'signin' => [
227
                'type' => Literal::class,
228
                'options' => [
229
                    'route' => '/signin',
230
                    'defaults' => [
231
                        'controller' => '\LeadersLinked\Controller\AuthController',
232
                        'action' => 'signin'
233
                    ]
234
                ],
235
                'may_terminate' => true,
236
                'child_routes' => [
553 geraldo 237
                    /* 'test' => [
238
                      'type' => Literal::class,
239
                      'options' => [
240
                      'route' => '/test',
241
                      'defaults' => [
242
                      'controller' => '\LeadersLinked\Controller\AuthController',
243
                      'action' => 'test',
244
                      ],
245
                      ],
246
                      ], */
1 www 247
                    'facebook' => [
248
                        'type' => Literal::class,
249
                        'options' => [
250
                            'route' => '/facebook',
251
                            'defaults' => [
252
                                'controller' => '\LeadersLinked\Controller\AuthController',
253
                                'action' => 'facebook',
254
                            ],
255
                        ],
256
                    ],
257
                    'twitter' => [
258
                        'type' => Literal::class,
259
                        'options' => [
260
                            'route' => '/twitter',
261
                            'defaults' => [
262
                                'controller' => '\LeadersLinked\Controller\AuthController',
263
                                'action' => 'twitter',
264
                            ],
265
                        ],
266
                    ],
267
                    'google' => [
268
                        'type' => Literal::class,
269
                        'options' => [
270
                            'route' => '/google',
271
                            'defaults' => [
272
                                'controller' => '\LeadersLinked\Controller\AuthController',
273
                                'action' => 'google',
274
                            ],
275
                        ],
276
                    ],
277
                ]
278
            ],
279
            'reset-password' => [
280
                'type' => Segment::class,
281
                'options' => [
282
                    'route' => '/reset-password/:code',
283
                    'constraints' => [
284
                        'code' => '[a-zA-Z0-9--]+'
285
                    ],
286
                    'defaults' => [
287
                        'controller' => '\LeadersLinked\Controller\AuthController',
288
                        'action' => 'resetPassword'
289
                    ]
290
                ]
291
            ],
292
            'forgot-password' => [
293
                'type' => Literal::class,
294
                'options' => [
295
                    'route' => '/forgot-password',
296
                    'defaults' => [
297
                        'controller' => '\LeadersLinked\Controller\AuthController',
298
                        'action' => 'forgotPassword'
299
                    ]
300
                ]
301
            ],
302
            'signup' => [
303
                'type' => Literal::class,
304
                'options' => [
305
                    'route' => '/signup',
306
                    'defaults' => [
307
                        'controller' => '\LeadersLinked\Controller\AuthController',
308
                        'action' => 'signup'
309
                    ]
310
                ]
311
            ],
312
            'activate-account' => [
313
                'type' => Segment::class,
314
                'options' => [
315
                    'route' => '/activate-account/:code',
316
                    'constraints' => [
317
                        'code' => '[a-zA-Z0-9]+'
318
                    ],
319
                    'defaults' => [
320
                        'controller' => '\LeadersLinked\Controller\AuthController',
321
                        'action' => 'activateAccount'
322
                    ]
323
                ]
324
            ],
325
            'signout' => [
326
                'type' => Literal::class,
327
                'options' => [
328
                    'route' => '/signout',
329
                    'defaults' => [
330
                        'controller' => '\LeadersLinked\Controller\AuthController',
331
                        'action' => 'signout'
332
                    ]
333
                ]
334
            ],
210 efrain 335
            'csrf' => [
336
                'type' => Literal::class,
337
                'options' => [
338
                    'route' => '/csrf',
339
                    'defaults' => [
340
                        'controller' => '\LeadersLinked\Controller\AuthController',
341
                        'action' => 'csrf'
342
                    ]
343
                ]
344
            ],
2444 efrain 345
 
1 www 346
            'onroom' => [
347
                'type' => Literal::class,
348
                'options' => [
349
                    'route' => '/onroom',
350
                    'defaults' => [
351
                        'controller' => '\LeadersLinked\Controller\AuthController',
352
                        'action' => 'onroom'
353
                    ]
354
                ]
355
            ],
356
            'home' => [
357
                'type' => Literal::class,
358
                'options' => [
359
                    'route' => '/',
360
                    'defaults' => [
361
                        'controller' => '\LeadersLinked\Controller\HomeController',
362
                        'action' => 'index'
363
                    ]
364
                ]
365
            ],
366
            'post' => [
367
                'type' => Segment::class,
368
                'options' => [
369
                    'route' => '/post/:id',
370
                    'constraints' => [
371
                        'id' => '[A-Za-z0-9\-]+\=*',
372
                    ],
373
                    'defaults' => [
374
                        'controller' => '\LeadersLinked\Controller\HomeController',
375
                        'action' => 'post'
376
                    ]
377
                ]
378
            ],
379
            'privacy-policy' => [
380
                'type' => Literal::class,
381
                'options' => [
382
                    'route' => '/privacy-policy',
383
                    'defaults' => [
384
                        'controller' => '\LeadersLinked\Controller\HomeController',
385
                        'action' => 'privacyPolicy'
386
                    ]
387
                ]
388
            ],
389
            'cookies' => [
390
                'type' => Literal::class,
391
                'options' => [
392
                    'route' => '/cookies',
393
                    'defaults' => [
394
                        'controller' => '\LeadersLinked\Controller\HomeController',
395
                        'action' => 'cookies'
396
                    ]
397
                ]
398
            ],
399
            'professionalism-policy' => [
400
                'type' => Literal::class,
401
                'options' => [
402
                    'route' => '/professionalism-policy',
403
                    'defaults' => [
404
                        'controller' => '\LeadersLinked\Controller\HomeController',
405
                        'action' => 'professionalismPolicy'
406
                    ]
407
                ]
408
            ],
409
            'terms-and-conditions' => [
410
                'type' => Literal::class,
411
                'options' => [
412
                    'route' => '/terms-and-conditions',
413
                    'defaults' => [
414
                        'controller' => '\LeadersLinked\Controller\HomeController',
415
                        'action' => 'termsAndConditions'
416
                    ]
417
                ]
418
            ],
419
            'check-session' => [
420
                'type' => Literal::class,
421
                'options' => [
422
                    'route' => '/check-session',
423
                    'defaults' => [
424
                        'controller' => '\LeadersLinked\Controller\HomeController',
425
                        'action' => 'checkSession'
426
                    ]
427
                ]
428
            ],
429
            'notifications' => [
430
                'type' => Literal::class,
431
                'options' => [
432
                    'route' => '/notifications',
433
                    'defaults' => [
434
                        'controller' => '\LeadersLinked\Controller\HomeController',
435
                        'action' => 'notifications'
436
                    ]
437
                ]
438
            ],
439
            'backend' => [
440
                'type' => Literal::class,
441
                'options' => [
442
                    'route' => '/backend',
443
                    'defaults' => [
444
                        'controller' => '\LeadersLinked\Controller\BackendController',
445
                        'action' => 'index'
446
                    ]
447
                ],
448
                'may_terminate' => true,
449
                'child_routes' => [
450
                    'signin-admin' => [
451
                        'type' => Literal::class,
452
                        'options' => [
453
                            'route' => '/signin-admin',
454
                            'defaults' => [
455
                                'controller' => '\LeadersLinked\Controller\BackendController',
456
                                'action' => 'signinAdmin'
457
                            ],
458
                        ],
459
                    ],
460
                    'signin-company' => [
461
                        'type' => Segment::class,
462
                        'options' => [
463
                            'route' => '/signin-company/:id',
464
                            'constraints' => [
465
                                'id' => '[A-Za-z0-9\-]+\=*',
466
                            ],
467
                            'defaults' => [
468
                                'controller' => '\LeadersLinked\Controller\BackendController',
469
                                'action' => 'signinCompany'
470
                            ],
471
                        ],
472
                    ],
553 geraldo 473
                ]
1 www 474
            ],
475
            'dashboard' => [
476
                'type' => Segment::class,
477
                'options' => [
478
                    'route' => '/dashboard[/feed/:feed]',
479
                    'constraints' => [
480
                        'feed' => '[A-Za-z0-9\-]+\=*',
481
                    ],
482
                    'defaults' => [
483
                        'controller' => '\LeadersLinked\Controller\DashboardController',
484
                        'action' => 'index'
485
                    ]
486
                ]
487
            ],
60 efrain 488
            'dashboard2' => [
1 www 489
                'type' => Segment::class,
490
                'options' => [
60 efrain 491
                    'route' => '/dashboard2',
1 www 492
                    'defaults' => [
493
                        'controller' => '\LeadersLinked\Controller\DashboardController',
60 efrain 494
                        'action' => 'dashboard2'
1 www 495
                    ]
496
                ]
497
            ],
498
            'storage' => [
499
                'type' => Segment::class,
500
                'options' => [
501
                    'route' => '/storage/type/:type[/code/:code][/filename/:filename][/]',
502
                    'constraints' => [
503
                        'type' => 'user|user-profile|user-cover|company|company-cover|group|group-cover|job|chat|image|feed|post|message|microlearning-topic|microlearning-capsule|microlearning-slide',
504
                        'code' => '[A-Za-z0-9\-]+\=*',
505
                        'filename' => '[a-zA-Z0-9\-\_]+\.(jpg|jpeg|gif|png|mp3|mp4|flv|doc|pdf|docx|xls|ppt|pdf|xlsx|pptx)'
506
                    ],
507
                    // MjM5ODk0Mzgg
508
                    'defaults' => [
509
                        'controller' => '\LeadersLinked\Controller\StorageController',
510
                        'action' => 'download'
511
                    ]
512
                ]
513
            ],
514
            'paypal' => [
515
                'type' => Literal::class,
516
                'options' => [
517
                    'route' => '/paypal',
518
                    'defaults' => [
519
                        'controller' => '\LeadersLinked\Controller\PaypalController',
520
                        'action' => 'index'
521
                    ]
522
                ],
523
                'may_terminate' => true,
524
                'child_routes' => [
525
                    'success' => [
526
                        'type' => Literal::class,
527
                        'options' => [
528
                            'route' => '/success',
529
                            'defaults' => [
530
                                'controller' => '\LeadersLinked\Controller\PaypalController',
531
                                'action' => 'success',
532
                            ],
533
                        ],
534
                    ],
535
                    'cancel' => [
536
                        'type' => Literal::class,
537
                        'options' => [
538
                            'route' => '/cancel',
539
                            'defaults' => [
540
                                'controller' => '\LeadersLinked\Controller\PaypalController',
541
                                'action' => 'cancel',
542
                            ],
543
                        ],
544
                    ],
545
                ]
553 geraldo 546
            ],
1 www 547
            'chat' => [
548
                'type' => Literal::class,
549
                'options' => [
550
                    'route' => '/chat',
551
                    'defaults' => [
552
                        'controller' => '\LeadersLinked\Controller\ChatController',
553
                        'action' => 'index'
554
                    ]
555
                ],
556
                'may_terminate' => true,
557
                'child_routes' => [
558
                    // Inicio de los Routes del Chat //
553 geraldo 559
 
1 www 560
                    'heart-beat' => [
561
                        'type' => Literal::class,
562
                        'options' => [
563
                            'route' => '/heart-beat',
564
                            'defaults' => [
565
                                'controller' => '\LeadersLinked\Controller\ChatController',
566
                                'action' => 'heartBeat',
567
                            ],
568
                        ],
569
                    ],
570
                    'create-group' => [
571
                        'type' => Literal::class,
572
                        'options' => [
573
                            'route' => '/create-group',
574
                            'defaults' => [
575
                                'controller' => '\LeadersLinked\Controller\ChatController',
576
                                'action' => 'createGroup',
577
                            ],
578
                        ],
579
                    ],
580
                    'add-user-to-group' => [
581
                        'type' => Segment::class,
582
                        'options' => [
583
                            'route' => '/add-user-to-group/:group_id',
584
                            'constraints' => [
585
                                'group_id' => '[A-Za-z0-9\-]+\=*',
586
                            ],
587
                            'defaults' => [
588
                                'controller' => '\LeadersLinked\Controller\ChatController',
589
                                'action' => 'addUserToGroup',
590
                            ],
591
                        ],
592
                    ],
593
                    'mark-seen' => [
594
                        'type' => Segment::class,
595
                        'options' => [
596
                            'route' => '/mark-seen/:id',
597
                            'constraints' => [
598
                                'id' => '[A-Za-z0-9\-]+\=*',
599
                            ],
600
                            'defaults' => [
601
                                'controller' => '\LeadersLinked\Controller\ChatController',
602
                                'action' => 'markSeen',
603
                            ],
604
                        ],
605
                    ],
606
                    'mark-received' => [
607
                        'type' => Segment::class,
608
                        'options' => [
609
                            'route' => '/mark-received/:id',
610
                            'constraints' => [
611
                                'id' => '[A-Za-z0-9\-]+\=*',
612
                            ],
613
                            'defaults' => [
614
                                'controller' => '\LeadersLinked\Controller\ChatController',
615
                                'action' => 'markReceived',
616
                            ],
617
                        ],
618
                    ],
619
                    'remove-user-from-group' => [
620
                        'type' => Segment::class,
621
                        'options' => [
622
                            'route' => '/remove-user-from-group/:group_id/:user_id',
623
                            'constraints' => [
624
                                'group_id' => '[A-Za-z0-9\-]+\=*',
625
                                'user_id' => '[A-Za-z0-9\-]+\=*',
626
                            ],
627
                            'defaults' => [
628
                                'controller' => '\LeadersLinked\Controller\ChatController',
629
                                'action' => 'removeUserFromGroup',
630
                            ],
631
                        ],
632
                    ],
633
                    'get-all-messages' => [
553 geraldo 634
                        'type' => Segment::class,
1 www 635
                        'options' => [
636
                            'route' => '/get-all-messages/:id',
637
                            'constraints' => [
638
                                'id' => '[A-Za-z0-9\-]+\=*',
639
                            ],
640
                            'defaults' => [
641
                                'controller' => '\LeadersLinked\Controller\ChatController',
642
                                'action' => 'getAllMessages',
643
                            ],
644
                        ],
645
                    ],
646
                    'send' => [
553 geraldo 647
                        'type' => Segment::class,
1 www 648
                        'options' => [
649
                            'route' => '/send/:id',
650
                            'constraints' => [
651
                                'id' => '[A-Za-z0-9\-]+\=*',
652
                            ],
653
                            'defaults' => [
654
                                'controller' => '\LeadersLinked\Controller\ChatController',
655
                                'action' => 'send',
656
                            ],
657
                        ],
658
                    ],
659
                    'get-contacts-availables-for-group' => [
660
                        'type' => Segment::class,
661
                        'options' => [
662
                            'route' => '/get-contacts-availables-for-group/:group_id',
663
                            'constraints' => [
664
                                'group_id' => '[A-Za-z0-9\-]+\=*',
665
                            ],
666
                            'defaults' => [
667
                                'controller' => '\LeadersLinked\Controller\ChatController',
668
                                'action' => 'contactAvailableGroupList',
669
                            ],
670
                        ],
671
                    ],
672
                    'get-contact-group-list' => [
673
                        'type' => Segment::class,
674
                        'options' => [
675
                            'route' => '/get-contact-group-list/:group_id',
676
                            'constraints' => [
677
                                'group_id' => '[A-Za-z0-9\-]+\=*',
678
                            ],
679
                            'defaults' => [
680
                                'controller' => '\LeadersLinked\Controller\ChatController',
681
                                'action' => 'contactGroupList',
682
                            ],
683
                        ],
684
                    ],
685
                    'leave-group' => [
686
                        'type' => Segment::class,
687
                        'options' => [
688
                            'route' => '/leave-group/:group_id',
689
                            'constraints' => [
690
                                'group_id' => '[A-Za-z0-9\-]+\=*',
691
                            ],
692
                            'defaults' => [
693
                                'controller' => '\LeadersLinked\Controller\ChatController',
694
                                'action' => 'leaveGroup',
695
                            ],
696
                        ],
697
                    ],
698
                    'delete-group' => [
699
                        'type' => Segment::class,
700
                        'options' => [
701
                            'route' => '/delete-group/:group_id',
702
                            'constraints' => [
703
                                'group_id' => '[A-Za-z0-9\-]+\=*',
704
                            ],
705
                            'defaults' => [
706
                                'controller' => '\LeadersLinked\Controller\ChatController',
707
                                'action' => 'deleteGroup',
708
                            ],
709
                        ],
710
                    ],
711
                    'close' => [
712
                        'type' => Segment::class,
713
                        'options' => [
714
                            'route' => '/close/:id',
715
                            'constraints' => [
716
                                'id' => '[A-Za-z0-9\-]+\=*',
717
                            ],
718
                            'defaults' => [
719
                                'controller' => '\LeadersLinked\Controller\ChatController',
720
                                'action' => 'close',
721
                            ],
722
                        ],
723
                    ],
724
                    'clear' => [
725
                        'type' => Segment::class,
726
                        'options' => [
727
                            'route' => '/clear/:id',
728
                            'constraints' => [
729
                                'id' => '[A-Za-z0-9\-]+\=*',
730
                            ],
731
                            'defaults' => [
732
                                'controller' => '\LeadersLinked\Controller\ChatController',
733
                                'action' => 'clear',
734
                            ],
735
                        ],
736
                    ],
737
                    'upload' => [
738
                        'type' => Segment::class,
739
                        'options' => [
740
                            'route' => '/upload/:id',
741
                            'constraints' => [
742
                                'id' => '[A-Za-z0-9\-]+\=*',
743
                            ],
744
                            'defaults' => [
745
                                'controller' => '\LeadersLinked\Controller\ChatController',
746
                                'action' => 'upload',
747
                            ],
748
                        ],
749
                    ],
750
                ],
553 geraldo 751
            ],
1 www 752
            'inmail' => [
753
                'type' => Segment::class,
754
                'options' => [
755
                    'route' => '/inmail[/:id]',
756
                    'constraints' => [
757
                        'id' => '[A-Za-z0-9\-]+\=*',
758
                    ],
759
                    'defaults' => [
760
                        'controller' => '\LeadersLinked\Controller\InMailController',
761
                        'action' => 'index'
762
                    ]
763
                ],
764
                'may_terminate' => true,
765
                'child_routes' => [
766
                    'block' => [
767
                        'type' => Literal::class,
553 geraldo 768
                        'options' => [
1 www 769
                            'route' => '/block',
770
                            'defaults' => [
771
                                'controller' => '\LeadersLinked\Controller\InMailController',
772
                                'action' => 'blockConversation'
773
                            ]
553 geraldo 774
                        ]
775
                    ],
776
                    'delete' => [
777
                        'type' => Literal::class,
778
                        'options' => [
779
                            'route' => '/delete',
780
                            'defaults' => [
781
                                'controller' => '\LeadersLinked\Controller\InMailController',
782
                                'action' => 'deleteConversation'
1 www 783
                            ]
553 geraldo 784
                        ]
785
                    ],
786
                    'message' => [
787
                        'type' => Literal::class,
788
                        'options' => [
789
                            'route' => '/message',
790
                            'defaults' => [
791
                                'controller' => '\LeadersLinked\Controller\InMailController',
792
                                'action' => 'message'
793
                            ]
1 www 794
                        ],
553 geraldo 795
                        'may_terminate' => true,
796
                        'child_routes' => [
797
                            'send' => [
798
                                'type' => Segment::class,
799
                                'options' => [
800
                                    'route' => '/send[/encoding/:encoding]',
801
                                    'constraints' => [
802
                                        'encoding' => 'base64'
803
                                    ],
804
                                    'defaults' => [
805
                                        'controller' => '\LeadersLinked\Controller\InMailController',
806
                                        'action' => 'sendMessage'
807
                                    ]
1 www 808
                                ]
809
                            ],
553 geraldo 810
                            'delete' => [
811
                                'type' => Segment::class,
812
                                'options' => [
813
                                    'route' => '/delete/:message',
814
                                    'constraints' => [
815
                                        'message' => '[A-Za-z0-9\-]+\=*',
816
                                    ],
817
                                    'defaults' => [
818
                                        'controller' => '\LeadersLinked\Controller\InMailController',
819
                                        'action' => 'delete'
1 www 820
                                    ]
553 geraldo 821
                                ]
822
                            ],
823
                        ],
1 www 824
                    ],
553 geraldo 825
                ],
826
            ],
1 www 827
            'connection' => [
828
                'type' => Literal::class,
829
                'options' => [
830
                    'route' => '/connection',
831
                    'defaults' => [
832
                        'controller' => '\LeadersLinked\Controller\ConnectionController',
833
                        'action' => 'index'
834
                    ]
835
                ],
836
                'may_terminate' => true,
837
                'child_routes' => [
838
                    'my-connections' => [
839
                        'type' => Literal::class,
840
                        'options' => [
841
                            'route' => '/my-connections',
842
                            'defaults' => [
843
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
844
                                'action' => 'myConnections'
845
                            ]
846
                        ]
847
                    ],
848
                    'people-you-may-know' => [
849
                        'type' => Literal::class,
850
                        'options' => [
851
                            'route' => '/people-you-may-know',
852
                            'defaults' => [
853
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
854
                                'action' => 'peopleYouMayKnow'
855
                            ]
856
                        ]
857
                    ],
858
                    'people-blocked' => [
859
                        'type' => Literal::class,
860
                        'options' => [
861
                            'route' => '/people-blocked',
862
                            'defaults' => [
863
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
864
                                'action' => 'peopleBlocked'
865
                            ]
866
                        ],
867
                    ],
868
                    'invitations-sent' => [
869
                        'type' => Literal::class,
870
                        'options' => [
871
                            'route' => '/invitations-sent',
872
                            'defaults' => [
873
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
874
                                'action' => 'invitationsSent'
875
                            ]
876
                        ]
877
                    ],
878
                    'invitations-received' => [
879
                        'type' => Literal::class,
880
                        'options' => [
881
                            'route' => '/invitations-received',
882
                            'defaults' => [
883
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
884
                                'action' => 'invitationsReceived'
885
                            ]
886
                        ]
887
                    ],
888
                    'block' => [
889
                        'type' => Segment::class,
890
                        'options' => [
891
                            'route' => '/block/:id',
892
                            'constraints' => [
893
                                'id' => '[A-Za-z0-9\-]+\=*',
894
                            ],
895
                            'defaults' => [
896
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
897
                                'action' => 'block'
898
                            ]
899
                        ]
900
                    ],
901
                    'unblock' => [
902
                        'type' => Segment::class,
903
                        'options' => [
904
                            'route' => '/unblock/:id',
905
                            'constraints' => [
906
                                'id' => '[A-Za-z0-9\-]+\=*',
907
                            ],
908
                            'defaults' => [
909
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
910
                                'action' => 'unblock'
911
                            ]
912
                        ]
913
                    ],
914
                    'cancel' => [
915
                        'type' => Segment::class,
916
                        'options' => [
917
                            'route' => '/cancel/:id',
918
                            'constraints' => [
919
                                'id' => '[A-Za-z0-9\-]+\=*',
920
                            ],
921
                            'defaults' => [
922
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
923
                                'action' => 'cancel'
924
                            ]
925
                        ]
926
                    ],
927
                    'request' => [
928
                        'type' => Segment::class,
929
                        'options' => [
930
                            'route' => '/request/:id',
931
                            'constraints' => [
932
                                'id' => '[A-Za-z0-9\-]+\=*',
933
                            ],
934
                            'defaults' => [
935
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
936
                                'action' => 'request'
937
                            ]
938
                        ]
939
                    ],
940
                    'approve' => [
941
                        'type' => Segment::class,
942
                        'options' => [
943
                            'route' => '/approve/:id',
944
                            'constraints' => [
945
                                'id' => '[A-Za-z0-9\-]+\=*',
946
                            ],
947
                            'defaults' => [
948
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
949
                                'action' => 'approve'
950
                            ]
951
                        ]
952
                    ],
953
                    'reject' => [
954
                        'type' => Segment::class,
955
                        'options' => [
956
                            'route' => '/reject/:id',
957
                            'constraints' => [
958
                                'id' => '[A-Za-z0-9\-]+\=*',
959
                            ],
960
                            'defaults' => [
961
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
962
                                'action' => 'reject'
963
                            ]
964
                        ]
965
                    ],
966
                    'delete' => [
967
                        'type' => Segment::class,
968
                        'options' => [
969
                            'route' => '/delete/:id',
970
                            'constraints' => [
971
                                'id' => '[A-Za-z0-9\-]+\=*',
972
                            ],
973
                            'defaults' => [
974
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
975
                                'action' => 'delete'
976
                            ]
977
                        ]
978
                    ],
979
                ]
553 geraldo 980
            ],
1 www 981
            'feed' => [
982
                'type' => Literal::class,
983
                'options' => [
984
                    'route' => '/feed',
985
                    'defaults' => [
986
                        'controller' => '\LeadersLinked\Controller\FeedController',
987
                        'action' => 'index'
988
                    ]
989
                ],
990
                'may_terminate' => true,
991
                'child_routes' => [
992
                    'timeline' => [
993
                        'type' => Segment::class,
994
                        'options' => [
995
                            'route' => '/timeline/:id/:type[/feed/:feed]',
996
                            'constraints' => [
997
                                'id' => '[A-Za-z0-9\-]+\=*',
998
                                'type' => 'user|company|group',
999
                                'feed' => '[A-Za-z0-9\-]+\=*',
1000
                            ],
1001
                            'defaults' => [
1002
                                'controller' => '\LeadersLinked\Controller\FeedController',
1003
                                'action' => 'timeline'
1004
                            ]
1005
                        ]
1006
                    ],
1007
                    'delete' => [
1008
                        'type' => Segment::class,
1009
                        'options' => [
1010
                            'route' => '/delete/:id',
1011
                            'constraints' => [
1012
                                'id' => '[A-Za-z0-9\-]+\=*',
1013
                            ],
1014
                            'defaults' => [
1015
                                'controller' => '\LeadersLinked\Controller\FeedController',
1016
                                'action' => 'delete'
1017
                            ],
1018
                        ]
1019
                    ],
1020
                    'comment' => [
1021
                        'type' => Segment::class,
1022
                        'options' => [
1023
                            'route' => '/comment/:id',
1024
                            'constraints' => [
1025
                                'id' => '[A-Za-z0-9\-]+\=*',
1026
                            ],
1027
                            'defaults' => [
1028
                                'controller' => '\LeadersLinked\Controller\FeedController',
1029
                                'action' => 'comment'
1030
                            ],
1031
                        ],
1032
                        'may_terminate' => true,
1033
                        'child_routes' => [
1034
                            'delete' => [
1035
                                'type' => Segment::class,
1036
                                'options' => [
1037
                                    'route' => '/delete/:comment',
1038
                                    'constraints' => [
1039
                                        'comment' => '[A-Za-z0-9\-]+\=*',
1040
                                    ],
1041
                                    'defaults' => [
1042
                                        'controller' => '\LeadersLinked\Controller\FeedController',
1043
                                        'action' => 'commentDelete'
1044
                                    ]
1045
                                ]
1046
                            ],
1047
                        ]
1048
                    ],
1049
                    'share' => [
1050
                        'type' => Segment::class,
1051
                        'options' => [
1052
                            'route' => '/share/:id[/company/:company_id][/group/:group_id][/encoding/:encoding]',
1053
                            'constraints' => [
1054
                                'id' => '[A-Za-z0-9\-]+\=*',
1055
                                'company_id' => '[A-Za-z0-9\-]+\=*',
1056
                                'group_id' => '[A-Za-z0-9\-]+\=*',
1057
                                'encoding' => 'base64'
1058
                            ],
1059
                            'defaults' => [
1060
                                'controller' => '\LeadersLinked\Controller\FeedController',
1061
                                'action' => 'share'
1062
                            ]
1063
                        ]
1064
                    ],
1065
                    'like' => [
1066
                        'type' => Segment::class,
1067
                        'options' => [
1068
                            'route' => '/like/:id',
1069
                            'constraints' => [
1070
                                'id' => '[A-Za-z0-9\-]+\=*',
1071
                            ],
1072
                            'defaults' => [
1073
                                'controller' => '\LeadersLinked\Controller\FeedController',
1074
                                'action' => 'like'
1075
                            ]
1076
                        ]
1077
                    ],
1078
                    'unlike' => [
1079
                        'type' => Segment::class,
1080
                        'options' => [
1081
                            'route' => '/unlike/:id',
1082
                            'constraints' => [
1083
                                'id' => '[A-Za-z0-9\-]+\=*',
1084
                            ],
1085
                            'defaults' => [
1086
                                'controller' => '\LeadersLinked\Controller\FeedController',
1087
                                'action' => 'unlike'
1088
                            ]
1089
                        ]
1090
                    ],
1091
                    'add' => [
1092
                        'type' => Segment::class,
1093
                        'options' => [
1979 efrain 1094
                            'route' => '/add[/mty/:mty_id][/hptg/:hptg_id][/encoding/:encoding]',
1 www 1095
                            'constraints' => [
1979 efrain 1096
                                'mty_id' => '[A-Za-z0-9\-]+\=*',
1097
                                'hptg_id' => '[A-Za-z0-9\-]+\=*',
1 www 1098
                                'encoding' => 'base64'
1099
                            ],
1100
                            'defaults' => [
1101
                                'controller' => '\LeadersLinked\Controller\FeedController',
1102
                                'action' => 'add'
1103
                            ]
1104
                        ]
1105
                    ],
1106
                ],
553 geraldo 1107
            ],
1 www 1108
            'job' => [
1109
                'type' => Literal::class,
1110
                'options' => [
1111
                    'route' => '/job',
1112
                    'defaults' => [
1113
                        'controller' => '\LeadersLinked\Controller\JobController',
1114
                        'action' => 'index'
1115
                    ]
1116
                ],
1117
                'may_terminate' => true,
1118
                'child_routes' => [
1119
                    'view' => [
1120
                        'type' => Segment::class,
1121
                        'options' => [
1122
                            'route' => '/view/:id',
1123
                            'constraints' => [
1124
                                'id' => '[A-Za-z0-9\-]+\=*'
1125
                            ],
1126
                            'defaults' => [
1127
                                'controller' => '\LeadersLinked\Controller\JobController',
1128
                                'action' => 'view'
1129
                            ]
1130
                        ]
1131
                    ],
1132
                    'apply-job' => [
1133
                        'type' => Segment::class,
1134
                        'options' => [
1135
                            'route' => '/apply-job/:id',
1136
                            'constraints' => [
1137
                                'id' => '[A-Za-z0-9\-]+\=*'
1138
                            ],
1139
                            'defaults' => [
1140
                                'controller' => '\LeadersLinked\Controller\JobController',
1141
                                'action' => 'applyJob'
1142
                            ]
1143
                        ]
1144
                    ],
1145
                    'remove-apply-job' => [
1146
                        'type' => Segment::class,
1147
                        'options' => [
1148
                            'route' => '/remove-apply-job/:id',
1149
                            'constraints' => [
1150
                                'id' => '[A-Za-z0-9\-]+\=*'
1151
                            ],
1152
                            'defaults' => [
1153
                                'controller' => '\LeadersLinked\Controller\JobController',
1154
                                'action' => 'removeApplyJob'
1155
                            ]
1156
                        ]
1157
                    ],
1158
                    'save-job' => [
1159
                        'type' => Segment::class,
1160
                        'options' => [
1161
                            'route' => '/save-job/:id',
1162
                            'constraints' => [
1163
                                'id' => '[A-Za-z0-9\-]+\=*'
1164
                            ],
1165
                            'defaults' => [
1166
                                'controller' => '\LeadersLinked\Controller\JobController',
1167
                                'action' => 'saveJob'
1168
                            ]
1169
                        ]
1170
                    ],
1171
                    'remove-save-job' => [
1172
                        'type' => Segment::class,
1173
                        'options' => [
1174
                            'route' => '/remove-save-job/:id',
1175
                            'constraints' => [
1176
                                'id' => '[A-Za-z0-9\-]+\=*'
1177
                            ],
1178
                            'defaults' => [
1179
                                'controller' => '\LeadersLinked\Controller\JobController',
1180
                                'action' => 'removeSaveJob'
1181
                            ]
1182
                        ]
1183
                    ],
1184
                    'applied-jobs' => [
1185
                        'type' => Literal::class,
1186
                        'options' => [
1187
                            'route' => '/applied-jobs',
1188
                            'defaults' => [
1189
                                'controller' => '\LeadersLinked\Controller\JobController',
1190
                                'action' => 'appliedJobs'
1191
                            ]
1192
                        ]
1193
                    ],
1194
                    'saved-jobs' => [
1195
                        'type' => Literal::class,
1196
                        'options' => [
1197
                            'route' => '/saved-jobs',
1198
                            'defaults' => [
1199
                                'controller' => '\LeadersLinked\Controller\JobController',
1200
                                'action' => 'savedJobs'
1201
                            ]
1202
                        ]
1203
                    ],
553 geraldo 1204
                ]
1 www 1205
            ],
1206
            /*
553 geraldo 1207
              'job' => [
1208
              'type' => Literal::class,
1209
              'options' => [
1210
              'route' => '/job',
1211
              'defaults' => [
1212
              'controller' => '\LeadersLinked\Controller\JobController',
1213
              'action' => 'index'
1214
              ]
1215
              ],
1216
              'may_terminate' => true,
1217
              'child_routes' => [
1218
              'view' => [
1219
              'type' => Segment::class,
1220
              'options' => [
1221
              'route' => '/view/:id',
1222
              'constraints' => [
1223
              'id' => '[A-Za-z0-9\-]+\=*'
1224
              ],
1225
              'defaults' => [
1226
              'controller' => '\LeadersLinked\Controller\CompanyController',
1227
              'action' => 'job'
1228
              ]
1229
              ]
1230
              ],
1231
              ]
1232
              ],
1 www 1233
             */
1234
            'search' => [
1235
                'type' => Segment::class,
1236
                'options' => [
1237
                    'route' => '/search[/entity/:entity]',
1238
                    'constraints' => [
1239
                        'entity' => 'user|company|group|job'
1240
                    ],
1241
                    'defaults' => [
1242
                        'controller' => '\LeadersLinked\Controller\SearchController',
1243
                        'action' => 'index'
1244
                    ]
1245
                ],
1246
            ],
1247
            'group' => [
1248
                'type' => Literal::class,
1249
                'options' => [
1250
                    'route' => '/group',
1251
                    'defaults' => [
1252
                        'controller' => '\LeadersLinked\GroupController',
1253
                        'action' => 'index'
1254
                    ]
1255
                ],
1256
                'may_terminate' => true,
1257
                'child_routes' => [
1258
                    'view' => [
1259
                        'type' => Segment::class,
1260
                        'options' => [
1261
                            'route' => '/view/:id',
1262
                            'constraints' => [
1263
                                'id' => '[A-Za-z0-9\-]+\=*'
1264
                            ],
1265
                            'defaults' => [
1266
                                'controller' => '\LeadersLinked\Controller\GroupController',
1267
                                'action' => 'view'
1268
                            ]
1269
                        ]
1270
                    ],
1271
                    'request' => [
1272
                        'type' => Segment::class,
1273
                        'options' => [
1274
                            'route' => '/request/:id',
1275
                            'constraints' => [
1276
                                'id' => '[A-Za-z0-9\-]+\=*'
1277
                            ],
1278
                            'defaults' => [
1279
                                'controller' => '\LeadersLinked\Controller\GroupController',
1280
                                'action' => 'request'
1281
                            ]
1282
                        ]
1283
                    ],
1284
                    'leave' => [
1285
                        'type' => Segment::class,
1286
                        'options' => [
1287
                            'route' => '/leave/:id',
1288
                            'constraints' => [
1289
                                'id' => '[A-Za-z0-9\-]+\=*'
1290
                            ],
1291
                            'defaults' => [
1292
                                'controller' => '\LeadersLinked\Controller\GroupController',
1293
                                'action' => 'leave'
1294
                            ]
1295
                        ]
1296
                    ],
1297
                    'accept' => [
1298
                        'type' => Segment::class,
1299
                        'options' => [
1300
                            'route' => '/accept/:id',
1301
                            'constraints' => [
1302
                                'id' => '[A-Za-z0-9\-]+\=*'
1303
                            ],
1304
                            'defaults' => [
1305
                                'controller' => '\LeadersLinked\Controller\GroupController',
1306
                                'action' => 'accept'
1307
                            ]
1308
                        ]
1309
                    ],
1310
                    'cancel' => [
1311
                        'type' => Segment::class,
1312
                        'options' => [
1313
                            'route' => '/cancel/:id',
1314
                            'constraints' => [
1315
                                'id' => '[A-Za-z0-9\-]+\=*'
1316
                            ],
1317
                            'defaults' => [
1318
                                'controller' => '\LeadersLinked\Controller\GroupController',
1319
                                'action' => 'cancel'
1320
                            ]
1321
                        ]
1322
                    ],
1323
                    'reject' => [
1324
                        'type' => Segment::class,
1325
                        'options' => [
1326
                            'route' => '/reject/:id',
1327
                            'constraints' => [
1328
                                'id' => '[A-Za-z0-9\-]+\=*'
1329
                            ],
1330
                            'defaults' => [
1331
                                'controller' => '\LeadersLinked\Controller\GroupController',
1332
                                'action' => 'reject'
1333
                            ]
1334
                        ]
1335
                    ],
1336
                    'joined-groups' => [
1337
                        'type' => Literal::class,
1338
                        'options' => [
1339
                            'route' => '/joined-groups',
1340
                            'defaults' => [
1341
                                'controller' => '\LeadersLinked\Controller\GroupController',
1342
                                'action' => 'joinedGroups'
1343
                            ]
1344
                        ],
1345
                    ],
1346
                    'requests-sent' => [
1347
                        'type' => Literal::class,
1348
                        'options' => [
1349
                            'route' => '/requests-sent',
1350
                            'defaults' => [
1351
                                'controller' => '\LeadersLinked\Controller\GroupController',
1352
                                'action' => 'requestsSent'
1353
                            ]
1354
                        ],
1355
                    ],
1356
                    'invitations-received' => [
1357
                        'type' => Literal::class,
1358
                        'options' => [
1359
                            'route' => '/invitations-received',
1360
                            'defaults' => [
1361
                                'controller' => '\LeadersLinked\Controller\GroupController',
1362
                                'action' => 'invitationsReceived'
1363
                            ]
1364
                        ],
1365
                    ],
1366
                    'my-groups' => [
1367
                        'type' => Literal::class,
1368
                        'options' => [
1369
                            'route' => '/my-groups',
1370
                            'defaults' => [
1371
                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
1372
                                'action' => 'index'
1373
                            ]
1374
                        ],
1375
                        'may_terminate' => true,
1376
                        'child_routes' => [
1377
                            'add' => [
1378
                                'type' => Literal::class,
1379
                                'options' => [
1380
                                    'route' => '/add',
1381
                                    'defaults' => [
1382
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1383
                                        'action' => 'add'
1384
                                    ]
1385
                                ]
1386
                            ],
1387
                            'edit' => [
1388
                                'type' => Segment::class,
1389
                                'options' => [
1390
                                    'route' => '/edit/:id',
1391
                                    'constraints' => [
1392
                                        'id' => '[A-Za-z0-9\-]+\=*'
1393
                                    ],
1394
                                    'defaults' => [
1395
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1396
                                        'action' => 'edit'
1397
                                    ]
1398
                                ]
1399
                            ],
1400
                            'delete' => [
1401
                                'type' => Segment::class,
1402
                                'options' => [
1403
                                    'route' => '/delete/:id',
1404
                                    'constraints' => [
1405
                                        'id' => '[A-Za-z0-9\-]+\=*'
1406
                                    ],
1407
                                    'defaults' => [
1408
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1409
                                        'action' => 'delete'
1410
                                    ]
1411
                                ]
1412
                            ],
1413
                            'extended' => [
1414
                                'type' => Segment::class,
1415
                                'options' => [
1416
                                    'route' => '/extended/:id',
1417
                                    'constraints' => [
1418
                                        'id' => '[A-Za-z0-9\-]+\=*'
1419
                                    ],
1420
                                    'defaults' => [
1421
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1422
                                        'action' => 'extended'
1423
                                    ]
1424
                                ]
1425
                            ],
1426
                            'image' => [
1427
                                'type' => Segment::class,
1428
                                'options' => [
1429
                                    'route' => '/image/:id/operation/:operation',
1430
                                    'constraints' => [
1431
                                        'id' => '[A-Za-z0-9\-]+\=*',
1432
                                        'operation' => 'upload|delete'
1433
                                    ],
1434
                                    'defaults' => [
1435
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1436
                                        'action' => 'image'
1437
                                    ]
1438
                                ]
1439
                            ],
1440
                            'cover' => [
1441
                                'type' => Segment::class,
1442
                                'options' => [
1443
                                    'route' => '/cover/:id/operation/:operation',
1444
                                    'constraints' => [
1445
                                        'id' => '[A-Za-z0-9\-]+\=*',
1446
                                        'operation' => 'upload|delete'
1447
                                    ],
1448
                                    'defaults' => [
1449
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1450
                                        'action' => 'cover'
1451
                                    ]
1452
                                ]
1453
                            ],
1454
                            'privacy' => [
1455
                                'type' => Segment::class,
1456
                                'options' => [
1457
                                    'route' => '/privacy/:id',
1458
                                    'constraints' => [
1459
                                        'id' => '[A-Za-z0-9\-]+\=*'
1460
                                    ],
1461
                                    'defaults' => [
1462
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1463
                                        'action' => 'privacy'
1464
                                    ]
1465
                                ]
1466
                            ],
1467
                            'website' => [
1468
                                'type' => Segment::class,
1469
                                'options' => [
1470
                                    'route' => '/website/:id',
1471
                                    'constraints' => [
1472
                                        'id' => '[A-Za-z0-9\-]+\=*'
1473
                                    ],
1474
                                    'defaults' => [
1475
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1476
                                        'action' => 'website'
1477
                                    ]
1478
                                ]
1479
                            ],
1480
                            'industry' => [
1481
                                'type' => Segment::class,
1482
                                'options' => [
1483
                                    'route' => '/industry/:id',
1484
                                    'constraints' => [
1485
                                        'id' => '[A-Za-z0-9\-]+\=*'
1486
                                    ],
1487
                                    'defaults' => [
1488
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1489
                                        'action' => 'industry'
1490
                                    ]
1491
                                ]
1492
                            ],
1493
                            'accessibility' => [
1494
                                'type' => Segment::class,
1495
                                'options' => [
1496
                                    'route' => '/accessibility/:id',
1497
                                    'constraints' => [
1498
                                        'id' => '[A-Za-z0-9\-]+\=*'
1499
                                    ],
1500
                                    'defaults' => [
1501
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1502
                                        'action' => 'accessibility'
1503
                                    ]
1504
                                ]
1505
                            ],
1506
                            'type' => [
1507
                                'type' => Segment::class,
1508
                                'options' => [
1509
                                    'route' => '/type/:id',
1510
                                    'constraints' => [
1511
                                        'id' => '[A-Za-z0-9\-]+\=*'
1512
                                    ],
1513
                                    'defaults' => [
1514
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1515
                                        'action' => 'type'
1516
                                    ]
1517
                                ]
1518
                            ],
1519
                            'status' => [
1520
                                'type' => Segment::class,
1521
                                'options' => [
1522
                                    'route' => '/status/:id',
1523
                                    'constraints' => [
1524
                                        'id' => '[A-Za-z0-9\-]+\=*'
1525
                                    ],
1526
                                    'defaults' => [
1527
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1528
                                        'action' => 'status'
1529
                                    ]
1530
                                ]
1531
                            ],
1532
                            'members' => [
1533
                                'type' => Segment::class,
1534
                                'options' => [
1535
                                    'route' => '/members/:id',
1536
                                    'constraints' => [
1537
                                        'id' => '[A-Za-z0-9\-]+\=*'
1538
                                    ],
1539
                                    'defaults' => [
1540
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1541
                                        'action' => 'members'
1542
                                    ]
1543
                                ],
1544
                                'may_terminate' => true,
1545
                                'child_routes' => [
1546
                                    'invite' => [
1547
                                        'type' => Segment::class,
1548
                                        'options' => [
1549
                                            'route' => '/invite/:user_id',
1550
                                            'constraints' => [
1551
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
1552
                                            ],
1553
                                            'defaults' => [
1554
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
1555
                                                'action' => 'invite'
1556
                                            ]
1557
                                        ]
1558
                                    ],
1559
                                    'approve' => [
1560
                                        'type' => Segment::class,
1561
                                        'options' => [
1562
                                            'route' => '/approve/:user_id',
1563
                                            'constraints' => [
1564
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
1565
                                            ],
1566
                                            'defaults' => [
1567
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
1568
                                                'action' => 'approve'
1569
                                            ]
1570
                                        ]
1571
                                    ],
1572
                                    'reject' => [
1573
                                        'type' => Segment::class,
1574
                                        'options' => [
1575
                                            'route' => '/reject/:user_id',
1576
                                            'constraints' => [
1577
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
1578
                                            ],
1579
                                            'defaults' => [
1580
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
1581
                                                'action' => 'reject'
1582
                                            ]
1583
                                        ]
1584
                                    ],
1585
                                    'cancel' => [
1586
                                        'type' => Segment::class,
1587
                                        'options' => [
1588
                                            'route' => '/cancel/:user_id',
1589
                                            'constraints' => [
1590
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
1591
                                            ],
1592
                                            'defaults' => [
1593
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
1594
                                                'action' => 'cancel'
1595
                                            ]
1596
                                        ]
1597
                                    ],
553 geraldo 1598
                                ]
1 www 1599
                            ],
1600
                        ]
1601
                    ]
1602
                ]
1603
            ],
1604
            'profile' => [
1605
                'type' => Literal::class,
1606
                'options' => [
1607
                    'route' => '/profile',
1608
                    'defaults' => [
1609
                        'controller' => '\LeadersLinked\ControllerProfileController',
1610
                        'action' => 'index'
1611
                    ]
1612
                ],
1613
                'may_terminate' => true,
1614
                'child_routes' => [
1615
                    'microlearning' => [
1616
                        'type' => Literal::class,
1617
                        'options' => [
1618
                            'route' => '/microlearning',
1619
                            'defaults' => [
1620
                                'controller' => '\LeadersLinked\Controller\ProfileMicrolearningController',
1621
                                'action' => 'index'
1622
                            ]
1623
                        ],
1624
                        'may_terminate' => true,
1625
                        'child_routes' => [
1626
                            'timeline' => [
1627
                                'type' => Literal::class,
1628
                                'options' => [
1629
                                    'route' => '/timeline',
1630
                                    'defaults' => [
1631
                                        'controller' => '\LeadersLinked\Controller\ProfileMicrolearningController',
1632
                                        'action' => 'timeline'
1633
                                    ]
1634
                                ]
1635
                            ],
1636
                            'progress' => [
1637
                                'type' => Literal::class,
1638
                                'options' => [
1639
                                    'route' => '/progress',
1640
                                    'defaults' => [
1641
                                        'controller' => '\LeadersLinked\Controller\ProfileMicrolearningController',
1642
                                        'action' => 'progress'
1643
                                    ]
1644
                                ]
1645
                            ],
1646
                        ]
1647
                    ],
1648
                    'people-viewed-profile' => [
1649
                        'type' => Literal::class,
1650
                        'options' => [
1651
                            'route' => '/people-viewed-profile',
1652
                            'defaults' => [
1653
                                'controller' => '\LeadersLinked\Controller\ProfileController',
1654
                                'action' => 'peopleViewedProfile'
1655
                            ]
1656
                        ]
1657
                    ],
580 geraldo 1658
                    'view' => [
1659
                        'type' => Segment::class,
263 geraldo 1660
                        'options' => [
580 geraldo 1661
                            'route' => '/view/:id',
1662
                            'constraints' => [
1663
                                'id' => '[A-Za-z0-9\-]+\=*'
1664
                            ],
263 geraldo 1665
                            'defaults' => [
580 geraldo 1666
                                'controller' => '\LeadersLinked\Controller\ProfileController',
1667
                                'action' => 'view'
263 geraldo 1668
                            ]
1669
                        ]
1670
                    ],
580 geraldo 1671
                    'self-evaluation' => [
553 geraldo 1672
                        'type' => Literal::class,
1673
                        'options' => [
580 geraldo 1674
                            'route' => '/self-evaluation',
553 geraldo 1675
                            'defaults' => [
580 geraldo 1676
                                'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
553 geraldo 1677
                                'action' => 'index'
1678
                            ]
1679
                        ],
1680
                        'may_terminate' => true,
1681
                        'child_routes' => [
1682
                            'take-a-test' => [
580 geraldo 1683
                                'type' => Segment::class,
553 geraldo 1684
                                'options' => [
1685
                                    'route' => '/take-a-test/:id',
1686
                                    'constraints' => [
1687
                                        'id' => '[A-Za-z0-9\-]+\=*'
1688
                                    ],
1689
                                    'defaults' => [
578 geraldo 1690
                                        'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
553 geraldo 1691
                                        'action' => 'takeaTest'
1692
                                    ]
1693
                                ]
1694
                            ],
1695
                            'report' => [
580 geraldo 1696
                                'type' => Segment::class,
553 geraldo 1697
                                'options' => [
1698
                                    'route' => '/report/:id',
1699
                                    'constraints' => [
1700
                                        'id' => '[A-Za-z0-9\-]+\=*'
1701
                                    ],
1702
                                    'defaults' => [
580 geraldo 1703
                                        'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
553 geraldo 1704
                                        'action' => 'report'
1705
                                    ]
1706
                                ]
1707
                            ],
1708
                        ]
1709
                    ],
581 geraldo 1710
                    'performance-evaluation' => [
1711
                        'type' => Literal::class,
1712
                        'options' => [
1713
                            'route' => '/performance-evaluation',
1714
                            'defaults' => [
1715
                                'controller' => '\LeadersLinked\Controller\PerformanceEvaluationController',
1716
                                'action' => 'index'
1717
                            ]
1718
                        ],
1719
                        'may_terminate' => true,
1720
                        'child_routes' => [
1721
                            'take-a-test' => [
1722
                                'type' => Segment::class,
1723
                                'options' => [
1724
                                    'route' => '/take-a-test/:id',
1725
                                    'constraints' => [
1726
                                        'id' => '[A-Za-z0-9\-]+\=*'
1727
                                    ],
1728
                                    'defaults' => [
1729
                                        'controller' => '\LeadersLinked\Controller\PerformanceEvaluationController',
1730
                                        'action' => 'takeaTest'
1731
                                    ]
1732
                                ]
1733
                            ],
1734
                            'report' => [
1735
                                'type' => Segment::class,
1736
                                'options' => [
1737
                                    'route' => '/report/:id',
1738
                                    'constraints' => [
1739
                                        'id' => '[A-Za-z0-9\-]+\=*'
1740
                                    ],
1741
                                    'defaults' => [
1742
                                        'controller' => '\LeadersLinked\Controller\PerformanceEvaluationController',
1743
                                        'action' => 'report'
1744
                                    ]
1745
                                ]
1746
                            ],
1747
                        ]
1748
                    ],
1 www 1749
                    'my-profiles' => [
1750
                        'type' => Literal::class,
1751
                        'options' => [
1752
                            'route' => '/my-profiles',
1753
                            'defaults' => [
1754
                                'controller' => '\LeadersLinked\Controller\MyProfilesController',
1755
                                'action' => 'index'
1756
                            ]
1757
                        ],
1758
                        'may_terminate' => true,
1759
                        'child_routes' => [
1760
                            'add' => [
1761
                                'type' => Literal::class,
1762
                                'options' => [
1763
                                    'route' => '/add',
1764
                                    'defaults' => [
1765
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1766
                                        'action' => 'add'
1767
                                    ]
1768
                                ]
1769
                            ],
1770
                            'edit' => [
1771
                                'type' => Segment::class,
1772
                                'options' => [
1773
                                    'route' => '/edit/:id',
1774
                                    'constraints' => [
1775
                                        'id' => '[A-Za-z0-9\-]+\=*'
1776
                                    ],
1777
                                    'defaults' => [
1778
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1779
                                        'action' => 'edit'
1780
                                    ]
1781
                                ]
1782
                            ],
1783
                            'delete' => [
1784
                                'type' => Segment::class,
1785
                                'options' => [
1786
                                    'route' => '/delete/:id',
1787
                                    'constraints' => [
1788
                                        'id' => '[A-Za-z0-9\-]+\=*'
1789
                                    ],
1790
                                    'defaults' => [
1791
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1792
                                        'action' => 'delete'
1793
                                    ]
1794
                                ]
1795
                            ],
1796
                            'extended' => [
1797
                                'type' => Segment::class,
1798
                                'options' => [
1799
                                    'route' => '/extended/:id',
1800
                                    'constraints' => [
1801
                                        'id' => '[A-Za-z0-9\-]+\=*'
1802
                                    ],
1803
                                    'defaults' => [
1804
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1805
                                        'action' => 'extended'
1806
                                    ]
1807
                                ]
1808
                            ],
1809
                            'image' => [
1810
                                'type' => Segment::class,
1811
                                'options' => [
1812
                                    'route' => '/image/:id/operation/:operation',
1813
                                    'constraints' => [
1814
                                        'id' => '[A-Za-z0-9\-]+\=*',
1815
                                        'operation' => 'upload|delete'
1816
                                    ],
1817
                                    'defaults' => [
1818
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1819
                                        'action' => 'image'
1820
                                    ]
1821
                                ]
1822
                            ],
1823
                            'cover' => [
1824
                                'type' => Segment::class,
1825
                                'options' => [
1826
                                    'route' => '/cover/:id/operation/:operation',
1827
                                    'constraints' => [
1828
                                        'id' => '[A-Za-z0-9\-]+\=*',
1829
                                        'operation' => 'upload|delete'
1830
                                    ],
1831
                                    'defaults' => [
1832
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1833
                                        'action' => 'cover'
1834
                                    ]
1835
                                ]
1836
                            ],
1837
                            'experience' => [
1838
                                'type' => Segment::class,
1839
                                'options' => [
1840
                                    'route' => '/experience/:id/operation/:operation[/:user_experience_id]',
1841
                                    'constraints' => [
1842
                                        'id' => '[A-Za-z0-9\-]+\=*',
1843
                                        'operation' => 'add|edit|delete',
1844
                                        'user_education_id' => '[A-Za-z0-9\-]+\=*'
1845
                                    ],
1846
                                    'defaults' => [
1847
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1848
                                        'action' => 'experience'
1849
                                    ]
1850
                                ]
1851
                            ],
1852
                            'education' => [
1853
                                'type' => Segment::class,
1854
                                'options' => [
1855
                                    'route' => '/education/:id/operation/:operation[/:user_education_id]',
1856
                                    'constraints' => [
1857
                                        'id' => '[A-Za-z0-9\-]+\=*',
1858
                                        'operation' => 'add|edit|delete',
1859
                                        'user_education_id' => '[A-Za-z0-9\-]+\=*'
1860
                                    ],
1861
                                    'defaults' => [
1862
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1863
                                        'action' => 'education'
1864
                                    ]
1865
                                ]
1866
                            ],
1867
                            'language' => [
1868
                                'type' => Segment::class,
1869
                                'options' => [
1870
                                    'route' => '/language/:id',
1871
                                    'constraints' => [
1872
                                        'id' => '[A-Za-z0-9\-]+\=*'
1873
                                    ],
1874
                                    'defaults' => [
1875
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1876
                                        'action' => 'language'
1877
                                    ]
1878
                                ]
1879
                            ],
1880
                            'location' => [
1881
                                'type' => Segment::class,
1882
                                'options' => [
1883
                                    'route' => '/location/:id',
1884
                                    'constraints' => [
1885
                                        'id' => '[A-Za-z0-9\-]+\=*'
1886
                                    ],
1887
                                    'defaults' => [
1888
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1889
                                        'action' => 'location'
1890
                                    ]
1891
                                ]
1892
                            ],
1893
                            'skill' => [
1894
                                'type' => Segment::class,
1895
                                'options' => [
1896
                                    'route' => '/skill/:id',
1897
                                    'constraints' => [
1898
                                        'id' => '[A-Za-z0-9\-]+\=*'
1899
                                    ],
1900
                                    'defaults' => [
1901
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1902
                                        'action' => 'skill'
1903
                                    ]
1904
                                ]
1905
                            ],
1906
                            'social-network' => [
1907
                                'type' => Segment::class,
1908
                                'options' => [
1909
                                    'route' => '/social-network/:id',
1910
                                    'constraints' => [
1911
                                        'id' => '[A-Za-z0-9\-]+\=*'
1912
                                    ],
1913
                                    'defaults' => [
1914
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1915
                                        'action' => 'socialNetwork'
1916
                                    ]
1917
                                ]
1918
                            ]
1919
                        ]
1920
                    ]
1921
                ]
1922
            ],
1923
            'company' => [
1924
                'type' => Literal::class,
1925
                'options' => [
1926
                    'route' => '/company',
1927
                    'defaults' => [
1928
                        'controller' => '\LeadersLinked\Controller\CompanyController',
1929
                        'action' => 'index'
1930
                    ]
1931
                ],
1932
                'may_terminate' => true,
1933
                'child_routes' => [
1934
                    'view' => [
1935
                        'type' => Segment::class,
1936
                        'options' => [
1937
                            'route' => '/view/:id',
1938
                            'constraints' => [
1939
                                'id' => '[A-Za-z0-9\-]+\=*'
1940
                            ],
1941
                            'defaults' => [
1942
                                'controller' => '\LeadersLinked\Controller\CompanyController',
1943
                                'action' => 'view'
1944
                            ]
1945
                        ]
1946
                    ],
1947
                    'follow' => [
1948
                        'type' => Segment::class,
1949
                        'options' => [
1950
                            'route' => '/follow/:id',
1951
                            'constraints' => [
1952
                                'id' => '[A-Za-z0-9\-]+\=*'
1953
                            ],
1954
                            'defaults' => [
1955
                                'controller' => '\LeadersLinked\Controller\CompanyController',
1956
                                'action' => 'follow'
1957
                            ]
1958
                        ]
1959
                    ],
1960
                    'unfollow' => [
1961
                        'type' => Segment::class,
1962
                        'options' => [
1963
                            'route' => '/unfollow/:id',
1964
                            'constraints' => [
1965
                                'id' => '[A-Za-z0-9\-]+\=*'
1966
                            ],
1967
                            'defaults' => [
1968
                                'controller' => '\LeadersLinked\Controller\CompanyController',
1969
                                'action' => 'unfollow'
1970
                            ]
1971
                        ]
1972
                    ],
1973
                    'request' => [
1974
                        'type' => Segment::class,
1975
                        'options' => [
1976
                            'route' => '/request/:id',
1977
                            'constraints' => [
1978
                                'id' => '[A-Za-z0-9\-]+\=*'
1979
                            ],
1980
                            'defaults' => [
1981
                                'controller' => '\LeadersLinked\Controller\CompanyController',
1982
                                'action' => 'request'
1983
                            ]
1984
                        ]
1985
                    ],
1986
                    'accept' => [
1987
                        'type' => Segment::class,
1988
                        'options' => [
1989
                            'route' => '/accept/:id',
1990
                            'constraints' => [
1991
                                'id' => '[A-Za-z0-9\-]+\=*'
1992
                            ],
1993
                            'defaults' => [
1994
                                'controller' => '\LeadersLinked\Controller\CompanyController',
1995
                                'action' => 'accept'
1996
                            ]
1997
                        ]
1998
                    ],
1999
                    'cancel' => [
2000
                        'type' => Segment::class,
2001
                        'options' => [
2002
                            'route' => '/cancel/:id',
2003
                            'constraints' => [
2004
                                'id' => '[A-Za-z0-9\-]+\=*'
2005
                            ],
2006
                            'defaults' => [
2007
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2008
                                'action' => 'cancel'
2009
                            ]
2010
                        ]
2011
                    ],
2012
                    'reject' => [
2013
                        'type' => Segment::class,
2014
                        'options' => [
2015
                            'route' => '/reject/:id',
2016
                            'constraints' => [
2017
                                'id' => '[A-Za-z0-9\-]+\=*'
2018
                            ],
2019
                            'defaults' => [
2020
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2021
                                'action' => 'reject'
2022
                            ]
2023
                        ]
2024
                    ],
2025
                    'leave' => [
2026
                        'type' => Segment::class,
2027
                        'options' => [
2028
                            'route' => '/leave/:id',
2029
                            'constraints' => [
2030
                                'id' => '[A-Za-z0-9\-]+\=*'
2031
                            ],
2032
                            'defaults' => [
2033
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2034
                                'action' => 'leave'
2035
                            ]
2036
                        ]
2037
                    ],
2038
                    'following-companies' => [
2039
                        'type' => Literal::class,
2040
                        'options' => [
2041
                            'route' => '/following-companies',
2042
                            'defaults' => [
2043
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2044
                                'action' => 'followingCompanies'
2045
                            ]
2046
                        ],
2047
                    ],
2048
                    'requests-sent' => [
2049
                        'type' => Literal::class,
2050
                        'options' => [
2051
                            'route' => '/requests-sent',
2052
                            'defaults' => [
2053
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2054
                                'action' => 'requestsSent'
2055
                            ]
2056
                        ],
2057
                        'may_terminate' => true,
2058
                    ],
2059
                    'invitations-received' => [
2060
                        'type' => Literal::class,
2061
                        'options' => [
2062
                            'route' => '/invitations-received',
2063
                            'defaults' => [
2064
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2065
                                'action' => 'invitationsReceived'
2066
                            ]
2067
                        ],
2068
                        'may_terminate' => true,
2069
                    ],
2070
                    'i-work-with' => [
2071
                        'type' => Literal::class,
2072
                        'options' => [
2073
                            'route' => '/i-work-with',
2074
                            'defaults' => [
2075
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2076
                                'action' => 'iWorkWith'
2077
                            ]
2078
                        ],
2079
                        'may_terminate' => true,
2080
                    ],
2081
                    'my-companies' => [
2082
                        'type' => Literal::class,
2083
                        'options' => [
2084
                            'route' => '/my-companies',
2085
                            'defaults' => [
2086
                                'controller' => '\LeadersLinked\Controller\MyCompaniesController',
2087
                                'action' => 'index'
2088
                            ]
2089
                        ],
2090
                        'may_terminate' => true,
2091
                        'child_routes' => [
2092
                            'add' => [
2093
                                'type' => Literal::class,
2094
                                'options' => [
2095
                                    'route' => '/add',
2096
                                    'defaults' => [
2097
                                        'controller' => '\LeadersLinked\Controller\MyCompaniesController',
2098
                                        'action' => 'add'
2099
                                    ]
2100
                                ]
2101
                            ],
2102
                        ]
2103
                    ],
2104
                ]
2105
            ],
2106
            'account-settings' => [
2107
                'type' => Literal::class,
2108
                'options' => [
2109
                    'route' => '/account-settings',
2110
                    'defaults' => [
2111
                        'controller' => '\LeadersLinked\Controller\AccountSettingController',
2112
                        'action' => 'index'
2113
                    ]
2114
                ],
2115
                'may_terminate' => true,
2116
                'child_routes' => [
2117
                    'image' => [
2118
                        'type' => Segment::class,
2119
                        'options' => [
2120
                            'route' => '/image/:operation',
2121
                            'cconstraints' => [
2122
                                'operation' => 'upload|delete'
2123
                            ],
2124
                            'defaults' => [
2125
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2126
                                'action' => 'image',
2127
                                'operation' => 'upload'
2128
                            ]
2129
                        ]
2130
                    ],
2131
                    'deactivate' => [
2132
                        'type' => Literal::class,
2133
                        'options' => [
2134
                            'route' => '/deactivate',
2135
                            'defaults' => [
2136
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2137
                                'action' => 'deactivate'
2138
                            ]
2139
                        ]
2140
                    ],
2141
                    'notifications' => [
2142
                        'type' => Literal::class,
2143
                        'options' => [
2144
                            'route' => '/notification',
2145
                            'defaults' => [
2146
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2147
                                'action' => 'notification'
2148
                            ]
2149
                        ]
2150
                    ],
2151
                    'password' => [
2152
                        'type' => Literal::class,
2153
                        'options' => [
2154
                            'route' => '/password',
2155
                            'defaults' => [
2156
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2157
                                'action' => 'password'
2158
                            ]
2159
                        ]
2160
                    ],
2161
                    'add-facebook' => [
2162
                        'type' => Literal::class,
2163
                        'options' => [
2164
                            'route' => '/add-facebook',
2165
                            'defaults' => [
2166
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2167
                                'action' => 'addFacebook'
2168
                            ]
2169
                        ]
2170
                    ],
2171
                    'remove-facebook' => [
2172
                        'type' => Literal::class,
2173
                        'options' => [
2174
                            'route' => '/remove-facebook',
2175
                            'defaults' => [
2176
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2177
                                'action' => 'removeFacebook'
2178
                            ]
2179
                        ]
2180
                    ],
2181
                    'add-twitter' => [
2182
                        'type' => Literal::class,
2183
                        'options' => [
2184
                            'route' => '/add-twitter',
2185
                            'defaults' => [
2186
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2187
                                'action' => 'addTwitter'
2188
                            ]
2189
                        ]
2190
                    ],
2191
                    'remove-twitter' => [
2192
                        'type' => Literal::class,
2193
                        'options' => [
2194
                            'route' => '/remove-twitter',
2195
                            'defaults' => [
2196
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2197
                                'action' => 'removeTwitter'
2198
                            ]
2199
                        ]
2200
                    ],
2201
                    'add-google' => [
2202
                        'type' => Literal::class,
2203
                        'options' => [
2204
                            'route' => '/add-google',
2205
                            'defaults' => [
2206
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2207
                                'action' => 'addGoogle'
2208
                            ]
2209
                        ]
2210
                    ],
2211
                    'remove-google' => [
2212
                        'type' => Literal::class,
2213
                        'options' => [
2214
                            'route' => '/remove-google',
2215
                            'defaults' => [
2216
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2217
                                'action' => 'removeGoogle'
2218
                            ]
2219
                        ]
2220
                    ],
2221
                    'location' => [
2222
                        'type' => Literal::class,
2223
                        'options' => [
2224
                            'route' => '/location',
2225
                            'defaults' => [
2226
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2227
                                'action' => 'location'
2228
                            ]
2229
                        ]
2230
                    ],
2231
                    'privacy' => [
2232
                        'type' => Literal::class,
2233
                        'options' => [
2234
                            'route' => '/privacy',
2235
                            'defaults' => [
2236
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2237
                                'action' => 'privacy'
2238
                            ]
2239
                        ]
2240
                    ],
2241
                    'basic' => [
2242
                        'type' => Literal::class,
2243
                        'options' => [
2244
                            'route' => '/basic',
2245
                            'defaults' => [
2246
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2247
                                'action' => 'basic'
2248
                            ]
2249
                        ]
2250
                    ],
2251
                    'transactions' => [
2252
                        'type' => Literal::class,
2253
                        'options' => [
2254
                            'route' => '/transactions',
2255
                            'defaults' => [
2256
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2257
                                'action' => 'transactions'
2258
                            ]
2259
                        ],
2260
                        'may_terminate' => true,
2261
                        'child_routes' => [
2262
                            'add-funds' => [
2263
                                'type' => Literal::class,
2264
                                'options' => [
2265
                                    'route' => '/add-funds',
2266
                                    'defaults' => [
2267
                                        'controller' => '\LeadersLinked\Controller\AccountSettingController',
2268
                                        'action' => 'addFund'
2269
                                    ]
2270
                                ]
2271
                            ],
2272
                        ]
2273
                    ],
2274
                    'browsers' => [
2275
                        'type' => Literal::class,
2276
                        'options' => [
2277
                            'route' => '/browsers',
2278
                            'defaults' => [
2279
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2280
                                'action' => 'browsers'
2281
                            ]
2282
                        ]
2283
                    ],
2284
                    'ips' => [
2285
                        'type' => Literal::class,
2286
                        'options' => [
2287
                            'route' => '/ips',
2288
                            'defaults' => [
2289
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2290
                                'action' => 'ips'
2291
                            ]
2292
                        ]
2293
                    ],
2294
                    'devices' => [
2295
                        'type' => Literal::class,
2296
                        'options' => [
2297
                            'route' => '/devices',
2298
                            'defaults' => [
2299
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2300
                                'action' => 'devices'
2301
                            ]
2302
                        ]
1979 efrain 2303
                    ],
2304
                    'delete-account' => [
2305
                        'type' => Literal::class,
2306
                        'options' => [
2307
                            'route' => '/delete-account',
2308
                            'defaults' => [
2309
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2310
                                'action' => 'deleteAccount'
2311
                            ]
2312
                        ]
2313
                    ],
1 www 2314
                ],
2315
                'may_terminate' => true
2316
            ],
2317
            'moodle' => [
2318
                'type' => Literal::class,
2319
                'options' => [
2320
                    'route' => '/moodle',
2321
                    'defaults' => [
2322
                        'controller' => '\LeadersLinked\Controller\MoodleController',
2323
                        'action' => 'index'
2324
                    ]
2325
                ],
2326
                'may_terminate' => true
2327
            ],
2328
            'oauth' => [
2329
                'type' => Literal::class,
2330
                'options' => [
2331
                    'route' => '/oauth',
2332
                    'defaults' => [
2333
                        'controller' => '\LeadersLinked\Controller\OauthController',
2334
                        'action' => 'index'
2335
                    ]
2336
                ],
2337
                'may_terminate' => true,
2338
                'child_routes' => [
2339
                    'facebook' => [
2340
                        'type' => Literal::class,
2341
                        'options' => [
2342
                            'route' => '/facebook',
2343
                            'defaults' => [
2344
                                'controller' => '\LeadersLinked\Controller\OauthController',
2345
                                'action' => 'facebook'
2346
                            ]
2347
                        ],
2348
                        'may_terminate' => true,
2349
                        'child_routes' => [
2350
                            'delete' => [
2351
                                'type' => Literal::class,
2352
                                'options' => [
2353
                                    'route' => '/delete',
2354
                                    'defaults' => [
2355
                                        'controller' => '\LeadersLinked\Controller\OauthController',
2356
                                        'action' => 'facebookDelete'
2357
                                    ]
2358
                                ],
2359
                                'may_terminate' => true,
2360
                            ],
2361
                            'cancel' => [
2362
                                'type' => Literal::class,
2363
                                'options' => [
2364
                                    'route' => '/cancel',
2365
                                    'defaults' => [
2366
                                        'controller' => '\LeadersLinked\Controller\OauthController',
2367
                                        'action' => 'facebookCancel'
2368
                                    ]
2369
                                ],
2370
                                'may_terminate' => true,
2371
                            ],
553 geraldo 2372
                        ],
1 www 2373
                    ],
2374
                    'twitter' => [
2375
                        'type' => Literal::class,
2376
                        'options' => [
2377
                            'route' => '/twitter',
2378
                            'defaults' => [
2379
                                'controller' => '\LeadersLinked\Controller\OauthController',
2380
                                'action' => 'twitter'
2381
                            ]
2382
                        ],
2383
                        'may_terminate' => true,
2384
                    ],
2385
                    'google' => [
2386
                        'type' => Literal::class,
2387
                        'options' => [
2388
                            'route' => '/google',
2389
                            'defaults' => [
2390
                                'controller' => '\LeadersLinked\Controller\OauthController',
2391
                                'action' => 'google'
2392
                            ]
2393
                        ],
2394
                        'may_terminate' => true,
2395
                    ],
553 geraldo 2396
                /* 'facebook' => [
2397
                  'type' => Literal::class,
2398
                  'options' => [
2399
                  'route' => '/facebook',
2400
                  'defaults' => [
2401
                  'controller' => '\LeadersLinked\Controller\OauthController',
2402
                  'action' => 'facebook'
2403
                  ]
2404
                  ],
2405
                  'may_terminate' => true,
2406
                  'child_routes' => [
2407
                  'cancel' => [
2408
                  'type' => Literal::class,
2409
                  'options' => [
2410
                  'route' => '/cancel',
2411
                  'defaults' => [
2412
                  'controller' => '\LeadersLinked\Controller\OauthController',
2413
                  'action' => 'facebookCancel'
2414
                  ]
2415
                  ]
2416
                  ],
2417
                  'delete' => [
2418
                  'type' => Literal::class,
2419
                  'options' => [
2420
                  'route' => '/delete',
2421
                  'defaults' => [
2422
                  'controller' => '\LeadersLinked\Controller\OauthController',
2423
                  'action' => 'facebookDelete'
2424
                  ]
2425
                  ]
2426
                  ]
2427
                  ]
2428
                  ] */
1 www 2429
                ]
2430
            ],
2431
            'helpers' => [
2432
                'type' => Literal::class,
2433
                'options' => [
2434
                    'route' => '/helpers',
2435
                    'defaults' => [
2436
                        'controller' => '\LeadersLinked\Controller\HelperController',
2437
                        'action' => 'index'
2438
                    ]
2439
                ],
2440
                'may_terminate' => true,
2441
                'child_routes' => [
2442
                    'search-people' => [
2443
                        'type' => Literal::class,
2444
                        'options' => [
2445
                            'route' => '/search-people',
2446
                            'defaults' => [
2447
                                'controller' => '\LeadersLinked\Controller\HelperController',
2448
                                'action' => 'searchPeople'
2449
                            ]
2450
                        ]
2451
                    ],
2452
                    'company-suggestion' => [
2453
                        'type' => Segment::class,
2454
                        'options' => [
2455
                            'route' => '/company-suggestion/:company_id',
2456
                            'constraints' => [
2457
                                'company_id' => '[A-Za-z0-9\-]+\=*'
2458
                            ],
2459
                            'defaults' => [
2460
                                'controller' => '\LeadersLinked\Controller\HelperController',
2461
                                'action' => 'companySuggestion'
2462
                            ]
2463
                        ]
2464
                    ],
2465
                    'posts' => [
2466
                        'type' => Literal::class,
2467
                        'options' => [
2468
                            'route' => '/posts',
2469
                            'defaults' => [
2470
                                'controller' => '\LeadersLinked\Controller\HelperController',
2471
                                'action' => 'posts'
2472
                            ]
2473
                        ]
2474
                    ],
2475
                    'people-you-may-know' => [
2476
                        'type' => Literal::class,
2477
                        'options' => [
2478
                            'route' => '/people-you-may-know',
2479
                            'defaults' => [
2480
                                'controller' => '\LeadersLinked\Controller\HelperController',
2481
                                'action' => 'peopleYouMayKnow'
2482
                            ]
2483
                        ]
2484
                    ],
2485
                    'people-viewed-profile' => [
2486
                        'type' => Segment::class,
2487
                        'options' => [
2488
                            'route' => '/people-viewed-profile/:user_profile_id',
2489
                            'constraints' => [
2490
                                'user_profile_id' => '[A-Za-z0-9\-]+\=*'
2491
                            ],
2492
                            'defaults' => [
2493
                                'controller' => '\LeadersLinked\Controller\HelperController',
2494
                                'action' => 'peopleViewedProfile'
2495
                            ]
2496
                        ]
2497
                    ],
2498
                    'company-follower' => [
2499
                        'type' => Segment::class,
2500
                        'options' => [
2501
                            'route' => '/company-follower/:company_id',
2502
                            'constraints' => [
2503
                                'company_id' => '[A-Za-z0-9\-]+\=*'
2504
                            ],
2505
                            'defaults' => [
2506
                                'controller' => '\LeadersLinked\Controller\HelperController',
2507
                                'action' => 'companyFollower'
2508
                            ]
2509
                        ]
2510
                    ],
2511
                    'group-members' => [
2512
                        'type' => Segment::class,
2513
                        'options' => [
2514
                            'route' => '/group-members/:group_id',
2515
                            'constraints' => [
2516
                                'group_id' => '[A-Za-z0-9\-]+\=*'
2517
                            ],
2518
                            'defaults' => [
2519
                                'controller' => '\LeadersLinked\Controller\HelperController',
2520
                                'action' => 'groupMembers'
2521
                            ]
2522
                        ],
2523
                        'may_terminate' => true,
2524
                        'child_routes' => [
2525
                            'invite' => [
2526
                                'type' => Literal::class,
2527
                                'options' => [
2528
                                    'route' => '/invite',
2529
                                    'defaults' => [
2530
                                        'controller' => '\LeadersLinked\Controller\HelperController',
2531
                                        'action' => 'groupMemberInvite'
2532
                                    ]
2533
                                ]
2534
                            ],
2535
                            'reject' => [
2536
                                'type' => Segment::class,
2537
                                'options' => [
2538
                                    'route' => '/reject/:user_id',
2539
                                    'constraints' => [
2540
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
2541
                                    ],
2542
                                    'defaults' => [
2543
                                        'controller' => '\LeadersLinked\Controller\HelperController',
2544
                                        'action' => 'groupMemberReject'
2545
                                    ]
2546
                                ]
2547
                            ],
2548
                            'cancel' => [
2549
                                'type' => Segment::class,
2550
                                'options' => [
2551
                                    'route' => '/cancel/:user_id',
2552
                                    'constraints' => [
2553
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
2554
                                    ],
2555
                                    'defaults' => [
2556
                                        'controller' => '\LeadersLinked\Controller\HelperController',
2557
                                        'action' => 'groupMemberCancel'
2558
                                    ]
2559
                                ]
2560
                            ],
2561
                            'approve' => [
2562
                                'type' => Segment::class,
2563
                                'options' => [
2564
                                    'route' => '/approve/:user_id',
2565
                                    'constraints' => [
2566
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
2567
                                    ],
2568
                                    'defaults' => [
2569
                                        'controller' => '\LeadersLinked\Controller\HelperController',
2570
                                        'action' => 'groupMemberApprove'
2571
                                    ]
2572
                                ]
2573
                            ],
553 geraldo 2574
                        ]
1 www 2575
                    ],
2576
                    'groups-suggestion' => [
2577
                        'type' => Segment::class,
2578
                        'options' => [
2579
                            'route' => '/groups-suggestion/:group_id',
2580
                            'constraints' => [
2581
                                'group_id' => '[A-Za-z0-9\-]+\=*'
2582
                            ],
2583
                            'defaults' => [
2584
                                'controller' => '\LeadersLinked\Controller\HelperController',
2585
                                'action' => 'groupsSuggestion'
2586
                            ]
2587
                        ]
2588
                    ],
2444 efrain 2589
                    'footer' => [
2590
                        'type' => Literal::class,
2591
                        'options' => [
2592
                            'route' => '/footer',
2593
                            'defaults' => [
2594
                                'controller' => '\LeadersLinked\Controller\HelperController',
2595
                                'action' => 'footer'
2596
                            ]
2597
                        ]
2598
                    ],
1 www 2599
                ]
2600
            ],
2601
            'help' => [
2602
                'type' => Literal::class,
2603
                'options' => [
2604
                    'route' => '/help',
2605
                    'defaults' => [
2606
                        'controller' => '\LeadersLinked\Controller\HelpController',
2607
                        'action' => 'send'
2608
                    ]
2609
                ],
2610
                'may_terminate' => true,
553 geraldo 2611
            ],
1 www 2612
            'services' => [
2613
                'type' => Literal::class,
2614
                'options' => [
2615
                    'route' => '/services',
2616
                    'defaults' => [
2617
                        'controller' => '\LeadersLinked\Controller\ServiceController',
2618
                        'action' => 'index'
2619
                    ]
2620
                ],
2621
                'may_terminate' => true,
2622
                'child_routes' => [
2623
                    'storage' => [
2624
                        'type' => Segment::class,
2625
                        'options' => [
2626
                            'route' => '/storage/type/:type[/code/:code][/filename/:filename]',
2627
                            'constraints' => [
2628
                                'type' => 'user|user-profile|user-cover|company|company-cover|group|group-cover|job|chat|image|feed|post|microlearning-topic|microlearning-capsule|microlearning-slide',
2629
                                'code' => '[A-Za-z0-9\-]+\=*',
2630
                                'filename' => '[a-zA-Z0-9\-\_]+\.(jpg|jpeg|gif|png|mp3|mp4|flv|doc|pdf|docx|xls|ppt|pdf|xlsx|pptx)'
2631
                            ],
2632
                            // MjM5ODk0Mzgg
2633
                            'defaults' => [
2634
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2635
                                'action' => 'storage'
2636
                            ]
2637
                        ]
2638
                    ],
2639
                    'device' => [
2640
                        'type' => Literal::class,
2641
                        'options' => [
2642
                            'route' => '/device',
2643
                            'defaults' => [
2644
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2645
                                'action' => 'device'
2646
                            ]
2647
                        ]
2648
                    ],
2649
                    'fcm' => [
2650
                        'type' => Literal::class,
2651
                        'options' => [
2652
                            'route' => '/fcm',
2653
                            'defaults' => [
2654
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2655
                                'action' => 'fcm'
2656
                            ]
2657
                        ]
2658
                    ],
2659
                    'signin' => [
2660
                        'type' => Literal::class,
2661
                        'options' => [
2662
                            'route' => '/signin',
2663
                            'defaults' => [
2664
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2665
                                'action' => 'signin'
2666
                            ]
2667
                        ]
2668
                    ],
2669
                    'check-session' => [
2670
                        'type' => Literal::class,
2671
                        'options' => [
2672
                            'route' => '/check-session',
2673
                            'defaults' => [
2674
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2675
                                'action' => 'checkSession'
2676
                            ]
2677
                        ]
2678
                    ],
2679
                    'signout' => [
2680
                        'type' => Literal::class,
2681
                        'options' => [
2682
                            'route' => '/signout',
2683
                            'defaults' => [
2684
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2685
                                'action' => 'signout'
2686
                            ]
2687
                        ]
2688
                    ],
2689
                    'sync' => [
2690
                        'type' => Literal::class,
2691
                        'options' => [
2692
                            'route' => '/sync',
2693
                            'defaults' => [
2694
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2695
                                'action' => 'sync'
2696
                            ]
2697
                        ]
2698
                    ],
2699
                    'sync-batch' => [
2700
                        'type' => Literal::class,
2701
                        'options' => [
2702
                            'route' => '/sync-batch',
2703
                            'defaults' => [
2704
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2705
                                'action' => 'syncBatch'
2706
                            ]
2707
                        ]
2708
                    ],
2004 efrain 2709
                    'delete-account' => [
2710
                        'type' => Literal::class,
2711
                        'options' => [
2712
                            'route' => '/delete-account',
2713
                            'defaults' => [
2714
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2715
                                'action' => 'deleteAccount'
2716
                            ]
2717
                        ]
2718
                    ],
1 www 2719
                    'microlearning' => [
2720
                        'type' => Literal::class,
2721
                        'options' => [
2722
                            'route' => '/microlearning',
2723
                            'defaults' => [
2724
                                'controller' => '\LeadersLinked\Controller\ServiceMicrolearningController',
2725
                                'action' => 'index'
2726
                            ]
2727
                        ],
2728
                        'may_terminate' => true,
2729
                        'child_routes' => [
2730
                            'refresh' => [
2731
                                'type' => Literal::class,
2732
                                'options' => [
2733
                                    'route' => '/refresh',
2734
                                    'defaults' => [
2735
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
2736
                                        'action' => 'microlearningRefresh'
2737
                                    ]
2738
                                ]
2739
                            ],
1979 efrain 2740
                            'delete-account' => [
2741
                                'type' => Literal::class,
2742
                                'options' => [
2743
                                    'route' => '/delete-account',
2744
                                    'defaults' => [
2745
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
2746
                                        'action' => 'deleteAccount'
2747
                                    ]
2748
                                ]
2749
                            ],
1 www 2750
                            'check-changes' => [
2751
                                'type' => Literal::class,
2752
                                'options' => [
2753
                                    'route' => '/check-changes',
2754
                                    'defaults' => [
2755
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
2756
                                        'action' => 'microlearningCheckChanges'
2757
                                    ]
2758
                                ]
2759
                            ],
280 efrain 2760
                            'capsules' => [
2761
                                'type' => Literal::class,
2762
                                'options' => [
2763
                                    'route' => '/capsules',
2764
                                    'defaults' => [
2765
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
2766
                                        'action' => 'microlearningCapsules'
2767
                                    ]
2768
                                ],
2769
                                'may_terminate' => true,
2770
                                'child_routes' => [
2771
                                    'comments' => [
553 geraldo 2772
                                        'type' => Segment::class,
280 efrain 2773
                                        'options' => [
2774
                                            'route' => '/comments/:capsule_id',
2775
                                            'constraints' => [
2776
                                                'capsule_id' => '[A-Za-z0-9\-]+\=*'
2777
                                            ],
2778
                                            'defaults' => [
2779
                                                'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
2780
                                                'action' => 'index'
2781
                                            ]
2782
                                        ],
2783
                                        'may_terminate' => true,
2784
                                        'child_routes' => [
2785
                                            'add' => [
2786
                                                'type' => Literal::class,
2787
                                                'options' => [
2788
                                                    'route' => '/add',
2789
                                                    'defaults' => [
2790
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
2791
                                                        'action' => 'add'
2792
                                                    ]
2793
                                                ]
2794
                                            ],
2795
                                            'get' => [
2796
                                                'type' => Segment::class,
2797
                                                'options' => [
1323 efrain 2798
                                                    'route' => '/get/:comment_id',
280 efrain 2799
                                                    'constraints' => [
1323 efrain 2800
                                                        'comment_id' => '[A-Za-z0-9\-]+\=*'
280 efrain 2801
                                                    ],
2802
                                                    'defaults' => [
2803
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
2804
                                                        'action' => 'get'
2805
                                                    ]
2806
                                                ]
2807
                                            ],
1323 efrain 2808
                                            'edit' => [
2809
                                                'type' => Segment::class,
2810
                                                'options' => [
2811
                                                    'route' => '/edit/:comment_id',
2812
                                                    'constraints' => [
2813
                                                        'comment_id' => '[A-Za-z0-9\-]+\=*'
2814
                                                    ],
2815
                                                    'defaults' => [
2816
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
2817
                                                        'action' => 'edit'
2818
                                                    ]
2819
                                                ]
2820
                                            ],
280 efrain 2821
                                            'delete' => [
2822
                                                'type' => Segment::class,
2823
                                                'options' => [
1323 efrain 2824
                                                    'route' => '/delete/:comment_id',
280 efrain 2825
                                                    'constraints' => [
1323 efrain 2826
                                                        'comment_id' => '[A-Za-z0-9\-]+\=*'
280 efrain 2827
                                                    ],
2828
                                                    'defaults' => [
2829
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
2830
                                                        'action' => 'delete'
2831
                                                    ]
2832
                                                ]
2833
                                            ],
2834
                                        ]
2835
                                    ],
553 geraldo 2836
                                ]
280 efrain 2837
                            ],
733 efrain 2838
 
553 geraldo 2839
                        ]
1 www 2840
                    ],
2841
                ]
2842
            ],
2843
            'marketplace' => [
2844
                'type' => Literal::class,
2845
                'options' => [
2846
                    'route' => '/marketplace',
2847
                    'defaults' => [
2848
                        'controller' => '\LeadersLinked\Controller\MarketPlaceController',
2849
                        'action' => 'index'
2850
                    ]
2851
                ],
2852
                'may_terminate' => true,
2853
                'child_routes' => [
2854
                    'categories' => [
2855
                        'type' => Segment::class,
2856
                        'options' => [
2857
                            'route' => '/categories',
2858
                            'defaults' => [
2859
                                'controller' => '\LeadersLinked\Controller\MarketPlaceController',
2860
                                'action' => 'getCategories'
2861
                            ]
2862
                        ]
2863
                    ],
2864
                    'enroll' => [
2865
                        'type' => Segment::class,
2866
                        'options' => [
2867
                            'route' => '/enroll/:company_id/:topic_id/:capsule_id',
2868
                            'constraints' => [
2869
                                'company_id' => '[A-Za-z0-9\-]+\=*',
2870
                                'topic_id' => '[A-Za-z0-9\-]+\=*',
2871
                                'capsule_id' => '[A-Za-z0-9\-]+\=*',
2872
                            ],
2873
                            'defaults' => [
2874
                                'controller' => '\LeadersLinked\Controller\MarketPlaceController',
2875
                                'action' => 'enroll'
2876
                            ]
2877
                        ]
2878
                    ],
2879
                ]
553 geraldo 2880
            ],
1 www 2881
        ]
2882
    ],
2883
    'controllers' => [
2884
        'factories' => [
2885
            \LeadersLinked\Controller\AccountSettingController::class => \LeadersLinked\Factory\Controller\AccountSettingControllerFactory::class,
2886
            \LeadersLinked\Controller\AuthController::class => \LeadersLinked\Factory\Controller\AuthControllerFactory::class,
2887
            \LeadersLinked\Controller\BackendController::class => \LeadersLinked\Factory\Controller\BackendControllerFactory::class,
2888
            \LeadersLinked\Controller\ChatController::class => \LeadersLinked\Factory\Controller\ChatControllerFactory::class,
2889
            \LeadersLinked\Controller\CompanyController::class => \LeadersLinked\Factory\Controller\CompanyControllerFactory::class,
2890
            \LeadersLinked\Controller\DashboardController::class => \LeadersLinked\Factory\Controller\DashboardControllerFactory::class,
2891
            \LeadersLinked\Controller\ConnectionController::class => \LeadersLinked\Factory\Controller\ConnectionControllerFactory::class,
2892
            \LeadersLinked\Controller\HomeController::class => \LeadersLinked\Factory\Controller\HomeControllerFactory::class,
2893
            \LeadersLinked\Controller\HelperController::class => \LeadersLinked\Factory\Controller\HelperControllerFactory::class,
2894
            \LeadersLinked\Controller\HelpController::class => \LeadersLinked\Factory\Controller\HelpControllerFactory::class,
2895
            \LeadersLinked\Controller\FeedController::class => \LeadersLinked\Factory\Controller\FeedControllerFactory::class,
2896
            \LeadersLinked\Controller\MarketPlaceController::class => \LeadersLinked\Factory\Controller\MarketPlaceControllerFactory::class,
2897
            \LeadersLinked\Controller\MoodleController::class => \LeadersLinked\Factory\Controller\MoodleControllerFactory::class,
2898
            \LeadersLinked\Controller\OauthController::class => \LeadersLinked\Factory\Controller\OauthControllerFactory::class,
2899
            \LeadersLinked\Controller\JobController::class => \LeadersLinked\Factory\Controller\JobControllerFactory::class,
2900
            \LeadersLinked\Controller\InMailController::class => \LeadersLinked\Factory\Controller\InMailControllerFactory::class,
2901
            \LeadersLinked\Controller\GroupController::class => \LeadersLinked\Factory\Controller\GroupControllerFactory::class,
2902
            \LeadersLinked\Controller\MyGroupsController::class => \LeadersLinked\Factory\Controller\MyGroupsControllerFactory::class,
2903
            \LeadersLinked\Controller\MyCompaniesController::class => \LeadersLinked\Factory\Controller\MyCompaniesControllerFactory::class,
2904
            \LeadersLinked\Controller\PaypalController::class => \LeadersLinked\Factory\Controller\PaypalControllerFactory::class,
2905
            \LeadersLinked\Controller\ProfileController::class => \LeadersLinked\Factory\Controller\ProfileControllerFactory::class,
2906
            \LeadersLinked\Controller\ProfileMicrolearningController::class => \LeadersLinked\Factory\Controller\ProfileMicrolearningControllerFactory::class,
272 geraldo 2907
            \LeadersLinked\Controller\SelfEvaluationController::class => \LeadersLinked\Factory\Controller\SelfEvaluationControllerFactory::class,
559 geraldo 2908
            \LeadersLinked\Controller\PerformanceEvaluationController::class => \LeadersLinked\Factory\Controller\PerformanceEvaluationControllerFactory::class,
1 www 2909
            \LeadersLinked\Controller\MyProfilesController::class => \LeadersLinked\Factory\Controller\MyProfilesControllerFactory::class,
2910
            \LeadersLinked\Controller\SearchController::class => \LeadersLinked\Factory\Controller\SearchControllerFactory::class,
2911
            \LeadersLinked\Controller\StorageController::class => \LeadersLinked\Factory\Controller\StorageControllerFactory::class,
2912
            \LeadersLinked\Controller\ServiceController::class => \LeadersLinked\Factory\Controller\ServiceControllerFactory::class,
1323 efrain 2913
            \LeadersLinked\Controller\ServiceCapsuleCommentsController::class => \LeadersLinked\Factory\Controller\ServiceCapsuleCommentsControllerFactory::class,
2914
 
2915
 
1 www 2916
        ],
2917
        'aliases' => [
2918
            '\LeadersLinked\Controller\AuthController' => \LeadersLinked\Controller\AuthController::class,
2919
            '\LeadersLinked\Controller\BackendController' => \LeadersLinked\Controller\BackendController::class,
2920
            '\LeadersLinked\Controller\AccountSettingController' => \LeadersLinked\Controller\AccountSettingController::class,
2921
            '\LeadersLinked\Controller\ChatController' => \LeadersLinked\Controller\ChatController::class,
2922
            '\LeadersLinked\Controller\CompanyController' => \LeadersLinked\Controller\CompanyController::class,
2923
            '\LeadersLinked\Controller\ConnectionController' => \LeadersLinked\Controller\ConnectionController::class,
2924
            '\LeadersLinked\Controller\DashboardController' => \LeadersLinked\Controller\DashboardController::class,
2925
            '\LeadersLinked\Controller\HomeController' => \LeadersLinked\Controller\HomeController::class,
2926
            '\LeadersLinked\Controller\HelpController' => \LeadersLinked\Controller\HelpController::class,
2927
            '\LeadersLinked\Controller\HelperController' => \LeadersLinked\Controller\HelperController::class,
2928
            '\LeadersLinked\Controller\FeedController' => \LeadersLinked\Controller\FeedController::class,
553 geraldo 2929
            '\LeadersLinked\Controller\InMailController' => \LeadersLinked\Controller\InMailController::class,
1 www 2930
            '\LeadersLinked\Controller\JobController' => \LeadersLinked\Controller\JobController::class,
2931
            '\LeadersLinked\Controller\GroupController' => \LeadersLinked\Controller\GroupController::class,
2932
            '\LeadersLinked\Controller\MyGroupsController' => \LeadersLinked\Controller\MyGroupsController::class,
2933
            '\LeadersLinked\Controller\MyCompaniesController' => \LeadersLinked\Controller\MyCompaniesController::class,
2934
            '\LeadersLinked\Controller\PaypalController' => \LeadersLinked\Controller\PaypalController::class,
2935
            '\LeadersLinked\Controller\ProfileController' => \LeadersLinked\Controller\ProfileController::class,
2936
            '\LeadersLinked\Controller\ProfileMicrolearningController' => \LeadersLinked\Controller\ProfileMicrolearningController::class,
2937
            '\LeadersLinked\Controller\MyProfilesController' => \LeadersLinked\Controller\MyProfilesController::class,
2938
            '\LeadersLinked\Controller\MarketPlaceController' => \LeadersLinked\Controller\MarketPlaceController::class,
2939
            '\LeadersLinked\Controller\MoodleController' => \LeadersLinked\Controller\MoodleController::class,
2940
            '\LeadersLinked\Controller\SearchController' => \LeadersLinked\Controller\SearchController::class,
2941
            '\LeadersLinked\Controller\StorageController' => \LeadersLinked\Controller\StorageController::class,
2942
            '\LeadersLinked\Controller\OauthController' => \LeadersLinked\Controller\OauthController::class,
2943
            '\LeadersLinked\Controller\ServiceController' => \LeadersLinked\Controller\ServiceController::class,
1323 efrain 2944
            '\LeadersLinked\Controller\ServiceCapsuleCommentsController' => \LeadersLinked\Controller\ServiceCapsuleCommentsController::class,
273 geraldo 2945
            '\LeadersLinked\Controller\SelfEvaluationController' => \LeadersLinked\Controller\SelfEvaluationController::class,
559 geraldo 2946
            '\LeadersLinked\Controller\PerformanceEvaluationController' => \LeadersLinked\Controller\PerformanceEvaluationController::class,
1 www 2947
        ]
2948
    ],
2949
    'laminas-cli' => [
2950
        'commands' => [
2951
            'process-queue-email' => \LeadersLinked\Command\ProcessQueueEmailCommand::class,
2952
            'process-queue-push' => \LeadersLinked\Command\ProcessQueuePushCommand::class,
1979 efrain 2953
            'process-queue-user-deleted' => \LeadersLinked\Command\ProcessQueueUserDeletedCommand::class,
1 www 2954
            'process-queue-video-convert' => \LeadersLinked\Command\ProcessQueueVideoConvertCommand::class,
2955
            'recalculate-microlearning-progress' => \LeadersLinked\Command\RecalculateMicrolearningProgressCommand::class,
2956
            'check-owner-user-for-company' => \LeadersLinked\Command\CheckOwnerUserForCompanyCommand::class,
242 efrain 2957
            'check-preview-poster-for-feed' => \LeadersLinked\Command\CheckPreviewPosterForFeedCommand::class,
1 www 2958
        ]
2959
    ],
2960
    'service_manager' => [
2961
        'abstract_factories' => [
2962
            \Laminas\Db\Adapter\AdapterAbstractServiceFactory::class
2963
        ],
2964
        'factories' => [
2965
            'RenderingStrategy' => function ($container) {
2966
                $translator = $container->get('MvcTranslator');
2967
                return new \LeadersLinked\View\RenderingStrategy($translator);
2968
            },
2969
            'menuNavigation' => \LeadersLinked\Navigation\MenuNavigation::class,
2970
            'footerNavigation' => \LeadersLinked\Navigation\FooterNavigation::class,
1979 efrain 2971
 
1 www 2972
            \LeadersLinked\Command\ProcessQueueEmailCommand::class => \LeadersLinked\Factory\Command\ProcessQueueEmailCommandFactory::class,
2973
            \LeadersLinked\Command\ProcessQueuePushCommand::class => \LeadersLinked\Factory\Command\ProcessQueuePushCommandFactory::class,
1979 efrain 2974
            \LeadersLinked\Command\ProcessQueueUserDeletedCommand::class => \LeadersLinked\Factory\Command\ProcessQueueUserDeletedCommandFactory::class,
2975
 
1 www 2976
            \LeadersLinked\Command\ProcessQueueVideoConvertCommand::class => \LeadersLinked\Factory\Command\ProcessQueueVideoConvertCommandFactory::class,
2977
            \LeadersLinked\Command\RecalculateMicrolearningProgressCommand::class => \LeadersLinked\Factory\Command\RecalculateMicrolearningProgressCommandFactory::class,
2978
            \LeadersLinked\Command\CheckOwnerUserForCompanyCommand::class => \LeadersLinked\Factory\Command\CheckOwnerUserForCompanyCommandFactory::class,
1979 efrain 2979
 
242 efrain 2980
            \LeadersLinked\Command\CheckPreviewPosterForFeedCommand::class => \LeadersLinked\Factory\Command\CheckPreviewPosterForFeedCommandFactory::class,
1 www 2981
        ],
553 geraldo 2982
        'aliases' => [// 'leaders-linked-storage' => \LeadersLinked\Service\StorageService::class
1 www 2983
        ]
2984
    ],
2985
    'view_helpers' => [
2986
        'factories' => [
2987
            \LeadersLinked\Helper\ChatHelper::class => \LeadersLinked\Factory\Helper\ChatHelperFactory::class,
2988
            \LeadersLinked\Helper\CompanyFollowerHelper::class => \LeadersLinked\Factory\Helper\CompanyFollowerHelperFactory::class,
2989
            \LeadersLinked\Helper\CompanySuggestionHelper::class => \LeadersLinked\Factory\Helper\CompanySuggestionHelperFactory::class,
2990
            \LeadersLinked\Helper\CurrentUserHelper::class => \LeadersLinked\Factory\Helper\CurrentUserHelperFactory::class,
2991
            \LeadersLinked\Helper\GroupMembersHelper::class => \LeadersLinked\Factory\Helper\GroupMembersHelperFactory::class,
2992
            \LeadersLinked\Helper\GroupsSuggestionHelper::class => \LeadersLinked\Factory\Helper\GroupsSuggestionHelperFactory::class,
2993
            \LeadersLinked\Helper\MenuHelper::class => \LeadersLinked\Factory\Helper\MenuHelperFactory::class,
2994
            \LeadersLinked\Helper\PeopleViewedProfileHelper::class => \LeadersLinked\Factory\Helper\PeopleViewedProfileHelperFactory::class,
2995
            \LeadersLinked\Helper\PeopleYouMayKnowHelper::class => \LeadersLinked\Factory\Helper\PeopleYouMayKnowHelperFactory::class,
2996
            \LeadersLinked\Helper\SimilarGroupsHelper::class => \LeadersLinked\Factory\Helper\SimilarGroupsHelperFactory::class
2997
        ],
2998
        'invokables' => [
2999
            'menuBackendHelper' => \LeadersLinked\Helper\MenuBackendHelper::class,
3000
            'menuMyCompanyHelper' => \LeadersLinked\Helper\MenuMyCompanyHelper::class,
3001
            'footerHelper' => \LeadersLinked\Helper\FooterHelper::class
3002
        ],
3003
        'aliases' => [
3004
            'chatHelper' => \LeadersLinked\Helper\ChatHelper::class,
3005
            'companyFollowerHelper' => \LeadersLinked\Helper\CompanyFollowerHelper::class,
3006
            'companySuggestionHelper' => \LeadersLinked\Helper\CompanySuggestionHelper::class,
3007
            'currentUserHelper' => \LeadersLinked\Helper\CurrentUserHelper::class,
3008
            'menuHelper' => \LeadersLinked\Helper\MenuHelper::class,
3009
            'peopleViewedProfileHelper' => \LeadersLinked\Helper\PeopleViewedProfileHelper::class,
3010
            'peopleYouMayKnowHelper' => \LeadersLinked\Helper\PeopleYouMayKnowHelper::class,
3011
            'groupMembersHelper' => \LeadersLinked\Helper\GroupMembersHelper::class,
3012
            'similarGroupsHelper' => \LeadersLinked\Helper\SimilarGroupsHelper::class
3013
        ]
3014
    ],
3015
    'controller_plugins' => [
3016
        'invokables' => [],
3017
        'factories' => [
3018
            \LeadersLinked\Plugin\CurrentUserPlugin::class => \LeadersLinked\Factory\Plugin\CurrentUserPluginFactory::class
3019
        ],
3020
        'aliases' => [
3021
            'currentUserPlugin' => \LeadersLinked\Plugin\CurrentUserPlugin::class
3022
        ]
3023
    ],
3024
    'view_manager' => [
3025
        'display_not_found_reason' => true,
3026
        'display_exceptions' => true,
3027
        'doctype' => 'HTML5',
3028
        'not_found_template' => 'error/404',
3029
        'exception_template' => 'error/index',
3030
        'template_map' => [
3031
            'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
3032
            'error/404' => __DIR__ . '/../view/error/404.phtml',
3033
            'error/index' => __DIR__ . '/../view/error/index.phtml'
3034
        ],
3035
        'template_path_stack' => [
3036
            __DIR__ . '/../view'
3037
        ],
3038
        'strategies' => [
3039
            'ViewJsonStrategy',
3040
            'RenderingStrategy'
3041
        ]
3042
    ]
3043
];
3044