Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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