Proyectos de Subversion LeadersLinked - Services

Rev

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