Proyectos de Subversion LeadersLinked - Services

Rev

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