Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
 
3
declare(strict_types=1);
4
 
5
namespace LeadersLinked;
6
 
7
use Laminas\Router\Http\Literal;
8
use Laminas\Router\Http\Segment;
9
 
10
return [
11
    'navigation' => [
12
        'menu' => [],
13
        'footer' => [
14
            [
15
                'label' => 'LABEL_PRIVACY_POLICY',
16
                'route' => 'privacy-policy'
17
            ],
18
            [
19
                'label' => 'LABEL_PROFESSIONALISM_POLICY',
20
                'route' => 'professionalism-policy'
21
            ],
22
            [
23
                'label' => 'LABEL_COOKIES_POLICY',
24
                'route' => 'cookies'
25
            ],
26
            [
27
                'label' => 'LABEL_TERMS_AND_CONDITIONS',
28
                'route' => 'terms-and-conditions'
29
            ],
30
        ]
31
    ],
32
    'router' => [
33
        'routes' => [
34
            'signin' => [
35
                'type' => Literal::class,
36
                'options' => [
37
                    'route' => '/signin',
38
                    'defaults' => [
39
                        'controller' => '\LeadersLinked\Controller\AuthController',
40
                        'action' => 'signin'
41
                    ]
42
                ],
43
                'may_terminate' => true,
44
                'child_routes' => [
45
 
46
 
47
                    'facebook' => [
48
                        'type' => Literal::class,
49
                        'options' => [
50
                            'route' => '/facebook',
51
                            'defaults' => [
52
                                'controller' => '\LeadersLinked\Controller\AuthController',
53
                                'action' => 'facebook',
54
                            ],
55
                        ],
56
                    ],
57
                    'twitter' => [
58
                        'type' => Literal::class,
59
                        'options' => [
60
                            'route' => '/twitter',
61
                            'defaults' => [
62
                                'controller' => '\LeadersLinked\Controller\AuthController',
63
                                'action' => 'twitter',
64
                            ],
65
                        ],
66
                    ],
67
                    'google' => [
68
                        'type' => Literal::class,
69
                        'options' => [
70
                            'route' => '/google',
71
                            'defaults' => [
72
                                'controller' => '\LeadersLinked\Controller\AuthController',
73
                                'action' => 'google',
74
                            ],
75
                        ],
76
                    ],
77
                    'impersonate' => [
78
                        'type' => Literal::class,
79
                        'options' => [
80
                            'route' => '/impersonate',
81
                            'defaults' => [
82
                                'controller' => '\LeadersLinked\Controller\AuthController',
83
                                'action' => 'impersonate',
84
                            ],
85
                        ],
86
                    ],
177 efrain 87
                    'debug' => [
119 efrain 88
                        'type' => Literal::class,
89
                        'options' => [
177 efrain 90
                            'route' => '/debug',
119 efrain 91
                            'defaults' => [
92
                                'controller' => '\LeadersLinked\Controller\AuthController',
177 efrain 93
                                'action' => 'debug',
119 efrain 94
                            ],
95
                        ],
96
                    ],
1 efrain 97
                ]
98
            ],
255 efrain 99
 
100
            'share' => [
101
                'type' => Segment::class,
102
                'options' => [
103
                    'route' => '/share/type/:type/code/:code/user/:user/timestamp/:timestamp/rand/:rand/password/:password',
104
                    'constraints' => [
105
                        'type' => 'feed|post',
106
                        'code' => '[A-Za-z0-9\-]+\=*',
107
                        'user' => '[A-Za-z0-9\-]+\=*',
108
                        'timestamp' => '[0-9]*',
109
                        'rand' => '[0-9]*',
110
                        'password' => '[A-Za-z0-9]*',
111
                    ],
112
                    'defaults' => [
113
                        'controller' => '\LeadersLinked\Controller\HomeController',
114
                        'action' => 'share',
115
                    ],
116
                ],
117
                'may_terminate' => true,
118
                'child_routes' => [
119
                    'increment-external-counter' => [
120
                        'type' => Segment::class,
121
                        'options' => [
122
                            'route' => '/increment-external-counter',
123
                            'defaults' => [
124
                                'controller' => '\LeadersLinked\Controller\HomeController',
125
                                'action' => 'incTotalExternalShared',
126
                            ],
127
                        ],
128
                    ],
129
                ]
130
            ],
131
 
132
 
1 efrain 133
            'shorter' => [
134
                'type' => Segment::class,
135
                'options' => [
136
                    'route' => '/shorter/:code',
137
                    'constraints' => [
138
                        'code' => '[A-Za-z0-9\-]+\=*',
139
                    ],
140
                    'defaults' => [
141
                        'controller' => '\LeadersLinked\Controller\ShorterController',
142
                        'action' => 'index'
143
                    ]
144
                ],
145
                'may_terminate' => true,
146
                'child_routes' => [
147
                    'generate' => [
148
                        'type' => Segment::class,
149
                        'options' => [
150
                            'route' => '/generate/:type',
151
                            'constraints' => [
152
                                'type' => 'feed|post',
153
 
154
                            ],
155
                            'defaults' => [
156
                                'controller' => '\LeadersLinked\Controller\ShorterController',
157
                                'action' => 'generate'
158
                            ]
159
                        ]
160
                    ],
161
                ]
162
 
163
            ],
164
 
165
            'reset-password' => [
166
                'type' => Segment::class,
167
                'options' => [
168
                    'route' => '/reset-password/:code',
169
                    'constraints' => [
170
                        'code' => '[a-zA-Z0-9--]+'
171
                    ],
172
                    'defaults' => [
173
                        'controller' => '\LeadersLinked\Controller\AuthController',
174
                        'action' => 'resetPassword'
175
                    ]
176
                ]
177
            ],
178
            'forgot-password' => [
179
                'type' => Literal::class,
180
                'options' => [
181
                    'route' => '/forgot-password',
182
                    'defaults' => [
183
                        'controller' => '\LeadersLinked\Controller\AuthController',
184
                        'action' => 'forgotPassword'
185
                    ]
186
                ]
187
            ],
188
            'signup' => [
189
                'type' => Literal::class,
190
                'options' => [
191
                    'route' => '/signup',
192
                    'defaults' => [
193
                        'controller' => '\LeadersLinked\Controller\AuthController',
194
                        'action' => 'signup'
195
                    ]
196
                ]
197
            ],
198
            'activate-account' => [
199
                'type' => Segment::class,
200
                'options' => [
201
                    'route' => '/activate-account/:code',
202
                    'constraints' => [
203
                        'code' => '[a-zA-Z0-9]+'
204
                    ],
205
                    'defaults' => [
206
                        'controller' => '\LeadersLinked\Controller\AuthController',
207
                        'action' => 'activateAccount'
208
                    ]
209
                ]
210
            ],
211
            'signout' => [
212
                'type' => Literal::class,
213
                'options' => [
214
                    'route' => '/signout',
215
                    'defaults' => [
216
                        'controller' => '\LeadersLinked\Controller\AuthController',
217
                        'action' => 'signout'
218
                    ]
219
                ]
220
            ],
221
            'csrf' => [
222
                'type' => Literal::class,
223
                'options' => [
224
                    'route' => '/csrf',
225
                    'defaults' => [
226
                        'controller' => '\LeadersLinked\Controller\AuthController',
227
                        'action' => 'csrf'
228
                    ]
229
                ]
230
            ],
231
 
232
            'onroom' => [
233
                'type' => Literal::class,
234
                'options' => [
235
                    'route' => '/onroom',
236
                    'defaults' => [
237
                        'controller' => '\LeadersLinked\Controller\AuthController',
238
                        'action' => 'onroom'
239
                    ]
240
                ]
241
            ],
242
            'home' => [
243
                'type' => Literal::class,
244
                'options' => [
245
                    'route' => '/',
246
                    'defaults' => [
247
                        'controller' => '\LeadersLinked\Controller\HomeController',
248
                        'action' => 'index'
249
                    ]
250
                ]
251
            ],
252
            'language' => [
253
                'type' => Literal::class,
254
                'options' => [
255
                    'route' => '/language',
256
                    'defaults' => [
257
                        'controller' => '\LeadersLinked\Controller\HomeController',
258
                        'action' => 'language'
259
                    ]
260
                ]
261
            ],
255 efrain 262
 
1 efrain 263
 
264
            'post' => [
265
                'type' => Segment::class,
266
                'options' => [
267
                    'route' => '/post/:id',
268
                    'constraints' => [
269
                        'id' => '[A-Za-z0-9\-]+\=*',
270
                    ],
271
                    'defaults' => [
272
                        'controller' => '\LeadersLinked\Controller\PostController',
273
                        'action' => 'view'
274
                    ]
275
                ],
276
                'may_terminate' => true,
277
                'child_routes' => [
242 efrain 278
                    'reactions' => [
279
                        'type' => Segment::class,
280
                        'options' => [
281
                            'route' => '/reactions',
282
                            'defaults' => [
283
                                'controller' => '\LeadersLinked\Controller\PostController',
284
                                'action' => 'reactions'
285
                            ]
286
                        ]
287
                    ],
1 efrain 288
                    'comments' => [
289
                        'type' => Segment::class,
290
                        'options' => [
291
                            'route' => '/comments',
292
                            'defaults' => [
293
                                'controller' => '\LeadersLinked\Controller\PostController',
294
                                'action' => 'comments'
295
                            ]
296
                        ],
297
                        'may_terminate' => true,
298
                        'child_routes' => [
299
                            'add' => [
300
                                'type' => Segment::class,
301
                                'options' => [
302
                                    'route' => '/add',
303
                                    'defaults' => [
304
                                        'controller' => '\LeadersLinked\Controller\PostController',
305
                                        'action' => 'commentsAdd'
306
                                    ]
307
                                ]
308
                            ],
309
                            'delete' => [
310
                                'type' => Segment::class,
311
                                'options' => [
312
                                    'route' => '/delete/:comment',
313
                                    'constraints' => [
314
                                        'comment' => '[A-Za-z0-9\-]+\=*',
315
                                    ],
316
                                    'defaults' => [
317
                                        'controller' => '\LeadersLinked\Controller\PostController',
318
                                        'action' => 'commentsDelete'
319
                                    ]
320
                                ]
321
                            ],
322
                        ],
323
                    ],
324
                    'save-reaction' => [
325
                        'type' => Segment::class,
326
                        'options' => [
327
                            'route' => '/save-reaction',
328
                            'defaults' => [
329
                                'controller' => '\LeadersLinked\Controller\PostController',
330
                                'action' => 'saveReaction'
331
                            ]
332
                        ]
333
                    ],
334
 
335
                    'delete-reaction' => [
336
                        'type' => Segment::class,
337
                        'options' => [
338
                            'route' => '/delete-reaction',
339
                            'defaults' => [
340
                                'controller' => '\LeadersLinked\Controller\PostController',
341
                                'action' => 'deleteReaction'
342
                            ]
343
                        ]
344
                    ],
345
 
346
 
347
                ],
348
 
349
            ],
350
            'privacy-policy' => [
351
                'type' => Literal::class,
352
                'options' => [
353
                    'route' => '/privacy-policy',
354
                    'defaults' => [
355
                        'controller' => '\LeadersLinked\Controller\HomeController',
356
                        'action' => 'privacyPolicy'
357
                    ]
358
                ]
359
            ],
360
            'cookies' => [
361
                'type' => Literal::class,
362
                'options' => [
363
                    'route' => '/cookies',
364
                    'defaults' => [
365
                        'controller' => '\LeadersLinked\Controller\HomeController',
366
                        'action' => 'cookies'
367
                    ]
368
                ]
369
            ],
370
            'professionalism-policy' => [
371
                'type' => Literal::class,
372
                'options' => [
373
                    'route' => '/professionalism-policy',
374
                    'defaults' => [
375
                        'controller' => '\LeadersLinked\Controller\HomeController',
376
                        'action' => 'professionalismPolicy'
377
                    ]
378
                ]
379
            ],
380
            'terms-and-conditions' => [
381
                'type' => Literal::class,
382
                'options' => [
383
                    'route' => '/terms-and-conditions',
384
                    'defaults' => [
385
                        'controller' => '\LeadersLinked\Controller\HomeController',
386
                        'action' => 'termsAndConditions'
387
                    ]
388
                ]
389
            ],
390
            'check-session' => [
391
                'type' => Literal::class,
392
                'options' => [
393
                    'route' => '/check-session',
394
                    'defaults' => [
395
                        'controller' => '\LeadersLinked\Controller\HomeController',
396
                        'action' => 'checkSession'
397
                    ]
398
                ]
399
            ],
203 efrain 400
            'abuse-report' => [
401
                'type' => Literal::class,
402
                'options' => [
403
                    'route' => '/abuse-report',
404
                    'defaults' => [
405
                        'controller' => '\LeadersLinked\Controller\AbuseReportController',
406
                        'action' => 'index'
407
                    ]
408
                ],
409
                'may_terminate' => true,
410
                'child_routes' => [
411
                    'view' => [
412
                        'type' => Segment::class,
413
                        'options' => [
414
                            'route' => '/view/:id',
415
                            'constraints' => [
416
                                'id' => '[A-Za-z0-9\-]+\=*',
417
                            ],
418
                            'defaults' => [
419
                                'controller' => '\LeadersLinked\Controller\AbuseReportController',
420
                                'action' => 'view'
421
                            ]
422
                        ]
423
                    ],
424
                ],
425
            ],
1 efrain 426
            'notifications' => [
427
                'type' => Literal::class,
428
                'options' => [
429
                    'route' => '/notifications',
430
                    'defaults' => [
431
                        'controller' => '\LeadersLinked\Controller\NotificationController',
432
                        'action' => 'index'
433
                    ]
434
                ],
435
                'may_terminate' => true,
436
                'child_routes' => [
437
                    'mark-read' => [
438
                        'type' => Segment::class,
439
                        'options' => [
440
                            'route' => '/mark-read/:id',
441
                            'constraints' => [
442
                                'id' => '[A-Za-z0-9\-]+\=*',
443
                            ],
444
                            'defaults' => [
445
                                'controller' => '\LeadersLinked\Controller\NotificationController',
446
                                'action' => 'markRead'
447
                            ]
448
                        ]
449
                    ],
450
                    'mark-all-read' => [
451
                        'type' => Literal::class,
452
                        'options' => [
453
                            'route' => '/mark-all-read',
454
                            'defaults' => [
455
                                'controller' => '\LeadersLinked\Controller\NotificationController',
456
                                'action' => 'markAllRead'
457
                            ]
458
                        ]
459
                    ],
460
                    'delete' => [
461
                        'type' => Segment::class,
462
                        'options' => [
463
                            'route' => '/delete/:id',
464
                            'constraints' => [
465
                                'id' => '[A-Za-z0-9\-]+\=*',
466
                            ],
467
                            'defaults' => [
468
                                'controller' => '\LeadersLinked\Controller\NotificationController',
469
                                'action' => 'delete'
470
                            ]
471
                        ]
472
                    ],
473
                    'clear' => [
474
                        'type' => Literal::class,
475
                        'options' => [
476
                            'route' => '/clear',
477
                            'defaults' => [
478
                                'controller' => '\LeadersLinked\Controller\NotificationController',
479
                                'action' => 'clear'
480
                            ]
481
                        ]
482
                    ],
483
                    'unreads' => [
484
                        'type' => Literal::class,
485
                        'options' => [
486
                            'route' => '/unreads',
487
                            'defaults' => [
488
                                'controller' => '\LeadersLinked\Controller\NotificationController',
489
                                'action' => 'unreads'
490
                            ]
491
                        ]
492
                    ],
493
                ]
494
            ],
495
            'impersonate' => [
496
                'type' => Literal::class,
497
                'options' => [
498
                    'route' => '/impersonate',
499
                    'defaults' => [
500
                        'controller' => '\LeadersLinked\Controller\ImpersonateController',
501
                        'action' => 'index'
502
                    ]
503
                ],
504
                'may_terminate' => true,
505
                'child_routes' => [
506
                    'execute' => [
507
                        'type' => Segment::class,
508
                        'options' => [
509
                            'route' => '/execute/:id',
510
                            'constraints' => [
511
                                'id' => '[A-Za-z0-9\-]+\=*',
512
                            ],
513
                            'defaults' => [
514
                                'controller' => '\LeadersLinked\Controller\ImpersonateController',
515
                                'action' => 'execute'
516
                            ]
517
                        ]
518
                    ],
519
                ]
520
            ],
521
 
522
            'my-coach' => [
523
                'type' => Literal::class,
524
                'options' => [
525
                    'route' => '/my-coach',
526
                    'defaults' => [
527
                        'controller' => '\LeadersLinked\Controller\MyCoachController',
528
                        'action' => 'index'
529
                    ]
530
                ],
531
                'may_terminate' => true,
532
                'child_routes' => [
533
                    'questions' => [
534
                        'type' => Literal::class,
535
                        'options' => [
536
                            'route' => '/questions',
537
                            'defaults' => [
538
                                'controller' => '\LeadersLinked\Controller\MyCoachController',
539
                                'action' => 'questions'
540
                            ],
541
                        ],
542
                        'may_terminate' => true,
543
                        'child_routes' => [
544
                            'add' => [
545
                                'type' => Literal::class,
546
                                'options' => [
547
                                    'route' => '/add',
548
                                    'defaults' => [
549
                                        'controller' => '\LeadersLinked\Controller\MyCoachController',
550
                                        'action' => 'addQuestion'
551
                                    ],
552
                                ],
553
                            ],
242 efrain 554
                            'reactions' => [
555
                                'type' => Segment::class,
556
                                'options' => [
557
                                    'route' => '/reactions/:id',
558
                                    'constraints' => [
559
                                        'id' => '[A-Za-z0-9\-]+\=*',
560
                                    ],
561
                                    'defaults' => [
562
                                        'controller' => '\LeadersLinked\Controller\MyCoachController',
563
                                        'action' => 'reactions'
564
                                    ]
565
                                ]
566
                            ],
1 efrain 567
                            'view' => [
568
                                'type' => Segment::class,
569
                                'options' => [
570
                                    'route' => '/view/:id',
571
                                    'constraints' => [
572
                                        'id' => '[A-Za-z0-9\-]+\=*',
573
                                    ],
574
                                    'defaults' => [
575
                                        'controller' => '\LeadersLinked\Controller\MyCoachController',
576
                                        'action' => 'viewQuestion'
577
                                    ]
578
                                ]
579
                            ],
580
                            'edit' => [
581
                                'type' => Segment::class,
582
                                'options' => [
583
                                    'route' => '/edit/:id',
584
                                    'constraints' => [
585
                                        'id' => '[A-Za-z0-9\-]+\=*',
586
                                    ],
587
                                    'defaults' => [
588
                                        'controller' => '\LeadersLinked\Controller\MyCoachController',
589
                                        'action' => 'editQuestion'
590
                                    ]
591
                                ]
592
                            ],
593
                            'delete' => [
594
                                'type' => Segment::class,
595
                                'options' => [
596
                                    'route' => '/delete/:id',
597
                                    'constraints' => [
598
                                        'id' => '[A-Za-z0-9\-]+\=*',
599
                                    ],
600
                                    'defaults' => [
601
                                        'controller' => '\LeadersLinked\Controller\MyCoachController',
602
                                        'action' => 'deleteQuestion'
603
                                    ]
604
                                ]
605
                            ],
606
                            'reaction' => [
607
                                'type' => Segment::class,
608
                                'options' => [
609
                                    'route' => '/reaction/:id',
610
                                    'constraints' => [
611
                                        'id' => '[A-Za-z0-9\-]+\=*',
612
                                    ],
613
                                    'defaults' => [
614
                                        'controller' => '\LeadersLinked\Controller\MyCoachController',
242 efrain 615
                                        'action' => 'reaction'
1 efrain 616
                                    ]
617
                                ],
618
                                'may_terminate' => true,
619
                                'child_routes' => [
620
                                    'save' => [
621
                                        'type' => Literal::class,
622
                                        'options' => [
623
                                            'route' => '/save',
624
                                            'defaults' => [
625
                                                'controller' => '\LeadersLinked\Controller\MyCoachController',
626
                                                'action' => 'saveReaction'
627
                                            ],
628
                                        ],
629
                                    ],
630
                                    'delete' => [
631
                                        'type' =>Literal::class,
632
                                        'options' => [
633
                                            'route' => '/delete',
634
                                            'defaults' => [
635
                                                'controller' => '\LeadersLinked\Controller\MyCoachController',
636
                                                'action' => 'deleteReaction'
637
                                            ]
638
                                        ]
639
                                    ],
640
                                ]
641
                            ],
642
                            'answers' => [
643
                                'type' => Segment::class,
644
                                'options' => [
645
                                    'route' => '/answers/:id',
646
                                    'constraints' => [
647
                                        'id' => '[A-Za-z0-9\-]+\=*',
648
                                    ],
649
                                    'defaults' => [
650
                                        'controller' => '\LeadersLinked\Controller\MyCoachController',
651
                                        'action' => 'answers'
652
                                    ]
653
                                ],
654
                                'may_terminate' => true,
655
                                'child_routes' => [
656
                                    'add' => [
657
                                        'type' => Literal::class,
658
                                        'options' => [
659
                                            'route' => '/add',
660
                                            'defaults' => [
661
                                                'controller' => '\LeadersLinked\Controller\MyCoachController',
662
                                                'action' => 'addAnswer'
663
                                            ],
664
                                        ],
665
                                    ],
666
 
667
                                    'edit' => [
668
                                        'type' => Segment::class,
669
                                        'options' => [
670
                                            'route' => '/edit/:answer',
671
                                            'constraints' => [
672
                                                'answer' => '[A-Za-z0-9\-]+\=*',
673
                                            ],
674
                                            'defaults' => [
675
                                                'controller' => '\LeadersLinked\Controller\MyCoachController',
676
                                                'action' => 'editAnswer'
677
                                            ]
678
                                        ]
679
                                    ],
680
                                    'delete' => [
681
                                        'type' => Segment::class,
682
                                        'options' => [
683
                                            'route' => '/delete/:answer',
684
                                            'constraints' => [
685
                                                'answer' => '[A-Za-z0-9\-]+\=*',
686
                                            ],
687
                                            'defaults' => [
688
                                                'controller' => '\LeadersLinked\Controller\MyCoachController',
689
                                                'action' => 'deleteAnswer'
690
                                            ]
691
                                        ]
692
                                    ],
693
                                ]
694
                            ],
695
 
696
                            'comments' => [
697
                                'type' => Segment::class,
698
                                'options' => [
699
                                    'route' => '/comments/:id',
700
                                    'constraints' => [
701
                                        'id' => '[A-Za-z0-9\-]+\=*',
702
                                    ],
703
                                    'defaults' => [
704
                                        'controller' => '\LeadersLinked\Controller\MyCoachController',
705
                                        'action' => 'comments'
706
                                    ]
707
                                ],
708
                                'may_terminate' => true,
709
                                'child_routes' => [
710
                                    'add' => [
711
                                        'type' => Literal::class,
712
                                        'options' => [
713
                                            'route' => '/add',
714
                                            'defaults' => [
715
                                                'controller' => '\LeadersLinked\\Controller\MyCoachController',
716
                                                'action' => 'addComment'
717
                                            ]
718
                                        ]
719
                                    ],
720
                                    'delete' => [
721
                                        'type' => Segment::class,
722
                                        'options' => [
723
                                            'route' => '/delete/:comment',
724
                                            'constraints' => [
725
                                                'comment' => '[A-Za-z0-9\-]+\=*',
726
                                            ],
727
                                            'defaults' => [
728
                                                'controller' => '\LeadersLinked\\Controller\MyCoachController',
729
                                                'action' => 'deleteComment'
730
                                            ]
731
                                        ]
732
                                    ],
733
                                ]
734
                            ],
735
                        ]
736
                    ],
737
                ],
738
            ],
739
 
740
            'knowledge-area' => [
741
                'type' => Literal::class,
742
                'options' => [
743
                    'route' => '/knowledge-area',
744
                    'defaults' => [
745
                        'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
746
                        'action' => 'index'
747
                    ]
748
                ],
749
                'may_terminate' => true,
750
                'child_routes' => [
751
                    'add' => [
752
                        'type' => Literal::class,
753
                        'options' => [
754
                            'route' => '/add',
755
                            'defaults' => [
756
                                'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
757
                                'action' => 'add'
758
                            ],
759
                        ],
760
                    ],
761
                    'edit' => [
762
                        'type' => Segment::class,
763
                        'options' => [
764
                            'route' => '/edit/:id',
765
                            'constraints' => [
766
                                'id' => '[A-Za-z0-9\-]+\=*',
767
                            ],
768
                            'defaults' => [
769
                                'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
770
                                'action' => 'edit'
771
                            ]
772
                        ]
773
                    ],
774
                    'delete' => [
775
                        'type' => Segment::class,
776
                        'options' => [
777
                            'route' => '/delete/:id',
778
                            'constraints' => [
779
                                'id' => '[A-Za-z0-9\-]+\=*',
780
                            ],
781
                            'defaults' => [
782
                                'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
783
                                'action' => 'delete'
784
                            ]
785
                        ]
786
                    ],
787
                    'view' => [
788
                        'type' => Segment::class,
789
                        'options' => [
790
                            'route' => '/view/:id',
791
                            'constraints' => [
792
                                'id' => '[A-Za-z0-9\-]+\=*',
793
                            ],
794
                            'defaults' => [
795
                                'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
796
                                'action' => 'view'
797
                            ]
798
                        ]
799
                    ],
242 efrain 800
                    'reactions' => [
801
                        'type' => Segment::class,
802
                        'options' => [
803
                            'route' => '/reactions/:id',
804
                            'constraints' => [
805
                                'id' => '[A-Za-z0-9\-]+\=*',
806
                            ],
807
                            'defaults' => [
808
                                'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
809
                                'action' => 'reactions'
810
                            ]
811
                        ]
812
                    ],
1 efrain 813
                    'comments' => [
814
                        'type' => Segment::class,
815
                        'options' => [
816
                            'route' => '/comments/:id',
817
                            'constraints' => [
818
                                'id' => '[A-Za-z0-9\-]+\=*',
819
                            ],
820
                            'defaults' => [
821
                                'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
822
                                'action' => 'comments'
823
                            ]
824
                        ],
825
                        'may_terminate' => true,
826
                        'child_routes' => [
827
                            'add' => [
828
                                'type' => Literal::class,
829
                                'options' => [
830
                                    'route' => '/add',
831
                                    'defaults' => [
832
                                        'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
833
                                        'action' => 'addComment'
834
                                    ]
835
                                ]
836
                            ],
837
                            'delete' => [
838
                                'type' => Segment::class,
839
                                'options' => [
840
                                    'route' => '/delete/:comment',
841
                                    'constraints' => [
842
                                        'comment' => '[A-Za-z0-9\-]+\=*',
843
                                    ],
844
                                    'defaults' => [
845
                                        'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
846
                                        'action' => 'deleteComment'
847
                                    ]
848
                                ]
849
                            ],
850
                        ]
851
                    ],
852
                    'save-reaction' => [
853
                        'type' => Segment::class,
854
                        'options' => [
855
                            'route' => '/save-reaction/:id',
856
                            'constraints' => [
857
                                'id' => '[A-Za-z0-9\-]+\=*',
858
                            ],
859
                            'defaults' => [
860
                                'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
861
                                'action' => 'saveReaction'
862
                            ]
863
                        ]
864
                    ],
865
                    'delete-reaction' => [
866
                        'type' => Segment::class,
867
                        'options' => [
868
                            'route' => '/delete-reaction/:id',
869
                            'constraints' => [
870
                                'id' => '[A-Za-z0-9\-]+\=*',
871
                            ],
872
                            'defaults' => [
873
                                'controller' => '\LeadersLinked\Controller\KnowledgeAreaController',
874
                                'action' => 'deleteReaction'
875
                            ]
876
                        ]
877
                    ],
878
 
879
                ],
880
            ],
881
 
882
 
883
            'backend' => [
884
                'type' => Literal::class,
885
                'options' => [
886
                    'route' => '/backend',
887
                    'defaults' => [
888
                        'controller' => '\LeadersLinked\Controller\BackendController',
889
                        'action' => 'index'
890
                    ]
891
                ],
892
                'may_terminate' => true,
893
                'child_routes' => [
894
                    'signin-admin' => [
895
                        'type' => Literal::class,
896
                        'options' => [
897
                            'route' => '/signin-admin',
898
                            'defaults' => [
899
                                'controller' => '\LeadersLinked\Controller\BackendController',
900
                                'action' => 'signinAdmin'
901
                            ],
902
                        ],
903
                    ],
904
                    'signin-company' => [
905
                        'type' => Segment::class,
906
                        'options' => [
907
                            'route' => '/signin-company/:id[/relational/:relational/type/:type]',
908
                            'constraints' => [
909
                                'id' => '[A-Za-z0-9\-]+\=*',
910
                                'relational' => '[A-Za-z0-9\-]+\=*',
911
                                'type' => '[A-Za-z0-9\-]+\=*',
912
                            ],
913
                            'defaults' => [
914
                                'controller' => '\LeadersLinked\Controller\BackendController',
915
                                'action' => 'signinCompany'
916
                            ],
917
                        ],
918
                    ],
919
                ]
920
            ],
921
            'dashboard' => [
922
                'type' => Segment::class,
923
                'options' => [
255 efrain 924
                    'route' => '/dashboard[/feed/:feed][/post/:post]',
1 efrain 925
                    'constraints' => [
926
                        'feed' => '[A-Za-z0-9\-]+\=*',
255 efrain 927
                        'post' => '[A-Za-z0-9\-]+\=*',
1 efrain 928
                    ],
929
                    'defaults' => [
930
                        'controller' => '\LeadersLinked\Controller\DashboardController',
931
                        'action' => 'index'
932
                    ]
933
                ]
934
            ],
935
            'storage' => [
936
                'type' => Segment::class,
937
                'options' => [
938
                    'route' => '/storage/type/:type[/code/:code][/filename/:filename][/]',
939
                    'constraints' => [
940
                        'type' => 'user|user-profile|user-cover|company|company-cover|group|group-cover|job|chat|image|feed|post|message|microlearning-topic|microlearning-capsule|microlearning-slide|daily-pulse|engagement-reward|knowledge-area',
941
                        'code' => '[A-Za-z0-9\-]+\=*',
116 efrain 942
                        'filename' => '[a-zA-Z0-9\-\_]+\.(jpg|jpeg|gif|png|mp3|mp4|mov|flv|doc|pdf|docx|xls|ppt|pdf|xlsx|pptx)'
1 efrain 943
                    ],
944
                    // MjM5ODk0Mzgg
945
                    'defaults' => [
946
                        'controller' => '\LeadersLinked\Controller\StorageController',
947
                        'action' => 'download'
948
                    ]
949
                ]
950
            ],
951
            'storage-network' => [
952
                'type' => Segment::class,
953
                'options' => [
954
                    'route' => '/storage-network/type/:type[/]',
955
                    'constraints' => [
956
                        'type' => 'navbar|logo|favico|moodle',
957
                    ],
958
                    // MjM5ODk0Mzgg
959
                    'defaults' => [
960
                        'controller' => '\LeadersLinked\Controller\StorageNetworkController',
961
                        'action' => 'download'
962
                    ]
963
                ]
964
            ],
965
            'paypal' => [
966
                'type' => Literal::class,
967
                'options' => [
968
                    'route' => '/paypal',
969
                    'defaults' => [
970
                        'controller' => '\LeadersLinked\Controller\PaypalController',
971
                        'action' => 'index'
972
                    ]
973
                ],
974
                'may_terminate' => true,
975
                'child_routes' => [
976
                    'success' => [
977
                        'type' => Literal::class,
978
                        'options' => [
979
                            'route' => '/success',
980
                            'defaults' => [
981
                                'controller' => '\LeadersLinked\Controller\PaypalController',
982
                                'action' => 'success',
983
                            ],
984
                        ],
985
                    ],
986
                    'cancel' => [
987
                        'type' => Literal::class,
988
                        'options' => [
989
                            'route' => '/cancel',
990
                            'defaults' => [
991
                                'controller' => '\LeadersLinked\Controller\PaypalController',
992
                                'action' => 'cancel',
993
                            ],
994
                        ],
995
                    ],
996
                ]
997
            ],
998
            'chat' => [
999
                'type' => Literal::class,
1000
                'options' => [
1001
                    'route' => '/chat',
1002
                    'defaults' => [
1003
                        'controller' => '\LeadersLinked\Controller\ChatController',
1004
                        'action' => 'index'
1005
                    ]
1006
                ],
1007
                'may_terminate' => true,
1008
                'child_routes' => [
1009
                    // Inicio de los Routes del Chat //
1010
 
1011
                    'users' => [
1012
                        'type' => Literal::class,
1013
                        'options' => [
1014
                            'route' => '/users',
1015
                            'defaults' => [
1016
                                'controller' => '\LeadersLinked\Controller\ChatController',
1017
                                'action' => 'users',
1018
                            ],
1019
                        ],
1020
                    ],
1021
 
1022
                    'heart-beat' => [
1023
                        'type' => Literal::class,
1024
                        'options' => [
1025
                            'route' => '/heart-beat',
1026
                            'defaults' => [
1027
                                'controller' => '\LeadersLinked\Controller\ChatController',
1028
                                'action' => 'heartBeat',
1029
                            ],
1030
                        ],
1031
                    ],
1032
                    'create-group' => [
1033
                        'type' => Literal::class,
1034
                        'options' => [
1035
                            'route' => '/create-group',
1036
                            'defaults' => [
1037
                                'controller' => '\LeadersLinked\Controller\ChatController',
1038
                                'action' => 'createGroup',
1039
                            ],
1040
                        ],
1041
                    ],
1042
                    'zoom' => [
1043
                        'type' => Segment::class,
1044
                        'options' => [
1045
                            'route' => '/zoom/:id',
1046
                            'constraints' => [
1047
                                'id' => '[A-Za-z0-9\-]+\=*',
1048
                            ],
1049
                            'defaults' => [
1050
                                'controller' => '\LeadersLinked\Controller\ChatController',
1051
                                'action' => 'zoom',
1052
                            ],
1053
                        ],
1054
                    ],
1055
                    'open-or-create' => [
1056
                        'type' => Segment::class,
1057
                        'options' => [
1058
                            'route' => '/open-or-create/:id',
1059
                            'constraints' => [
1060
                                'id' => '[A-Za-z0-9\-]+\=*',
1061
                            ],
1062
                            'defaults' => [
1063
                                'controller' => '\LeadersLinked\Controller\ChatController',
1064
                                'action' => 'openOrCreate',
1065
                            ],
1066
                        ],
1067
                    ],
1068
                    'add-user-to-group' => [
1069
                        'type' => Segment::class,
1070
                        'options' => [
1071
                            'route' => '/add-user-to-group/:group_id',
1072
                            'constraints' => [
1073
                                'group_id' => '[A-Za-z0-9\-]+\=*',
1074
                            ],
1075
                            'defaults' => [
1076
                                'controller' => '\LeadersLinked\Controller\ChatController',
1077
                                'action' => 'addUserToGroup',
1078
                            ],
1079
                        ],
1080
                    ],
1081
                    'mark-seen' => [
1082
                        'type' => Segment::class,
1083
                        'options' => [
1084
                            'route' => '/mark-seen/:id',
1085
                            'constraints' => [
1086
                                'id' => '[A-Za-z0-9\-]+\=*',
1087
                            ],
1088
                            'defaults' => [
1089
                                'controller' => '\LeadersLinked\Controller\ChatController',
1090
                                'action' => 'markSeen',
1091
                            ],
1092
                        ],
1093
                    ],
1094
                    'mark-received' => [
1095
                        'type' => Segment::class,
1096
                        'options' => [
1097
                            'route' => '/mark-received/:id',
1098
                            'constraints' => [
1099
                                'id' => '[A-Za-z0-9\-]+\=*',
1100
                            ],
1101
                            'defaults' => [
1102
                                'controller' => '\LeadersLinked\Controller\ChatController',
1103
                                'action' => 'markReceived',
1104
                            ],
1105
                        ],
1106
                    ],
1107
                    'remove-user-from-group' => [
1108
                        'type' => Segment::class,
1109
                        'options' => [
1110
                            'route' => '/remove-user-from-group/:group_id/:user_id',
1111
                            'constraints' => [
1112
                                'group_id' => '[A-Za-z0-9\-]+\=*',
1113
                                'user_id' => '[A-Za-z0-9\-]+\=*',
1114
                            ],
1115
                            'defaults' => [
1116
                                'controller' => '\LeadersLinked\Controller\ChatController',
1117
                                'action' => 'removeUserFromGroup',
1118
                            ],
1119
                        ],
1120
                    ],
1121
                    'get-all-messages' => [
1122
                        'type' => Segment::class,
1123
                        'options' => [
1124
                            'route' => '/get-all-messages/:id',
1125
                            'constraints' => [
1126
                                'id' => '[A-Za-z0-9\-]+\=*',
1127
                            ],
1128
                            'defaults' => [
1129
                                'controller' => '\LeadersLinked\Controller\ChatController',
1130
                                'action' => 'getAllMessages',
1131
                            ],
1132
                        ],
1133
                    ],
1134
                    'send' => [
1135
                        'type' => Segment::class,
1136
                        'options' => [
1137
                            'route' => '/send/:id',
1138
                            'constraints' => [
1139
                                'id' => '[A-Za-z0-9\-]+\=*',
1140
                            ],
1141
                            'defaults' => [
1142
                                'controller' => '\LeadersLinked\Controller\ChatController',
1143
                                'action' => 'send',
1144
                            ],
1145
                        ],
1146
                    ],
1147
                    'get-contacts-availables-for-group' => [
1148
                        'type' => Segment::class,
1149
                        'options' => [
1150
                            'route' => '/get-contacts-availables-for-group/:group_id',
1151
                            'constraints' => [
1152
                                'group_id' => '[A-Za-z0-9\-]+\=*',
1153
                            ],
1154
                            'defaults' => [
1155
                                'controller' => '\LeadersLinked\Controller\ChatController',
1156
                                'action' => 'contactAvailableGroupList',
1157
                            ],
1158
                        ],
1159
                    ],
1160
                    'get-contact-group-list' => [
1161
                        'type' => Segment::class,
1162
                        'options' => [
1163
                            'route' => '/get-contact-group-list/:group_id',
1164
                            'constraints' => [
1165
                                'group_id' => '[A-Za-z0-9\-]+\=*',
1166
                            ],
1167
                            'defaults' => [
1168
                                'controller' => '\LeadersLinked\Controller\ChatController',
1169
                                'action' => 'contactGroupList',
1170
                            ],
1171
                        ],
1172
                    ],
1173
                    'leave-group' => [
1174
                        'type' => Segment::class,
1175
                        'options' => [
1176
                            'route' => '/leave-group/:group_id',
1177
                            'constraints' => [
1178
                                'group_id' => '[A-Za-z0-9\-]+\=*',
1179
                            ],
1180
                            'defaults' => [
1181
                                'controller' => '\LeadersLinked\Controller\ChatController',
1182
                                'action' => 'leaveGroup',
1183
                            ],
1184
                        ],
1185
                    ],
1186
                    'delete-group' => [
1187
                        'type' => Segment::class,
1188
                        'options' => [
1189
                            'route' => '/delete-group/:group_id',
1190
                            'constraints' => [
1191
                                'group_id' => '[A-Za-z0-9\-]+\=*',
1192
                            ],
1193
                            'defaults' => [
1194
                                'controller' => '\LeadersLinked\Controller\ChatController',
1195
                                'action' => 'deleteGroup',
1196
                            ],
1197
                        ],
1198
                    ],
1199
                    'open' => [
1200
                        'type' => Segment::class,
1201
                        'options' => [
1202
                            'route' => '/open/:id',
1203
                            'constraints' => [
1204
                                'id' => '[A-Za-z0-9\-]+\=*',
1205
                            ],
1206
                            'defaults' => [
1207
                                'controller' => '\LeadersLinked\Controller\ChatController',
1208
                                'action' => 'open',
1209
                            ],
1210
                        ],
1211
                    ],
1212
                    'close' => [
1213
                        'type' => Segment::class,
1214
                        'options' => [
1215
                            'route' => '/close/:id',
1216
                            'constraints' => [
1217
                                'id' => '[A-Za-z0-9\-]+\=*',
1218
                            ],
1219
                            'defaults' => [
1220
                                'controller' => '\LeadersLinked\Controller\ChatController',
1221
                                'action' => 'close',
1222
                            ],
1223
                        ],
1224
                    ],
1225
                    'clear' => [
1226
                        'type' => Segment::class,
1227
                        'options' => [
1228
                            'route' => '/clear/:id',
1229
                            'constraints' => [
1230
                                'id' => '[A-Za-z0-9\-]+\=*',
1231
                            ],
1232
                            'defaults' => [
1233
                                'controller' => '\LeadersLinked\Controller\ChatController',
1234
                                'action' => 'clear',
1235
                            ],
1236
                        ],
1237
                    ],
1238
                    'upload' => [
1239
                        'type' => Segment::class,
1240
                        'options' => [
1241
                            'route' => '/upload/:id',
1242
                            'constraints' => [
1243
                                'id' => '[A-Za-z0-9\-]+\=*',
1244
                            ],
1245
                            'defaults' => [
1246
                                'controller' => '\LeadersLinked\Controller\ChatController',
1247
                                'action' => 'upload',
1248
                            ],
1249
                        ],
1250
                    ],
1251
                ],
1252
            ],
1253
            'calendar' => [
1254
                'type' => Literal::class,
1255
                'options' => [
1256
                    'route' => '/calendar',
1257
                    'defaults' => [
1258
                        'controller' => '\LeadersLinked\Controller\CalendarController',
1259
                        'action' => 'index'
1260
                    ]
1261
                ],
1262
                'may_terminate' => true,
1263
                'child_routes' => [
1264
                    'events' => [
1265
                        'type' => Segment::class,
1266
                        'options' => [
1267
                            'route' => '/events',
1268
                            /*'constraints' => [
1269
                                'id' => '[A-Za-z0-9\-]+\=*',
1270
                            ],*/
1271
                            'defaults' => [
1272
                                'controller' => '\LeadersLinked\Controller\CalendarController',
1273
                                'action' => 'events'
1274
                            ]
1275
                        ]
1276
                    ],
1277
                ]
1278
            ],
1279
 
1280
            /*
1281
            'zoom' => [
1282
                'type' => Literal::class,
1283
                'options' => [
1284
                    'route' => '/zoom',
1285
                    'defaults' => [
1286
                        'controller' => '\LeadersLinked\Controller\ZoomController',
1287
                        'action' => 'index'
1288
                    ]
1289
                ],
1290
                'may_terminate' => true,
1291
                'child_routes' => [
1292
                    'add' => [
1293
                        'type' => Literal::class,
1294
                        'options' => [
1295
                            'route' => '/add',
1296
                            'defaults' => [
1297
                                'controller' => '\LeadersLinked\Controller\ZoomController',
1298
                                'action' => 'add'
1299
                            ]
1300
                        ]
1301
                    ],
1302
                    'delete' => [
1303
                        'type' => Segment::class,
1304
                        'options' => [
1305
                            'route' => '/delete/:id',
1306
                            'constraints' => [
1307
                                'id' => '[A-Za-z0-9\-]+\=*',
1308
                            ],
1309
                            'defaults' => [
1310
                                'controller' => '\LeadersLinked\Controller\ZoomController',
1311
                                'action' => 'delete'
1312
                            ]
1313
                        ]
1314
                    ],
1315
                    'listing' => [
1316
                        'type' => Literal::class,
1317
                        'options' => [
1318
                            'route' => '/listing',
1319
                            'defaults' => [
1320
                                'controller' => '\LeadersLinked\Controller\ZoomController',
1321
                                'action' => 'listing'
1322
                            ]
1323
                        ]
1324
                    ],
1325
                ]
1326
            ],*/
1327
 
1328
            'inmail' => [
1329
                'type' => Segment::class,
1330
                'options' => [
1331
                    'route' => '/inmail[/:id]',
1332
                    'constraints' => [
1333
                        'id' => '[A-Za-z0-9\-]+\=*',
1334
                    ],
1335
                    'defaults' => [
1336
                        'controller' => '\LeadersLinked\Controller\InMailController',
1337
                        'action' => 'index'
1338
                    ]
1339
                ],
1340
                'may_terminate' => true,
1341
                'child_routes' => [
1342
                    'block' => [
1343
                        'type' => Literal::class,
1344
                        'options' => [
1345
                            'route' => '/block',
1346
                            'defaults' => [
1347
                                'controller' => '\LeadersLinked\Controller\InMailController',
1348
                                'action' => 'blockConversation'
1349
                            ]
1350
                        ]
1351
                    ],
1352
                    'delete' => [
1353
                        'type' => Literal::class,
1354
                        'options' => [
1355
                            'route' => '/delete',
1356
                            'defaults' => [
1357
                                'controller' => '\LeadersLinked\Controller\InMailController',
1358
                                'action' => 'delete'
1359
                            ]
1360
                        ]
1361
                    ],
1362
                    'message' => [
1363
                        'type' => Literal::class,
1364
                        'options' => [
1365
                            'route' => '/message',
1366
                            'defaults' => [
1367
                                'controller' => '\LeadersLinked\Controller\InMailController',
1368
                                'action' => 'message'
1369
                            ]
1370
                        ],
1371
                        'may_terminate' => true,
1372
                        'child_routes' => [
1373
                            'send' => [
1374
                                'type' => Segment::class,
1375
                                'options' => [
1376
                                    'route' => '/send[/encoding/:encoding]',
1377
                                    'constraints' => [
1378
                                        'encoding' => 'base64'
1379
                                    ],
1380
                                    'defaults' => [
1381
                                        'controller' => '\LeadersLinked\Controller\InMailController',
1382
                                        'action' => 'sendMessage'
1383
                                    ]
1384
                                ]
1385
                            ],
1386
                            'delete' => [
1387
                                'type' => Segment::class,
1388
                                'options' => [
1389
                                    'route' => '/delete/:message',
1390
                                    'constraints' => [
1391
                                        'message' => '[A-Za-z0-9\-]+\=*',
1392
                                    ],
1393
                                    'defaults' => [
1394
                                        'controller' => '\LeadersLinked\Controller\InMailController',
1395
                                        'action' => 'delete'
1396
                                    ]
1397
                                ]
1398
                            ],
1399
                        ],
1400
                    ],
1401
                ],
1402
            ],
1403
            'connection' => [
1404
                'type' => Literal::class,
1405
                'options' => [
1406
                    'route' => '/connection',
1407
                    'defaults' => [
1408
                        'controller' => '\LeadersLinked\Controller\ConnectionController',
1409
                        'action' => 'index'
1410
                    ]
1411
                ],
1412
                'may_terminate' => true,
1413
                'child_routes' => [
1414
                    'my-connections' => [
1415
                        'type' => Literal::class,
1416
                        'options' => [
1417
                            'route' => '/my-connections',
1418
                            'defaults' => [
1419
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
1420
                                'action' => 'myConnections'
1421
                            ]
1422
                        ]
1423
                    ],
1424
                    'people-you-may-know' => [
1425
                        'type' => Literal::class,
1426
                        'options' => [
1427
                            'route' => '/people-you-may-know',
1428
                            'defaults' => [
1429
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
1430
                                'action' => 'peopleYouMayKnow'
1431
                            ]
1432
                        ]
1433
                    ],
1434
                    'people-blocked' => [
1435
                        'type' => Literal::class,
1436
                        'options' => [
1437
                            'route' => '/people-blocked',
1438
                            'defaults' => [
1439
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
1440
                                'action' => 'peopleBlocked'
1441
                            ]
1442
                        ],
1443
                    ],
1444
                    'invitations-sent' => [
1445
                        'type' => Literal::class,
1446
                        'options' => [
1447
                            'route' => '/invitations-sent',
1448
                            'defaults' => [
1449
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
1450
                                'action' => 'invitationsSent'
1451
                            ]
1452
                        ]
1453
                    ],
1454
                    'invitations-received' => [
1455
                        'type' => Literal::class,
1456
                        'options' => [
1457
                            'route' => '/invitations-received',
1458
                            'defaults' => [
1459
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
1460
                                'action' => 'invitationsReceived'
1461
                            ]
1462
                        ]
1463
                    ],
1464
                    'block' => [
1465
                        'type' => Segment::class,
1466
                        'options' => [
1467
                            'route' => '/block/:id',
1468
                            'constraints' => [
1469
                                'id' => '[A-Za-z0-9\-]+\=*',
1470
                            ],
1471
                            'defaults' => [
1472
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
1473
                                'action' => 'block'
1474
                            ]
1475
                        ]
1476
                    ],
1477
                    'unblock' => [
1478
                        'type' => Segment::class,
1479
                        'options' => [
1480
                            'route' => '/unblock/:id',
1481
                            'constraints' => [
1482
                                'id' => '[A-Za-z0-9\-]+\=*',
1483
                            ],
1484
                            'defaults' => [
1485
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
1486
                                'action' => 'unblock'
1487
                            ]
1488
                        ]
1489
                    ],
1490
                    'cancel' => [
1491
                        'type' => Segment::class,
1492
                        'options' => [
1493
                            'route' => '/cancel/:id',
1494
                            'constraints' => [
1495
                                'id' => '[A-Za-z0-9\-]+\=*',
1496
                            ],
1497
                            'defaults' => [
1498
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
1499
                                'action' => 'cancel'
1500
                            ]
1501
                        ]
1502
                    ],
1503
                    'request' => [
1504
                        'type' => Segment::class,
1505
                        'options' => [
1506
                            'route' => '/request/:id',
1507
                            'constraints' => [
1508
                                'id' => '[A-Za-z0-9\-]+\=*',
1509
                            ],
1510
                            'defaults' => [
1511
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
1512
                                'action' => 'request'
1513
                            ]
1514
                        ]
1515
                    ],
1516
                    'approve' => [
1517
                        'type' => Segment::class,
1518
                        'options' => [
1519
                            'route' => '/approve/:id',
1520
                            'constraints' => [
1521
                                'id' => '[A-Za-z0-9\-]+\=*',
1522
                            ],
1523
                            'defaults' => [
1524
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
1525
                                'action' => 'approve'
1526
                            ]
1527
                        ]
1528
                    ],
1529
                    'reject' => [
1530
                        'type' => Segment::class,
1531
                        'options' => [
1532
                            'route' => '/reject/:id',
1533
                            'constraints' => [
1534
                                'id' => '[A-Za-z0-9\-]+\=*',
1535
                            ],
1536
                            'defaults' => [
1537
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
1538
                                'action' => 'reject'
1539
                            ]
1540
                        ]
1541
                    ],
1542
                    'delete' => [
1543
                        'type' => Segment::class,
1544
                        'options' => [
1545
                            'route' => '/delete/:id',
1546
                            'constraints' => [
1547
                                'id' => '[A-Za-z0-9\-]+\=*',
1548
                            ],
1549
                            'defaults' => [
1550
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
1551
                                'action' => 'delete'
1552
                            ]
1553
                        ]
1554
                    ],
1555
                ]
1556
            ],
1557
            'feed' => [
1558
                'type' => Literal::class,
1559
                'options' => [
1560
                    'route' => '/feed',
1561
                    'defaults' => [
1562
                        'controller' => '\LeadersLinked\Controller\FeedController',
1563
                        'action' => 'index'
1564
                    ]
1565
                ],
1566
                'may_terminate' => true,
1567
                'child_routes' => [
1568
                    'timeline' => [
1569
                        'type' => Segment::class,
1570
                        'options' => [
1571
                            'route' => '/timeline/:id/:type[/feed/:feed]',
1572
                            'constraints' => [
1573
                                'id' => '[A-Za-z0-9\-]+\=*',
1574
                                'type' => 'user|company|group',
1575
                            ],
1576
                            'defaults' => [
1577
                                'controller' => '\LeadersLinked\Controller\FeedController',
1578
                                'action' => 'timeline'
1579
                            ]
1580
                        ]
1581
                    ],
1582
                    'delete' => [
1583
                        'type' => Segment::class,
1584
                        'options' => [
1585
                            'route' => '/delete/:id',
1586
                            'constraints' => [
1587
                                'id' => '[A-Za-z0-9\-]+\=*',
1588
                            ],
1589
                            'defaults' => [
1590
                                'controller' => '\LeadersLinked\Controller\FeedController',
1591
                                'action' => 'delete'
1592
                            ],
1593
                        ]
1594
                    ],
232 efrain 1595
                    'reactions' => [
1596
                        'type' => Segment::class,
1597
                        'options' => [
1598
                            'route' => '/reactions/:id',
1599
                            'constraints' => [
1600
                                'id' => '[A-Za-z0-9\-]+\=*',
1601
 
1602
                            ],
1603
                            'defaults' => [
1604
                                'controller' => '\LeadersLinked\Controller\FeedController',
1605
                                'action' => 'reactions'
1606
                            ]
1607
                        ]
1608
                    ],
1 efrain 1609
                    'comment' => [
1610
                        'type' => Segment::class,
1611
                        'options' => [
1612
                            'route' => '/comment/:id',
1613
                            'constraints' => [
1614
                                'id' => '[A-Za-z0-9\-]+\=*',
1615
                            ],
1616
                            'defaults' => [
1617
                                'controller' => '\LeadersLinked\Controller\FeedController',
1618
                                'action' => 'comment'
1619
                            ],
1620
                        ],
1621
                        'may_terminate' => true,
1622
                        'child_routes' => [
1623
                            'delete' => [
1624
                                'type' => Segment::class,
1625
                                'options' => [
1626
                                    'route' => '/delete/:comment',
1627
                                    'constraints' => [
1628
                                        'comment' => '[A-Za-z0-9\-]+\=*',
1629
                                    ],
1630
                                    'defaults' => [
1631
                                        'controller' => '\LeadersLinked\Controller\FeedController',
1632
                                        'action' => 'commentDelete'
1633
                                    ]
1634
                                ]
1635
                            ],
1636
                        ]
1637
                    ],
1638
                    'share' => [
1639
                        'type' => Segment::class,
1640
                        'options' => [
1641
                            'route' => '/share/:id[/company/:company_id][/group/:group_id][/encoding/:encoding]',
1642
                            'constraints' => [
1643
                                'id' => '[A-Za-z0-9\-]+\=*',
1644
                                'company_id' => '[A-Za-z0-9\-]+\=*',
1645
                                'group_id' => '[A-Za-z0-9\-]+\=*',
1646
                                'encoding' => 'base64'
1647
                            ],
1648
                            'defaults' => [
1649
                                'controller' => '\LeadersLinked\Controller\FeedController',
1650
                                'action' => 'share'
1651
                            ]
1652
                        ]
1653
                    ],
1654
                    'save-reaction' => [
1655
                        'type' => Segment::class,
1656
                        'options' => [
1657
                            'route' => '/save-reaction/:id',
1658
                            'constraints' => [
1659
                                'id' => '[A-Za-z0-9\-]+\=*',
1660
                            ],
1661
                            'defaults' => [
1662
                                'controller' => '\LeadersLinked\Controller\FeedController',
1663
                                'action' => 'saveReaction'
1664
                            ]
1665
                        ]
1666
                    ],
1667
 
1668
                    'delete-reaction' => [
1669
                        'type' => Segment::class,
1670
                        'options' => [
1671
                            'route' => '/delete-reaction/:id',
1672
                            'constraints' => [
1673
                                'id' => '[A-Za-z0-9\-]+\=*',
1674
                            ],
1675
                            'defaults' => [
1676
                                'controller' => '\LeadersLinked\Controller\FeedController',
1677
                                'action' => 'deleteReaction'
1678
                            ]
1679
                        ]
1680
                    ],
1681
                    'add' => [
1682
                        'type' => Segment::class,
1683
                        'options' => [
1684
                            'route' => '/add[/company/:company_id][/group/:group_id][/encoding/:encoding]',
1685
                            'constraints' => [
1686
                                'company_id' => '[A-Za-z0-9\-]+\=*',
1687
                                'group_id' => '[A-Za-z0-9\-]+\=*',
1688
                                'encoding' => 'base64'
1689
                            ],
1690
                            'defaults' => [
1691
                                'controller' => '\LeadersLinked\Controller\FeedController',
1692
                                'action' => 'add'
1693
                            ]
1694
                        ]
1695
                    ],
1696
                    'vote' => [
1697
                        'type' => Segment::class,
1698
                        'options' => [
1699
                            'route' => '/vote/:id',
1700
                            'constraints' => [
1701
                                'id' => '[A-Za-z0-9\-]+\=*',
1702
                            ],
1703
                            'defaults' => [
1704
                                'controller' => '\LeadersLinked\Controller\FeedController',
1705
                                'action' => 'vote'
1706
                            ]
1707
                        ]
1708
                    ],
1709
                ],
1710
            ],
1711
            'job' => [
1712
                'type' => Literal::class,
1713
                'options' => [
1714
                    'route' => '/job',
1715
                    'defaults' => [
1716
                        'controller' => '\LeadersLinked\Controller\JobController',
1717
                        'action' => 'index'
1718
                    ]
1719
                ],
1720
                'may_terminate' => true,
1721
                'child_routes' => [
1722
                    'view' => [
1723
                        'type' => Segment::class,
1724
                        'options' => [
1725
                            'route' => '/view/:id',
1726
                            'constraints' => [
1727
                                'id' => '[A-Za-z0-9\-]+\=*'
1728
                            ],
1729
                            'defaults' => [
1730
                                'controller' => '\LeadersLinked\Controller\JobController',
1731
                                'action' => 'view'
1732
                            ]
1733
                        ]
1734
                    ],
1735
                    'apply-job' => [
1736
                        'type' => Segment::class,
1737
                        'options' => [
1738
                            'route' => '/apply-job/:id',
1739
                            'constraints' => [
1740
                                'id' => '[A-Za-z0-9\-]+\=*'
1741
                            ],
1742
                            'defaults' => [
1743
                                'controller' => '\LeadersLinked\Controller\JobController',
1744
                                'action' => 'applyJob'
1745
                            ]
1746
                        ]
1747
                    ],
1748
                    'remove-apply-job' => [
1749
                        'type' => Segment::class,
1750
                        'options' => [
1751
                            'route' => '/remove-apply-job/:id',
1752
                            'constraints' => [
1753
                                'id' => '[A-Za-z0-9\-]+\=*'
1754
                            ],
1755
                            'defaults' => [
1756
                                'controller' => '\LeadersLinked\Controller\JobController',
1757
                                'action' => 'removeApplyJob'
1758
                            ]
1759
                        ]
1760
                    ],
1761
                    'save-job' => [
1762
                        'type' => Segment::class,
1763
                        'options' => [
1764
                            'route' => '/save-job/:id',
1765
                            'constraints' => [
1766
                                'id' => '[A-Za-z0-9\-]+\=*'
1767
                            ],
1768
                            'defaults' => [
1769
                                'controller' => '\LeadersLinked\Controller\JobController',
1770
                                'action' => 'saveJob'
1771
                            ]
1772
                        ]
1773
                    ],
1774
                    'remove-save-job' => [
1775
                        'type' => Segment::class,
1776
                        'options' => [
1777
                            'route' => '/remove-save-job/:id',
1778
                            'constraints' => [
1779
                                'id' => '[A-Za-z0-9\-]+\=*'
1780
                            ],
1781
                            'defaults' => [
1782
                                'controller' => '\LeadersLinked\Controller\JobController',
1783
                                'action' => 'removeSaveJob'
1784
                            ]
1785
                        ]
1786
                    ],
1787
                    'applied-jobs' => [
1788
                        'type' => Literal::class,
1789
                        'options' => [
1790
                            'route' => '/applied-jobs',
1791
                            'defaults' => [
1792
                                'controller' => '\LeadersLinked\Controller\JobController',
1793
                                'action' => 'appliedJobs'
1794
                            ]
1795
                        ]
1796
                    ],
1797
                    'saved-jobs' => [
1798
                        'type' => Literal::class,
1799
                        'options' => [
1800
                            'route' => '/saved-jobs',
1801
                            'defaults' => [
1802
                                'controller' => '\LeadersLinked\Controller\JobController',
1803
                                'action' => 'savedJobs'
1804
                            ]
1805
                        ]
1806
                    ],
1807
                ]
1808
            ],
1809
            /*
1810
              'job' => [
1811
              'type' => Literal::class,
1812
              'options' => [
1813
              'route' => '/job',
1814
              'defaults' => [
1815
              'controller' => '\LeadersLinked\Controller\JobController',
1816
              'action' => 'index'
1817
              ]
1818
              ],
1819
              'may_terminate' => true,
1820
              'child_routes' => [
1821
              'view' => [
1822
              'type' => Segment::class,
1823
              'options' => [
1824
              'route' => '/view/:id',
1825
              'constraints' => [
1826
              'id' => '[A-Za-z0-9\-]+\=*'
1827
              ],
1828
              'defaults' => [
1829
              'controller' => '\LeadersLinked\Controller\CompanyController',
1830
              'action' => 'job'
1831
              ]
1832
              ]
1833
              ],
1834
              ]
1835
              ],
1836
             */
1837
            'search' => [
1838
                'type' => Segment::class,
1839
                'options' => [
1840
                    'route' => '/search[/entity/:entity]',
1841
                    'constraints' => [
1842
                        'entity' => 'user|company|group|job'
1843
                    ],
1844
                    'defaults' => [
1845
                        'controller' => '\LeadersLinked\Controller\SearchController',
1846
                        'action' => 'index'
1847
                    ]
1848
                ],
1849
            ],
1850
            'group' => [
1851
                'type' => Literal::class,
1852
                'options' => [
1853
                    'route' => '/group',
1854
                    'defaults' => [
1855
                        'controller' => '\LeadersLinked\GroupController',
1856
                        'action' => 'index'
1857
                    ]
1858
                ],
1859
                'may_terminate' => true,
1860
                'child_routes' => [
1861
                    'view' => [
1862
                        'type' => Segment::class,
1863
                        'options' => [
1864
                            'route' => '/view/:id',
1865
                            'constraints' => [
1866
                                'id' => '[A-Za-z0-9\-]+\=*'
1867
                            ],
1868
                            'defaults' => [
1869
                                'controller' => '\LeadersLinked\Controller\GroupController',
1870
                                'action' => 'view'
1871
                            ]
1872
                        ]
1873
                    ],
1874
                    'request' => [
1875
                        'type' => Segment::class,
1876
                        'options' => [
1877
                            'route' => '/request/:id',
1878
                            'constraints' => [
1879
                                'id' => '[A-Za-z0-9\-]+\=*'
1880
                            ],
1881
                            'defaults' => [
1882
                                'controller' => '\LeadersLinked\Controller\GroupController',
1883
                                'action' => 'request'
1884
                            ]
1885
                        ]
1886
                    ],
1887
                    'leave' => [
1888
                        'type' => Segment::class,
1889
                        'options' => [
1890
                            'route' => '/leave/:id',
1891
                            'constraints' => [
1892
                                'id' => '[A-Za-z0-9\-]+\=*'
1893
                            ],
1894
                            'defaults' => [
1895
                                'controller' => '\LeadersLinked\Controller\GroupController',
1896
                                'action' => 'leave'
1897
                            ]
1898
                        ]
1899
                    ],
1900
                    'accept' => [
1901
                        'type' => Segment::class,
1902
                        'options' => [
1903
                            'route' => '/accept/:id',
1904
                            'constraints' => [
1905
                                'id' => '[A-Za-z0-9\-]+\=*'
1906
                            ],
1907
                            'defaults' => [
1908
                                'controller' => '\LeadersLinked\Controller\GroupController',
1909
                                'action' => 'accept'
1910
                            ]
1911
                        ]
1912
                    ],
1913
                    'cancel' => [
1914
                        'type' => Segment::class,
1915
                        'options' => [
1916
                            'route' => '/cancel/:id',
1917
                            'constraints' => [
1918
                                'id' => '[A-Za-z0-9\-]+\=*'
1919
                            ],
1920
                            'defaults' => [
1921
                                'controller' => '\LeadersLinked\Controller\GroupController',
1922
                                'action' => 'cancel'
1923
                            ]
1924
                        ]
1925
                    ],
1926
                    'reject' => [
1927
                        'type' => Segment::class,
1928
                        'options' => [
1929
                            'route' => '/reject/:id',
1930
                            'constraints' => [
1931
                                'id' => '[A-Za-z0-9\-]+\=*'
1932
                            ],
1933
                            'defaults' => [
1934
                                'controller' => '\LeadersLinked\Controller\GroupController',
1935
                                'action' => 'reject'
1936
                            ]
1937
                        ]
1938
                    ],
1939
                    'joined-groups' => [
1940
                        'type' => Literal::class,
1941
                        'options' => [
1942
                            'route' => '/joined-groups',
1943
                            'defaults' => [
1944
                                'controller' => '\LeadersLinked\Controller\GroupController',
1945
                                'action' => 'joinedGroups'
1946
                            ]
1947
                        ],
1948
                    ],
1949
                    'requests-sent' => [
1950
                        'type' => Literal::class,
1951
                        'options' => [
1952
                            'route' => '/requests-sent',
1953
                            'defaults' => [
1954
                                'controller' => '\LeadersLinked\Controller\GroupController',
1955
                                'action' => 'requestsSent'
1956
                            ]
1957
                        ],
1958
                    ],
1959
                    'invitations-received' => [
1960
                        'type' => Literal::class,
1961
                        'options' => [
1962
                            'route' => '/invitations-received',
1963
                            'defaults' => [
1964
                                'controller' => '\LeadersLinked\Controller\GroupController',
1965
                                'action' => 'invitationsReceived'
1966
                            ]
1967
                        ],
1968
                    ],
1969
                    'my-groups' => [
1970
                        'type' => Literal::class,
1971
                        'options' => [
1972
                            'route' => '/my-groups',
1973
                            'defaults' => [
1974
                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
1975
                                'action' => 'index'
1976
                            ]
1977
                        ],
1978
                        'may_terminate' => true,
1979
                        'child_routes' => [
1980
                            'add' => [
1981
                                'type' => Literal::class,
1982
                                'options' => [
1983
                                    'route' => '/add',
1984
                                    'defaults' => [
1985
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1986
                                        'action' => 'add'
1987
                                    ]
1988
                                ]
1989
                            ],
1990
                            'edit' => [
1991
                                'type' => Segment::class,
1992
                                'options' => [
1993
                                    'route' => '/edit/:id',
1994
                                    'constraints' => [
1995
                                        'id' => '[A-Za-z0-9\-]+\=*'
1996
                                    ],
1997
                                    'defaults' => [
1998
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1999
                                        'action' => 'edit'
2000
                                    ]
2001
                                ]
2002
                            ],
2003
                            'delete' => [
2004
                                'type' => Segment::class,
2005
                                'options' => [
2006
                                    'route' => '/delete/:id',
2007
                                    'constraints' => [
2008
                                        'id' => '[A-Za-z0-9\-]+\=*'
2009
                                    ],
2010
                                    'defaults' => [
2011
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
2012
                                        'action' => 'delete'
2013
                                    ]
2014
                                ]
2015
                            ],
2016
                            'extended' => [
2017
                                'type' => Segment::class,
2018
                                'options' => [
2019
                                    'route' => '/extended/:id',
2020
                                    'constraints' => [
2021
                                        'id' => '[A-Za-z0-9\-]+\=*'
2022
                                    ],
2023
                                    'defaults' => [
2024
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
2025
                                        'action' => 'extended'
2026
                                    ]
2027
                                ]
2028
                            ],
2029
                            'image' => [
2030
                                'type' => Segment::class,
2031
                                'options' => [
2032
                                    'route' => '/image/:id/operation/:operation',
2033
                                    'constraints' => [
2034
                                        'id' => '[A-Za-z0-9\-]+\=*',
2035
                                        'operation' => 'upload|delete'
2036
                                    ],
2037
                                    'defaults' => [
2038
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
2039
                                        'action' => 'image'
2040
                                    ]
2041
                                ]
2042
                            ],
2043
                            'cover' => [
2044
                                'type' => Segment::class,
2045
                                'options' => [
2046
                                    'route' => '/cover/:id/operation/:operation',
2047
                                    'constraints' => [
2048
                                        'id' => '[A-Za-z0-9\-]+\=*',
2049
                                        'operation' => 'upload|delete'
2050
                                    ],
2051
                                    'defaults' => [
2052
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
2053
                                        'action' => 'cover'
2054
                                    ]
2055
                                ]
2056
                            ],
2057
                            'privacy' => [
2058
                                'type' => Segment::class,
2059
                                'options' => [
2060
                                    'route' => '/privacy/:id',
2061
                                    'constraints' => [
2062
                                        'id' => '[A-Za-z0-9\-]+\=*'
2063
                                    ],
2064
                                    'defaults' => [
2065
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
2066
                                        'action' => 'privacy'
2067
                                    ]
2068
                                ]
2069
                            ],
2070
                            'website' => [
2071
                                'type' => Segment::class,
2072
                                'options' => [
2073
                                    'route' => '/website/:id',
2074
                                    'constraints' => [
2075
                                        'id' => '[A-Za-z0-9\-]+\=*'
2076
                                    ],
2077
                                    'defaults' => [
2078
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
2079
                                        'action' => 'website'
2080
                                    ]
2081
                                ]
2082
                            ],
2083
                            'industry' => [
2084
                                'type' => Segment::class,
2085
                                'options' => [
2086
                                    'route' => '/industry/:id',
2087
                                    'constraints' => [
2088
                                        'id' => '[A-Za-z0-9\-]+\=*'
2089
                                    ],
2090
                                    'defaults' => [
2091
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
2092
                                        'action' => 'industry'
2093
                                    ]
2094
                                ]
2095
                            ],
2096
                            'accessibility' => [
2097
                                'type' => Segment::class,
2098
                                'options' => [
2099
                                    'route' => '/accessibility/:id',
2100
                                    'constraints' => [
2101
                                        'id' => '[A-Za-z0-9\-]+\=*'
2102
                                    ],
2103
                                    'defaults' => [
2104
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
2105
                                        'action' => 'accessibility'
2106
                                    ]
2107
                                ]
2108
                            ],
2109
                            'type' => [
2110
                                'type' => Segment::class,
2111
                                'options' => [
2112
                                    'route' => '/type/:id',
2113
                                    'constraints' => [
2114
                                        'id' => '[A-Za-z0-9\-]+\=*'
2115
                                    ],
2116
                                    'defaults' => [
2117
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
2118
                                        'action' => 'type'
2119
                                    ]
2120
                                ]
2121
                            ],
2122
                            'status' => [
2123
                                'type' => Segment::class,
2124
                                'options' => [
2125
                                    'route' => '/status/:id',
2126
                                    'constraints' => [
2127
                                        'id' => '[A-Za-z0-9\-]+\=*'
2128
                                    ],
2129
                                    'defaults' => [
2130
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
2131
                                        'action' => 'status'
2132
                                    ]
2133
                                ]
2134
                            ],
2135
                            'members' => [
2136
                                'type' => Segment::class,
2137
                                'options' => [
2138
                                    'route' => '/members/:id',
2139
                                    'constraints' => [
2140
                                        'id' => '[A-Za-z0-9\-]+\=*'
2141
                                    ],
2142
                                    'defaults' => [
2143
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
2144
                                        'action' => 'members'
2145
                                    ]
2146
                                ],
2147
                                'may_terminate' => true,
2148
                                'child_routes' => [
2149
                                    'invite' => [
2150
                                        'type' => Segment::class,
2151
                                        'options' => [
2152
                                            'route' => '/invite/:user_id',
2153
                                            'constraints' => [
2154
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
2155
                                            ],
2156
                                            'defaults' => [
2157
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
2158
                                                'action' => 'invite'
2159
                                            ]
2160
                                        ]
2161
                                    ],
2162
                                    'approve' => [
2163
                                        'type' => Segment::class,
2164
                                        'options' => [
2165
                                            'route' => '/approve/:user_id',
2166
                                            'constraints' => [
2167
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
2168
                                            ],
2169
                                            'defaults' => [
2170
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
2171
                                                'action' => 'approve'
2172
                                            ]
2173
                                        ]
2174
                                    ],
2175
                                    'reject' => [
2176
                                        'type' => Segment::class,
2177
                                        'options' => [
2178
                                            'route' => '/reject/:user_id',
2179
                                            'constraints' => [
2180
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
2181
                                            ],
2182
                                            'defaults' => [
2183
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
2184
                                                'action' => 'reject'
2185
                                            ]
2186
                                        ]
2187
                                    ],
2188
                                    'cancel' => [
2189
                                        'type' => Segment::class,
2190
                                        'options' => [
2191
                                            'route' => '/cancel/:user_id',
2192
                                            'constraints' => [
2193
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
2194
                                            ],
2195
                                            'defaults' => [
2196
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
2197
                                                'action' => 'cancel'
2198
                                            ]
2199
                                        ]
2200
                                    ],
2201
                                ]
2202
                            ],
2203
                        ]
2204
                    ]
2205
                ]
2206
            ],
2207
            'profile' => [
2208
                'type' => Literal::class,
2209
                'options' => [
2210
                    'route' => '/profile',
2211
                    'defaults' => [
2212
                        'controller' => '\LeadersLinked\ControllerProfileController',
2213
                        'action' => 'index'
2214
                    ]
2215
                ],
2216
                'may_terminate' => true,
2217
                'child_routes' => [
119 efrain 2218
 
1 efrain 2219
                    'people-viewed-profile' => [
2220
                        'type' => Literal::class,
2221
                        'options' => [
2222
                            'route' => '/people-viewed-profile',
2223
                            'defaults' => [
2224
                                'controller' => '\LeadersLinked\Controller\ProfileController',
2225
                                'action' => 'peopleViewedProfile'
2226
                            ]
2227
                        ]
2228
                    ],
2229
                    'view' => [
2230
                        'type' => Segment::class,
2231
                        'options' => [
2232
                            'route' => '/view/:id',
2233
                            'constraints' => [
2234
                                'id' => '[A-Za-z0-9\-]+\=*'
2235
                            ],
2236
                            'defaults' => [
2237
                                'controller' => '\LeadersLinked\Controller\ProfileController',
2238
                                'action' => 'view'
2239
                            ]
2240
                        ]
2241
                    ],
2242
                    'self-evaluation' => [
2243
                        'type' => Literal::class,
2244
                        'options' => [
2245
                            'route' => '/self-evaluation',
2246
                            'defaults' => [
2247
                                'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
2248
                                'action' => 'index'
2249
                            ]
2250
                        ],
2251
                        'may_terminate' => true,
2252
                        'child_routes' => [
2253
                            'take-a-test' => [
2254
                                'type' => Segment::class,
2255
                                'options' => [
2256
                                    'route' => '/take-a-test/:id',
2257
                                    'constraints' => [
2258
                                        'id' => '[A-Za-z0-9\-]+\=*'
2259
                                    ],
2260
                                    'defaults' => [
2261
                                        'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
2262
                                        'action' => 'takeaTest'
2263
                                    ]
2264
                                ]
2265
                            ],
2266
                            'report' => [
2267
                                'type' => Segment::class,
2268
                                'options' => [
2269
                                    'route' => '/report/:id',
2270
                                    'constraints' => [
2271
                                        'id' => '[A-Za-z0-9\-]+\=*'
2272
                                    ],
2273
                                    'defaults' => [
2274
                                        'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
2275
                                        'action' => 'report'
2276
                                    ]
2277
                                ]
2278
                            ],
2279
                        ]
2280
                    ],
2281
                    'performance-evaluation' => [
2282
                        'type' => Literal::class,
2283
                        'options' => [
2284
                            'route' => '/performance-evaluation',
2285
                            'defaults' => [
2286
                                'controller' => '\LeadersLinked\Controller\PerformanceEvaluationController',
2287
                                'action' => 'index'
2288
                            ]
2289
                        ],
2290
                        'may_terminate' => true,
2291
                        'child_routes' => [
2292
                            'take-a-test' => [
2293
                                'type' => Segment::class,
2294
                                'options' => [
2295
                                    'route' => '/take-a-test/:id',
2296
                                    'constraints' => [
2297
                                        'id' => '[A-Za-z0-9\-]+\=*'
2298
                                    ],
2299
                                    'defaults' => [
2300
                                        'controller' => '\LeadersLinked\Controller\PerformanceEvaluationController',
2301
                                        'action' => 'takeaTest'
2302
                                    ]
2303
                                ]
2304
                            ],
2305
                            'report' => [
2306
                                'type' => Segment::class,
2307
                                'options' => [
2308
                                    'route' => '/report/:id',
2309
                                    'constraints' => [
2310
                                        'id' => '[A-Za-z0-9\-]+\=*'
2311
                                    ],
2312
                                    'defaults' => [
2313
                                        'controller' => '\LeadersLinked\Controller\PerformanceEvaluationController',
2314
                                        'action' => 'report'
2315
                                    ]
2316
                                ]
2317
                            ],
2318
                        ]
2319
                    ],
2320
                    'my-profiles' => [
2321
                        'type' => Literal::class,
2322
                        'options' => [
2323
                            'route' => '/my-profiles',
2324
                            'defaults' => [
2325
                                'controller' => '\LeadersLinked\Controller\MyProfilesController',
2326
                                'action' => 'index'
2327
                            ]
2328
                        ],
2329
                        'may_terminate' => true,
2330
                        'child_routes' => [
2331
                            'add' => [
2332
                                'type' => Literal::class,
2333
                                'options' => [
2334
                                    'route' => '/add',
2335
                                    'defaults' => [
2336
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2337
                                        'action' => 'add'
2338
                                    ]
2339
                                ]
2340
                            ],
2341
                            'edit' => [
2342
                                'type' => Segment::class,
2343
                                'options' => [
2344
                                    'route' => '/edit/:id',
2345
                                    'constraints' => [
2346
                                        'id' => '[A-Za-z0-9\-]+\=*'
2347
                                    ],
2348
                                    'defaults' => [
2349
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2350
                                        'action' => 'edit'
2351
                                    ]
2352
                                ]
2353
                            ],
2354
                            'delete' => [
2355
                                'type' => Segment::class,
2356
                                'options' => [
2357
                                    'route' => '/delete/:id',
2358
                                    'constraints' => [
2359
                                        'id' => '[A-Za-z0-9\-]+\=*'
2360
                                    ],
2361
                                    'defaults' => [
2362
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2363
                                        'action' => 'delete'
2364
                                    ]
2365
                                ]
2366
                            ],
2367
                            'extended' => [
2368
                                'type' => Segment::class,
2369
                                'options' => [
2370
                                    'route' => '/extended/:id',
2371
                                    'constraints' => [
2372
                                        'id' => '[A-Za-z0-9\-]+\=*'
2373
                                    ],
2374
                                    'defaults' => [
2375
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2376
                                        'action' => 'extended'
2377
                                    ]
2378
                                ]
2379
                            ],
2380
                            'image' => [
2381
                                'type' => Segment::class,
2382
                                'options' => [
2383
                                    'route' => '/image/:id/operation/:operation',
2384
                                    'constraints' => [
2385
                                        'id' => '[A-Za-z0-9\-]+\=*',
2386
                                        'operation' => 'upload|delete'
2387
                                    ],
2388
                                    'defaults' => [
2389
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2390
                                        'action' => 'image'
2391
                                    ]
2392
                                ]
2393
                            ],
2394
                            'cover' => [
2395
                                'type' => Segment::class,
2396
                                'options' => [
2397
                                    'route' => '/cover/:id/operation/:operation',
2398
                                    'constraints' => [
2399
                                        'id' => '[A-Za-z0-9\-]+\=*',
2400
                                        'operation' => 'upload|delete'
2401
                                    ],
2402
                                    'defaults' => [
2403
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2404
                                        'action' => 'cover'
2405
                                    ]
2406
                                ]
2407
                            ],
2408
                            'experience' => [
2409
                                'type' => Segment::class,
2410
                                'options' => [
2411
                                    'route' => '/experience/:id/operation/:operation[/:user_experience_id]',
2412
                                    'constraints' => [
2413
                                        'id' => '[A-Za-z0-9\-]+\=*',
2414
                                        'operation' => 'add|edit|delete',
2415
                                        'user_education_id' => '[A-Za-z0-9\-]+\=*'
2416
                                    ],
2417
                                    'defaults' => [
2418
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2419
                                        'action' => 'experience'
2420
                                    ]
2421
                                ]
2422
                            ],
2423
                            'education' => [
2424
                                'type' => Segment::class,
2425
                                'options' => [
2426
                                    'route' => '/education/:id/operation/:operation[/:user_education_id]',
2427
                                    'constraints' => [
2428
                                        'id' => '[A-Za-z0-9\-]+\=*',
2429
                                        'operation' => 'add|edit|delete',
2430
                                        'user_education_id' => '[A-Za-z0-9\-]+\=*'
2431
                                    ],
2432
                                    'defaults' => [
2433
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2434
                                        'action' => 'education'
2435
                                    ]
2436
                                ]
2437
                            ],
2438
                            'language' => [
2439
                                'type' => Segment::class,
2440
                                'options' => [
2441
                                    'route' => '/language/:id',
2442
                                    'constraints' => [
2443
                                        'id' => '[A-Za-z0-9\-]+\=*'
2444
                                    ],
2445
                                    'defaults' => [
2446
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2447
                                        'action' => 'language'
2448
                                    ]
2449
                                ]
2450
                            ],
2451
                            'location' => [
2452
                                'type' => Segment::class,
2453
                                'options' => [
2454
                                    'route' => '/location/:id',
2455
                                    'constraints' => [
2456
                                        'id' => '[A-Za-z0-9\-]+\=*'
2457
                                    ],
2458
                                    'defaults' => [
2459
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2460
                                        'action' => 'location'
2461
                                    ]
2462
                                ]
2463
                            ],
2464
                            'skill' => [
2465
                                'type' => Segment::class,
2466
                                'options' => [
2467
                                    'route' => '/skill/:id',
2468
                                    'constraints' => [
2469
                                        'id' => '[A-Za-z0-9\-]+\=*'
2470
                                    ],
2471
                                    'defaults' => [
2472
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2473
                                        'action' => 'skill'
2474
                                    ]
2475
                                ]
2476
                            ],
2477
                            'social-network' => [
2478
                                'type' => Segment::class,
2479
                                'options' => [
2480
                                    'route' => '/social-network/:id',
2481
                                    'constraints' => [
2482
                                        'id' => '[A-Za-z0-9\-]+\=*'
2483
                                    ],
2484
                                    'defaults' => [
2485
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2486
                                        'action' => 'socialNetwork'
2487
                                    ]
2488
                                ]
2489
                            ],
2490
                            'aptitude' => [
2491
                                'type' => Segment::class,
2492
                                'options' => [
2493
                                    'route' => '/aptitude/:id',
2494
                                    'constraints' => [
2495
                                        'id' => '[A-Za-z0-9\-]+\=*'
2496
                                    ],
2497
                                    'defaults' => [
2498
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2499
                                        'action' => 'aptitude'
2500
                                    ]
2501
                                ]
2502
                            ],
2503
                            'hobby-and-interest' => [
2504
                                'type' => Segment::class,
2505
                                'options' => [
2506
                                    'route' => '/hobby-and-interest/:id',
2507
                                    'constraints' => [
2508
                                        'id' => '[A-Za-z0-9\-]+\=*'
2509
                                    ],
2510
                                    'defaults' => [
2511
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2512
                                        'action' => 'hobbyAndInterest'
2513
                                    ]
2514
                                ]
2515
                            ]
2516
                        ]
2517
                    ]
2518
                ]
2519
            ],
2520
            'company' => [
2521
                'type' => Literal::class,
2522
                'options' => [
2523
                    'route' => '/company',
2524
                    'defaults' => [
2525
                        'controller' => '\LeadersLinked\Controller\CompanyController',
2526
                        'action' => 'index'
2527
                    ]
2528
                ],
2529
                'may_terminate' => true,
2530
                'child_routes' => [
2531
                    'view' => [
2532
                        'type' => Segment::class,
2533
                        'options' => [
2534
                            'route' => '/view/:id',
2535
                            'constraints' => [
2536
                                'id' => '[A-Za-z0-9\-]+\=*'
2537
                            ],
2538
                            'defaults' => [
2539
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2540
                                'action' => 'view'
2541
                            ]
2542
                        ]
2543
                    ],
2544
                    'follow' => [
2545
                        'type' => Segment::class,
2546
                        'options' => [
2547
                            'route' => '/follow/:id',
2548
                            'constraints' => [
2549
                                'id' => '[A-Za-z0-9\-]+\=*'
2550
                            ],
2551
                            'defaults' => [
2552
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2553
                                'action' => 'follow'
2554
                            ]
2555
                        ]
2556
                    ],
2557
                    'unfollow' => [
2558
                        'type' => Segment::class,
2559
                        'options' => [
2560
                            'route' => '/unfollow/:id',
2561
                            'constraints' => [
2562
                                'id' => '[A-Za-z0-9\-]+\=*'
2563
                            ],
2564
                            'defaults' => [
2565
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2566
                                'action' => 'unfollow'
2567
                            ]
2568
                        ]
2569
                    ],
2570
                    'request' => [
2571
                        'type' => Segment::class,
2572
                        'options' => [
2573
                            'route' => '/request/:id',
2574
                            'constraints' => [
2575
                                'id' => '[A-Za-z0-9\-]+\=*'
2576
                            ],
2577
                            'defaults' => [
2578
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2579
                                'action' => 'request'
2580
                            ]
2581
                        ]
2582
                    ],
2583
                    'accept' => [
2584
                        'type' => Segment::class,
2585
                        'options' => [
2586
                            'route' => '/accept/:id',
2587
                            'constraints' => [
2588
                                'id' => '[A-Za-z0-9\-]+\=*'
2589
                            ],
2590
                            'defaults' => [
2591
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2592
                                'action' => 'accept'
2593
                            ]
2594
                        ]
2595
                    ],
2596
                    'cancel' => [
2597
                        'type' => Segment::class,
2598
                        'options' => [
2599
                            'route' => '/cancel/:id',
2600
                            'constraints' => [
2601
                                'id' => '[A-Za-z0-9\-]+\=*'
2602
                            ],
2603
                            'defaults' => [
2604
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2605
                                'action' => 'cancel'
2606
                            ]
2607
                        ]
2608
                    ],
2609
                    'reject' => [
2610
                        'type' => Segment::class,
2611
                        'options' => [
2612
                            'route' => '/reject/:id',
2613
                            'constraints' => [
2614
                                'id' => '[A-Za-z0-9\-]+\=*'
2615
                            ],
2616
                            'defaults' => [
2617
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2618
                                'action' => 'reject'
2619
                            ]
2620
                        ]
2621
                    ],
2622
                    'leave' => [
2623
                        'type' => Segment::class,
2624
                        'options' => [
2625
                            'route' => '/leave/:id',
2626
                            'constraints' => [
2627
                                'id' => '[A-Za-z0-9\-]+\=*'
2628
                            ],
2629
                            'defaults' => [
2630
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2631
                                'action' => 'leave'
2632
                            ]
2633
                        ]
2634
                    ],
2635
                    'following-companies' => [
2636
                        'type' => Literal::class,
2637
                        'options' => [
2638
                            'route' => '/following-companies',
2639
                            'defaults' => [
2640
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2641
                                'action' => 'followingCompanies'
2642
                            ]
2643
                        ],
2644
                    ],
2645
                    'requests-sent' => [
2646
                        'type' => Literal::class,
2647
                        'options' => [
2648
                            'route' => '/requests-sent',
2649
                            'defaults' => [
2650
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2651
                                'action' => 'requestsSent'
2652
                            ]
2653
                        ],
2654
                        'may_terminate' => true,
2655
                    ],
2656
                    'invitations-received' => [
2657
                        'type' => Literal::class,
2658
                        'options' => [
2659
                            'route' => '/invitations-received',
2660
                            'defaults' => [
2661
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2662
                                'action' => 'invitationsReceived'
2663
                            ]
2664
                        ],
2665
                        'may_terminate' => true,
2666
                    ],
2667
                    'i-work-with' => [
2668
                        'type' => Literal::class,
2669
                        'options' => [
2670
                            'route' => '/i-work-with',
2671
                            'defaults' => [
2672
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2673
                                'action' => 'iWorkWith'
2674
                            ]
2675
                        ],
2676
                        'may_terminate' => true,
2677
                    ],
2678
                    'my-companies' => [
2679
                        'type' => Literal::class,
2680
                        'options' => [
2681
                            'route' => '/my-companies',
2682
                            'defaults' => [
2683
                                'controller' => '\LeadersLinked\Controller\MyCompaniesController',
2684
                                'action' => 'index'
2685
                            ]
2686
                        ],
2687
                        'may_terminate' => true,
2688
                        'child_routes' => [
2689
                            'add' => [
2690
                                'type' => Literal::class,
2691
                                'options' => [
2692
                                    'route' => '/add',
2693
                                    'defaults' => [
2694
                                        'controller' => '\LeadersLinked\Controller\MyCompaniesController',
2695
                                        'action' => 'add'
2696
                                    ]
2697
                                ]
2698
                            ],
2699
                        ]
2700
                    ],
2701
                ]
2702
            ],
2703
            'account-settings' => [
2704
                'type' => Literal::class,
2705
                'options' => [
2706
                    'route' => '/account-settings',
2707
                    'defaults' => [
2708
                        'controller' => '\LeadersLinked\Controller\AccountSettingController',
2709
                        'action' => 'index'
2710
                    ]
2711
                ],
2712
                'may_terminate' => true,
2713
                'child_routes' => [
2714
                    'image' => [
2715
                        'type' => Segment::class,
2716
                        'options' => [
2717
                            'route' => '/image/:operation',
2718
                            'cconstraints' => [
2719
                                'operation' => 'upload|delete'
2720
                            ],
2721
                            'defaults' => [
2722
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2723
                                'action' => 'image',
2724
                                'operation' => 'upload'
2725
                            ]
2726
                        ]
2727
                    ],
2728
                    'deactivate' => [
2729
                        'type' => Literal::class,
2730
                        'options' => [
2731
                            'route' => '/deactivate',
2732
                            'defaults' => [
2733
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2734
                                'action' => 'deactivate'
2735
                            ]
2736
                        ]
2737
                    ],
2738
                    'notifications' => [
2739
                        'type' => Literal::class,
2740
                        'options' => [
2741
                            'route' => '/notification',
2742
                            'defaults' => [
2743
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2744
                                'action' => 'notification'
2745
                            ]
2746
                        ]
2747
                    ],
2748
                    'password' => [
2749
                        'type' => Literal::class,
2750
                        'options' => [
2751
                            'route' => '/password',
2752
                            'defaults' => [
2753
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2754
                                'action' => 'password'
2755
                            ]
2756
                        ]
2757
                    ],
2758
                    'add-facebook' => [
2759
                        'type' => Literal::class,
2760
                        'options' => [
2761
                            'route' => '/add-facebook',
2762
                            'defaults' => [
2763
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2764
                                'action' => 'addFacebook'
2765
                            ]
2766
                        ]
2767
                    ],
2768
                    'remove-facebook' => [
2769
                        'type' => Literal::class,
2770
                        'options' => [
2771
                            'route' => '/remove-facebook',
2772
                            'defaults' => [
2773
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2774
                                'action' => 'removeFacebook'
2775
                            ]
2776
                        ]
2777
                    ],
2778
                    'add-twitter' => [
2779
                        'type' => Literal::class,
2780
                        'options' => [
2781
                            'route' => '/add-twitter',
2782
                            'defaults' => [
2783
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2784
                                'action' => 'addTwitter'
2785
                            ]
2786
                        ]
2787
                    ],
2788
                    'remove-twitter' => [
2789
                        'type' => Literal::class,
2790
                        'options' => [
2791
                            'route' => '/remove-twitter',
2792
                            'defaults' => [
2793
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2794
                                'action' => 'removeTwitter'
2795
                            ]
2796
                        ]
2797
                    ],
2798
                    'add-google' => [
2799
                        'type' => Literal::class,
2800
                        'options' => [
2801
                            'route' => '/add-google',
2802
                            'defaults' => [
2803
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2804
                                'action' => 'addGoogle'
2805
                            ]
2806
                        ]
2807
                    ],
2808
                    'remove-google' => [
2809
                        'type' => Literal::class,
2810
                        'options' => [
2811
                            'route' => '/remove-google',
2812
                            'defaults' => [
2813
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2814
                                'action' => 'removeGoogle'
2815
                            ]
2816
                        ]
2817
                    ],
2818
                    'location' => [
2819
                        'type' => Literal::class,
2820
                        'options' => [
2821
                            'route' => '/location',
2822
                            'defaults' => [
2823
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2824
                                'action' => 'location'
2825
                            ]
2826
                        ]
2827
                    ],
2828
                    'privacy' => [
2829
                        'type' => Literal::class,
2830
                        'options' => [
2831
                            'route' => '/privacy',
2832
                            'defaults' => [
2833
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2834
                                'action' => 'privacy'
2835
                            ]
2836
                        ]
2837
                    ],
2838
                    'basic' => [
2839
                        'type' => Literal::class,
2840
                        'options' => [
2841
                            'route' => '/basic',
2842
                            'defaults' => [
2843
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2844
                                'action' => 'basic'
2845
                            ]
2846
                        ]
2847
                    ],
2848
                    'transactions' => [
2849
                        'type' => Literal::class,
2850
                        'options' => [
2851
                            'route' => '/transactions',
2852
                            'defaults' => [
2853
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2854
                                'action' => 'transactions'
2855
                            ]
2856
                        ],
2857
                        'may_terminate' => true,
2858
                        'child_routes' => [
2859
                            'add-funds' => [
2860
                                'type' => Literal::class,
2861
                                'options' => [
2862
                                    'route' => '/add-funds',
2863
                                    'defaults' => [
2864
                                        'controller' => '\LeadersLinked\Controller\AccountSettingController',
2865
                                        'action' => 'addFund'
2866
                                    ]
2867
                                ]
2868
                            ],
2869
                        ]
2870
                    ],
2871
                    'browsers' => [
2872
                        'type' => Literal::class,
2873
                        'options' => [
2874
                            'route' => '/browsers',
2875
                            'defaults' => [
2876
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2877
                                'action' => 'browsers'
2878
                            ]
2879
                        ]
2880
                    ],
2881
                    'ips' => [
2882
                        'type' => Literal::class,
2883
                        'options' => [
2884
                            'route' => '/ips',
2885
                            'defaults' => [
2886
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2887
                                'action' => 'ips'
2888
                            ]
2889
                        ]
2890
                    ],
2891
                    'devices' => [
2892
                        'type' => Literal::class,
2893
                        'options' => [
2894
                            'route' => '/devices',
2895
                            'defaults' => [
2896
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2897
                                'action' => 'devices'
2898
                            ]
2899
                        ]
2900
                    ],
2901
                    'delete-account' => [
2902
                        'type' => Literal::class,
2903
                        'options' => [
2904
                            'route' => '/delete-account',
2905
                            'defaults' => [
2906
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2907
                                'action' => 'deleteAccount'
2908
                            ]
2909
                        ]
2910
                    ],
2911
                ],
2912
                'may_terminate' => true
2913
            ],
2914
            'moodle' => [
2915
                'type' => Literal::class,
2916
                'options' => [
2917
                    'route' => '/moodle',
2918
                    'defaults' => [
2919
                        'controller' => '\LeadersLinked\Controller\MoodleController',
2920
                        'action' => 'index'
2921
                    ]
2922
                ],
2923
                'may_terminate' => true
2924
            ],
2925
            'oauth' => [
2926
                'type' => Literal::class,
2927
                'options' => [
2928
                    'route' => '/oauth',
2929
                    'defaults' => [
2930
                        'controller' => '\LeadersLinked\Controller\OauthController',
2931
                        'action' => 'index'
2932
                    ]
2933
                ],
2934
                'may_terminate' => true,
2935
                'child_routes' => [
2936
                    'facebook' => [
2937
                        'type' => Literal::class,
2938
                        'options' => [
2939
                            'route' => '/facebook',
2940
                            'defaults' => [
2941
                                'controller' => '\LeadersLinked\Controller\OauthController',
2942
                                'action' => 'facebook'
2943
                            ]
2944
                        ],
2945
                        'may_terminate' => true,
2946
                        'child_routes' => [
2947
                            'delete' => [
2948
                                'type' => Literal::class,
2949
                                'options' => [
2950
                                    'route' => '/delete',
2951
                                    'defaults' => [
2952
                                        'controller' => '\LeadersLinked\Controller\OauthController',
2953
                                        'action' => 'facebookDelete'
2954
                                    ]
2955
                                ],
2956
                                'may_terminate' => true,
2957
                            ],
2958
                            'cancel' => [
2959
                                'type' => Literal::class,
2960
                                'options' => [
2961
                                    'route' => '/cancel',
2962
                                    'defaults' => [
2963
                                        'controller' => '\LeadersLinked\Controller\OauthController',
2964
                                        'action' => 'facebookCancel'
2965
                                    ]
2966
                                ],
2967
                                'may_terminate' => true,
2968
                            ],
2969
                        ],
2970
                    ],
2971
                    'twitter' => [
2972
                        'type' => Literal::class,
2973
                        'options' => [
2974
                            'route' => '/twitter',
2975
                            'defaults' => [
2976
                                'controller' => '\LeadersLinked\Controller\OauthController',
2977
                                'action' => 'twitter'
2978
                            ]
2979
                        ],
2980
                        'may_terminate' => true,
2981
                    ],
2982
                    'google' => [
2983
                        'type' => Literal::class,
2984
                        'options' => [
2985
                            'route' => '/google',
2986
                            'defaults' => [
2987
                                'controller' => '\LeadersLinked\Controller\OauthController',
2988
                                'action' => 'google'
2989
                            ]
2990
                        ],
2991
                        'may_terminate' => true,
2992
                    ],
2993
                    /* 'facebook' => [
2994
                  'type' => Literal::class,
2995
                  'options' => [
2996
                  'route' => '/facebook',
2997
                  'defaults' => [
2998
                  'controller' => '\LeadersLinked\Controller\OauthController',
2999
                  'action' => 'facebook'
3000
                  ]
3001
                  ],
3002
                  'may_terminate' => true,
3003
                  'child_routes' => [
3004
                  'cancel' => [
3005
                  'type' => Literal::class,
3006
                  'options' => [
3007
                  'route' => '/cancel',
3008
                  'defaults' => [
3009
                  'controller' => '\LeadersLinked\Controller\OauthController',
3010
                  'action' => 'facebookCancel'
3011
                  ]
3012
                  ]
3013
                  ],
3014
                  'delete' => [
3015
                  'type' => Literal::class,
3016
                  'options' => [
3017
                  'route' => '/delete',
3018
                  'defaults' => [
3019
                  'controller' => '\LeadersLinked\Controller\OauthController',
3020
                  'action' => 'facebookDelete'
3021
                  ]
3022
                  ]
3023
                  ]
3024
                  ]
3025
                  ] */
3026
                ]
3027
            ],
3028
            'daily-pulse' => [
3029
                'type' => Literal::class,
3030
                'options' => [
3031
                    'route' => '/daily-pulse',
3032
                    'defaults' => [
3033
                        'controller' => '\LeadersLinked\Controller\DailyPulseController',
3034
                        'action' => 'index'
3035
                    ]
3036
                ],
3037
                'may_terminate' => true,
3038
                'child_routes' => [
3039
                    'how_are_you_feel' => [
3040
                        'type' => Segment::class,
3041
                        'options' => [
3042
                            'route' => '/how_are_you_feel/:id',
3043
                            'constraints' => [
3044
                                'id' => '[A-Za-z0-9\-]+\=*'
3045
                            ],
3046
                            'defaults' => [
3047
                                'controller' => '\LeadersLinked\Controller\DailyPulseController',
3048
                                'action' => 'howAreYouFeel'
3049
                            ]
3050
                        ]
3051
                    ],
3052
                    'climate_on_your_organization' => [
3053
                        'type' => Segment::class,
3054
                        'options' => [
3055
                            'route' => '/climate_on_your_organization/:id',
3056
                            'constraints' => [
3057
                                'id' => '[A-Za-z0-9\-]+\=*'
3058
                            ],
3059
                            'defaults' => [
3060
                                'controller' => '\LeadersLinked\Controller\DailyPulseController',
3061
                                'action' => 'climateOnYourOrganization'
3062
                            ]
3063
                        ]
3064
                    ],
3065
                ],
3066
            ],
3067
 
3068
 
3069
            'helpers' => [
3070
                'type' => Literal::class,
3071
                'options' => [
3072
                    'route' => '/helpers',
3073
                    'defaults' => [
3074
                        'controller' => '\LeadersLinked\Controller\HelperController',
3075
                        'action' => 'index'
3076
                    ]
3077
                ],
3078
                'may_terminate' => true,
3079
                'child_routes' => [
3080
                    'menu' => [
3081
                        'type' => Literal::class,
3082
                        'options' => [
3083
                            'route' => '/menu',
3084
                            'defaults' => [
3085
                                'controller' => '\LeadersLinked\Controller\HelperController',
3086
                                'action' => 'menu'
3087
                            ]
3088
                        ]
3089
                    ],
3090
 
3091
                    'search-people' => [
3092
                        'type' => Literal::class,
3093
                        'options' => [
3094
                            'route' => '/search-people',
3095
                            'defaults' => [
3096
                                'controller' => '\LeadersLinked\Controller\HelperController',
3097
                                'action' => 'searchPeople'
3098
                            ]
3099
                        ]
3100
                    ],
3101
                    'company-suggestion' => [
3102
                        'type' => Segment::class,
3103
                        'options' => [
3104
                            'route' => '/company-suggestion/:company_id',
3105
                            'constraints' => [
3106
                                'company_id' => '[A-Za-z0-9\-]+\=*'
3107
                            ],
3108
                            'defaults' => [
3109
                                'controller' => '\LeadersLinked\Controller\HelperController',
3110
                                'action' => 'companySuggestion'
3111
                            ]
3112
                        ]
3113
                    ],
3114
                    'posts' => [
3115
                        'type' => Literal::class,
3116
                        'options' => [
3117
                            'route' => '/posts',
3118
                            'defaults' => [
3119
                                'controller' => '\LeadersLinked\Controller\HelperController',
3120
                                'action' => 'posts'
3121
                            ]
3122
                        ]
3123
                    ],
3124
                    'people-you-may-know' => [
3125
                        'type' => Literal::class,
3126
                        'options' => [
3127
                            'route' => '/people-you-may-know',
3128
                            'defaults' => [
3129
                                'controller' => '\LeadersLinked\Controller\HelperController',
3130
                                'action' => 'peopleYouMayKnow'
3131
                            ]
3132
                        ]
3133
                    ],
3134
                    'people-viewed-profile' => [
3135
                        'type' => Segment::class,
3136
                        'options' => [
3137
                            'route' => '/people-viewed-profile/:user_profile_id',
3138
                            'constraints' => [
3139
                                'user_profile_id' => '[A-Za-z0-9\-]+\=*'
3140
                            ],
3141
                            'defaults' => [
3142
                                'controller' => '\LeadersLinked\Controller\HelperController',
3143
                                'action' => 'peopleViewedProfile'
3144
                            ]
3145
                        ]
3146
                    ],
3147
                    'company-follower' => [
3148
                        'type' => Segment::class,
3149
                        'options' => [
3150
                            'route' => '/company-follower/:company_id',
3151
                            'constraints' => [
3152
                                'company_id' => '[A-Za-z0-9\-]+\=*'
3153
                            ],
3154
                            'defaults' => [
3155
                                'controller' => '\LeadersLinked\Controller\HelperController',
3156
                                'action' => 'companyFollower'
3157
                            ]
3158
                        ]
3159
                    ],
3160
                    'group-members' => [
3161
                        'type' => Segment::class,
3162
                        'options' => [
3163
                            'route' => '/group-members/:group_id',
3164
                            'constraints' => [
3165
                                'group_id' => '[A-Za-z0-9\-]+\=*'
3166
                            ],
3167
                            'defaults' => [
3168
                                'controller' => '\LeadersLinked\Controller\HelperController',
3169
                                'action' => 'groupMembers'
3170
                            ]
3171
                        ],
3172
                        'may_terminate' => true,
3173
                        'child_routes' => [
3174
                            'invite' => [
3175
                                'type' => Literal::class,
3176
                                'options' => [
3177
                                    'route' => '/invite',
3178
                                    'defaults' => [
3179
                                        'controller' => '\LeadersLinked\Controller\HelperController',
3180
                                        'action' => 'groupMemberInvite'
3181
                                    ]
3182
                                ]
3183
                            ],
3184
                            'reject' => [
3185
                                'type' => Segment::class,
3186
                                'options' => [
3187
                                    'route' => '/reject/:user_id',
3188
                                    'constraints' => [
3189
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
3190
                                    ],
3191
                                    'defaults' => [
3192
                                        'controller' => '\LeadersLinked\Controller\HelperController',
3193
                                        'action' => 'groupMemberReject'
3194
                                    ]
3195
                                ]
3196
                            ],
3197
                            'cancel' => [
3198
                                'type' => Segment::class,
3199
                                'options' => [
3200
                                    'route' => '/cancel/:user_id',
3201
                                    'constraints' => [
3202
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
3203
                                    ],
3204
                                    'defaults' => [
3205
                                        'controller' => '\LeadersLinked\Controller\HelperController',
3206
                                        'action' => 'groupMemberCancel'
3207
                                    ]
3208
                                ]
3209
                            ],
3210
                            'approve' => [
3211
                                'type' => Segment::class,
3212
                                'options' => [
3213
                                    'route' => '/approve/:user_id',
3214
                                    'constraints' => [
3215
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
3216
                                    ],
3217
                                    'defaults' => [
3218
                                        'controller' => '\LeadersLinked\Controller\HelperController',
3219
                                        'action' => 'groupMemberApprove'
3220
                                    ]
3221
                                ]
3222
                            ],
3223
                        ]
3224
                    ],
3225
                    'groups-suggestion' => [
3226
                        'type' => Literal::class,
3227
                        'options' => [
3228
                            'route' => '/groups-suggestion',
3229
                            'defaults' => [
3230
                                'controller' => '\LeadersLinked\Controller\HelperController',
3231
                                'action' => 'groupsSuggestion'
3232
                            ]
3233
                        ]
3234
                    ],
3235
                    'my-groups' => [
3236
                        'type' => Literal::class,
3237
                        'options' => [
3238
                            'route' => '/my-groups',
3239
                            'defaults' => [
3240
                                'controller' => '\LeadersLinked\Controller\HelperController',
3241
                                'action' => 'myGroups'
3242
                            ]
3243
                        ]
3244
                    ],
117 efrain 3245
                    'group-types' => [
3246
                        'type' => Literal::class,
3247
                        'options' => [
3248
                            'route' => '/group-types',
3249
                            'defaults' => [
3250
                                'controller' => '\LeadersLinked\Controller\HelperController',
3251
                                'action' => 'groupTypes'
3252
                            ]
3253
                        ]
3254
                    ],
1 efrain 3255
                    'footer' => [
3256
                        'type' => Literal::class,
3257
                        'options' => [
3258
                            'route' => '/footer',
3259
                            'defaults' => [
3260
                                'controller' => '\LeadersLinked\Controller\HelperController',
3261
                                'action' => 'footer'
3262
                            ]
3263
                        ]
3264
                    ],
3265
                    'next-events' => [
3266
                        'type' => Literal::class,
3267
                        'options' => [
3268
                            'route' => '/next-events',
3269
                            'defaults' => [
3270
                                'controller' => '\LeadersLinked\Controller\HelperController',
3271
                                'action' => 'nextEvents'
3272
                            ]
3273
                        ]
3274
                    ],
3275
                    'company-sizes' => [
3276
                        'type' => Literal::class,
3277
                        'options' => [
3278
                            'route' => '/company-sizes',
3279
                            'defaults' => [
3280
                                'controller' => '\LeadersLinked\Controller\HelperController',
3281
                                'action' => 'companySizes'
3282
                            ]
3283
                        ]
3284
                    ],
3285
                    'degrees' => [
3286
                        'type' => Literal::class,
3287
                        'options' => [
3288
                            'route' => '/degrees',
3289
                            'defaults' => [
3290
                                'controller' => '\LeadersLinked\Controller\HelperController',
3291
                                'action' => 'degrees'
3292
                            ]
3293
                        ]
3294
                    ],
3295
                    'languages' => [
3296
                        'type' => Literal::class,
3297
                        'options' => [
3298
                            'route' => '/languages',
3299
                            'defaults' => [
3300
                                'controller' => '\LeadersLinked\Controller\HelperController',
3301
                                'action' => 'languages'
3302
                            ]
3303
                        ]
3304
                    ],
3305
 
3306
                    'skills' => [
3307
                        'type' => Literal::class,
3308
                        'options' => [
3309
                            'route' => '/skills',
3310
                            'defaults' => [
3311
                                'controller' => '\LeadersLinked\Controller\HelperController',
3312
                                'action' => 'skills'
3313
                            ]
3314
                        ]
3315
                    ],
3316
 
3317
                    'aptitudes' => [
3318
                        'type' => Literal::class,
3319
                        'options' => [
3320
                            'route' => '/aptitudes',
3321
                            'defaults' => [
3322
                                'controller' => '\LeadersLinked\Controller\HelperController',
3323
                                'action' => 'aptitudes'
3324
                            ]
3325
                        ]
3326
                    ],
3327
 
3328
                    'hobbies' => [
3329
                        'type' => Literal::class,
3330
                        'options' => [
3331
                            'route' => '/hobbies',
3332
                            'defaults' => [
3333
                                'controller' => '\LeadersLinked\Controller\HelperController',
3334
                                'action' => 'hobbies'
3335
                            ]
3336
                        ]
3337
                    ],
3338
 
3339
                    'industries' => [
3340
                        'type' => Literal::class,
3341
                        'options' => [
3342
                            'route' => '/industries',
3343
                            'defaults' => [
3344
                                'controller' => '\LeadersLinked\Controller\HelperController',
3345
                                'action' => 'industries'
3346
                            ]
3347
                        ]
3348
                    ],
3349
 
3350
                    'timezones' => [
3351
                        'type' => Literal::class,
3352
                        'options' => [
3353
                            'route' => '/timezones',
3354
                            'defaults' => [
3355
                                'controller' => '\LeadersLinked\Controller\HelperController',
3356
                                'action' => 'timeZones'
3357
                            ]
3358
                        ]
3359
                    ],
192 efrain 3360
 
3361
                    'abuse-report' => [
193 efrain 3362
                        'type' => Segment::class,
192 efrain 3363
                        'options' => [
3364
                            'route' => '/abuse-report/:type/:id',
3365
                            'constraints' => [
3366
                                'type' => 'feed|post|comment|message|chat-message|chat-group-message',
3367
                                'id' => '[A-Za-z0-9\-]+\=*',
3368
                            ],
3369
                            'defaults' => [
3370
                                'controller' => '\LeadersLinked\Controller\HelperController',
3371
                                'action' => 'abuseReport'
3372
                            ]
3373
                        ]
3374
                    ],
1 efrain 3375
                ]
3376
            ],
3377
            'help' => [
3378
                'type' => Literal::class,
3379
                'options' => [
3380
                    'route' => '/help',
3381
                    'defaults' => [
3382
                        'controller' => '\LeadersLinked\Controller\HelpController',
3383
                        'action' => 'send'
3384
                    ]
3385
                ],
3386
                'may_terminate' => true,
3387
            ],
3388
            'services' => [
3389
                'type' => Literal::class,
3390
                'options' => [
3391
                    'route' => '/services',
3392
                    'defaults' => [
3393
                        'controller' => '\LeadersLinked\Controller\ServiceController',
3394
                        'action' => 'index'
3395
                    ]
3396
                ],
3397
                'may_terminate' => true,
3398
                'child_routes' => [
3399
                    'storage' => [
3400
                        'type' => Segment::class,
3401
                        'options' => [
3402
                            'route' => '/storage/type/:type[/code/:code][/filename/:filename]',
3403
                            'constraints' => [
3404
                                'type' => 'user|user-profile|user-cover|company|company-cover|group|group-cover|job|chat|image|feed|post|microlearning-topic|microlearning-capsule|microlearning-slide',
3405
                                'code' => '[A-Za-z0-9\-]+\=*',
3406
                                'filename' => '[a-zA-Z0-9\-\_]+\.(jpg|jpeg|gif|png|mp3|mp4|flv|doc|pdf|docx|xls|ppt|pdf|xlsx|pptx)'
3407
                            ],
3408
                            // MjM5ODk0Mzgg
3409
                            'defaults' => [
3410
                                'controller' => '\LeadersLinked\Controller\ServiceController',
3411
                                'action' => 'storage'
3412
                            ]
3413
                        ]
3414
                    ],
3415
                    'device' => [
3416
                        'type' => Literal::class,
3417
                        'options' => [
3418
                            'route' => '/device',
3419
                            'defaults' => [
3420
                                'controller' => '\LeadersLinked\Controller\ServiceController',
3421
                                'action' => 'device'
3422
                            ]
3423
                        ]
3424
                    ],
3425
                    'fcm' => [
3426
                        'type' => Literal::class,
3427
                        'options' => [
3428
                            'route' => '/fcm',
3429
                            'defaults' => [
3430
                                'controller' => '\LeadersLinked\Controller\ServiceController',
3431
                                'action' => 'fcm'
3432
                            ]
3433
                        ]
3434
                    ],
3435
                    'signin' => [
3436
                        'type' => Literal::class,
3437
                        'options' => [
3438
                            'route' => '/signin',
3439
                            'defaults' => [
3440
                                'controller' => '\LeadersLinked\Controller\ServiceController',
3441
                                'action' => 'signin'
3442
                            ]
3443
                        ]
3444
                    ],
3445
                    'check-session' => [
3446
                        'type' => Literal::class,
3447
                        'options' => [
3448
                            'route' => '/check-session',
3449
                            'defaults' => [
3450
                                'controller' => '\LeadersLinked\Controller\ServiceController',
3451
                                'action' => 'checkSession'
3452
                            ]
3453
                        ]
3454
                    ],
3455
                    'signout' => [
3456
                        'type' => Literal::class,
3457
                        'options' => [
3458
                            'route' => '/signout',
3459
                            'defaults' => [
3460
                                'controller' => '\LeadersLinked\Controller\ServiceController',
3461
                                'action' => 'signout'
3462
                            ]
3463
                        ]
3464
                    ],
3465
                    'sync' => [
3466
                        'type' => Literal::class,
3467
                        'options' => [
3468
                            'route' => '/sync',
3469
                            'defaults' => [
3470
                                'controller' => '\LeadersLinked\Controller\ServiceController',
3471
                                'action' => 'sync'
3472
                            ]
3473
                        ]
3474
                    ],
3475
                    'sync-batch' => [
3476
                        'type' => Literal::class,
3477
                        'options' => [
3478
                            'route' => '/sync-batch',
3479
                            'defaults' => [
3480
                                'controller' => '\LeadersLinked\Controller\ServiceController',
3481
                                'action' => 'syncBatch'
3482
                            ]
3483
                        ]
3484
                    ],
3485
                    'delete-account' => [
3486
                        'type' => Literal::class,
3487
                        'options' => [
3488
                            'route' => '/delete-account',
3489
                            'defaults' => [
3490
                                'controller' => '\LeadersLinked\Controller\ServiceController',
3491
                                'action' => 'deleteAccount'
3492
                            ]
3493
                        ]
3494
                    ],
3495
                    'microlearning' => [
3496
                        'type' => Literal::class,
3497
                        'options' => [
3498
                            'route' => '/microlearning',
3499
                            'defaults' => [
3500
                                'controller' => '\LeadersLinked\Controller\ServiceMicrolearningController',
3501
                                'action' => 'index'
3502
                            ]
3503
                        ],
3504
                        'may_terminate' => true,
3505
                        'child_routes' => [
3506
                            'refresh' => [
3507
                                'type' => Literal::class,
3508
                                'options' => [
3509
                                    'route' => '/refresh',
3510
                                    'defaults' => [
3511
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
3512
                                        'action' => 'microlearningRefresh'
3513
                                    ]
3514
                                ]
3515
                            ],
3516
                            'delete-account' => [
3517
                                'type' => Literal::class,
3518
                                'options' => [
3519
                                    'route' => '/delete-account',
3520
                                    'defaults' => [
3521
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
3522
                                        'action' => 'deleteAccount'
3523
                                    ]
3524
                                ]
3525
                            ],
3526
                            'check-changes' => [
3527
                                'type' => Literal::class,
3528
                                'options' => [
3529
                                    'route' => '/check-changes',
3530
                                    'defaults' => [
3531
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
3532
                                        'action' => 'microlearningCheckChanges'
3533
                                    ]
3534
                                ]
3535
                            ],
3536
                            'capsules' => [
3537
                                'type' => Literal::class,
3538
                                'options' => [
3539
                                    'route' => '/capsules',
3540
                                    'defaults' => [
3541
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
3542
                                        'action' => 'microlearningCapsules'
3543
                                    ]
3544
                                ],
3545
                                'may_terminate' => true,
3546
                                'child_routes' => [
161 efrain 3547
 
3548
 
1 efrain 3549
                                    'comments' => [
3550
                                        'type' => Segment::class,
3551
                                        'options' => [
3552
                                            'route' => '/comments/:capsule_id',
3553
                                            'constraints' => [
3554
                                                'capsule_id' => '[A-Za-z0-9\-]+\=*'
3555
                                            ],
3556
                                            'defaults' => [
3557
                                                'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
3558
                                                'action' => 'index'
3559
                                            ]
3560
                                        ],
3561
                                        'may_terminate' => true,
3562
                                        'child_routes' => [
3563
                                            'add' => [
3564
                                                'type' => Literal::class,
3565
                                                'options' => [
3566
                                                    'route' => '/add',
3567
                                                    'defaults' => [
3568
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
3569
                                                        'action' => 'add'
3570
                                                    ]
3571
                                                ]
3572
                                            ],
3573
                                            'get' => [
3574
                                                'type' => Segment::class,
3575
                                                'options' => [
3576
                                                    'route' => '/get/:comment_id',
3577
                                                    'constraints' => [
3578
                                                        'comment_id' => '[A-Za-z0-9\-]+\=*'
3579
                                                    ],
3580
                                                    'defaults' => [
3581
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
3582
                                                        'action' => 'get'
3583
                                                    ]
3584
                                                ]
3585
                                            ],
3586
                                            'edit' => [
3587
                                                'type' => Segment::class,
3588
                                                'options' => [
3589
                                                    'route' => '/edit/:comment_id',
3590
                                                    'constraints' => [
3591
                                                        'comment_id' => '[A-Za-z0-9\-]+\=*'
3592
                                                    ],
3593
                                                    'defaults' => [
3594
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
3595
                                                        'action' => 'edit'
3596
                                                    ]
3597
                                                ]
3598
                                            ],
3599
                                            'delete' => [
3600
                                                'type' => Segment::class,
3601
                                                'options' => [
3602
                                                    'route' => '/delete/:comment_id',
3603
                                                    'constraints' => [
3604
                                                        'comment_id' => '[A-Za-z0-9\-]+\=*'
3605
                                                    ],
3606
                                                    'defaults' => [
3607
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
3608
                                                        'action' => 'delete'
3609
                                                    ]
3610
                                                ]
3611
                                            ],
3612
                                        ]
3613
                                    ],
3614
                                ]
3615
                            ],
3616
 
3617
                        ]
3618
                    ],
3619
                ]
3620
            ],
3621
            'marketplace' => [
3622
                'type' => Literal::class,
3623
                'options' => [
3624
                    'route' => '/marketplace',
3625
                    'defaults' => [
3626
                        'controller' => '\LeadersLinked\Controller\MarketPlaceController',
3627
                        'action' => 'index'
3628
                    ]
3629
                ],
3630
                'may_terminate' => true,
3631
                'child_routes' => [
3632
                    'categories' => [
3633
                        'type' => Segment::class,
3634
                        'options' => [
3635
                            'route' => '/categories',
3636
                            'defaults' => [
3637
                                'controller' => '\LeadersLinked\Controller\MarketPlaceController',
3638
                                'action' => 'getCategories'
3639
                            ]
3640
                        ]
3641
                    ],
3642
                    'enroll' => [
3643
                        'type' => Segment::class,
3644
                        'options' => [
3645
                            'route' => '/enroll/:company_id/:topic_id/:capsule_id',
3646
                            'constraints' => [
3647
                                'company_id' => '[A-Za-z0-9\-]+\=*',
3648
                                'topic_id' => '[A-Za-z0-9\-]+\=*',
3649
                                'capsule_id' => '[A-Za-z0-9\-]+\=*',
3650
                            ],
3651
                            'defaults' => [
3652
                                'controller' => '\LeadersLinked\Controller\MarketPlaceController',
3653
                                'action' => 'enroll'
3654
                            ]
3655
                        ]
3656
                    ],
3657
                    'claim' => [
3658
                        'type' => Segment::class,
3659
                        'options' => [
3660
                            'route' => '/claim/:id',
3661
                            'constraints' => [
3662
                                'id' => '[A-Za-z0-9\-]+\=*',
3663
                            ],
3664
                            'defaults' => [
3665
                                'controller' => '\LeadersLinked\Controller\MarketPlaceController',
3666
                                'action' => 'claim'
3667
                            ]
3668
                        ]
3669
                    ],
3670
                ]
3671
            ],
119 efrain 3672
            'microlearning' => [
3673
                'type' => Literal::class,
3674
                'options' => [
3675
                    'route' => '/microlearning',
3676
                    'defaults' => [
3677
                        'controller' => '\LeadersLinked\Controller\MicrolearningController',
3678
                        'action' => 'index'
3679
                    ]
3680
                ],
3681
                'may_terminate' => true,
3682
                'child_routes' => [
3683
                    'profile' => [
3684
                        'type' => Segment::class,
3685
                        'options' => [
3686
                            'route' => '/profile',
3687
                            'defaults' => [
3688
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3689
                                'action' => 'profile'
3690
                            ]
3691
                        ]
3692
                    ],
3693
                    'companies' => [
3694
                        'type' => Segment::class,
3695
                        'options' => [
3696
                            'route' => '/companies',
3697
                            'defaults' => [
3698
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3699
                                'action' => 'companies'
3700
                            ]
3701
                        ]
3702
                    ],
3703
                    'progress' => [
3704
                        'type' => Segment::class,
3705
                        'options' => [
3706
                            'route' => '/progress/:id',
3707
                            'constraints' => [
3708
                                'id' => '[A-Za-z0-9\-]+\=*',
3709
                            ],
3710
                            'defaults' => [
3711
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3712
                                'action' => 'progress'
3713
                            ]
3714
                        ]
3715
                    ],
3716
                    'timeline' => [
3717
                        'type' => Segment::class,
3718
                        'options' => [
3719
                            'route' => '/timeline',
3720
                            'defaults' => [
3721
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3722
                                'action' => 'timeline'
3723
                            ]
3724
                        ]
3725
                    ],
3726
                    'topics' => [
3727
                        'type' => Segment::class,
3728
                        'options' => [
3729
                            'route' => '/topics',
3730
                            'defaults' => [
3731
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3732
                                'action' => 'topics'
3733
                            ]
161 efrain 3734
                        ],
3735
                        'may_terminate' => true,
3736
 
119 efrain 3737
                    ],
161 efrain 3738
                    'get-topic' => [
3739
                        'type' => Segment::class,
3740
                        'options' => [
3741
                            'route' => '/get-topic/:id',
3742
                            'constraints' => [
3743
                                'id' => '[A-Za-z0-9\-]+\=*'
3744
                            ],
3745
                            'defaults' => [
3746
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3747
                                'action' => 'getTopic'
3748
                            ]
3749
                        ],
3750
                        'may_terminate' => true,
235 efrain 3751
                    ],
3752
                    'take-a-test' => [
3753
                        'type' => Segment::class,
3754
                        'options' => [
3755
                            'route' => '/take-a-test/:slide_id',
3756
                            'constraints' => [
3757
                                'slide_id' => '[A-Za-z0-9\-]+\=*',
3758
                            ],
3759
                            'defaults' => [
3760
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3761
                                'action' => 'takeTest'
3762
                            ]
3763
                        ],
3764
                        'may_terminate' => true,
3765
                    ],
119 efrain 3766
                    'capsules' => [
3767
                        'type' => Segment::class,
3768
                        'options' => [
3769
                            'route' => '/capsules/:topic_id',
3770
                            'constraints' => [
3771
                                'topic_id' => '[A-Za-z0-9\-]+\=*',
3772
                            ],
3773
                            'defaults' => [
3774
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3775
                                'action' => 'capsules'
3776
                            ]
161 efrain 3777
                        ],
3778
                        'may_terminate' => true,
119 efrain 3779
                    ],
161 efrain 3780
                    'get-capsule' => [
3781
                        'type' => Segment::class,
3782
                        'options' => [
3783
                            'route' => '/get-capsule/:id',
3784
                            'constraints' => [
3785
                                'id' => '[A-Za-z0-9\-]+\=*',
3786
                            ],
3787
                            'defaults' => [
3788
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3789
                                'action' => 'getCapsule'
3790
                            ],
3791
                            'may_terminate' => true,
3792
                        ],
3793
                    ],
119 efrain 3794
                    'slides' => [
3795
                        'type' => Segment::class,
3796
                        'options' => [
3797
                            'route' => '/slides/:topic_id/:capsule_id',
3798
                            'constraints' => [
3799
                                'topic_id' => '[A-Za-z0-9\-]+\=*',
3800
                                'capsule_id' => '[A-Za-z0-9\-]+\=*',
3801
 
3802
                            ],
3803
                            'defaults' => [
3804
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3805
                                'action' => 'slides'
3806
                            ]
161 efrain 3807
                        ],
3808
                        'may_terminate' => true,
119 efrain 3809
                    ],
161 efrain 3810
                    'get-slide' => [
3811
                        'type' => Segment::class,
3812
                        'options' => [
3813
                            'route' => '/get-slide/:id',
3814
                            'constraints' => [
3815
                                'id' => '[A-Za-z0-9\-]+\=*'
3816
                            ],
3817
                            'defaults' => [
3818
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3819
                                'action' => 'getSlide'
3820
                            ]
3821
                        ],
3822
                        'may_terminate' => true,
3823
                    ],
119 efrain 3824
                    'sync' => [
167 efrain 3825
 
119 efrain 3826
                        'type' => Segment::class,
3827
                        'options' => [
167 efrain 3828
                            'route' => '/sync/operation/:operation/topic/:topic_uuid[/capsule/:capsule_uuid][/slide/:slide_uuid][/]',
3829
                            'constraints' => [
3830
                                'topic_uuid' => '[A-Za-z0-9\-]+\=*',
3831
                                'capsule_uuid' => '[A-Za-z0-9\-]+\=*',
3832
                                'slide_uuid' => '[A-Za-z0-9\-]+\=*',
3833
                                'operation' => 'slide-view|capsule-close|topic-close',
3834
                            ],
119 efrain 3835
                            'defaults' => [
3836
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3837
                                'action' => 'sync'
3838
                            ]
3839
                        ]
3840
                    ],
3841
                    'last-capsule-in-progress' => [
3842
                        'type' => Segment::class,
3843
                        'options' => [
3844
                            'route' => '/last-capsule-in-progress',
3845
                            'defaults' => [
3846
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3847
                                'action' => 'lastCapsuleInProgress'
3848
                            ]
3849
                        ]
3850
                    ],
3851
                    'capsules-pending' => [
3852
                        'type' => Segment::class,
3853
                        'options' => [
3854
                            'route' => '/capsules-pending',
3855
                            'defaults' => [
3856
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3857
                                'action' => 'capsulesPending'
3858
                            ]
3859
                        ]
3860
                    ],
3861
                    'capsules-completed' => [
3862
                        'type' => Segment::class,
3863
                        'options' => [
3864
                            'route' => '/capsules-completed',
3865
                            'defaults' => [
3866
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3867
                                'action' => 'capsulesCompleted'
3868
                            ]
3869
                        ]
3870
                    ],
3871
                    'capsules-in-progress' => [
3872
                        'type' => Segment::class,
3873
                        'options' => [
3874
                            'route' => '/capsules-in-progress',
3875
                            'defaults' => [
3876
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3877
                                'action' => 'capsulesInProgress'
3878
                            ]
3879
                        ]
3880
                    ],
3881
                    'capsules-comments' => [
3882
                        'type' => Segment::class,
3883
                        'options' => [
3884
                            'route' => '/capsules-comments/:capsule_id',
3885
                            'constraints' => [
3886
                                'capsule_id' => '[A-Za-z0-9\-]+\=*',
3887
                            ],
3888
                            'defaults' => [
3889
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3890
                                'action' => 'capsuleComments'
3891
                            ]
3892
                        ],
3893
                        'may_terminate' => true,
3894
                        'child_routes' => [
3895
                            'add' => [
3896
                                'type' => Segment::class,
3897
                                'options' => [
3898
                                    'route' => '/add',
3899
                                    'defaults' => [
3900
                                        'controller' => '\LeadersLinked\Controller\MicrolearningController',
3901
                                        'action' => 'capsuleAddMyComment'
3902
                                    ]
3903
                                ]
3904
                            ],
3905
                            'delete' => [
3906
                                'type' => Segment::class,
3907
                                'options' => [
3908
                                    'route' => '/delete/:comment_id',
3909
                                    'constraints' => [
3910
                                        'comment_id' => '[A-Za-z0-9\-]+\=*',
3911
                                    ],
3912
                                    'defaults' => [
3913
                                        'controller' => '\LeadersLinked\Controller\MicrolearningController',
3914
                                        'action' => 'capsuleDeleteMyComment'
3915
                                    ]
3916
                                ]
3917
                            ],
3918
                        ]
3919
                    ],
3920
 
3921
 
3922
 
3923
                    /*
3924
 
3925
                    'capsule' => [
3926
                        'type' => Segment::class,
3927
                        'options' => [
3928
                            'route' => '/capsule',
3929
                            'defaults' => [
3930
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3931
                                'action' => 'lastCapsuleInProgress'
3932
                            ]
3933
                        ]
3934
                    ],
3935
 
3936
 
3937
                    capsuleCommentsAction
3938
                    capsuleDeleteMyCommentAction
3939
                    capsuleAddMyCommentAction
3940
 
3941
                    */
3942
 
3943
 
3944
                ]
3945
            ]
3946
        ],
3947
 
1 efrain 3948
    ],
3949
    'controllers' => [
3950
        'factories' => [
203 efrain 3951
            \LeadersLinked\Controller\AbuseReportController::class => \LeadersLinked\Factory\Controller\AbuseReportControllerFactory::class,
3952
 
1 efrain 3953
            \LeadersLinked\Controller\AccountSettingController::class => \LeadersLinked\Factory\Controller\AccountSettingControllerFactory::class,
3954
            \LeadersLinked\Controller\AuthController::class => \LeadersLinked\Factory\Controller\AuthControllerFactory::class,
3955
            \LeadersLinked\Controller\BackendController::class => \LeadersLinked\Factory\Controller\BackendControllerFactory::class,
3956
            \LeadersLinked\Controller\CalendarController::class => \LeadersLinked\Factory\Controller\CalendarControllerFactory::class,
3957
            \LeadersLinked\Controller\ChatController::class => \LeadersLinked\Factory\Controller\ChatControllerFactory::class,
3958
            \LeadersLinked\Controller\CompanyController::class => \LeadersLinked\Factory\Controller\CompanyControllerFactory::class,
3959
            \LeadersLinked\Controller\DashboardController::class => \LeadersLinked\Factory\Controller\DashboardControllerFactory::class,
3960
            \LeadersLinked\Controller\DailyPulseController::class => \LeadersLinked\Factory\Controller\DailyPulseControllerFactory::class,
3961
            \LeadersLinked\Controller\ConnectionController::class => \LeadersLinked\Factory\Controller\ConnectionControllerFactory::class,
3962
            \LeadersLinked\Controller\HomeController::class => \LeadersLinked\Factory\Controller\HomeControllerFactory::class,
3963
            \LeadersLinked\Controller\HelperController::class => \LeadersLinked\Factory\Controller\HelperControllerFactory::class,
3964
            \LeadersLinked\Controller\HelpController::class => \LeadersLinked\Factory\Controller\HelpControllerFactory::class,
3965
            \LeadersLinked\Controller\FeedController::class => \LeadersLinked\Factory\Controller\FeedControllerFactory::class,
3966
            \LeadersLinked\Controller\MarketPlaceController::class => \LeadersLinked\Factory\Controller\MarketPlaceControllerFactory::class,
3967
            \LeadersLinked\Controller\MoodleController::class => \LeadersLinked\Factory\Controller\MoodleControllerFactory::class,
3968
            \LeadersLinked\Controller\OauthController::class => \LeadersLinked\Factory\Controller\OauthControllerFactory::class,
3969
            \LeadersLinked\Controller\JobController::class => \LeadersLinked\Factory\Controller\JobControllerFactory::class,
3970
            \LeadersLinked\Controller\InMailController::class => \LeadersLinked\Factory\Controller\InMailControllerFactory::class,
3971
            \LeadersLinked\Controller\ImpersonateController::class => \LeadersLinked\Factory\Controller\ImpersonateControllerFactory::class,
3972
            \LeadersLinked\Controller\GroupController::class => \LeadersLinked\Factory\Controller\GroupControllerFactory::class,
119 efrain 3973
            \LeadersLinked\Controller\MicrolearningController::class => \LeadersLinked\Factory\Controller\MicrolearningControllerFactory::class,
1 efrain 3974
            \LeadersLinked\Controller\MyGroupsController::class => \LeadersLinked\Factory\Controller\MyGroupsControllerFactory::class,
3975
            \LeadersLinked\Controller\MyCompaniesController::class => \LeadersLinked\Factory\Controller\MyCompaniesControllerFactory::class,
3976
            \LeadersLinked\Controller\NotificationController::class => \LeadersLinked\Factory\Controller\NotificationControllerFactory::class,
3977
            \LeadersLinked\Controller\PaypalController::class => \LeadersLinked\Factory\Controller\PaypalControllerFactory::class,
3978
            \LeadersLinked\Controller\PostController::class => \LeadersLinked\Factory\Controller\PostControllerFactory::class,
3979
            \LeadersLinked\Controller\ProfileController::class => \LeadersLinked\Factory\Controller\ProfileControllerFactory::class,
3980
            \LeadersLinked\Controller\ProfileMicrolearningController::class => \LeadersLinked\Factory\Controller\ProfileMicrolearningControllerFactory::class,
3981
            // \LeadersLinked\Controller\SelfEvaluationController::class => \LeadersLinked\Factory\Controller\SelfEvaluationControllerFactory::class,
3982
            //\LeadersLinked\Controller\PerformanceEvaluationController::class => \LeadersLinked\Factory\Controller\PerformanceEvaluationControllerFactory::class,
3983
            \LeadersLinked\Controller\MyCoachController::class => \LeadersLinked\Factory\Controller\MyCoachControllerFactory::class,
3984
 
3985
 
3986
            \LeadersLinked\Controller\KnowledgeAreaController::class => \LeadersLinked\Factory\Controller\KnowledgeAreaControllerFactory::class,
3987
            \LeadersLinked\Controller\MyProfilesController::class => \LeadersLinked\Factory\Controller\MyProfilesControllerFactory::class,
3988
            \LeadersLinked\Controller\SearchController::class => \LeadersLinked\Factory\Controller\SearchControllerFactory::class,
3989
            \LeadersLinked\Controller\ShorterController::class => \LeadersLinked\Factory\Controller\ShorterControllerFactory::class,
3990
            \LeadersLinked\Controller\StorageController::class => \LeadersLinked\Factory\Controller\StorageControllerFactory::class,
3991
            \LeadersLinked\Controller\StorageNetworkController::class => \LeadersLinked\Factory\Controller\StorageNetworkControllerFactory::class,
3992
            \LeadersLinked\Controller\ServiceController::class => \LeadersLinked\Factory\Controller\ServiceControllerFactory::class,
3993
            \LeadersLinked\Controller\ServiceCapsuleCommentsController::class => \LeadersLinked\Factory\Controller\ServiceCapsuleCommentsControllerFactory::class,
3994
           // \LeadersLinked\Controller\ZoomController::class => \LeadersLinked\Factory\Controller\ZoomControllerFactory::class,
3995
 
3996
        ],
3997
        'aliases' => [
203 efrain 3998
            '\LeadersLinked\Controller\AbuseReportController' => \LeadersLinked\Controller\AbuseReportController::class,
3999
 
1 efrain 4000
            '\LeadersLinked\Controller\AuthController' => \LeadersLinked\Controller\AuthController::class,
4001
            '\LeadersLinked\Controller\BackendController' => \LeadersLinked\Controller\BackendController::class,
4002
            '\LeadersLinked\Controller\AccountSettingController' => \LeadersLinked\Controller\AccountSettingController::class,
4003
            '\LeadersLinked\Controller\CalendarController' => \LeadersLinked\Controller\CalendarController::class,
4004
            '\LeadersLinked\Controller\ChatController' => \LeadersLinked\Controller\ChatController::class,
4005
            '\LeadersLinked\Controller\CompanyController' => \LeadersLinked\Controller\CompanyController::class,
4006
            '\LeadersLinked\Controller\ConnectionController' => \LeadersLinked\Controller\ConnectionController::class,
4007
            '\LeadersLinked\Controller\DashboardController' => \LeadersLinked\Controller\DashboardController::class,
4008
            '\LeadersLinked\Controller\HomeController' => \LeadersLinked\Controller\HomeController::class,
4009
            '\LeadersLinked\Controller\HelpController' => \LeadersLinked\Controller\HelpController::class,
4010
            '\LeadersLinked\Controller\HelperController' => \LeadersLinked\Controller\HelperController::class,
4011
            '\LeadersLinked\Controller\FeedController' => \LeadersLinked\Controller\FeedController::class,
4012
            '\LeadersLinked\Controller\InMailController' => \LeadersLinked\Controller\InMailController::class,
4013
            '\LeadersLinked\Controller\ImpersonateController' => \LeadersLinked\Controller\ImpersonateController::class,
4014
            '\LeadersLinked\Controller\JobController' => \LeadersLinked\Controller\JobController::class,
4015
            '\LeadersLinked\Controller\GroupController' => \LeadersLinked\Controller\GroupController::class,
4016
            '\LeadersLinked\Controller\MyGroupsController' => \LeadersLinked\Controller\MyGroupsController::class,
4017
            '\LeadersLinked\Controller\MyCompaniesController' => \LeadersLinked\Controller\MyCompaniesController::class,
4018
            '\LeadersLinked\Controller\PaypalController' => \LeadersLinked\Controller\PaypalController::class,
4019
            '\LeadersLinked\Controller\PostController' => \LeadersLinked\Controller\PostController::class,
4020
            '\LeadersLinked\Controller\ProfileController' => \LeadersLinked\Controller\ProfileController::class,
4021
 
119 efrain 4022
            '\LeadersLinked\Controller\MicrolearningController' => \LeadersLinked\Controller\MicrolearningController::class,
1 efrain 4023
            '\LeadersLinked\Controller\MyProfilesController' => \LeadersLinked\Controller\MyProfilesController::class,
4024
            '\LeadersLinked\Controller\MarketPlaceController' => \LeadersLinked\Controller\MarketPlaceController::class,
4025
            '\LeadersLinked\Controller\MoodleController' => \LeadersLinked\Controller\MoodleController::class,
4026
            '\LeadersLinked\Controller\NotificationController' => \LeadersLinked\Controller\NotificationController::class,
4027
            '\LeadersLinked\Controller\SearchController' => \LeadersLinked\Controller\SearchController::class,
4028
            '\LeadersLinked\Controller\StorageController' => \LeadersLinked\Controller\StorageController::class,
4029
            '\LeadersLinked\Controller\StorageNetworkController' => \LeadersLinked\Controller\StorageNetworkController::class,
4030
            '\LeadersLinked\Controller\OauthController' => \LeadersLinked\Controller\OauthController::class,
4031
            '\LeadersLinked\Controller\ServiceController' => \LeadersLinked\Controller\ServiceController::class,
4032
            '\LeadersLinked\Controller\ServiceCapsuleCommentsController' => \LeadersLinked\Controller\ServiceCapsuleCommentsController::class,
4033
            '\LeadersLinked\Controller\ShorterController' => \LeadersLinked\Controller\ShorterController::class,
4034
 
4035
 
4036
 
4037
            '\LeadersLinked\Controller\KnowledgeAreaController' => \LeadersLinked\Controller\KnowledgeAreaController::class,
4038
            '\LeadersLinked\Controller\MyCoachController' => \LeadersLinked\Controller\MyCoachController::class,
4039
            '\LeadersLinked\Controller\DailyPulseController' => \LeadersLinked\Controller\DailyPulseController::class,
4040
 
4041
 
4042
            //'\LeadersLinked\Controller\SelfEvaluationController' => \LeadersLinked\Controller\SelfEvaluationController::class,
4043
            //'\LeadersLinked\Controller\ZoomController' => \LeadersLinked\Controller\ZoomController::class,
4044
        ]
4045
    ],
4046
    'laminas-cli' => [
4047
        'commands' => [
4048
            'process-queue-email' => \LeadersLinked\Command\ProcessQueueEmailCommand::class,
4049
            'process-queue-push' => \LeadersLinked\Command\ProcessQueuePushCommand::class,
4050
            'process-queue-user-deleted' => \LeadersLinked\Command\ProcessQueueUserDeletedCommand::class,
4051
            'process-queue-video-convert' => \LeadersLinked\Command\ProcessQueueVideoConvertCommand::class,
4052
            'recalculate-microlearning-progress' => \LeadersLinked\Command\RecalculateMicrolearningProgressCommand::class,
4053
            'check-owner-user-for-company' => \LeadersLinked\Command\CheckOwnerUserForCompanyCommand::class,
4054
            'check-preview-poster-for-feed' => \LeadersLinked\Command\CheckPreviewPosterForFeedCommand::class,
4055
            'daily-pulse-simulate' => \LeadersLinked\Command\DailyPulseSimulateCommand::class,
4056
 
4057
        ]
4058
    ],
72 efrain 4059
    'listeners' => [
95 efrain 4060
      //  \LeadersLinked\Listener\CorsRequestListener::class,
72 efrain 4061
    ],
1 efrain 4062
    'service_manager' => [
4063
        'abstract_factories' => [
4064
            \Laminas\Db\Adapter\AdapterAbstractServiceFactory::class
4065
        ],
4066
        'factories' => [
4067
            'RenderingStrategy' => function ($container) {
4068
                $translator = $container->get('MvcTranslator');
4069
                return new \LeadersLinked\View\RenderingStrategy($translator);
4070
            },
72 efrain 4071
           // 'corsRequestListener' => function ($container) {
4072
    //
4073
         //       return new \LeadersLinked\Listener\CorsRequestListener();
4074
      //      },
1 efrain 4075
            'menuNavigation' => \LeadersLinked\Navigation\MenuNavigation::class,
4076
            'footerNavigation' => \LeadersLinked\Navigation\FooterNavigation::class,
4077
 
4078
            \LeadersLinked\Command\ProcessQueueEmailCommand::class => \LeadersLinked\Factory\Command\ProcessQueueEmailCommandFactory::class,
4079
            \LeadersLinked\Command\ProcessQueuePushCommand::class => \LeadersLinked\Factory\Command\ProcessQueuePushCommandFactory::class,
4080
            \LeadersLinked\Command\ProcessQueueUserDeletedCommand::class => \LeadersLinked\Factory\Command\ProcessQueueUserDeletedCommandFactory::class,
4081
 
4082
            \LeadersLinked\Command\ProcessQueueVideoConvertCommand::class => \LeadersLinked\Factory\Command\ProcessQueueVideoConvertCommandFactory::class,
4083
            \LeadersLinked\Command\RecalculateMicrolearningProgressCommand::class => \LeadersLinked\Factory\Command\RecalculateMicrolearningProgressCommandFactory::class,
4084
            \LeadersLinked\Command\CheckOwnerUserForCompanyCommand::class => \LeadersLinked\Factory\Command\CheckOwnerUserForCompanyCommandFactory::class,
4085
 
4086
            \LeadersLinked\Command\CheckPreviewPosterForFeedCommand::class => \LeadersLinked\Factory\Command\CheckPreviewPosterForFeedCommandFactory::class,
4087
 
4088
 
4089
            \LeadersLinked\Command\DailyPulseSimulateCommand::class => \LeadersLinked\Factory\Command\DailyPulseSimulateCommandFactory::class,
4090
 
4091
        ],
4092
        'aliases' => [
4093
            // 'leaders-linked-storage' => \LeadersLinked\Service\StorageService::class
4094
        ]
4095
    ],
4096
    'view_helpers' => [
4097
        'factories' => [
4098
            \LeadersLinked\Helper\ChatHelper::class => \LeadersLinked\Factory\Helper\ChatHelperFactory::class,
4099
            // \LeadersLinked\Helper\CompanyFollowerHelper::class => \LeadersLinked\Factory\Helper\CompanyFollowerHelperFactory::class,
4100
            // \LeadersLinked\Helper\CompanySuggestionHelper::class => \LeadersLinked\Factory\Helper\CompanySuggestionHelperFactory::class,
4101
            \LeadersLinked\Helper\CurrentUserHelper::class => \LeadersLinked\Factory\Helper\CurrentUserHelperFactory::class,
4102
            \LeadersLinked\Helper\CurrentNetworkHelper::class => \LeadersLinked\Factory\Helper\CurrentNetworkHelperFactory::class,
4103
            // \LeadersLinked\Helper\GroupMembersHelper::class => \LeadersLinked\Factory\Helper\GroupMembersHelperFactory::class,
4104
            // \LeadersLinked\Helper\GroupsSuggestionHelper::class => \LeadersLinked\Factory\Helper\GroupsSuggestionHelperFactory::class,
4105
            \LeadersLinked\Helper\MenuHelper::class => \LeadersLinked\Factory\Helper\MenuHelperFactory::class,
4106
            // \LeadersLinked\Helper\PeopleViewedProfileHelper::class => \LeadersLinked\Factory\Helper\PeopleViewedProfileHelperFactory::class,
4107
            //  \LeadersLinked\Helper\PeopleYouMayKnowHelper::class => \LeadersLinked\Factory\Helper\PeopleYouMayKnowHelperFactory::class,
4108
            //  \LeadersLinked\Helper\SimilarGroupsHelper::class => \LeadersLinked\Factory\Helper\SimilarGroupsHelperFactory::class
4109
            \LeadersLinked\Helper\NetworkFavicoHelper::class => \LeadersLinked\Factory\Helper\NetworkFavicoHelperFactory::class,
4110
            \LeadersLinked\Helper\NetworkIntroHelper::class => \LeadersLinked\Factory\Helper\NetworkIntroHelperFactory::class,
4111
            \LeadersLinked\Helper\NetworkLogoHelper::class => \LeadersLinked\Factory\Helper\NetworkLogoHelperFactory::class,
4112
            \LeadersLinked\Helper\NetworkNavbarHelper::class => \LeadersLinked\Factory\Helper\NetworkNavbarHelperFactory::class,
4113
            \LeadersLinked\Helper\NetworkStylesAndColorsHelper::class => \LeadersLinked\Factory\Helper\NetworkStylesAndColorsHelperFactory::class,
4114
 
4115
        ],
4116
        'invokables' => [
4117
            //'menuBackendHelper' => \LeadersLinked\Helper\MenuBackendHelper::class,
4118
            // 'menuMyCompanyHelper' => \LeadersLinked\Helper\MenuMyCompanyHelper::class,
4119
            'footerHelper' => \LeadersLinked\Helper\FooterHelper::class
4120
        ],
4121
        'aliases' => [
4122
            'chatHelper' => \LeadersLinked\Helper\ChatHelper::class,
4123
            //'companyFollowerHelper' => \LeadersLinked\Helper\CompanyFollowerHelper::class,
4124
            // 'companySuggestionHelper' => \LeadersLinked\Helper\CompanySuggestionHelper::class,
4125
            'currentUserHelper' => \LeadersLinked\Helper\CurrentUserHelper::class,
4126
            'currentNetworkHelper' => \LeadersLinked\Helper\CurrentNetworkHelper::class,
4127
            'menuHelper' => \LeadersLinked\Helper\MenuHelper::class,
4128
            //'peopleViewedProfileHelper' => \LeadersLinked\Helper\PeopleViewedProfileHelper::class,
4129
            //'peopleYouMayKnowHelper' => \LeadersLinked\Helper\PeopleYouMayKnowHelper::class,
4130
            //'groupMembersHelper' => \LeadersLinked\Helper\GroupMembersHelper::class,
4131
            //'similarGroupsHelper' => \LeadersLinked\Helper\SimilarGroupsHelper::class
4132
            'networkFavicoHelper'  => \LeadersLinked\Helper\NetworkFavicoHelper::class,
4133
            'networkIntroHelper' => \LeadersLinked\Helper\NetworkIntroHelper::class,
4134
            'networkLogoHelper'  => \LeadersLinked\Helper\NetworkLogoHelper::class,
4135
            'networkNavbarHelper'  => \LeadersLinked\Helper\NetworkNavbarHelper::class,
4136
            'networkStylesAndColorsHelper'  => \LeadersLinked\Helper\NetworkStylesAndColorsHelper::class,
4137
 
4138
        ]
4139
    ],
4140
    'controller_plugins' => [
4141
        'invokables' => [],
4142
        'factories' => [
4143
            \LeadersLinked\Plugin\CurrentUserPlugin::class => \LeadersLinked\Factory\Plugin\CurrentUserPluginFactory::class,
4144
            \LeadersLinked\Plugin\CurrentNetworkPlugin::class => \LeadersLinked\Factory\Plugin\CurrentNetworkPluginFactory::class,
4145
        ],
4146
        'aliases' => [
4147
            'currentUserPlugin' => \LeadersLinked\Plugin\CurrentUserPlugin::class,
4148
            'currentNetworkPlugin' => \LeadersLinked\Plugin\CurrentNetworkPlugin::class,
4149
        ]
4150
    ],
4151
    'view_manager' => [
4152
        'display_not_found_reason' => true,
4153
        'display_exceptions' => true,
4154
        'doctype' => 'HTML5',
4155
        'not_found_template' => 'error/404',
4156
        'exception_template' => 'error/index',
4157
        'template_map' => [
4158
            'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
4159
            'error/404' => __DIR__ . '/../view/error/404.phtml',
4160
            'error/index' => __DIR__ . '/../view/error/index.phtml'
4161
        ],
4162
        'template_path_stack' => [
4163
            __DIR__ . '/../view'
4164
        ],
4165
        'strategies' => [
4166
            'ViewJsonStrategy',
4167
            'RenderingStrategy'
4168
        ]
4169
    ]
4170
];