Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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