Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

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