Proyectos de Subversion LeadersLinked - Services

Rev

Rev 320 | Rev 325 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

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