Proyectos de Subversion LeadersLinked - Services

Rev

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