Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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