Proyectos de Subversion LeadersLinked - Services

Rev

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