Proyectos de Subversion LeadersLinked - Services

Rev

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