Proyectos de Subversion LeadersLinked - Services

Rev

Rev 193 | Rev 232 | 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
                    ],
1565
                    'comment' => [
1566
                        'type' => Segment::class,
1567
                        'options' => [
1568
                            'route' => '/comment/:id',
1569
                            'constraints' => [
1570
                                'id' => '[A-Za-z0-9\-]+\=*',
1571
                            ],
1572
                            'defaults' => [
1573
                                'controller' => '\LeadersLinked\Controller\FeedController',
1574
                                'action' => 'comment'
1575
                            ],
1576
                        ],
1577
                        'may_terminate' => true,
1578
                        'child_routes' => [
1579
                            'delete' => [
1580
                                'type' => Segment::class,
1581
                                'options' => [
1582
                                    'route' => '/delete/:comment',
1583
                                    'constraints' => [
1584
                                        'comment' => '[A-Za-z0-9\-]+\=*',
1585
                                    ],
1586
                                    'defaults' => [
1587
                                        'controller' => '\LeadersLinked\Controller\FeedController',
1588
                                        'action' => 'commentDelete'
1589
                                    ]
1590
                                ]
1591
                            ],
1592
                        ]
1593
                    ],
1594
                    'share' => [
1595
                        'type' => Segment::class,
1596
                        'options' => [
1597
                            'route' => '/share/:id[/company/:company_id][/group/:group_id][/encoding/:encoding]',
1598
                            'constraints' => [
1599
                                'id' => '[A-Za-z0-9\-]+\=*',
1600
                                'company_id' => '[A-Za-z0-9\-]+\=*',
1601
                                'group_id' => '[A-Za-z0-9\-]+\=*',
1602
                                'encoding' => 'base64'
1603
                            ],
1604
                            'defaults' => [
1605
                                'controller' => '\LeadersLinked\Controller\FeedController',
1606
                                'action' => 'share'
1607
                            ]
1608
                        ]
1609
                    ],
1610
                    'save-reaction' => [
1611
                        'type' => Segment::class,
1612
                        'options' => [
1613
                            'route' => '/save-reaction/:id',
1614
                            'constraints' => [
1615
                                'id' => '[A-Za-z0-9\-]+\=*',
1616
                            ],
1617
                            'defaults' => [
1618
                                'controller' => '\LeadersLinked\Controller\FeedController',
1619
                                'action' => 'saveReaction'
1620
                            ]
1621
                        ]
1622
                    ],
1623
 
1624
                    'delete-reaction' => [
1625
                        'type' => Segment::class,
1626
                        'options' => [
1627
                            'route' => '/delete-reaction/:id',
1628
                            'constraints' => [
1629
                                'id' => '[A-Za-z0-9\-]+\=*',
1630
                            ],
1631
                            'defaults' => [
1632
                                'controller' => '\LeadersLinked\Controller\FeedController',
1633
                                'action' => 'deleteReaction'
1634
                            ]
1635
                        ]
1636
                    ],
1637
                    'add' => [
1638
                        'type' => Segment::class,
1639
                        'options' => [
1640
                            'route' => '/add[/company/:company_id][/group/:group_id][/encoding/:encoding]',
1641
                            'constraints' => [
1642
                                'company_id' => '[A-Za-z0-9\-]+\=*',
1643
                                'group_id' => '[A-Za-z0-9\-]+\=*',
1644
                                'encoding' => 'base64'
1645
                            ],
1646
                            'defaults' => [
1647
                                'controller' => '\LeadersLinked\Controller\FeedController',
1648
                                'action' => 'add'
1649
                            ]
1650
                        ]
1651
                    ],
1652
                    'vote' => [
1653
                        'type' => Segment::class,
1654
                        'options' => [
1655
                            'route' => '/vote/:id',
1656
                            'constraints' => [
1657
                                'id' => '[A-Za-z0-9\-]+\=*',
1658
                            ],
1659
                            'defaults' => [
1660
                                'controller' => '\LeadersLinked\Controller\FeedController',
1661
                                'action' => 'vote'
1662
                            ]
1663
                        ]
1664
                    ],
1665
                ],
1666
            ],
1667
            'job' => [
1668
                'type' => Literal::class,
1669
                'options' => [
1670
                    'route' => '/job',
1671
                    'defaults' => [
1672
                        'controller' => '\LeadersLinked\Controller\JobController',
1673
                        'action' => 'index'
1674
                    ]
1675
                ],
1676
                'may_terminate' => true,
1677
                'child_routes' => [
1678
                    'view' => [
1679
                        'type' => Segment::class,
1680
                        'options' => [
1681
                            'route' => '/view/:id',
1682
                            'constraints' => [
1683
                                'id' => '[A-Za-z0-9\-]+\=*'
1684
                            ],
1685
                            'defaults' => [
1686
                                'controller' => '\LeadersLinked\Controller\JobController',
1687
                                'action' => 'view'
1688
                            ]
1689
                        ]
1690
                    ],
1691
                    'apply-job' => [
1692
                        'type' => Segment::class,
1693
                        'options' => [
1694
                            'route' => '/apply-job/:id',
1695
                            'constraints' => [
1696
                                'id' => '[A-Za-z0-9\-]+\=*'
1697
                            ],
1698
                            'defaults' => [
1699
                                'controller' => '\LeadersLinked\Controller\JobController',
1700
                                'action' => 'applyJob'
1701
                            ]
1702
                        ]
1703
                    ],
1704
                    'remove-apply-job' => [
1705
                        'type' => Segment::class,
1706
                        'options' => [
1707
                            'route' => '/remove-apply-job/:id',
1708
                            'constraints' => [
1709
                                'id' => '[A-Za-z0-9\-]+\=*'
1710
                            ],
1711
                            'defaults' => [
1712
                                'controller' => '\LeadersLinked\Controller\JobController',
1713
                                'action' => 'removeApplyJob'
1714
                            ]
1715
                        ]
1716
                    ],
1717
                    'save-job' => [
1718
                        'type' => Segment::class,
1719
                        'options' => [
1720
                            'route' => '/save-job/:id',
1721
                            'constraints' => [
1722
                                'id' => '[A-Za-z0-9\-]+\=*'
1723
                            ],
1724
                            'defaults' => [
1725
                                'controller' => '\LeadersLinked\Controller\JobController',
1726
                                'action' => 'saveJob'
1727
                            ]
1728
                        ]
1729
                    ],
1730
                    'remove-save-job' => [
1731
                        'type' => Segment::class,
1732
                        'options' => [
1733
                            'route' => '/remove-save-job/:id',
1734
                            'constraints' => [
1735
                                'id' => '[A-Za-z0-9\-]+\=*'
1736
                            ],
1737
                            'defaults' => [
1738
                                'controller' => '\LeadersLinked\Controller\JobController',
1739
                                'action' => 'removeSaveJob'
1740
                            ]
1741
                        ]
1742
                    ],
1743
                    'applied-jobs' => [
1744
                        'type' => Literal::class,
1745
                        'options' => [
1746
                            'route' => '/applied-jobs',
1747
                            'defaults' => [
1748
                                'controller' => '\LeadersLinked\Controller\JobController',
1749
                                'action' => 'appliedJobs'
1750
                            ]
1751
                        ]
1752
                    ],
1753
                    'saved-jobs' => [
1754
                        'type' => Literal::class,
1755
                        'options' => [
1756
                            'route' => '/saved-jobs',
1757
                            'defaults' => [
1758
                                'controller' => '\LeadersLinked\Controller\JobController',
1759
                                'action' => 'savedJobs'
1760
                            ]
1761
                        ]
1762
                    ],
1763
                ]
1764
            ],
1765
            /*
1766
              'job' => [
1767
              'type' => Literal::class,
1768
              'options' => [
1769
              'route' => '/job',
1770
              'defaults' => [
1771
              'controller' => '\LeadersLinked\Controller\JobController',
1772
              'action' => 'index'
1773
              ]
1774
              ],
1775
              'may_terminate' => true,
1776
              'child_routes' => [
1777
              'view' => [
1778
              'type' => Segment::class,
1779
              'options' => [
1780
              'route' => '/view/:id',
1781
              'constraints' => [
1782
              'id' => '[A-Za-z0-9\-]+\=*'
1783
              ],
1784
              'defaults' => [
1785
              'controller' => '\LeadersLinked\Controller\CompanyController',
1786
              'action' => 'job'
1787
              ]
1788
              ]
1789
              ],
1790
              ]
1791
              ],
1792
             */
1793
            'search' => [
1794
                'type' => Segment::class,
1795
                'options' => [
1796
                    'route' => '/search[/entity/:entity]',
1797
                    'constraints' => [
1798
                        'entity' => 'user|company|group|job'
1799
                    ],
1800
                    'defaults' => [
1801
                        'controller' => '\LeadersLinked\Controller\SearchController',
1802
                        'action' => 'index'
1803
                    ]
1804
                ],
1805
            ],
1806
            'group' => [
1807
                'type' => Literal::class,
1808
                'options' => [
1809
                    'route' => '/group',
1810
                    'defaults' => [
1811
                        'controller' => '\LeadersLinked\GroupController',
1812
                        'action' => 'index'
1813
                    ]
1814
                ],
1815
                'may_terminate' => true,
1816
                'child_routes' => [
1817
                    'view' => [
1818
                        'type' => Segment::class,
1819
                        'options' => [
1820
                            'route' => '/view/:id',
1821
                            'constraints' => [
1822
                                'id' => '[A-Za-z0-9\-]+\=*'
1823
                            ],
1824
                            'defaults' => [
1825
                                'controller' => '\LeadersLinked\Controller\GroupController',
1826
                                'action' => 'view'
1827
                            ]
1828
                        ]
1829
                    ],
1830
                    'request' => [
1831
                        'type' => Segment::class,
1832
                        'options' => [
1833
                            'route' => '/request/:id',
1834
                            'constraints' => [
1835
                                'id' => '[A-Za-z0-9\-]+\=*'
1836
                            ],
1837
                            'defaults' => [
1838
                                'controller' => '\LeadersLinked\Controller\GroupController',
1839
                                'action' => 'request'
1840
                            ]
1841
                        ]
1842
                    ],
1843
                    'leave' => [
1844
                        'type' => Segment::class,
1845
                        'options' => [
1846
                            'route' => '/leave/:id',
1847
                            'constraints' => [
1848
                                'id' => '[A-Za-z0-9\-]+\=*'
1849
                            ],
1850
                            'defaults' => [
1851
                                'controller' => '\LeadersLinked\Controller\GroupController',
1852
                                'action' => 'leave'
1853
                            ]
1854
                        ]
1855
                    ],
1856
                    'accept' => [
1857
                        'type' => Segment::class,
1858
                        'options' => [
1859
                            'route' => '/accept/:id',
1860
                            'constraints' => [
1861
                                'id' => '[A-Za-z0-9\-]+\=*'
1862
                            ],
1863
                            'defaults' => [
1864
                                'controller' => '\LeadersLinked\Controller\GroupController',
1865
                                'action' => 'accept'
1866
                            ]
1867
                        ]
1868
                    ],
1869
                    'cancel' => [
1870
                        'type' => Segment::class,
1871
                        'options' => [
1872
                            'route' => '/cancel/:id',
1873
                            'constraints' => [
1874
                                'id' => '[A-Za-z0-9\-]+\=*'
1875
                            ],
1876
                            'defaults' => [
1877
                                'controller' => '\LeadersLinked\Controller\GroupController',
1878
                                'action' => 'cancel'
1879
                            ]
1880
                        ]
1881
                    ],
1882
                    'reject' => [
1883
                        'type' => Segment::class,
1884
                        'options' => [
1885
                            'route' => '/reject/:id',
1886
                            'constraints' => [
1887
                                'id' => '[A-Za-z0-9\-]+\=*'
1888
                            ],
1889
                            'defaults' => [
1890
                                'controller' => '\LeadersLinked\Controller\GroupController',
1891
                                'action' => 'reject'
1892
                            ]
1893
                        ]
1894
                    ],
1895
                    'joined-groups' => [
1896
                        'type' => Literal::class,
1897
                        'options' => [
1898
                            'route' => '/joined-groups',
1899
                            'defaults' => [
1900
                                'controller' => '\LeadersLinked\Controller\GroupController',
1901
                                'action' => 'joinedGroups'
1902
                            ]
1903
                        ],
1904
                    ],
1905
                    'requests-sent' => [
1906
                        'type' => Literal::class,
1907
                        'options' => [
1908
                            'route' => '/requests-sent',
1909
                            'defaults' => [
1910
                                'controller' => '\LeadersLinked\Controller\GroupController',
1911
                                'action' => 'requestsSent'
1912
                            ]
1913
                        ],
1914
                    ],
1915
                    'invitations-received' => [
1916
                        'type' => Literal::class,
1917
                        'options' => [
1918
                            'route' => '/invitations-received',
1919
                            'defaults' => [
1920
                                'controller' => '\LeadersLinked\Controller\GroupController',
1921
                                'action' => 'invitationsReceived'
1922
                            ]
1923
                        ],
1924
                    ],
1925
                    'my-groups' => [
1926
                        'type' => Literal::class,
1927
                        'options' => [
1928
                            'route' => '/my-groups',
1929
                            'defaults' => [
1930
                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
1931
                                'action' => 'index'
1932
                            ]
1933
                        ],
1934
                        'may_terminate' => true,
1935
                        'child_routes' => [
1936
                            'add' => [
1937
                                'type' => Literal::class,
1938
                                'options' => [
1939
                                    'route' => '/add',
1940
                                    'defaults' => [
1941
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1942
                                        'action' => 'add'
1943
                                    ]
1944
                                ]
1945
                            ],
1946
                            'edit' => [
1947
                                'type' => Segment::class,
1948
                                'options' => [
1949
                                    'route' => '/edit/:id',
1950
                                    'constraints' => [
1951
                                        'id' => '[A-Za-z0-9\-]+\=*'
1952
                                    ],
1953
                                    'defaults' => [
1954
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1955
                                        'action' => 'edit'
1956
                                    ]
1957
                                ]
1958
                            ],
1959
                            'delete' => [
1960
                                'type' => Segment::class,
1961
                                'options' => [
1962
                                    'route' => '/delete/:id',
1963
                                    'constraints' => [
1964
                                        'id' => '[A-Za-z0-9\-]+\=*'
1965
                                    ],
1966
                                    'defaults' => [
1967
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1968
                                        'action' => 'delete'
1969
                                    ]
1970
                                ]
1971
                            ],
1972
                            'extended' => [
1973
                                'type' => Segment::class,
1974
                                'options' => [
1975
                                    'route' => '/extended/:id',
1976
                                    'constraints' => [
1977
                                        'id' => '[A-Za-z0-9\-]+\=*'
1978
                                    ],
1979
                                    'defaults' => [
1980
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1981
                                        'action' => 'extended'
1982
                                    ]
1983
                                ]
1984
                            ],
1985
                            'image' => [
1986
                                'type' => Segment::class,
1987
                                'options' => [
1988
                                    'route' => '/image/:id/operation/:operation',
1989
                                    'constraints' => [
1990
                                        'id' => '[A-Za-z0-9\-]+\=*',
1991
                                        'operation' => 'upload|delete'
1992
                                    ],
1993
                                    'defaults' => [
1994
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1995
                                        'action' => 'image'
1996
                                    ]
1997
                                ]
1998
                            ],
1999
                            'cover' => [
2000
                                'type' => Segment::class,
2001
                                'options' => [
2002
                                    'route' => '/cover/: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' => 'cover'
2010
                                    ]
2011
                                ]
2012
                            ],
2013
                            'privacy' => [
2014
                                'type' => Segment::class,
2015
                                'options' => [
2016
                                    'route' => '/privacy/:id',
2017
                                    'constraints' => [
2018
                                        'id' => '[A-Za-z0-9\-]+\=*'
2019
                                    ],
2020
                                    'defaults' => [
2021
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
2022
                                        'action' => 'privacy'
2023
                                    ]
2024
                                ]
2025
                            ],
2026
                            'website' => [
2027
                                'type' => Segment::class,
2028
                                'options' => [
2029
                                    'route' => '/website/:id',
2030
                                    'constraints' => [
2031
                                        'id' => '[A-Za-z0-9\-]+\=*'
2032
                                    ],
2033
                                    'defaults' => [
2034
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
2035
                                        'action' => 'website'
2036
                                    ]
2037
                                ]
2038
                            ],
2039
                            'industry' => [
2040
                                'type' => Segment::class,
2041
                                'options' => [
2042
                                    'route' => '/industry/:id',
2043
                                    'constraints' => [
2044
                                        'id' => '[A-Za-z0-9\-]+\=*'
2045
                                    ],
2046
                                    'defaults' => [
2047
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
2048
                                        'action' => 'industry'
2049
                                    ]
2050
                                ]
2051
                            ],
2052
                            'accessibility' => [
2053
                                'type' => Segment::class,
2054
                                'options' => [
2055
                                    'route' => '/accessibility/:id',
2056
                                    'constraints' => [
2057
                                        'id' => '[A-Za-z0-9\-]+\=*'
2058
                                    ],
2059
                                    'defaults' => [
2060
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
2061
                                        'action' => 'accessibility'
2062
                                    ]
2063
                                ]
2064
                            ],
2065
                            'type' => [
2066
                                'type' => Segment::class,
2067
                                'options' => [
2068
                                    'route' => '/type/:id',
2069
                                    'constraints' => [
2070
                                        'id' => '[A-Za-z0-9\-]+\=*'
2071
                                    ],
2072
                                    'defaults' => [
2073
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
2074
                                        'action' => 'type'
2075
                                    ]
2076
                                ]
2077
                            ],
2078
                            'status' => [
2079
                                'type' => Segment::class,
2080
                                'options' => [
2081
                                    'route' => '/status/:id',
2082
                                    'constraints' => [
2083
                                        'id' => '[A-Za-z0-9\-]+\=*'
2084
                                    ],
2085
                                    'defaults' => [
2086
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
2087
                                        'action' => 'status'
2088
                                    ]
2089
                                ]
2090
                            ],
2091
                            'members' => [
2092
                                'type' => Segment::class,
2093
                                'options' => [
2094
                                    'route' => '/members/:id',
2095
                                    'constraints' => [
2096
                                        'id' => '[A-Za-z0-9\-]+\=*'
2097
                                    ],
2098
                                    'defaults' => [
2099
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
2100
                                        'action' => 'members'
2101
                                    ]
2102
                                ],
2103
                                'may_terminate' => true,
2104
                                'child_routes' => [
2105
                                    'invite' => [
2106
                                        'type' => Segment::class,
2107
                                        'options' => [
2108
                                            'route' => '/invite/:user_id',
2109
                                            'constraints' => [
2110
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
2111
                                            ],
2112
                                            'defaults' => [
2113
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
2114
                                                'action' => 'invite'
2115
                                            ]
2116
                                        ]
2117
                                    ],
2118
                                    'approve' => [
2119
                                        'type' => Segment::class,
2120
                                        'options' => [
2121
                                            'route' => '/approve/:user_id',
2122
                                            'constraints' => [
2123
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
2124
                                            ],
2125
                                            'defaults' => [
2126
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
2127
                                                'action' => 'approve'
2128
                                            ]
2129
                                        ]
2130
                                    ],
2131
                                    'reject' => [
2132
                                        'type' => Segment::class,
2133
                                        'options' => [
2134
                                            'route' => '/reject/:user_id',
2135
                                            'constraints' => [
2136
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
2137
                                            ],
2138
                                            'defaults' => [
2139
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
2140
                                                'action' => 'reject'
2141
                                            ]
2142
                                        ]
2143
                                    ],
2144
                                    'cancel' => [
2145
                                        'type' => Segment::class,
2146
                                        'options' => [
2147
                                            'route' => '/cancel/:user_id',
2148
                                            'constraints' => [
2149
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
2150
                                            ],
2151
                                            'defaults' => [
2152
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
2153
                                                'action' => 'cancel'
2154
                                            ]
2155
                                        ]
2156
                                    ],
2157
                                ]
2158
                            ],
2159
                        ]
2160
                    ]
2161
                ]
2162
            ],
2163
            'profile' => [
2164
                'type' => Literal::class,
2165
                'options' => [
2166
                    'route' => '/profile',
2167
                    'defaults' => [
2168
                        'controller' => '\LeadersLinked\ControllerProfileController',
2169
                        'action' => 'index'
2170
                    ]
2171
                ],
2172
                'may_terminate' => true,
2173
                'child_routes' => [
119 efrain 2174
 
1 efrain 2175
                    'people-viewed-profile' => [
2176
                        'type' => Literal::class,
2177
                        'options' => [
2178
                            'route' => '/people-viewed-profile',
2179
                            'defaults' => [
2180
                                'controller' => '\LeadersLinked\Controller\ProfileController',
2181
                                'action' => 'peopleViewedProfile'
2182
                            ]
2183
                        ]
2184
                    ],
2185
                    'view' => [
2186
                        'type' => Segment::class,
2187
                        'options' => [
2188
                            'route' => '/view/:id',
2189
                            'constraints' => [
2190
                                'id' => '[A-Za-z0-9\-]+\=*'
2191
                            ],
2192
                            'defaults' => [
2193
                                'controller' => '\LeadersLinked\Controller\ProfileController',
2194
                                'action' => 'view'
2195
                            ]
2196
                        ]
2197
                    ],
2198
                    'self-evaluation' => [
2199
                        'type' => Literal::class,
2200
                        'options' => [
2201
                            'route' => '/self-evaluation',
2202
                            'defaults' => [
2203
                                'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
2204
                                'action' => 'index'
2205
                            ]
2206
                        ],
2207
                        'may_terminate' => true,
2208
                        'child_routes' => [
2209
                            'take-a-test' => [
2210
                                'type' => Segment::class,
2211
                                'options' => [
2212
                                    'route' => '/take-a-test/:id',
2213
                                    'constraints' => [
2214
                                        'id' => '[A-Za-z0-9\-]+\=*'
2215
                                    ],
2216
                                    'defaults' => [
2217
                                        'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
2218
                                        'action' => 'takeaTest'
2219
                                    ]
2220
                                ]
2221
                            ],
2222
                            'report' => [
2223
                                'type' => Segment::class,
2224
                                'options' => [
2225
                                    'route' => '/report/:id',
2226
                                    'constraints' => [
2227
                                        'id' => '[A-Za-z0-9\-]+\=*'
2228
                                    ],
2229
                                    'defaults' => [
2230
                                        'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
2231
                                        'action' => 'report'
2232
                                    ]
2233
                                ]
2234
                            ],
2235
                        ]
2236
                    ],
2237
                    'performance-evaluation' => [
2238
                        'type' => Literal::class,
2239
                        'options' => [
2240
                            'route' => '/performance-evaluation',
2241
                            'defaults' => [
2242
                                'controller' => '\LeadersLinked\Controller\PerformanceEvaluationController',
2243
                                'action' => 'index'
2244
                            ]
2245
                        ],
2246
                        'may_terminate' => true,
2247
                        'child_routes' => [
2248
                            'take-a-test' => [
2249
                                'type' => Segment::class,
2250
                                'options' => [
2251
                                    'route' => '/take-a-test/:id',
2252
                                    'constraints' => [
2253
                                        'id' => '[A-Za-z0-9\-]+\=*'
2254
                                    ],
2255
                                    'defaults' => [
2256
                                        'controller' => '\LeadersLinked\Controller\PerformanceEvaluationController',
2257
                                        'action' => 'takeaTest'
2258
                                    ]
2259
                                ]
2260
                            ],
2261
                            'report' => [
2262
                                'type' => Segment::class,
2263
                                'options' => [
2264
                                    'route' => '/report/:id',
2265
                                    'constraints' => [
2266
                                        'id' => '[A-Za-z0-9\-]+\=*'
2267
                                    ],
2268
                                    'defaults' => [
2269
                                        'controller' => '\LeadersLinked\Controller\PerformanceEvaluationController',
2270
                                        'action' => 'report'
2271
                                    ]
2272
                                ]
2273
                            ],
2274
                        ]
2275
                    ],
2276
                    'my-profiles' => [
2277
                        'type' => Literal::class,
2278
                        'options' => [
2279
                            'route' => '/my-profiles',
2280
                            'defaults' => [
2281
                                'controller' => '\LeadersLinked\Controller\MyProfilesController',
2282
                                'action' => 'index'
2283
                            ]
2284
                        ],
2285
                        'may_terminate' => true,
2286
                        'child_routes' => [
2287
                            'add' => [
2288
                                'type' => Literal::class,
2289
                                'options' => [
2290
                                    'route' => '/add',
2291
                                    'defaults' => [
2292
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2293
                                        'action' => 'add'
2294
                                    ]
2295
                                ]
2296
                            ],
2297
                            'edit' => [
2298
                                'type' => Segment::class,
2299
                                'options' => [
2300
                                    'route' => '/edit/:id',
2301
                                    'constraints' => [
2302
                                        'id' => '[A-Za-z0-9\-]+\=*'
2303
                                    ],
2304
                                    'defaults' => [
2305
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2306
                                        'action' => 'edit'
2307
                                    ]
2308
                                ]
2309
                            ],
2310
                            'delete' => [
2311
                                'type' => Segment::class,
2312
                                'options' => [
2313
                                    'route' => '/delete/:id',
2314
                                    'constraints' => [
2315
                                        'id' => '[A-Za-z0-9\-]+\=*'
2316
                                    ],
2317
                                    'defaults' => [
2318
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2319
                                        'action' => 'delete'
2320
                                    ]
2321
                                ]
2322
                            ],
2323
                            'extended' => [
2324
                                'type' => Segment::class,
2325
                                'options' => [
2326
                                    'route' => '/extended/:id',
2327
                                    'constraints' => [
2328
                                        'id' => '[A-Za-z0-9\-]+\=*'
2329
                                    ],
2330
                                    'defaults' => [
2331
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2332
                                        'action' => 'extended'
2333
                                    ]
2334
                                ]
2335
                            ],
2336
                            'image' => [
2337
                                'type' => Segment::class,
2338
                                'options' => [
2339
                                    'route' => '/image/:id/operation/:operation',
2340
                                    'constraints' => [
2341
                                        'id' => '[A-Za-z0-9\-]+\=*',
2342
                                        'operation' => 'upload|delete'
2343
                                    ],
2344
                                    'defaults' => [
2345
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2346
                                        'action' => 'image'
2347
                                    ]
2348
                                ]
2349
                            ],
2350
                            'cover' => [
2351
                                'type' => Segment::class,
2352
                                'options' => [
2353
                                    'route' => '/cover/: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' => 'cover'
2361
                                    ]
2362
                                ]
2363
                            ],
2364
                            'experience' => [
2365
                                'type' => Segment::class,
2366
                                'options' => [
2367
                                    'route' => '/experience/:id/operation/:operation[/:user_experience_id]',
2368
                                    'constraints' => [
2369
                                        'id' => '[A-Za-z0-9\-]+\=*',
2370
                                        'operation' => 'add|edit|delete',
2371
                                        'user_education_id' => '[A-Za-z0-9\-]+\=*'
2372
                                    ],
2373
                                    'defaults' => [
2374
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2375
                                        'action' => 'experience'
2376
                                    ]
2377
                                ]
2378
                            ],
2379
                            'education' => [
2380
                                'type' => Segment::class,
2381
                                'options' => [
2382
                                    'route' => '/education/:id/operation/:operation[/:user_education_id]',
2383
                                    'constraints' => [
2384
                                        'id' => '[A-Za-z0-9\-]+\=*',
2385
                                        'operation' => 'add|edit|delete',
2386
                                        'user_education_id' => '[A-Za-z0-9\-]+\=*'
2387
                                    ],
2388
                                    'defaults' => [
2389
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2390
                                        'action' => 'education'
2391
                                    ]
2392
                                ]
2393
                            ],
2394
                            'language' => [
2395
                                'type' => Segment::class,
2396
                                'options' => [
2397
                                    'route' => '/language/:id',
2398
                                    'constraints' => [
2399
                                        'id' => '[A-Za-z0-9\-]+\=*'
2400
                                    ],
2401
                                    'defaults' => [
2402
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2403
                                        'action' => 'language'
2404
                                    ]
2405
                                ]
2406
                            ],
2407
                            'location' => [
2408
                                'type' => Segment::class,
2409
                                'options' => [
2410
                                    'route' => '/location/:id',
2411
                                    'constraints' => [
2412
                                        'id' => '[A-Za-z0-9\-]+\=*'
2413
                                    ],
2414
                                    'defaults' => [
2415
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2416
                                        'action' => 'location'
2417
                                    ]
2418
                                ]
2419
                            ],
2420
                            'skill' => [
2421
                                'type' => Segment::class,
2422
                                'options' => [
2423
                                    'route' => '/skill/:id',
2424
                                    'constraints' => [
2425
                                        'id' => '[A-Za-z0-9\-]+\=*'
2426
                                    ],
2427
                                    'defaults' => [
2428
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2429
                                        'action' => 'skill'
2430
                                    ]
2431
                                ]
2432
                            ],
2433
                            'social-network' => [
2434
                                'type' => Segment::class,
2435
                                'options' => [
2436
                                    'route' => '/social-network/:id',
2437
                                    'constraints' => [
2438
                                        'id' => '[A-Za-z0-9\-]+\=*'
2439
                                    ],
2440
                                    'defaults' => [
2441
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2442
                                        'action' => 'socialNetwork'
2443
                                    ]
2444
                                ]
2445
                            ],
2446
                            'aptitude' => [
2447
                                'type' => Segment::class,
2448
                                'options' => [
2449
                                    'route' => '/aptitude/:id',
2450
                                    'constraints' => [
2451
                                        'id' => '[A-Za-z0-9\-]+\=*'
2452
                                    ],
2453
                                    'defaults' => [
2454
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2455
                                        'action' => 'aptitude'
2456
                                    ]
2457
                                ]
2458
                            ],
2459
                            'hobby-and-interest' => [
2460
                                'type' => Segment::class,
2461
                                'options' => [
2462
                                    'route' => '/hobby-and-interest/:id',
2463
                                    'constraints' => [
2464
                                        'id' => '[A-Za-z0-9\-]+\=*'
2465
                                    ],
2466
                                    'defaults' => [
2467
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
2468
                                        'action' => 'hobbyAndInterest'
2469
                                    ]
2470
                                ]
2471
                            ]
2472
                        ]
2473
                    ]
2474
                ]
2475
            ],
2476
            'company' => [
2477
                'type' => Literal::class,
2478
                'options' => [
2479
                    'route' => '/company',
2480
                    'defaults' => [
2481
                        'controller' => '\LeadersLinked\Controller\CompanyController',
2482
                        'action' => 'index'
2483
                    ]
2484
                ],
2485
                'may_terminate' => true,
2486
                'child_routes' => [
2487
                    'view' => [
2488
                        'type' => Segment::class,
2489
                        'options' => [
2490
                            'route' => '/view/:id',
2491
                            'constraints' => [
2492
                                'id' => '[A-Za-z0-9\-]+\=*'
2493
                            ],
2494
                            'defaults' => [
2495
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2496
                                'action' => 'view'
2497
                            ]
2498
                        ]
2499
                    ],
2500
                    'follow' => [
2501
                        'type' => Segment::class,
2502
                        'options' => [
2503
                            'route' => '/follow/:id',
2504
                            'constraints' => [
2505
                                'id' => '[A-Za-z0-9\-]+\=*'
2506
                            ],
2507
                            'defaults' => [
2508
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2509
                                'action' => 'follow'
2510
                            ]
2511
                        ]
2512
                    ],
2513
                    'unfollow' => [
2514
                        'type' => Segment::class,
2515
                        'options' => [
2516
                            'route' => '/unfollow/:id',
2517
                            'constraints' => [
2518
                                'id' => '[A-Za-z0-9\-]+\=*'
2519
                            ],
2520
                            'defaults' => [
2521
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2522
                                'action' => 'unfollow'
2523
                            ]
2524
                        ]
2525
                    ],
2526
                    'request' => [
2527
                        'type' => Segment::class,
2528
                        'options' => [
2529
                            'route' => '/request/:id',
2530
                            'constraints' => [
2531
                                'id' => '[A-Za-z0-9\-]+\=*'
2532
                            ],
2533
                            'defaults' => [
2534
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2535
                                'action' => 'request'
2536
                            ]
2537
                        ]
2538
                    ],
2539
                    'accept' => [
2540
                        'type' => Segment::class,
2541
                        'options' => [
2542
                            'route' => '/accept/:id',
2543
                            'constraints' => [
2544
                                'id' => '[A-Za-z0-9\-]+\=*'
2545
                            ],
2546
                            'defaults' => [
2547
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2548
                                'action' => 'accept'
2549
                            ]
2550
                        ]
2551
                    ],
2552
                    'cancel' => [
2553
                        'type' => Segment::class,
2554
                        'options' => [
2555
                            'route' => '/cancel/:id',
2556
                            'constraints' => [
2557
                                'id' => '[A-Za-z0-9\-]+\=*'
2558
                            ],
2559
                            'defaults' => [
2560
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2561
                                'action' => 'cancel'
2562
                            ]
2563
                        ]
2564
                    ],
2565
                    'reject' => [
2566
                        'type' => Segment::class,
2567
                        'options' => [
2568
                            'route' => '/reject/:id',
2569
                            'constraints' => [
2570
                                'id' => '[A-Za-z0-9\-]+\=*'
2571
                            ],
2572
                            'defaults' => [
2573
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2574
                                'action' => 'reject'
2575
                            ]
2576
                        ]
2577
                    ],
2578
                    'leave' => [
2579
                        'type' => Segment::class,
2580
                        'options' => [
2581
                            'route' => '/leave/:id',
2582
                            'constraints' => [
2583
                                'id' => '[A-Za-z0-9\-]+\=*'
2584
                            ],
2585
                            'defaults' => [
2586
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2587
                                'action' => 'leave'
2588
                            ]
2589
                        ]
2590
                    ],
2591
                    'following-companies' => [
2592
                        'type' => Literal::class,
2593
                        'options' => [
2594
                            'route' => '/following-companies',
2595
                            'defaults' => [
2596
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2597
                                'action' => 'followingCompanies'
2598
                            ]
2599
                        ],
2600
                    ],
2601
                    'requests-sent' => [
2602
                        'type' => Literal::class,
2603
                        'options' => [
2604
                            'route' => '/requests-sent',
2605
                            'defaults' => [
2606
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2607
                                'action' => 'requestsSent'
2608
                            ]
2609
                        ],
2610
                        'may_terminate' => true,
2611
                    ],
2612
                    'invitations-received' => [
2613
                        'type' => Literal::class,
2614
                        'options' => [
2615
                            'route' => '/invitations-received',
2616
                            'defaults' => [
2617
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2618
                                'action' => 'invitationsReceived'
2619
                            ]
2620
                        ],
2621
                        'may_terminate' => true,
2622
                    ],
2623
                    'i-work-with' => [
2624
                        'type' => Literal::class,
2625
                        'options' => [
2626
                            'route' => '/i-work-with',
2627
                            'defaults' => [
2628
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2629
                                'action' => 'iWorkWith'
2630
                            ]
2631
                        ],
2632
                        'may_terminate' => true,
2633
                    ],
2634
                    'my-companies' => [
2635
                        'type' => Literal::class,
2636
                        'options' => [
2637
                            'route' => '/my-companies',
2638
                            'defaults' => [
2639
                                'controller' => '\LeadersLinked\Controller\MyCompaniesController',
2640
                                'action' => 'index'
2641
                            ]
2642
                        ],
2643
                        'may_terminate' => true,
2644
                        'child_routes' => [
2645
                            'add' => [
2646
                                'type' => Literal::class,
2647
                                'options' => [
2648
                                    'route' => '/add',
2649
                                    'defaults' => [
2650
                                        'controller' => '\LeadersLinked\Controller\MyCompaniesController',
2651
                                        'action' => 'add'
2652
                                    ]
2653
                                ]
2654
                            ],
2655
                        ]
2656
                    ],
2657
                ]
2658
            ],
2659
            'account-settings' => [
2660
                'type' => Literal::class,
2661
                'options' => [
2662
                    'route' => '/account-settings',
2663
                    'defaults' => [
2664
                        'controller' => '\LeadersLinked\Controller\AccountSettingController',
2665
                        'action' => 'index'
2666
                    ]
2667
                ],
2668
                'may_terminate' => true,
2669
                'child_routes' => [
2670
                    'image' => [
2671
                        'type' => Segment::class,
2672
                        'options' => [
2673
                            'route' => '/image/:operation',
2674
                            'cconstraints' => [
2675
                                'operation' => 'upload|delete'
2676
                            ],
2677
                            'defaults' => [
2678
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2679
                                'action' => 'image',
2680
                                'operation' => 'upload'
2681
                            ]
2682
                        ]
2683
                    ],
2684
                    'deactivate' => [
2685
                        'type' => Literal::class,
2686
                        'options' => [
2687
                            'route' => '/deactivate',
2688
                            'defaults' => [
2689
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2690
                                'action' => 'deactivate'
2691
                            ]
2692
                        ]
2693
                    ],
2694
                    'notifications' => [
2695
                        'type' => Literal::class,
2696
                        'options' => [
2697
                            'route' => '/notification',
2698
                            'defaults' => [
2699
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2700
                                'action' => 'notification'
2701
                            ]
2702
                        ]
2703
                    ],
2704
                    'password' => [
2705
                        'type' => Literal::class,
2706
                        'options' => [
2707
                            'route' => '/password',
2708
                            'defaults' => [
2709
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2710
                                'action' => 'password'
2711
                            ]
2712
                        ]
2713
                    ],
2714
                    'add-facebook' => [
2715
                        'type' => Literal::class,
2716
                        'options' => [
2717
                            'route' => '/add-facebook',
2718
                            'defaults' => [
2719
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2720
                                'action' => 'addFacebook'
2721
                            ]
2722
                        ]
2723
                    ],
2724
                    'remove-facebook' => [
2725
                        'type' => Literal::class,
2726
                        'options' => [
2727
                            'route' => '/remove-facebook',
2728
                            'defaults' => [
2729
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2730
                                'action' => 'removeFacebook'
2731
                            ]
2732
                        ]
2733
                    ],
2734
                    'add-twitter' => [
2735
                        'type' => Literal::class,
2736
                        'options' => [
2737
                            'route' => '/add-twitter',
2738
                            'defaults' => [
2739
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2740
                                'action' => 'addTwitter'
2741
                            ]
2742
                        ]
2743
                    ],
2744
                    'remove-twitter' => [
2745
                        'type' => Literal::class,
2746
                        'options' => [
2747
                            'route' => '/remove-twitter',
2748
                            'defaults' => [
2749
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2750
                                'action' => 'removeTwitter'
2751
                            ]
2752
                        ]
2753
                    ],
2754
                    'add-google' => [
2755
                        'type' => Literal::class,
2756
                        'options' => [
2757
                            'route' => '/add-google',
2758
                            'defaults' => [
2759
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2760
                                'action' => 'addGoogle'
2761
                            ]
2762
                        ]
2763
                    ],
2764
                    'remove-google' => [
2765
                        'type' => Literal::class,
2766
                        'options' => [
2767
                            'route' => '/remove-google',
2768
                            'defaults' => [
2769
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2770
                                'action' => 'removeGoogle'
2771
                            ]
2772
                        ]
2773
                    ],
2774
                    'location' => [
2775
                        'type' => Literal::class,
2776
                        'options' => [
2777
                            'route' => '/location',
2778
                            'defaults' => [
2779
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2780
                                'action' => 'location'
2781
                            ]
2782
                        ]
2783
                    ],
2784
                    'privacy' => [
2785
                        'type' => Literal::class,
2786
                        'options' => [
2787
                            'route' => '/privacy',
2788
                            'defaults' => [
2789
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2790
                                'action' => 'privacy'
2791
                            ]
2792
                        ]
2793
                    ],
2794
                    'basic' => [
2795
                        'type' => Literal::class,
2796
                        'options' => [
2797
                            'route' => '/basic',
2798
                            'defaults' => [
2799
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2800
                                'action' => 'basic'
2801
                            ]
2802
                        ]
2803
                    ],
2804
                    'transactions' => [
2805
                        'type' => Literal::class,
2806
                        'options' => [
2807
                            'route' => '/transactions',
2808
                            'defaults' => [
2809
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2810
                                'action' => 'transactions'
2811
                            ]
2812
                        ],
2813
                        'may_terminate' => true,
2814
                        'child_routes' => [
2815
                            'add-funds' => [
2816
                                'type' => Literal::class,
2817
                                'options' => [
2818
                                    'route' => '/add-funds',
2819
                                    'defaults' => [
2820
                                        'controller' => '\LeadersLinked\Controller\AccountSettingController',
2821
                                        'action' => 'addFund'
2822
                                    ]
2823
                                ]
2824
                            ],
2825
                        ]
2826
                    ],
2827
                    'browsers' => [
2828
                        'type' => Literal::class,
2829
                        'options' => [
2830
                            'route' => '/browsers',
2831
                            'defaults' => [
2832
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2833
                                'action' => 'browsers'
2834
                            ]
2835
                        ]
2836
                    ],
2837
                    'ips' => [
2838
                        'type' => Literal::class,
2839
                        'options' => [
2840
                            'route' => '/ips',
2841
                            'defaults' => [
2842
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2843
                                'action' => 'ips'
2844
                            ]
2845
                        ]
2846
                    ],
2847
                    'devices' => [
2848
                        'type' => Literal::class,
2849
                        'options' => [
2850
                            'route' => '/devices',
2851
                            'defaults' => [
2852
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2853
                                'action' => 'devices'
2854
                            ]
2855
                        ]
2856
                    ],
2857
                    'delete-account' => [
2858
                        'type' => Literal::class,
2859
                        'options' => [
2860
                            'route' => '/delete-account',
2861
                            'defaults' => [
2862
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2863
                                'action' => 'deleteAccount'
2864
                            ]
2865
                        ]
2866
                    ],
2867
                ],
2868
                'may_terminate' => true
2869
            ],
2870
            'moodle' => [
2871
                'type' => Literal::class,
2872
                'options' => [
2873
                    'route' => '/moodle',
2874
                    'defaults' => [
2875
                        'controller' => '\LeadersLinked\Controller\MoodleController',
2876
                        'action' => 'index'
2877
                    ]
2878
                ],
2879
                'may_terminate' => true
2880
            ],
2881
            'oauth' => [
2882
                'type' => Literal::class,
2883
                'options' => [
2884
                    'route' => '/oauth',
2885
                    'defaults' => [
2886
                        'controller' => '\LeadersLinked\Controller\OauthController',
2887
                        'action' => 'index'
2888
                    ]
2889
                ],
2890
                'may_terminate' => true,
2891
                'child_routes' => [
2892
                    'facebook' => [
2893
                        'type' => Literal::class,
2894
                        'options' => [
2895
                            'route' => '/facebook',
2896
                            'defaults' => [
2897
                                'controller' => '\LeadersLinked\Controller\OauthController',
2898
                                'action' => 'facebook'
2899
                            ]
2900
                        ],
2901
                        'may_terminate' => true,
2902
                        'child_routes' => [
2903
                            'delete' => [
2904
                                'type' => Literal::class,
2905
                                'options' => [
2906
                                    'route' => '/delete',
2907
                                    'defaults' => [
2908
                                        'controller' => '\LeadersLinked\Controller\OauthController',
2909
                                        'action' => 'facebookDelete'
2910
                                    ]
2911
                                ],
2912
                                'may_terminate' => true,
2913
                            ],
2914
                            'cancel' => [
2915
                                'type' => Literal::class,
2916
                                'options' => [
2917
                                    'route' => '/cancel',
2918
                                    'defaults' => [
2919
                                        'controller' => '\LeadersLinked\Controller\OauthController',
2920
                                        'action' => 'facebookCancel'
2921
                                    ]
2922
                                ],
2923
                                'may_terminate' => true,
2924
                            ],
2925
                        ],
2926
                    ],
2927
                    'twitter' => [
2928
                        'type' => Literal::class,
2929
                        'options' => [
2930
                            'route' => '/twitter',
2931
                            'defaults' => [
2932
                                'controller' => '\LeadersLinked\Controller\OauthController',
2933
                                'action' => 'twitter'
2934
                            ]
2935
                        ],
2936
                        'may_terminate' => true,
2937
                    ],
2938
                    'google' => [
2939
                        'type' => Literal::class,
2940
                        'options' => [
2941
                            'route' => '/google',
2942
                            'defaults' => [
2943
                                'controller' => '\LeadersLinked\Controller\OauthController',
2944
                                'action' => 'google'
2945
                            ]
2946
                        ],
2947
                        'may_terminate' => true,
2948
                    ],
2949
                    /* 'facebook' => [
2950
                  'type' => Literal::class,
2951
                  'options' => [
2952
                  'route' => '/facebook',
2953
                  'defaults' => [
2954
                  'controller' => '\LeadersLinked\Controller\OauthController',
2955
                  'action' => 'facebook'
2956
                  ]
2957
                  ],
2958
                  'may_terminate' => true,
2959
                  'child_routes' => [
2960
                  'cancel' => [
2961
                  'type' => Literal::class,
2962
                  'options' => [
2963
                  'route' => '/cancel',
2964
                  'defaults' => [
2965
                  'controller' => '\LeadersLinked\Controller\OauthController',
2966
                  'action' => 'facebookCancel'
2967
                  ]
2968
                  ]
2969
                  ],
2970
                  'delete' => [
2971
                  'type' => Literal::class,
2972
                  'options' => [
2973
                  'route' => '/delete',
2974
                  'defaults' => [
2975
                  'controller' => '\LeadersLinked\Controller\OauthController',
2976
                  'action' => 'facebookDelete'
2977
                  ]
2978
                  ]
2979
                  ]
2980
                  ]
2981
                  ] */
2982
                ]
2983
            ],
2984
            'daily-pulse' => [
2985
                'type' => Literal::class,
2986
                'options' => [
2987
                    'route' => '/daily-pulse',
2988
                    'defaults' => [
2989
                        'controller' => '\LeadersLinked\Controller\DailyPulseController',
2990
                        'action' => 'index'
2991
                    ]
2992
                ],
2993
                'may_terminate' => true,
2994
                'child_routes' => [
2995
                    'how_are_you_feel' => [
2996
                        'type' => Segment::class,
2997
                        'options' => [
2998
                            'route' => '/how_are_you_feel/:id',
2999
                            'constraints' => [
3000
                                'id' => '[A-Za-z0-9\-]+\=*'
3001
                            ],
3002
                            'defaults' => [
3003
                                'controller' => '\LeadersLinked\Controller\DailyPulseController',
3004
                                'action' => 'howAreYouFeel'
3005
                            ]
3006
                        ]
3007
                    ],
3008
                    'climate_on_your_organization' => [
3009
                        'type' => Segment::class,
3010
                        'options' => [
3011
                            'route' => '/climate_on_your_organization/:id',
3012
                            'constraints' => [
3013
                                'id' => '[A-Za-z0-9\-]+\=*'
3014
                            ],
3015
                            'defaults' => [
3016
                                'controller' => '\LeadersLinked\Controller\DailyPulseController',
3017
                                'action' => 'climateOnYourOrganization'
3018
                            ]
3019
                        ]
3020
                    ],
3021
                ],
3022
            ],
3023
 
3024
 
3025
            'helpers' => [
3026
                'type' => Literal::class,
3027
                'options' => [
3028
                    'route' => '/helpers',
3029
                    'defaults' => [
3030
                        'controller' => '\LeadersLinked\Controller\HelperController',
3031
                        'action' => 'index'
3032
                    ]
3033
                ],
3034
                'may_terminate' => true,
3035
                'child_routes' => [
3036
                    'menu' => [
3037
                        'type' => Literal::class,
3038
                        'options' => [
3039
                            'route' => '/menu',
3040
                            'defaults' => [
3041
                                'controller' => '\LeadersLinked\Controller\HelperController',
3042
                                'action' => 'menu'
3043
                            ]
3044
                        ]
3045
                    ],
3046
 
3047
                    'search-people' => [
3048
                        'type' => Literal::class,
3049
                        'options' => [
3050
                            'route' => '/search-people',
3051
                            'defaults' => [
3052
                                'controller' => '\LeadersLinked\Controller\HelperController',
3053
                                'action' => 'searchPeople'
3054
                            ]
3055
                        ]
3056
                    ],
3057
                    'company-suggestion' => [
3058
                        'type' => Segment::class,
3059
                        'options' => [
3060
                            'route' => '/company-suggestion/:company_id',
3061
                            'constraints' => [
3062
                                'company_id' => '[A-Za-z0-9\-]+\=*'
3063
                            ],
3064
                            'defaults' => [
3065
                                'controller' => '\LeadersLinked\Controller\HelperController',
3066
                                'action' => 'companySuggestion'
3067
                            ]
3068
                        ]
3069
                    ],
3070
                    'posts' => [
3071
                        'type' => Literal::class,
3072
                        'options' => [
3073
                            'route' => '/posts',
3074
                            'defaults' => [
3075
                                'controller' => '\LeadersLinked\Controller\HelperController',
3076
                                'action' => 'posts'
3077
                            ]
3078
                        ]
3079
                    ],
3080
                    'people-you-may-know' => [
3081
                        'type' => Literal::class,
3082
                        'options' => [
3083
                            'route' => '/people-you-may-know',
3084
                            'defaults' => [
3085
                                'controller' => '\LeadersLinked\Controller\HelperController',
3086
                                'action' => 'peopleYouMayKnow'
3087
                            ]
3088
                        ]
3089
                    ],
3090
                    'people-viewed-profile' => [
3091
                        'type' => Segment::class,
3092
                        'options' => [
3093
                            'route' => '/people-viewed-profile/:user_profile_id',
3094
                            'constraints' => [
3095
                                'user_profile_id' => '[A-Za-z0-9\-]+\=*'
3096
                            ],
3097
                            'defaults' => [
3098
                                'controller' => '\LeadersLinked\Controller\HelperController',
3099
                                'action' => 'peopleViewedProfile'
3100
                            ]
3101
                        ]
3102
                    ],
3103
                    'company-follower' => [
3104
                        'type' => Segment::class,
3105
                        'options' => [
3106
                            'route' => '/company-follower/:company_id',
3107
                            'constraints' => [
3108
                                'company_id' => '[A-Za-z0-9\-]+\=*'
3109
                            ],
3110
                            'defaults' => [
3111
                                'controller' => '\LeadersLinked\Controller\HelperController',
3112
                                'action' => 'companyFollower'
3113
                            ]
3114
                        ]
3115
                    ],
3116
                    'group-members' => [
3117
                        'type' => Segment::class,
3118
                        'options' => [
3119
                            'route' => '/group-members/:group_id',
3120
                            'constraints' => [
3121
                                'group_id' => '[A-Za-z0-9\-]+\=*'
3122
                            ],
3123
                            'defaults' => [
3124
                                'controller' => '\LeadersLinked\Controller\HelperController',
3125
                                'action' => 'groupMembers'
3126
                            ]
3127
                        ],
3128
                        'may_terminate' => true,
3129
                        'child_routes' => [
3130
                            'invite' => [
3131
                                'type' => Literal::class,
3132
                                'options' => [
3133
                                    'route' => '/invite',
3134
                                    'defaults' => [
3135
                                        'controller' => '\LeadersLinked\Controller\HelperController',
3136
                                        'action' => 'groupMemberInvite'
3137
                                    ]
3138
                                ]
3139
                            ],
3140
                            'reject' => [
3141
                                'type' => Segment::class,
3142
                                'options' => [
3143
                                    'route' => '/reject/:user_id',
3144
                                    'constraints' => [
3145
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
3146
                                    ],
3147
                                    'defaults' => [
3148
                                        'controller' => '\LeadersLinked\Controller\HelperController',
3149
                                        'action' => 'groupMemberReject'
3150
                                    ]
3151
                                ]
3152
                            ],
3153
                            'cancel' => [
3154
                                'type' => Segment::class,
3155
                                'options' => [
3156
                                    'route' => '/cancel/:user_id',
3157
                                    'constraints' => [
3158
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
3159
                                    ],
3160
                                    'defaults' => [
3161
                                        'controller' => '\LeadersLinked\Controller\HelperController',
3162
                                        'action' => 'groupMemberCancel'
3163
                                    ]
3164
                                ]
3165
                            ],
3166
                            'approve' => [
3167
                                'type' => Segment::class,
3168
                                'options' => [
3169
                                    'route' => '/approve/:user_id',
3170
                                    'constraints' => [
3171
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
3172
                                    ],
3173
                                    'defaults' => [
3174
                                        'controller' => '\LeadersLinked\Controller\HelperController',
3175
                                        'action' => 'groupMemberApprove'
3176
                                    ]
3177
                                ]
3178
                            ],
3179
                        ]
3180
                    ],
3181
                    'groups-suggestion' => [
3182
                        'type' => Literal::class,
3183
                        'options' => [
3184
                            'route' => '/groups-suggestion',
3185
                            'defaults' => [
3186
                                'controller' => '\LeadersLinked\Controller\HelperController',
3187
                                'action' => 'groupsSuggestion'
3188
                            ]
3189
                        ]
3190
                    ],
3191
                    'my-groups' => [
3192
                        'type' => Literal::class,
3193
                        'options' => [
3194
                            'route' => '/my-groups',
3195
                            'defaults' => [
3196
                                'controller' => '\LeadersLinked\Controller\HelperController',
3197
                                'action' => 'myGroups'
3198
                            ]
3199
                        ]
3200
                    ],
117 efrain 3201
                    'group-types' => [
3202
                        'type' => Literal::class,
3203
                        'options' => [
3204
                            'route' => '/group-types',
3205
                            'defaults' => [
3206
                                'controller' => '\LeadersLinked\Controller\HelperController',
3207
                                'action' => 'groupTypes'
3208
                            ]
3209
                        ]
3210
                    ],
1 efrain 3211
                    'footer' => [
3212
                        'type' => Literal::class,
3213
                        'options' => [
3214
                            'route' => '/footer',
3215
                            'defaults' => [
3216
                                'controller' => '\LeadersLinked\Controller\HelperController',
3217
                                'action' => 'footer'
3218
                            ]
3219
                        ]
3220
                    ],
3221
                    'next-events' => [
3222
                        'type' => Literal::class,
3223
                        'options' => [
3224
                            'route' => '/next-events',
3225
                            'defaults' => [
3226
                                'controller' => '\LeadersLinked\Controller\HelperController',
3227
                                'action' => 'nextEvents'
3228
                            ]
3229
                        ]
3230
                    ],
3231
                    'company-sizes' => [
3232
                        'type' => Literal::class,
3233
                        'options' => [
3234
                            'route' => '/company-sizes',
3235
                            'defaults' => [
3236
                                'controller' => '\LeadersLinked\Controller\HelperController',
3237
                                'action' => 'companySizes'
3238
                            ]
3239
                        ]
3240
                    ],
3241
                    'degrees' => [
3242
                        'type' => Literal::class,
3243
                        'options' => [
3244
                            'route' => '/degrees',
3245
                            'defaults' => [
3246
                                'controller' => '\LeadersLinked\Controller\HelperController',
3247
                                'action' => 'degrees'
3248
                            ]
3249
                        ]
3250
                    ],
3251
                    'languages' => [
3252
                        'type' => Literal::class,
3253
                        'options' => [
3254
                            'route' => '/languages',
3255
                            'defaults' => [
3256
                                'controller' => '\LeadersLinked\Controller\HelperController',
3257
                                'action' => 'languages'
3258
                            ]
3259
                        ]
3260
                    ],
3261
 
3262
                    'skills' => [
3263
                        'type' => Literal::class,
3264
                        'options' => [
3265
                            'route' => '/skills',
3266
                            'defaults' => [
3267
                                'controller' => '\LeadersLinked\Controller\HelperController',
3268
                                'action' => 'skills'
3269
                            ]
3270
                        ]
3271
                    ],
3272
 
3273
                    'aptitudes' => [
3274
                        'type' => Literal::class,
3275
                        'options' => [
3276
                            'route' => '/aptitudes',
3277
                            'defaults' => [
3278
                                'controller' => '\LeadersLinked\Controller\HelperController',
3279
                                'action' => 'aptitudes'
3280
                            ]
3281
                        ]
3282
                    ],
3283
 
3284
                    'hobbies' => [
3285
                        'type' => Literal::class,
3286
                        'options' => [
3287
                            'route' => '/hobbies',
3288
                            'defaults' => [
3289
                                'controller' => '\LeadersLinked\Controller\HelperController',
3290
                                'action' => 'hobbies'
3291
                            ]
3292
                        ]
3293
                    ],
3294
 
3295
                    'industries' => [
3296
                        'type' => Literal::class,
3297
                        'options' => [
3298
                            'route' => '/industries',
3299
                            'defaults' => [
3300
                                'controller' => '\LeadersLinked\Controller\HelperController',
3301
                                'action' => 'industries'
3302
                            ]
3303
                        ]
3304
                    ],
3305
 
3306
                    'timezones' => [
3307
                        'type' => Literal::class,
3308
                        'options' => [
3309
                            'route' => '/timezones',
3310
                            'defaults' => [
3311
                                'controller' => '\LeadersLinked\Controller\HelperController',
3312
                                'action' => 'timeZones'
3313
                            ]
3314
                        ]
3315
                    ],
192 efrain 3316
 
3317
                    'abuse-report' => [
193 efrain 3318
                        'type' => Segment::class,
192 efrain 3319
                        'options' => [
3320
                            'route' => '/abuse-report/:type/:id',
3321
                            'constraints' => [
3322
                                'type' => 'feed|post|comment|message|chat-message|chat-group-message',
3323
                                'id' => '[A-Za-z0-9\-]+\=*',
3324
                            ],
3325
                            'defaults' => [
3326
                                'controller' => '\LeadersLinked\Controller\HelperController',
3327
                                'action' => 'abuseReport'
3328
                            ]
3329
                        ]
3330
                    ],
1 efrain 3331
                ]
3332
            ],
3333
            'help' => [
3334
                'type' => Literal::class,
3335
                'options' => [
3336
                    'route' => '/help',
3337
                    'defaults' => [
3338
                        'controller' => '\LeadersLinked\Controller\HelpController',
3339
                        'action' => 'send'
3340
                    ]
3341
                ],
3342
                'may_terminate' => true,
3343
            ],
3344
            'services' => [
3345
                'type' => Literal::class,
3346
                'options' => [
3347
                    'route' => '/services',
3348
                    'defaults' => [
3349
                        'controller' => '\LeadersLinked\Controller\ServiceController',
3350
                        'action' => 'index'
3351
                    ]
3352
                ],
3353
                'may_terminate' => true,
3354
                'child_routes' => [
3355
                    'storage' => [
3356
                        'type' => Segment::class,
3357
                        'options' => [
3358
                            'route' => '/storage/type/:type[/code/:code][/filename/:filename]',
3359
                            'constraints' => [
3360
                                'type' => 'user|user-profile|user-cover|company|company-cover|group|group-cover|job|chat|image|feed|post|microlearning-topic|microlearning-capsule|microlearning-slide',
3361
                                'code' => '[A-Za-z0-9\-]+\=*',
3362
                                'filename' => '[a-zA-Z0-9\-\_]+\.(jpg|jpeg|gif|png|mp3|mp4|flv|doc|pdf|docx|xls|ppt|pdf|xlsx|pptx)'
3363
                            ],
3364
                            // MjM5ODk0Mzgg
3365
                            'defaults' => [
3366
                                'controller' => '\LeadersLinked\Controller\ServiceController',
3367
                                'action' => 'storage'
3368
                            ]
3369
                        ]
3370
                    ],
3371
                    'device' => [
3372
                        'type' => Literal::class,
3373
                        'options' => [
3374
                            'route' => '/device',
3375
                            'defaults' => [
3376
                                'controller' => '\LeadersLinked\Controller\ServiceController',
3377
                                'action' => 'device'
3378
                            ]
3379
                        ]
3380
                    ],
3381
                    'fcm' => [
3382
                        'type' => Literal::class,
3383
                        'options' => [
3384
                            'route' => '/fcm',
3385
                            'defaults' => [
3386
                                'controller' => '\LeadersLinked\Controller\ServiceController',
3387
                                'action' => 'fcm'
3388
                            ]
3389
                        ]
3390
                    ],
3391
                    'signin' => [
3392
                        'type' => Literal::class,
3393
                        'options' => [
3394
                            'route' => '/signin',
3395
                            'defaults' => [
3396
                                'controller' => '\LeadersLinked\Controller\ServiceController',
3397
                                'action' => 'signin'
3398
                            ]
3399
                        ]
3400
                    ],
3401
                    'check-session' => [
3402
                        'type' => Literal::class,
3403
                        'options' => [
3404
                            'route' => '/check-session',
3405
                            'defaults' => [
3406
                                'controller' => '\LeadersLinked\Controller\ServiceController',
3407
                                'action' => 'checkSession'
3408
                            ]
3409
                        ]
3410
                    ],
3411
                    'signout' => [
3412
                        'type' => Literal::class,
3413
                        'options' => [
3414
                            'route' => '/signout',
3415
                            'defaults' => [
3416
                                'controller' => '\LeadersLinked\Controller\ServiceController',
3417
                                'action' => 'signout'
3418
                            ]
3419
                        ]
3420
                    ],
3421
                    'sync' => [
3422
                        'type' => Literal::class,
3423
                        'options' => [
3424
                            'route' => '/sync',
3425
                            'defaults' => [
3426
                                'controller' => '\LeadersLinked\Controller\ServiceController',
3427
                                'action' => 'sync'
3428
                            ]
3429
                        ]
3430
                    ],
3431
                    'sync-batch' => [
3432
                        'type' => Literal::class,
3433
                        'options' => [
3434
                            'route' => '/sync-batch',
3435
                            'defaults' => [
3436
                                'controller' => '\LeadersLinked\Controller\ServiceController',
3437
                                'action' => 'syncBatch'
3438
                            ]
3439
                        ]
3440
                    ],
3441
                    'delete-account' => [
3442
                        'type' => Literal::class,
3443
                        'options' => [
3444
                            'route' => '/delete-account',
3445
                            'defaults' => [
3446
                                'controller' => '\LeadersLinked\Controller\ServiceController',
3447
                                'action' => 'deleteAccount'
3448
                            ]
3449
                        ]
3450
                    ],
3451
                    'microlearning' => [
3452
                        'type' => Literal::class,
3453
                        'options' => [
3454
                            'route' => '/microlearning',
3455
                            'defaults' => [
3456
                                'controller' => '\LeadersLinked\Controller\ServiceMicrolearningController',
3457
                                'action' => 'index'
3458
                            ]
3459
                        ],
3460
                        'may_terminate' => true,
3461
                        'child_routes' => [
3462
                            'refresh' => [
3463
                                'type' => Literal::class,
3464
                                'options' => [
3465
                                    'route' => '/refresh',
3466
                                    'defaults' => [
3467
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
3468
                                        'action' => 'microlearningRefresh'
3469
                                    ]
3470
                                ]
3471
                            ],
3472
                            'delete-account' => [
3473
                                'type' => Literal::class,
3474
                                'options' => [
3475
                                    'route' => '/delete-account',
3476
                                    'defaults' => [
3477
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
3478
                                        'action' => 'deleteAccount'
3479
                                    ]
3480
                                ]
3481
                            ],
3482
                            'check-changes' => [
3483
                                'type' => Literal::class,
3484
                                'options' => [
3485
                                    'route' => '/check-changes',
3486
                                    'defaults' => [
3487
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
3488
                                        'action' => 'microlearningCheckChanges'
3489
                                    ]
3490
                                ]
3491
                            ],
3492
                            'capsules' => [
3493
                                'type' => Literal::class,
3494
                                'options' => [
3495
                                    'route' => '/capsules',
3496
                                    'defaults' => [
3497
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
3498
                                        'action' => 'microlearningCapsules'
3499
                                    ]
3500
                                ],
3501
                                'may_terminate' => true,
3502
                                'child_routes' => [
161 efrain 3503
 
3504
 
1 efrain 3505
                                    'comments' => [
3506
                                        'type' => Segment::class,
3507
                                        'options' => [
3508
                                            'route' => '/comments/:capsule_id',
3509
                                            'constraints' => [
3510
                                                'capsule_id' => '[A-Za-z0-9\-]+\=*'
3511
                                            ],
3512
                                            'defaults' => [
3513
                                                'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
3514
                                                'action' => 'index'
3515
                                            ]
3516
                                        ],
3517
                                        'may_terminate' => true,
3518
                                        'child_routes' => [
3519
                                            'add' => [
3520
                                                'type' => Literal::class,
3521
                                                'options' => [
3522
                                                    'route' => '/add',
3523
                                                    'defaults' => [
3524
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
3525
                                                        'action' => 'add'
3526
                                                    ]
3527
                                                ]
3528
                                            ],
3529
                                            'get' => [
3530
                                                'type' => Segment::class,
3531
                                                'options' => [
3532
                                                    'route' => '/get/:comment_id',
3533
                                                    'constraints' => [
3534
                                                        'comment_id' => '[A-Za-z0-9\-]+\=*'
3535
                                                    ],
3536
                                                    'defaults' => [
3537
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
3538
                                                        'action' => 'get'
3539
                                                    ]
3540
                                                ]
3541
                                            ],
3542
                                            'edit' => [
3543
                                                'type' => Segment::class,
3544
                                                'options' => [
3545
                                                    'route' => '/edit/:comment_id',
3546
                                                    'constraints' => [
3547
                                                        'comment_id' => '[A-Za-z0-9\-]+\=*'
3548
                                                    ],
3549
                                                    'defaults' => [
3550
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
3551
                                                        'action' => 'edit'
3552
                                                    ]
3553
                                                ]
3554
                                            ],
3555
                                            'delete' => [
3556
                                                'type' => Segment::class,
3557
                                                'options' => [
3558
                                                    'route' => '/delete/:comment_id',
3559
                                                    'constraints' => [
3560
                                                        'comment_id' => '[A-Za-z0-9\-]+\=*'
3561
                                                    ],
3562
                                                    'defaults' => [
3563
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
3564
                                                        'action' => 'delete'
3565
                                                    ]
3566
                                                ]
3567
                                            ],
3568
                                        ]
3569
                                    ],
3570
                                ]
3571
                            ],
3572
 
3573
                        ]
3574
                    ],
3575
                ]
3576
            ],
3577
            'marketplace' => [
3578
                'type' => Literal::class,
3579
                'options' => [
3580
                    'route' => '/marketplace',
3581
                    'defaults' => [
3582
                        'controller' => '\LeadersLinked\Controller\MarketPlaceController',
3583
                        'action' => 'index'
3584
                    ]
3585
                ],
3586
                'may_terminate' => true,
3587
                'child_routes' => [
3588
                    'categories' => [
3589
                        'type' => Segment::class,
3590
                        'options' => [
3591
                            'route' => '/categories',
3592
                            'defaults' => [
3593
                                'controller' => '\LeadersLinked\Controller\MarketPlaceController',
3594
                                'action' => 'getCategories'
3595
                            ]
3596
                        ]
3597
                    ],
3598
                    'enroll' => [
3599
                        'type' => Segment::class,
3600
                        'options' => [
3601
                            'route' => '/enroll/:company_id/:topic_id/:capsule_id',
3602
                            'constraints' => [
3603
                                'company_id' => '[A-Za-z0-9\-]+\=*',
3604
                                'topic_id' => '[A-Za-z0-9\-]+\=*',
3605
                                'capsule_id' => '[A-Za-z0-9\-]+\=*',
3606
                            ],
3607
                            'defaults' => [
3608
                                'controller' => '\LeadersLinked\Controller\MarketPlaceController',
3609
                                'action' => 'enroll'
3610
                            ]
3611
                        ]
3612
                    ],
3613
                    'claim' => [
3614
                        'type' => Segment::class,
3615
                        'options' => [
3616
                            'route' => '/claim/:id',
3617
                            'constraints' => [
3618
                                'id' => '[A-Za-z0-9\-]+\=*',
3619
                            ],
3620
                            'defaults' => [
3621
                                'controller' => '\LeadersLinked\Controller\MarketPlaceController',
3622
                                'action' => 'claim'
3623
                            ]
3624
                        ]
3625
                    ],
3626
                ]
3627
            ],
119 efrain 3628
            'microlearning' => [
3629
                'type' => Literal::class,
3630
                'options' => [
3631
                    'route' => '/microlearning',
3632
                    'defaults' => [
3633
                        'controller' => '\LeadersLinked\Controller\MicrolearningController',
3634
                        'action' => 'index'
3635
                    ]
3636
                ],
3637
                'may_terminate' => true,
3638
                'child_routes' => [
3639
                    'profile' => [
3640
                        'type' => Segment::class,
3641
                        'options' => [
3642
                            'route' => '/profile',
3643
                            'defaults' => [
3644
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3645
                                'action' => 'profile'
3646
                            ]
3647
                        ]
3648
                    ],
3649
                    'companies' => [
3650
                        'type' => Segment::class,
3651
                        'options' => [
3652
                            'route' => '/companies',
3653
                            'defaults' => [
3654
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3655
                                'action' => 'companies'
3656
                            ]
3657
                        ]
3658
                    ],
3659
                    'progress' => [
3660
                        'type' => Segment::class,
3661
                        'options' => [
3662
                            'route' => '/progress/:id',
3663
                            'constraints' => [
3664
                                'id' => '[A-Za-z0-9\-]+\=*',
3665
                            ],
3666
                            'defaults' => [
3667
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3668
                                'action' => 'progress'
3669
                            ]
3670
                        ]
3671
                    ],
3672
                    'timeline' => [
3673
                        'type' => Segment::class,
3674
                        'options' => [
3675
                            'route' => '/timeline',
3676
                            'defaults' => [
3677
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3678
                                'action' => 'timeline'
3679
                            ]
3680
                        ]
3681
                    ],
3682
                    'topics' => [
3683
                        'type' => Segment::class,
3684
                        'options' => [
3685
                            'route' => '/topics',
3686
                            'defaults' => [
3687
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3688
                                'action' => 'topics'
3689
                            ]
161 efrain 3690
                        ],
3691
                        'may_terminate' => true,
3692
 
119 efrain 3693
                    ],
161 efrain 3694
                    'get-topic' => [
3695
                        'type' => Segment::class,
3696
                        'options' => [
3697
                            'route' => '/get-topic/:id',
3698
                            'constraints' => [
3699
                                'id' => '[A-Za-z0-9\-]+\=*'
3700
                            ],
3701
                            'defaults' => [
3702
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3703
                                'action' => 'getTopic'
3704
                            ]
3705
                        ],
3706
                        'may_terminate' => true,
3707
                    ],
119 efrain 3708
                    'capsules' => [
3709
                        'type' => Segment::class,
3710
                        'options' => [
3711
                            'route' => '/capsules/:topic_id',
3712
                            'constraints' => [
3713
                                'topic_id' => '[A-Za-z0-9\-]+\=*',
3714
                            ],
3715
                            'defaults' => [
3716
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3717
                                'action' => 'capsules'
3718
                            ]
161 efrain 3719
                        ],
3720
                        'may_terminate' => true,
119 efrain 3721
                    ],
161 efrain 3722
                    'get-capsule' => [
3723
                        'type' => Segment::class,
3724
                        'options' => [
3725
                            'route' => '/get-capsule/:id',
3726
                            'constraints' => [
3727
                                'id' => '[A-Za-z0-9\-]+\=*',
3728
                            ],
3729
                            'defaults' => [
3730
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3731
                                'action' => 'getCapsule'
3732
                            ],
3733
                            'may_terminate' => true,
3734
                        ],
3735
                    ],
119 efrain 3736
                    'slides' => [
3737
                        'type' => Segment::class,
3738
                        'options' => [
3739
                            'route' => '/slides/:topic_id/:capsule_id',
3740
                            'constraints' => [
3741
                                'topic_id' => '[A-Za-z0-9\-]+\=*',
3742
                                'capsule_id' => '[A-Za-z0-9\-]+\=*',
3743
 
3744
                            ],
3745
                            'defaults' => [
3746
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3747
                                'action' => 'slides'
3748
                            ]
161 efrain 3749
                        ],
3750
                        'may_terminate' => true,
119 efrain 3751
                    ],
161 efrain 3752
                    'get-slide' => [
3753
                        'type' => Segment::class,
3754
                        'options' => [
3755
                            'route' => '/get-slide/:id',
3756
                            'constraints' => [
3757
                                'id' => '[A-Za-z0-9\-]+\=*'
3758
                            ],
3759
                            'defaults' => [
3760
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3761
                                'action' => 'getSlide'
3762
                            ]
3763
                        ],
3764
                        'may_terminate' => true,
3765
                    ],
119 efrain 3766
                    'sync' => [
167 efrain 3767
 
119 efrain 3768
                        'type' => Segment::class,
3769
                        'options' => [
167 efrain 3770
                            'route' => '/sync/operation/:operation/topic/:topic_uuid[/capsule/:capsule_uuid][/slide/:slide_uuid][/]',
3771
                            'constraints' => [
3772
                                'topic_uuid' => '[A-Za-z0-9\-]+\=*',
3773
                                'capsule_uuid' => '[A-Za-z0-9\-]+\=*',
3774
                                'slide_uuid' => '[A-Za-z0-9\-]+\=*',
3775
                                'operation' => 'slide-view|capsule-close|topic-close',
3776
                            ],
119 efrain 3777
                            'defaults' => [
3778
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3779
                                'action' => 'sync'
3780
                            ]
3781
                        ]
3782
                    ],
3783
                    'last-capsule-in-progress' => [
3784
                        'type' => Segment::class,
3785
                        'options' => [
3786
                            'route' => '/last-capsule-in-progress',
3787
                            'defaults' => [
3788
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3789
                                'action' => 'lastCapsuleInProgress'
3790
                            ]
3791
                        ]
3792
                    ],
3793
                    'capsules-pending' => [
3794
                        'type' => Segment::class,
3795
                        'options' => [
3796
                            'route' => '/capsules-pending',
3797
                            'defaults' => [
3798
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3799
                                'action' => 'capsulesPending'
3800
                            ]
3801
                        ]
3802
                    ],
3803
                    'capsules-completed' => [
3804
                        'type' => Segment::class,
3805
                        'options' => [
3806
                            'route' => '/capsules-completed',
3807
                            'defaults' => [
3808
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3809
                                'action' => 'capsulesCompleted'
3810
                            ]
3811
                        ]
3812
                    ],
3813
                    'capsules-in-progress' => [
3814
                        'type' => Segment::class,
3815
                        'options' => [
3816
                            'route' => '/capsules-in-progress',
3817
                            'defaults' => [
3818
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3819
                                'action' => 'capsulesInProgress'
3820
                            ]
3821
                        ]
3822
                    ],
3823
                    'capsules-comments' => [
3824
                        'type' => Segment::class,
3825
                        'options' => [
3826
                            'route' => '/capsules-comments/:capsule_id',
3827
                            'constraints' => [
3828
                                'capsule_id' => '[A-Za-z0-9\-]+\=*',
3829
                            ],
3830
                            'defaults' => [
3831
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3832
                                'action' => 'capsuleComments'
3833
                            ]
3834
                        ],
3835
                        'may_terminate' => true,
3836
                        'child_routes' => [
3837
                            'add' => [
3838
                                'type' => Segment::class,
3839
                                'options' => [
3840
                                    'route' => '/add',
3841
                                    'defaults' => [
3842
                                        'controller' => '\LeadersLinked\Controller\MicrolearningController',
3843
                                        'action' => 'capsuleAddMyComment'
3844
                                    ]
3845
                                ]
3846
                            ],
3847
                            'delete' => [
3848
                                'type' => Segment::class,
3849
                                'options' => [
3850
                                    'route' => '/delete/:comment_id',
3851
                                    'constraints' => [
3852
                                        'comment_id' => '[A-Za-z0-9\-]+\=*',
3853
                                    ],
3854
                                    'defaults' => [
3855
                                        'controller' => '\LeadersLinked\Controller\MicrolearningController',
3856
                                        'action' => 'capsuleDeleteMyComment'
3857
                                    ]
3858
                                ]
3859
                            ],
3860
                        ]
3861
                    ],
3862
 
3863
 
3864
 
3865
                    /*
3866
 
3867
                    'capsule' => [
3868
                        'type' => Segment::class,
3869
                        'options' => [
3870
                            'route' => '/capsule',
3871
                            'defaults' => [
3872
                                'controller' => '\LeadersLinked\Controller\MicrolearningController',
3873
                                'action' => 'lastCapsuleInProgress'
3874
                            ]
3875
                        ]
3876
                    ],
3877
 
3878
 
3879
                    capsuleCommentsAction
3880
                    capsuleDeleteMyCommentAction
3881
                    capsuleAddMyCommentAction
3882
 
3883
                    */
3884
 
3885
 
3886
                ]
3887
            ]
3888
        ],
3889
 
1 efrain 3890
    ],
3891
    'controllers' => [
3892
        'factories' => [
203 efrain 3893
            \LeadersLinked\Controller\AbuseReportController::class => \LeadersLinked\Factory\Controller\AbuseReportControllerFactory::class,
3894
 
1 efrain 3895
            \LeadersLinked\Controller\AccountSettingController::class => \LeadersLinked\Factory\Controller\AccountSettingControllerFactory::class,
3896
            \LeadersLinked\Controller\AuthController::class => \LeadersLinked\Factory\Controller\AuthControllerFactory::class,
3897
            \LeadersLinked\Controller\BackendController::class => \LeadersLinked\Factory\Controller\BackendControllerFactory::class,
3898
            \LeadersLinked\Controller\CalendarController::class => \LeadersLinked\Factory\Controller\CalendarControllerFactory::class,
3899
            \LeadersLinked\Controller\ChatController::class => \LeadersLinked\Factory\Controller\ChatControllerFactory::class,
3900
            \LeadersLinked\Controller\CompanyController::class => \LeadersLinked\Factory\Controller\CompanyControllerFactory::class,
3901
            \LeadersLinked\Controller\DashboardController::class => \LeadersLinked\Factory\Controller\DashboardControllerFactory::class,
3902
            \LeadersLinked\Controller\DailyPulseController::class => \LeadersLinked\Factory\Controller\DailyPulseControllerFactory::class,
3903
            \LeadersLinked\Controller\ConnectionController::class => \LeadersLinked\Factory\Controller\ConnectionControllerFactory::class,
3904
            \LeadersLinked\Controller\HomeController::class => \LeadersLinked\Factory\Controller\HomeControllerFactory::class,
3905
            \LeadersLinked\Controller\HelperController::class => \LeadersLinked\Factory\Controller\HelperControllerFactory::class,
3906
            \LeadersLinked\Controller\HelpController::class => \LeadersLinked\Factory\Controller\HelpControllerFactory::class,
3907
            \LeadersLinked\Controller\FeedController::class => \LeadersLinked\Factory\Controller\FeedControllerFactory::class,
3908
            \LeadersLinked\Controller\MarketPlaceController::class => \LeadersLinked\Factory\Controller\MarketPlaceControllerFactory::class,
3909
            \LeadersLinked\Controller\MoodleController::class => \LeadersLinked\Factory\Controller\MoodleControllerFactory::class,
3910
            \LeadersLinked\Controller\OauthController::class => \LeadersLinked\Factory\Controller\OauthControllerFactory::class,
3911
            \LeadersLinked\Controller\JobController::class => \LeadersLinked\Factory\Controller\JobControllerFactory::class,
3912
            \LeadersLinked\Controller\InMailController::class => \LeadersLinked\Factory\Controller\InMailControllerFactory::class,
3913
            \LeadersLinked\Controller\ImpersonateController::class => \LeadersLinked\Factory\Controller\ImpersonateControllerFactory::class,
3914
            \LeadersLinked\Controller\GroupController::class => \LeadersLinked\Factory\Controller\GroupControllerFactory::class,
119 efrain 3915
            \LeadersLinked\Controller\MicrolearningController::class => \LeadersLinked\Factory\Controller\MicrolearningControllerFactory::class,
1 efrain 3916
            \LeadersLinked\Controller\MyGroupsController::class => \LeadersLinked\Factory\Controller\MyGroupsControllerFactory::class,
3917
            \LeadersLinked\Controller\MyCompaniesController::class => \LeadersLinked\Factory\Controller\MyCompaniesControllerFactory::class,
3918
            \LeadersLinked\Controller\NotificationController::class => \LeadersLinked\Factory\Controller\NotificationControllerFactory::class,
3919
            \LeadersLinked\Controller\PaypalController::class => \LeadersLinked\Factory\Controller\PaypalControllerFactory::class,
3920
            \LeadersLinked\Controller\PostController::class => \LeadersLinked\Factory\Controller\PostControllerFactory::class,
3921
            \LeadersLinked\Controller\ProfileController::class => \LeadersLinked\Factory\Controller\ProfileControllerFactory::class,
3922
            \LeadersLinked\Controller\ProfileMicrolearningController::class => \LeadersLinked\Factory\Controller\ProfileMicrolearningControllerFactory::class,
3923
            // \LeadersLinked\Controller\SelfEvaluationController::class => \LeadersLinked\Factory\Controller\SelfEvaluationControllerFactory::class,
3924
            //\LeadersLinked\Controller\PerformanceEvaluationController::class => \LeadersLinked\Factory\Controller\PerformanceEvaluationControllerFactory::class,
3925
            \LeadersLinked\Controller\MyCoachController::class => \LeadersLinked\Factory\Controller\MyCoachControllerFactory::class,
3926
 
3927
 
3928
            \LeadersLinked\Controller\KnowledgeAreaController::class => \LeadersLinked\Factory\Controller\KnowledgeAreaControllerFactory::class,
3929
            \LeadersLinked\Controller\MyProfilesController::class => \LeadersLinked\Factory\Controller\MyProfilesControllerFactory::class,
3930
            \LeadersLinked\Controller\SearchController::class => \LeadersLinked\Factory\Controller\SearchControllerFactory::class,
3931
            \LeadersLinked\Controller\ShorterController::class => \LeadersLinked\Factory\Controller\ShorterControllerFactory::class,
3932
            \LeadersLinked\Controller\StorageController::class => \LeadersLinked\Factory\Controller\StorageControllerFactory::class,
3933
            \LeadersLinked\Controller\StorageNetworkController::class => \LeadersLinked\Factory\Controller\StorageNetworkControllerFactory::class,
3934
            \LeadersLinked\Controller\ServiceController::class => \LeadersLinked\Factory\Controller\ServiceControllerFactory::class,
3935
            \LeadersLinked\Controller\ServiceCapsuleCommentsController::class => \LeadersLinked\Factory\Controller\ServiceCapsuleCommentsControllerFactory::class,
3936
           // \LeadersLinked\Controller\ZoomController::class => \LeadersLinked\Factory\Controller\ZoomControllerFactory::class,
3937
 
3938
        ],
3939
        'aliases' => [
203 efrain 3940
            '\LeadersLinked\Controller\AbuseReportController' => \LeadersLinked\Controller\AbuseReportController::class,
3941
 
1 efrain 3942
            '\LeadersLinked\Controller\AuthController' => \LeadersLinked\Controller\AuthController::class,
3943
            '\LeadersLinked\Controller\BackendController' => \LeadersLinked\Controller\BackendController::class,
3944
            '\LeadersLinked\Controller\AccountSettingController' => \LeadersLinked\Controller\AccountSettingController::class,
3945
            '\LeadersLinked\Controller\CalendarController' => \LeadersLinked\Controller\CalendarController::class,
3946
            '\LeadersLinked\Controller\ChatController' => \LeadersLinked\Controller\ChatController::class,
3947
            '\LeadersLinked\Controller\CompanyController' => \LeadersLinked\Controller\CompanyController::class,
3948
            '\LeadersLinked\Controller\ConnectionController' => \LeadersLinked\Controller\ConnectionController::class,
3949
            '\LeadersLinked\Controller\DashboardController' => \LeadersLinked\Controller\DashboardController::class,
3950
            '\LeadersLinked\Controller\HomeController' => \LeadersLinked\Controller\HomeController::class,
3951
            '\LeadersLinked\Controller\HelpController' => \LeadersLinked\Controller\HelpController::class,
3952
            '\LeadersLinked\Controller\HelperController' => \LeadersLinked\Controller\HelperController::class,
3953
            '\LeadersLinked\Controller\FeedController' => \LeadersLinked\Controller\FeedController::class,
3954
            '\LeadersLinked\Controller\InMailController' => \LeadersLinked\Controller\InMailController::class,
3955
            '\LeadersLinked\Controller\ImpersonateController' => \LeadersLinked\Controller\ImpersonateController::class,
3956
            '\LeadersLinked\Controller\JobController' => \LeadersLinked\Controller\JobController::class,
3957
            '\LeadersLinked\Controller\GroupController' => \LeadersLinked\Controller\GroupController::class,
3958
            '\LeadersLinked\Controller\MyGroupsController' => \LeadersLinked\Controller\MyGroupsController::class,
3959
            '\LeadersLinked\Controller\MyCompaniesController' => \LeadersLinked\Controller\MyCompaniesController::class,
3960
            '\LeadersLinked\Controller\PaypalController' => \LeadersLinked\Controller\PaypalController::class,
3961
            '\LeadersLinked\Controller\PostController' => \LeadersLinked\Controller\PostController::class,
3962
            '\LeadersLinked\Controller\ProfileController' => \LeadersLinked\Controller\ProfileController::class,
3963
 
119 efrain 3964
            '\LeadersLinked\Controller\MicrolearningController' => \LeadersLinked\Controller\MicrolearningController::class,
1 efrain 3965
            '\LeadersLinked\Controller\MyProfilesController' => \LeadersLinked\Controller\MyProfilesController::class,
3966
            '\LeadersLinked\Controller\MarketPlaceController' => \LeadersLinked\Controller\MarketPlaceController::class,
3967
            '\LeadersLinked\Controller\MoodleController' => \LeadersLinked\Controller\MoodleController::class,
3968
            '\LeadersLinked\Controller\NotificationController' => \LeadersLinked\Controller\NotificationController::class,
3969
            '\LeadersLinked\Controller\SearchController' => \LeadersLinked\Controller\SearchController::class,
3970
            '\LeadersLinked\Controller\StorageController' => \LeadersLinked\Controller\StorageController::class,
3971
            '\LeadersLinked\Controller\StorageNetworkController' => \LeadersLinked\Controller\StorageNetworkController::class,
3972
            '\LeadersLinked\Controller\OauthController' => \LeadersLinked\Controller\OauthController::class,
3973
            '\LeadersLinked\Controller\ServiceController' => \LeadersLinked\Controller\ServiceController::class,
3974
            '\LeadersLinked\Controller\ServiceCapsuleCommentsController' => \LeadersLinked\Controller\ServiceCapsuleCommentsController::class,
3975
            '\LeadersLinked\Controller\ShorterController' => \LeadersLinked\Controller\ShorterController::class,
3976
 
3977
 
3978
 
3979
            '\LeadersLinked\Controller\KnowledgeAreaController' => \LeadersLinked\Controller\KnowledgeAreaController::class,
3980
            '\LeadersLinked\Controller\MyCoachController' => \LeadersLinked\Controller\MyCoachController::class,
3981
            '\LeadersLinked\Controller\DailyPulseController' => \LeadersLinked\Controller\DailyPulseController::class,
3982
 
3983
 
3984
            //'\LeadersLinked\Controller\SelfEvaluationController' => \LeadersLinked\Controller\SelfEvaluationController::class,
3985
            //'\LeadersLinked\Controller\ZoomController' => \LeadersLinked\Controller\ZoomController::class,
3986
        ]
3987
    ],
3988
    'laminas-cli' => [
3989
        'commands' => [
3990
            'process-queue-email' => \LeadersLinked\Command\ProcessQueueEmailCommand::class,
3991
            'process-queue-push' => \LeadersLinked\Command\ProcessQueuePushCommand::class,
3992
            'process-queue-user-deleted' => \LeadersLinked\Command\ProcessQueueUserDeletedCommand::class,
3993
            'process-queue-video-convert' => \LeadersLinked\Command\ProcessQueueVideoConvertCommand::class,
3994
            'recalculate-microlearning-progress' => \LeadersLinked\Command\RecalculateMicrolearningProgressCommand::class,
3995
            'check-owner-user-for-company' => \LeadersLinked\Command\CheckOwnerUserForCompanyCommand::class,
3996
            'check-preview-poster-for-feed' => \LeadersLinked\Command\CheckPreviewPosterForFeedCommand::class,
3997
            'daily-pulse-simulate' => \LeadersLinked\Command\DailyPulseSimulateCommand::class,
3998
 
3999
        ]
4000
    ],
72 efrain 4001
    'listeners' => [
95 efrain 4002
      //  \LeadersLinked\Listener\CorsRequestListener::class,
72 efrain 4003
    ],
1 efrain 4004
    'service_manager' => [
4005
        'abstract_factories' => [
4006
            \Laminas\Db\Adapter\AdapterAbstractServiceFactory::class
4007
        ],
4008
        'factories' => [
4009
            'RenderingStrategy' => function ($container) {
4010
                $translator = $container->get('MvcTranslator');
4011
                return new \LeadersLinked\View\RenderingStrategy($translator);
4012
            },
72 efrain 4013
           // 'corsRequestListener' => function ($container) {
4014
    //
4015
         //       return new \LeadersLinked\Listener\CorsRequestListener();
4016
      //      },
1 efrain 4017
            'menuNavigation' => \LeadersLinked\Navigation\MenuNavigation::class,
4018
            'footerNavigation' => \LeadersLinked\Navigation\FooterNavigation::class,
4019
 
4020
            \LeadersLinked\Command\ProcessQueueEmailCommand::class => \LeadersLinked\Factory\Command\ProcessQueueEmailCommandFactory::class,
4021
            \LeadersLinked\Command\ProcessQueuePushCommand::class => \LeadersLinked\Factory\Command\ProcessQueuePushCommandFactory::class,
4022
            \LeadersLinked\Command\ProcessQueueUserDeletedCommand::class => \LeadersLinked\Factory\Command\ProcessQueueUserDeletedCommandFactory::class,
4023
 
4024
            \LeadersLinked\Command\ProcessQueueVideoConvertCommand::class => \LeadersLinked\Factory\Command\ProcessQueueVideoConvertCommandFactory::class,
4025
            \LeadersLinked\Command\RecalculateMicrolearningProgressCommand::class => \LeadersLinked\Factory\Command\RecalculateMicrolearningProgressCommandFactory::class,
4026
            \LeadersLinked\Command\CheckOwnerUserForCompanyCommand::class => \LeadersLinked\Factory\Command\CheckOwnerUserForCompanyCommandFactory::class,
4027
 
4028
            \LeadersLinked\Command\CheckPreviewPosterForFeedCommand::class => \LeadersLinked\Factory\Command\CheckPreviewPosterForFeedCommandFactory::class,
4029
 
4030
 
4031
            \LeadersLinked\Command\DailyPulseSimulateCommand::class => \LeadersLinked\Factory\Command\DailyPulseSimulateCommandFactory::class,
4032
 
4033
        ],
4034
        'aliases' => [
4035
            // 'leaders-linked-storage' => \LeadersLinked\Service\StorageService::class
4036
        ]
4037
    ],
4038
    'view_helpers' => [
4039
        'factories' => [
4040
            \LeadersLinked\Helper\ChatHelper::class => \LeadersLinked\Factory\Helper\ChatHelperFactory::class,
4041
            // \LeadersLinked\Helper\CompanyFollowerHelper::class => \LeadersLinked\Factory\Helper\CompanyFollowerHelperFactory::class,
4042
            // \LeadersLinked\Helper\CompanySuggestionHelper::class => \LeadersLinked\Factory\Helper\CompanySuggestionHelperFactory::class,
4043
            \LeadersLinked\Helper\CurrentUserHelper::class => \LeadersLinked\Factory\Helper\CurrentUserHelperFactory::class,
4044
            \LeadersLinked\Helper\CurrentNetworkHelper::class => \LeadersLinked\Factory\Helper\CurrentNetworkHelperFactory::class,
4045
            // \LeadersLinked\Helper\GroupMembersHelper::class => \LeadersLinked\Factory\Helper\GroupMembersHelperFactory::class,
4046
            // \LeadersLinked\Helper\GroupsSuggestionHelper::class => \LeadersLinked\Factory\Helper\GroupsSuggestionHelperFactory::class,
4047
            \LeadersLinked\Helper\MenuHelper::class => \LeadersLinked\Factory\Helper\MenuHelperFactory::class,
4048
            // \LeadersLinked\Helper\PeopleViewedProfileHelper::class => \LeadersLinked\Factory\Helper\PeopleViewedProfileHelperFactory::class,
4049
            //  \LeadersLinked\Helper\PeopleYouMayKnowHelper::class => \LeadersLinked\Factory\Helper\PeopleYouMayKnowHelperFactory::class,
4050
            //  \LeadersLinked\Helper\SimilarGroupsHelper::class => \LeadersLinked\Factory\Helper\SimilarGroupsHelperFactory::class
4051
            \LeadersLinked\Helper\NetworkFavicoHelper::class => \LeadersLinked\Factory\Helper\NetworkFavicoHelperFactory::class,
4052
            \LeadersLinked\Helper\NetworkIntroHelper::class => \LeadersLinked\Factory\Helper\NetworkIntroHelperFactory::class,
4053
            \LeadersLinked\Helper\NetworkLogoHelper::class => \LeadersLinked\Factory\Helper\NetworkLogoHelperFactory::class,
4054
            \LeadersLinked\Helper\NetworkNavbarHelper::class => \LeadersLinked\Factory\Helper\NetworkNavbarHelperFactory::class,
4055
            \LeadersLinked\Helper\NetworkStylesAndColorsHelper::class => \LeadersLinked\Factory\Helper\NetworkStylesAndColorsHelperFactory::class,
4056
 
4057
        ],
4058
        'invokables' => [
4059
            //'menuBackendHelper' => \LeadersLinked\Helper\MenuBackendHelper::class,
4060
            // 'menuMyCompanyHelper' => \LeadersLinked\Helper\MenuMyCompanyHelper::class,
4061
            'footerHelper' => \LeadersLinked\Helper\FooterHelper::class
4062
        ],
4063
        'aliases' => [
4064
            'chatHelper' => \LeadersLinked\Helper\ChatHelper::class,
4065
            //'companyFollowerHelper' => \LeadersLinked\Helper\CompanyFollowerHelper::class,
4066
            // 'companySuggestionHelper' => \LeadersLinked\Helper\CompanySuggestionHelper::class,
4067
            'currentUserHelper' => \LeadersLinked\Helper\CurrentUserHelper::class,
4068
            'currentNetworkHelper' => \LeadersLinked\Helper\CurrentNetworkHelper::class,
4069
            'menuHelper' => \LeadersLinked\Helper\MenuHelper::class,
4070
            //'peopleViewedProfileHelper' => \LeadersLinked\Helper\PeopleViewedProfileHelper::class,
4071
            //'peopleYouMayKnowHelper' => \LeadersLinked\Helper\PeopleYouMayKnowHelper::class,
4072
            //'groupMembersHelper' => \LeadersLinked\Helper\GroupMembersHelper::class,
4073
            //'similarGroupsHelper' => \LeadersLinked\Helper\SimilarGroupsHelper::class
4074
            'networkFavicoHelper'  => \LeadersLinked\Helper\NetworkFavicoHelper::class,
4075
            'networkIntroHelper' => \LeadersLinked\Helper\NetworkIntroHelper::class,
4076
            'networkLogoHelper'  => \LeadersLinked\Helper\NetworkLogoHelper::class,
4077
            'networkNavbarHelper'  => \LeadersLinked\Helper\NetworkNavbarHelper::class,
4078
            'networkStylesAndColorsHelper'  => \LeadersLinked\Helper\NetworkStylesAndColorsHelper::class,
4079
 
4080
        ]
4081
    ],
4082
    'controller_plugins' => [
4083
        'invokables' => [],
4084
        'factories' => [
4085
            \LeadersLinked\Plugin\CurrentUserPlugin::class => \LeadersLinked\Factory\Plugin\CurrentUserPluginFactory::class,
4086
            \LeadersLinked\Plugin\CurrentNetworkPlugin::class => \LeadersLinked\Factory\Plugin\CurrentNetworkPluginFactory::class,
4087
        ],
4088
        'aliases' => [
4089
            'currentUserPlugin' => \LeadersLinked\Plugin\CurrentUserPlugin::class,
4090
            'currentNetworkPlugin' => \LeadersLinked\Plugin\CurrentNetworkPlugin::class,
4091
        ]
4092
    ],
4093
    'view_manager' => [
4094
        'display_not_found_reason' => true,
4095
        'display_exceptions' => true,
4096
        'doctype' => 'HTML5',
4097
        'not_found_template' => 'error/404',
4098
        'exception_template' => 'error/index',
4099
        'template_map' => [
4100
            'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
4101
            'error/404' => __DIR__ . '/../view/error/404.phtml',
4102
            'error/index' => __DIR__ . '/../view/error/index.phtml'
4103
        ],
4104
        'template_path_stack' => [
4105
            __DIR__ . '/../view'
4106
        ],
4107
        'strategies' => [
4108
            'ViewJsonStrategy',
4109
            'RenderingStrategy'
4110
        ]
4111
    ]
4112
];