Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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

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