Proyectos de Subversion LeadersLinked - Services

Rev

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