Proyectos de Subversion LeadersLinked - Services

Rev

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