Proyectos de Subversion LeadersLinked - Services

Rev

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