Proyectos de Subversion LeadersLinked - Services

Rev

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