Proyectos de Subversion LeadersLinked - Services

Rev

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