Proyectos de Subversion LeadersLinked - Services

Rev

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