Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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