Proyectos de Subversion LeadersLinked - Services

Rev

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