Proyectos de Subversion LeadersLinked - Services

Rev

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