Proyectos de Subversion LeadersLinked - Services

Rev

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