Proyectos de Subversion LeadersLinked - Services

Rev

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