Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

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