Proyectos de Subversion LeadersLinked - Services

Rev

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