Proyectos de Subversion LeadersLinked - Services

Rev

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