Proyectos de Subversion LeadersLinked - Services

Rev

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