Proyectos de Subversion LeadersLinked - Services

Rev

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