Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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