Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

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