Proyectos de Subversion LeadersLinked - Services

Rev

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