Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 3298 | Rev 3379 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
<?php
553 geraldo 2
 
3
declare(strict_types=1);
4
 
1 www 5
namespace LeadersLinked;
6
 
7
use Laminas\Router\Http\Literal;
8
use Laminas\Router\Http\Segment;
9
 
1044 efrain 10
 
1 www 11
return [
12
    'navigation' => [
13
        'menu' => [
14
            [
15
                'label' => 'LABEL_HOME',
16
                'route' => 'dashboard',
1412 efrain 17
                'class' => '/images/navbar/home.svg',
1 www 18
            ],
19
            [
20
                'label' => 'LABEL_PROFILE',
21
                'route' => 'profile',
1412 efrain 22
                'class' => '/images/navbar/perfil.svg',
1 www 23
                'pages' => [
24
                    [
2920 efrain 25
                        'label' => 'LABEL_CONNECTIONS',
26
                        'route' => 'connection',
27
                        'class' =>'/images/navbar/conexion.svg',
28
                        'pages' => [
29
                            [
30
                                'label' => 'LABEL_MY_CONNECTIONS',
31
                                'route' => 'connection/my-connections'
32
                            ],
33
                            [
34
                                'label' => 'LABEL_INVITATIONS_SENT',
35
                                'route' => 'connection/invitations-sent'
36
                            ],
37
                            [
38
                                'label' => 'LABEL_INVITATIONS_RECEIVED',
39
                                'route' => 'connection/invitations-received'
40
                            ],
41
                            [
42
                                'label' => 'LABEL_PEOPLE_YOU_MAY_KNOW',
43
                                'route' => 'connection/people-you-may-know'
44
                            ],
45
                            [
46
                                'label' => 'LABEL_PEOPLE_BLOCKED',
47
                                'route' => 'connection/people-blocked'
48
                            ],
49
 
50
 
51
                        ]
52
                    ],
53
                    [
1 www 54
                        'label' => 'LABEL_MY_PROFILES',
55
                        'route' => 'profile/my-profiles'
56
                    ],
57
                    [
1044 efrain 58
                        'label' => 'LABEL_JOBS_APPLIED',
59
                        'route' => 'job/applied-jobs'
263 geraldo 60
                    ],
61
                    [
1044 efrain 62
                        'label' => 'LABEL_JOBS_SAVED',
63
                        'route' => 'job/saved-jobs'
558 geraldo 64
                    ],
65
                    [
1044 efrain 66
                        'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
67
                        'route' => 'profile/people-viewed-profile'
68
                    ],
2920 efrain 69
 
1 www 70
                ]
71
            ],
1044 efrain 72
 
2920 efrain 73
 
1 www 74
            [
75
                'label' => 'LABEL_COMPANIES',
76
                'route' => 'company',
1412 efrain 77
                'class' => '/images/navbar/empresa.svg',
1 www 78
                'pages' => [
79
                    [
80
                        'label' => 'LABEL_MY_COMPANIES',
81
                        'route' => 'company/my-companies'
82
                    ],
83
                    [
84
                        'label' => 'LABEL_COMPANIES_I_FOLLOW',
85
                        'route' => 'company/following-companies'
86
                    ],
87
                    [
88
                        'label' => 'LABEL_COMPANIES_I_WORK_WITH',
89
                        'route' => 'company/i-work-with'
90
                    ],
91
                    [
92
                        'label' => 'LABEL_REQUESTS_SENT',
93
                        'route' => 'company/requests-sent'
94
                    ],
95
                    [
96
                        'label' => 'LABEL_INVITATIONS_RECEIVED',
97
                        'route' => 'company/invitations-received'
98
                    ]
99
                ]
100
            ],
1044 efrain 101
 
1 www 102
            [
103
                'label' => 'LABEL_GROUPS',
104
                'route' => 'group',
1412 efrain 105
                'class' => '/images/navbar/grupos.svg',
1 www 106
                'pages' => [
107
                    [
108
                        'label' => 'LABEL_MY_GROUPS',
109
                        'route' => 'group/my-groups'
110
                    ],
111
                    [
112
                        'label' => 'LABEL_JOINED_GROUPS',
113
                        'route' => 'group/joined-groups'
114
                    ],
115
                    [
116
                        'label' => 'LABEL_REQUESTS_SENT',
117
                        'route' => 'group/requests-sent'
118
                    ],
119
                    [
120
                        'label' => 'LABEL_INVITATIONS_RECEIVED',
121
                        'route' => 'group/invitations-received'
122
                    ]
123
                ]
124
            ],
1044 efrain 125
            [
1183 efrain 126
                'label' => 'LABEL_MARKETPLACE',
1044 efrain 127
                'route' => 'marketplace',
1412 efrain 128
                'class' => '/images/navbar/market-place.svg',
1044 efrain 129
            ],
1412 efrain 130
 
131
 
132
 
133
 
134
 
135
 
136
 
1044 efrain 137
 
553 geraldo 138
        /* [
139
          'label' => 'LABEL_MESSAGES',
140
          'route' => 'inmail',
141
          'class' => 'fa fa-envelope',
142
          ],
143
          [
144
          'label' => 'LABEL_NOTIFICATIONS',
145
          'route' => 'dashboard',
146
          'class' => 'fa fa-bolt',
147
          ], */
1 www 148
        ],
149
        'footer' => [
150
            [
151
                'label' => 'LABEL_PRIVACY_POLICY',
152
                'route' => 'privacy-policy'
153
            ],
154
            [
155
                'label' => 'LABEL_PROFESSIONALISM_POLICY',
156
                'route' => 'professionalism-policy'
157
            ],
158
            [
159
                'label' => 'LABEL_COOKIES_POLICY',
160
                'route' => 'cookies'
161
            ],
162
            [
163
                'label' => 'LABEL_TERMS_AND_CONDITIONS',
164
                'route' => 'terms-and-conditions'
165
            ],
166
        ]
167
    ],
168
    'router' => [
169
        'routes' => [
170
            'signin' => [
171
                'type' => Literal::class,
172
                'options' => [
173
                    'route' => '/signin',
174
                    'defaults' => [
175
                        'controller' => '\LeadersLinked\Controller\AuthController',
176
                        'action' => 'signin'
177
                    ]
178
                ],
179
                'may_terminate' => true,
180
                'child_routes' => [
553 geraldo 181
                    /* 'test' => [
182
                      'type' => Literal::class,
183
                      'options' => [
184
                      'route' => '/test',
185
                      'defaults' => [
186
                      'controller' => '\LeadersLinked\Controller\AuthController',
187
                      'action' => 'test',
188
                      ],
189
                      ],
190
                      ], */
3298 efrain 191
 
1 www 192
                    'facebook' => [
193
                        'type' => Literal::class,
194
                        'options' => [
195
                            'route' => '/facebook',
196
                            'defaults' => [
197
                                'controller' => '\LeadersLinked\Controller\AuthController',
198
                                'action' => 'facebook',
199
                            ],
200
                        ],
201
                    ],
202
                    'twitter' => [
203
                        'type' => Literal::class,
204
                        'options' => [
205
                            'route' => '/twitter',
206
                            'defaults' => [
207
                                'controller' => '\LeadersLinked\Controller\AuthController',
208
                                'action' => 'twitter',
209
                            ],
210
                        ],
211
                    ],
212
                    'google' => [
213
                        'type' => Literal::class,
214
                        'options' => [
215
                            'route' => '/google',
216
                            'defaults' => [
217
                                'controller' => '\LeadersLinked\Controller\AuthController',
218
                                'action' => 'google',
219
                            ],
220
                        ],
221
                    ],
222
                ]
223
            ],
224
            'reset-password' => [
225
                'type' => Segment::class,
226
                'options' => [
227
                    'route' => '/reset-password/:code',
228
                    'constraints' => [
229
                        'code' => '[a-zA-Z0-9--]+'
230
                    ],
231
                    'defaults' => [
232
                        'controller' => '\LeadersLinked\Controller\AuthController',
233
                        'action' => 'resetPassword'
234
                    ]
235
                ]
236
            ],
237
            'forgot-password' => [
238
                'type' => Literal::class,
239
                'options' => [
240
                    'route' => '/forgot-password',
241
                    'defaults' => [
242
                        'controller' => '\LeadersLinked\Controller\AuthController',
243
                        'action' => 'forgotPassword'
244
                    ]
245
                ]
246
            ],
247
            'signup' => [
248
                'type' => Literal::class,
249
                'options' => [
250
                    'route' => '/signup',
251
                    'defaults' => [
252
                        'controller' => '\LeadersLinked\Controller\AuthController',
253
                        'action' => 'signup'
254
                    ]
255
                ]
256
            ],
257
            'activate-account' => [
258
                'type' => Segment::class,
259
                'options' => [
260
                    'route' => '/activate-account/:code',
261
                    'constraints' => [
262
                        'code' => '[a-zA-Z0-9]+'
263
                    ],
264
                    'defaults' => [
265
                        'controller' => '\LeadersLinked\Controller\AuthController',
266
                        'action' => 'activateAccount'
267
                    ]
268
                ]
269
            ],
270
            'signout' => [
271
                'type' => Literal::class,
272
                'options' => [
273
                    'route' => '/signout',
274
                    'defaults' => [
275
                        'controller' => '\LeadersLinked\Controller\AuthController',
276
                        'action' => 'signout'
277
                    ]
278
                ]
279
            ],
210 efrain 280
            'csrf' => [
281
                'type' => Literal::class,
282
                'options' => [
283
                    'route' => '/csrf',
284
                    'defaults' => [
285
                        'controller' => '\LeadersLinked\Controller\AuthController',
286
                        'action' => 'csrf'
287
                    ]
288
                ]
289
            ],
2444 efrain 290
 
1 www 291
            'onroom' => [
292
                'type' => Literal::class,
293
                'options' => [
294
                    'route' => '/onroom',
295
                    'defaults' => [
296
                        'controller' => '\LeadersLinked\Controller\AuthController',
297
                        'action' => 'onroom'
298
                    ]
299
                ]
300
            ],
301
            'home' => [
302
                'type' => Literal::class,
303
                'options' => [
304
                    'route' => '/',
305
                    'defaults' => [
306
                        'controller' => '\LeadersLinked\Controller\HomeController',
307
                        'action' => 'index'
308
                    ]
309
                ]
310
            ],
3298 efrain 311
            'share' => [
312
                'type' => Segment::class,
313
                'options' => [
314
                    'route' => '/share/type/:type/code/:code',
315
                    'constraints' => [
316
                        'type' => 'feed|post',
317
                        'code' => '[A-Za-z0-9\-]+\=*',
318
                    ],
319
                    'defaults' => [
320
                        'controller' => '\LeadersLinked\Controller\HomeController',
321
                        'action' => 'share',
322
                    ],
323
                ],
324
            ],
1 www 325
            'post' => [
326
                'type' => Segment::class,
327
                'options' => [
328
                    'route' => '/post/:id',
329
                    'constraints' => [
330
                        'id' => '[A-Za-z0-9\-]+\=*',
331
                    ],
332
                    'defaults' => [
333
                        'controller' => '\LeadersLinked\Controller\HomeController',
334
                        'action' => 'post'
335
                    ]
336
                ]
337
            ],
338
            'privacy-policy' => [
339
                'type' => Literal::class,
340
                'options' => [
341
                    'route' => '/privacy-policy',
342
                    'defaults' => [
343
                        'controller' => '\LeadersLinked\Controller\HomeController',
344
                        'action' => 'privacyPolicy'
345
                    ]
346
                ]
347
            ],
348
            'cookies' => [
349
                'type' => Literal::class,
350
                'options' => [
351
                    'route' => '/cookies',
352
                    'defaults' => [
353
                        'controller' => '\LeadersLinked\Controller\HomeController',
354
                        'action' => 'cookies'
355
                    ]
356
                ]
357
            ],
358
            'professionalism-policy' => [
359
                'type' => Literal::class,
360
                'options' => [
361
                    'route' => '/professionalism-policy',
362
                    'defaults' => [
363
                        'controller' => '\LeadersLinked\Controller\HomeController',
364
                        'action' => 'professionalismPolicy'
365
                    ]
366
                ]
367
            ],
368
            'terms-and-conditions' => [
369
                'type' => Literal::class,
370
                'options' => [
371
                    'route' => '/terms-and-conditions',
372
                    'defaults' => [
373
                        'controller' => '\LeadersLinked\Controller\HomeController',
374
                        'action' => 'termsAndConditions'
375
                    ]
376
                ]
377
            ],
378
            'check-session' => [
379
                'type' => Literal::class,
380
                'options' => [
381
                    'route' => '/check-session',
382
                    'defaults' => [
383
                        'controller' => '\LeadersLinked\Controller\HomeController',
384
                        'action' => 'checkSession'
385
                    ]
386
                ]
387
            ],
388
            'notifications' => [
389
                'type' => Literal::class,
390
                'options' => [
391
                    'route' => '/notifications',
392
                    'defaults' => [
3262 efrain 393
                        'controller' => '\LeadersLinked\Controller\NotificationController',
394
                        'action' => 'index'
1 www 395
                    ]
3262 efrain 396
                ],
397
                'may_terminate' => true,
398
                'child_routes' => [
399
                    'mark-read' => [
400
                        'type' => Segment::class,
401
                        'options' => [
402
                            'route' => '/mark-read/:id',
403
                            'constraints' => [
404
                                'id' => '[A-Za-z0-9\-]+\=*',
405
                            ],
406
                            'defaults' => [
407
                                'controller' => '\LeadersLinked\Controller\NotificationController',
408
                                'action' => 'markRead'
409
                            ]
410
                        ]
411
                    ],
412
                    'mark-all-read' => [
413
                        'type' => Literal::class,
414
                        'options' => [
415
                            'route' => '/mark-all-read',
416
                            'defaults' => [
417
                                'controller' => '\LeadersLinked\Controller\NotificationController',
418
                                'action' => 'markAllRead'
419
                            ]
420
                        ]
421
                    ],
422
                    'delete' => [
423
                        'type' => Segment::class,
424
                        'options' => [
425
                            'route' => '/delete/:id',
426
                            'constraints' => [
427
                                'id' => '[A-Za-z0-9\-]+\=*',
428
                            ],
429
                            'defaults' => [
430
                                'controller' => '\LeadersLinked\Controller\NotificationController',
431
                                'action' => 'delete'
432
                            ]
433
                        ]
434
                    ],
435
                    'clear' => [
436
                        'type' => Literal::class,
437
                        'options' => [
438
                            'route' => '/clear',
439
                            'defaults' => [
440
                                'controller' => '\LeadersLinked\Controller\NotificationController',
441
                                'action' => 'clear'
442
                            ]
443
                        ]
444
                    ],
445
                    'unreads' => [
446
                        'type' => Literal::class,
447
                        'options' => [
448
                            'route' => '/unreads',
449
                            'defaults' => [
450
                                'controller' => '\LeadersLinked\Controller\NotificationController',
451
                                'action' => 'unreads'
452
                            ]
453
                        ]
454
                    ],
455
                ]
1 www 456
            ],
3262 efrain 457
 
1 www 458
            'backend' => [
459
                'type' => Literal::class,
460
                'options' => [
461
                    'route' => '/backend',
462
                    'defaults' => [
463
                        'controller' => '\LeadersLinked\Controller\BackendController',
464
                        'action' => 'index'
465
                    ]
466
                ],
467
                'may_terminate' => true,
468
                'child_routes' => [
469
                    'signin-admin' => [
470
                        'type' => Literal::class,
471
                        'options' => [
472
                            'route' => '/signin-admin',
473
                            'defaults' => [
474
                                'controller' => '\LeadersLinked\Controller\BackendController',
475
                                'action' => 'signinAdmin'
476
                            ],
477
                        ],
478
                    ],
479
                    'signin-company' => [
480
                        'type' => Segment::class,
481
                        'options' => [
482
                            'route' => '/signin-company/:id',
483
                            'constraints' => [
484
                                'id' => '[A-Za-z0-9\-]+\=*',
485
                            ],
486
                            'defaults' => [
487
                                'controller' => '\LeadersLinked\Controller\BackendController',
488
                                'action' => 'signinCompany'
489
                            ],
490
                        ],
491
                    ],
553 geraldo 492
                ]
1 www 493
            ],
494
            'dashboard' => [
495
                'type' => Segment::class,
496
                'options' => [
497
                    'route' => '/dashboard[/feed/:feed]',
498
                    'constraints' => [
499
                        'feed' => '[A-Za-z0-9\-]+\=*',
500
                    ],
501
                    'defaults' => [
502
                        'controller' => '\LeadersLinked\Controller\DashboardController',
503
                        'action' => 'index'
504
                    ]
505
                ]
506
            ],
60 efrain 507
            'dashboard2' => [
1 www 508
                'type' => Segment::class,
509
                'options' => [
60 efrain 510
                    'route' => '/dashboard2',
1 www 511
                    'defaults' => [
512
                        'controller' => '\LeadersLinked\Controller\DashboardController',
60 efrain 513
                        'action' => 'dashboard2'
1 www 514
                    ]
515
                ]
516
            ],
517
            'storage' => [
518
                'type' => Segment::class,
519
                'options' => [
520
                    'route' => '/storage/type/:type[/code/:code][/filename/:filename][/]',
521
                    'constraints' => [
522
                        'type' => 'user|user-profile|user-cover|company|company-cover|group|group-cover|job|chat|image|feed|post|message|microlearning-topic|microlearning-capsule|microlearning-slide',
523
                        'code' => '[A-Za-z0-9\-]+\=*',
524
                        'filename' => '[a-zA-Z0-9\-\_]+\.(jpg|jpeg|gif|png|mp3|mp4|flv|doc|pdf|docx|xls|ppt|pdf|xlsx|pptx)'
525
                    ],
526
                    // MjM5ODk0Mzgg
527
                    'defaults' => [
528
                        'controller' => '\LeadersLinked\Controller\StorageController',
529
                        'action' => 'download'
530
                    ]
531
                ]
532
            ],
533
            'paypal' => [
534
                'type' => Literal::class,
535
                'options' => [
536
                    'route' => '/paypal',
537
                    'defaults' => [
538
                        'controller' => '\LeadersLinked\Controller\PaypalController',
539
                        'action' => 'index'
540
                    ]
541
                ],
542
                'may_terminate' => true,
543
                'child_routes' => [
544
                    'success' => [
545
                        'type' => Literal::class,
546
                        'options' => [
547
                            'route' => '/success',
548
                            'defaults' => [
549
                                'controller' => '\LeadersLinked\Controller\PaypalController',
550
                                'action' => 'success',
551
                            ],
552
                        ],
553
                    ],
554
                    'cancel' => [
555
                        'type' => Literal::class,
556
                        'options' => [
557
                            'route' => '/cancel',
558
                            'defaults' => [
559
                                'controller' => '\LeadersLinked\Controller\PaypalController',
560
                                'action' => 'cancel',
561
                            ],
562
                        ],
563
                    ],
564
                ]
553 geraldo 565
            ],
1 www 566
            'chat' => [
567
                'type' => Literal::class,
568
                'options' => [
569
                    'route' => '/chat',
570
                    'defaults' => [
571
                        'controller' => '\LeadersLinked\Controller\ChatController',
572
                        'action' => 'index'
573
                    ]
574
                ],
575
                'may_terminate' => true,
576
                'child_routes' => [
577
                    // Inicio de los Routes del Chat //
553 geraldo 578
 
1 www 579
                    'heart-beat' => [
580
                        'type' => Literal::class,
581
                        'options' => [
582
                            'route' => '/heart-beat',
583
                            'defaults' => [
584
                                'controller' => '\LeadersLinked\Controller\ChatController',
585
                                'action' => 'heartBeat',
586
                            ],
587
                        ],
588
                    ],
589
                    'create-group' => [
590
                        'type' => Literal::class,
591
                        'options' => [
592
                            'route' => '/create-group',
593
                            'defaults' => [
594
                                'controller' => '\LeadersLinked\Controller\ChatController',
595
                                'action' => 'createGroup',
596
                            ],
597
                        ],
598
                    ],
599
                    'add-user-to-group' => [
600
                        'type' => Segment::class,
601
                        'options' => [
602
                            'route' => '/add-user-to-group/:group_id',
603
                            'constraints' => [
604
                                'group_id' => '[A-Za-z0-9\-]+\=*',
605
                            ],
606
                            'defaults' => [
607
                                'controller' => '\LeadersLinked\Controller\ChatController',
608
                                'action' => 'addUserToGroup',
609
                            ],
610
                        ],
611
                    ],
612
                    'mark-seen' => [
613
                        'type' => Segment::class,
614
                        'options' => [
615
                            'route' => '/mark-seen/:id',
616
                            'constraints' => [
617
                                'id' => '[A-Za-z0-9\-]+\=*',
618
                            ],
619
                            'defaults' => [
620
                                'controller' => '\LeadersLinked\Controller\ChatController',
621
                                'action' => 'markSeen',
622
                            ],
623
                        ],
624
                    ],
625
                    'mark-received' => [
626
                        'type' => Segment::class,
627
                        'options' => [
628
                            'route' => '/mark-received/:id',
629
                            'constraints' => [
630
                                'id' => '[A-Za-z0-9\-]+\=*',
631
                            ],
632
                            'defaults' => [
633
                                'controller' => '\LeadersLinked\Controller\ChatController',
634
                                'action' => 'markReceived',
635
                            ],
636
                        ],
637
                    ],
638
                    'remove-user-from-group' => [
639
                        'type' => Segment::class,
640
                        'options' => [
641
                            'route' => '/remove-user-from-group/:group_id/:user_id',
642
                            'constraints' => [
643
                                'group_id' => '[A-Za-z0-9\-]+\=*',
644
                                'user_id' => '[A-Za-z0-9\-]+\=*',
645
                            ],
646
                            'defaults' => [
647
                                'controller' => '\LeadersLinked\Controller\ChatController',
648
                                'action' => 'removeUserFromGroup',
649
                            ],
650
                        ],
651
                    ],
652
                    'get-all-messages' => [
553 geraldo 653
                        'type' => Segment::class,
1 www 654
                        'options' => [
655
                            'route' => '/get-all-messages/:id',
656
                            'constraints' => [
657
                                'id' => '[A-Za-z0-9\-]+\=*',
658
                            ],
659
                            'defaults' => [
660
                                'controller' => '\LeadersLinked\Controller\ChatController',
661
                                'action' => 'getAllMessages',
662
                            ],
663
                        ],
664
                    ],
665
                    'send' => [
553 geraldo 666
                        'type' => Segment::class,
1 www 667
                        'options' => [
668
                            'route' => '/send/:id',
669
                            'constraints' => [
670
                                'id' => '[A-Za-z0-9\-]+\=*',
671
                            ],
672
                            'defaults' => [
673
                                'controller' => '\LeadersLinked\Controller\ChatController',
674
                                'action' => 'send',
675
                            ],
676
                        ],
677
                    ],
678
                    'get-contacts-availables-for-group' => [
679
                        'type' => Segment::class,
680
                        'options' => [
681
                            'route' => '/get-contacts-availables-for-group/:group_id',
682
                            'constraints' => [
683
                                'group_id' => '[A-Za-z0-9\-]+\=*',
684
                            ],
685
                            'defaults' => [
686
                                'controller' => '\LeadersLinked\Controller\ChatController',
687
                                'action' => 'contactAvailableGroupList',
688
                            ],
689
                        ],
690
                    ],
691
                    'get-contact-group-list' => [
692
                        'type' => Segment::class,
693
                        'options' => [
694
                            'route' => '/get-contact-group-list/:group_id',
695
                            'constraints' => [
696
                                'group_id' => '[A-Za-z0-9\-]+\=*',
697
                            ],
698
                            'defaults' => [
699
                                'controller' => '\LeadersLinked\Controller\ChatController',
700
                                'action' => 'contactGroupList',
701
                            ],
702
                        ],
703
                    ],
704
                    'leave-group' => [
705
                        'type' => Segment::class,
706
                        'options' => [
707
                            'route' => '/leave-group/:group_id',
708
                            'constraints' => [
709
                                'group_id' => '[A-Za-z0-9\-]+\=*',
710
                            ],
711
                            'defaults' => [
712
                                'controller' => '\LeadersLinked\Controller\ChatController',
713
                                'action' => 'leaveGroup',
714
                            ],
715
                        ],
716
                    ],
717
                    'delete-group' => [
718
                        'type' => Segment::class,
719
                        'options' => [
720
                            'route' => '/delete-group/:group_id',
721
                            'constraints' => [
722
                                'group_id' => '[A-Za-z0-9\-]+\=*',
723
                            ],
724
                            'defaults' => [
725
                                'controller' => '\LeadersLinked\Controller\ChatController',
726
                                'action' => 'deleteGroup',
727
                            ],
728
                        ],
729
                    ],
3121 efrain 730
                    'open' => [
731
                        'type' => Segment::class,
732
                        'options' => [
733
                            'route' => '/open/:id',
734
                            'constraints' => [
735
                                'id' => '[A-Za-z0-9\-]+\=*',
736
                            ],
737
                            'defaults' => [
738
                                'controller' => '\LeadersLinked\Controller\ChatController',
739
                                'action' => 'open',
740
                            ],
741
                        ],
742
                    ],
1 www 743
                    'close' => [
744
                        'type' => Segment::class,
745
                        'options' => [
746
                            'route' => '/close/:id',
747
                            'constraints' => [
748
                                'id' => '[A-Za-z0-9\-]+\=*',
749
                            ],
750
                            'defaults' => [
751
                                'controller' => '\LeadersLinked\Controller\ChatController',
752
                                'action' => 'close',
753
                            ],
754
                        ],
755
                    ],
756
                    'clear' => [
757
                        'type' => Segment::class,
758
                        'options' => [
759
                            'route' => '/clear/:id',
760
                            'constraints' => [
761
                                'id' => '[A-Za-z0-9\-]+\=*',
762
                            ],
763
                            'defaults' => [
764
                                'controller' => '\LeadersLinked\Controller\ChatController',
765
                                'action' => 'clear',
766
                            ],
767
                        ],
768
                    ],
769
                    'upload' => [
770
                        'type' => Segment::class,
771
                        'options' => [
772
                            'route' => '/upload/:id',
773
                            'constraints' => [
774
                                'id' => '[A-Za-z0-9\-]+\=*',
775
                            ],
776
                            'defaults' => [
777
                                'controller' => '\LeadersLinked\Controller\ChatController',
778
                                'action' => 'upload',
779
                            ],
780
                        ],
781
                    ],
782
                ],
553 geraldo 783
            ],
1 www 784
            'inmail' => [
785
                'type' => Segment::class,
786
                'options' => [
787
                    'route' => '/inmail[/:id]',
788
                    'constraints' => [
789
                        'id' => '[A-Za-z0-9\-]+\=*',
790
                    ],
791
                    'defaults' => [
792
                        'controller' => '\LeadersLinked\Controller\InMailController',
793
                        'action' => 'index'
794
                    ]
795
                ],
796
                'may_terminate' => true,
797
                'child_routes' => [
798
                    'block' => [
799
                        'type' => Literal::class,
553 geraldo 800
                        'options' => [
1 www 801
                            'route' => '/block',
802
                            'defaults' => [
803
                                'controller' => '\LeadersLinked\Controller\InMailController',
804
                                'action' => 'blockConversation'
805
                            ]
553 geraldo 806
                        ]
807
                    ],
808
                    'delete' => [
809
                        'type' => Literal::class,
810
                        'options' => [
811
                            'route' => '/delete',
812
                            'defaults' => [
813
                                'controller' => '\LeadersLinked\Controller\InMailController',
814
                                'action' => 'deleteConversation'
1 www 815
                            ]
553 geraldo 816
                        ]
817
                    ],
818
                    'message' => [
819
                        'type' => Literal::class,
820
                        'options' => [
821
                            'route' => '/message',
822
                            'defaults' => [
823
                                'controller' => '\LeadersLinked\Controller\InMailController',
824
                                'action' => 'message'
825
                            ]
1 www 826
                        ],
553 geraldo 827
                        'may_terminate' => true,
828
                        'child_routes' => [
829
                            'send' => [
830
                                'type' => Segment::class,
831
                                'options' => [
832
                                    'route' => '/send[/encoding/:encoding]',
833
                                    'constraints' => [
834
                                        'encoding' => 'base64'
835
                                    ],
836
                                    'defaults' => [
837
                                        'controller' => '\LeadersLinked\Controller\InMailController',
838
                                        'action' => 'sendMessage'
839
                                    ]
1 www 840
                                ]
841
                            ],
553 geraldo 842
                            'delete' => [
843
                                'type' => Segment::class,
844
                                'options' => [
845
                                    'route' => '/delete/:message',
846
                                    'constraints' => [
847
                                        'message' => '[A-Za-z0-9\-]+\=*',
848
                                    ],
849
                                    'defaults' => [
850
                                        'controller' => '\LeadersLinked\Controller\InMailController',
851
                                        'action' => 'delete'
1 www 852
                                    ]
553 geraldo 853
                                ]
854
                            ],
855
                        ],
1 www 856
                    ],
553 geraldo 857
                ],
858
            ],
1 www 859
            'connection' => [
860
                'type' => Literal::class,
861
                'options' => [
862
                    'route' => '/connection',
863
                    'defaults' => [
864
                        'controller' => '\LeadersLinked\Controller\ConnectionController',
865
                        'action' => 'index'
866
                    ]
867
                ],
868
                'may_terminate' => true,
869
                'child_routes' => [
870
                    'my-connections' => [
871
                        'type' => Literal::class,
872
                        'options' => [
873
                            'route' => '/my-connections',
874
                            'defaults' => [
875
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
876
                                'action' => 'myConnections'
877
                            ]
878
                        ]
879
                    ],
880
                    'people-you-may-know' => [
881
                        'type' => Literal::class,
882
                        'options' => [
883
                            'route' => '/people-you-may-know',
884
                            'defaults' => [
885
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
886
                                'action' => 'peopleYouMayKnow'
887
                            ]
888
                        ]
889
                    ],
890
                    'people-blocked' => [
891
                        'type' => Literal::class,
892
                        'options' => [
893
                            'route' => '/people-blocked',
894
                            'defaults' => [
895
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
896
                                'action' => 'peopleBlocked'
897
                            ]
898
                        ],
899
                    ],
900
                    'invitations-sent' => [
901
                        'type' => Literal::class,
902
                        'options' => [
903
                            'route' => '/invitations-sent',
904
                            'defaults' => [
905
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
906
                                'action' => 'invitationsSent'
907
                            ]
908
                        ]
909
                    ],
910
                    'invitations-received' => [
911
                        'type' => Literal::class,
912
                        'options' => [
913
                            'route' => '/invitations-received',
914
                            'defaults' => [
915
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
916
                                'action' => 'invitationsReceived'
917
                            ]
918
                        ]
919
                    ],
920
                    'block' => [
921
                        'type' => Segment::class,
922
                        'options' => [
923
                            'route' => '/block/:id',
924
                            'constraints' => [
925
                                'id' => '[A-Za-z0-9\-]+\=*',
926
                            ],
927
                            'defaults' => [
928
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
929
                                'action' => 'block'
930
                            ]
931
                        ]
932
                    ],
933
                    'unblock' => [
934
                        'type' => Segment::class,
935
                        'options' => [
936
                            'route' => '/unblock/:id',
937
                            'constraints' => [
938
                                'id' => '[A-Za-z0-9\-]+\=*',
939
                            ],
940
                            'defaults' => [
941
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
942
                                'action' => 'unblock'
943
                            ]
944
                        ]
945
                    ],
946
                    'cancel' => [
947
                        'type' => Segment::class,
948
                        'options' => [
949
                            'route' => '/cancel/:id',
950
                            'constraints' => [
951
                                'id' => '[A-Za-z0-9\-]+\=*',
952
                            ],
953
                            'defaults' => [
954
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
955
                                'action' => 'cancel'
956
                            ]
957
                        ]
958
                    ],
959
                    'request' => [
960
                        'type' => Segment::class,
961
                        'options' => [
962
                            'route' => '/request/:id',
963
                            'constraints' => [
964
                                'id' => '[A-Za-z0-9\-]+\=*',
965
                            ],
966
                            'defaults' => [
967
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
968
                                'action' => 'request'
969
                            ]
970
                        ]
971
                    ],
972
                    'approve' => [
973
                        'type' => Segment::class,
974
                        'options' => [
975
                            'route' => '/approve/:id',
976
                            'constraints' => [
977
                                'id' => '[A-Za-z0-9\-]+\=*',
978
                            ],
979
                            'defaults' => [
980
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
981
                                'action' => 'approve'
982
                            ]
983
                        ]
984
                    ],
985
                    'reject' => [
986
                        'type' => Segment::class,
987
                        'options' => [
988
                            'route' => '/reject/:id',
989
                            'constraints' => [
990
                                'id' => '[A-Za-z0-9\-]+\=*',
991
                            ],
992
                            'defaults' => [
993
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
994
                                'action' => 'reject'
995
                            ]
996
                        ]
997
                    ],
998
                    'delete' => [
999
                        'type' => Segment::class,
1000
                        'options' => [
1001
                            'route' => '/delete/:id',
1002
                            'constraints' => [
1003
                                'id' => '[A-Za-z0-9\-]+\=*',
1004
                            ],
1005
                            'defaults' => [
1006
                                'controller' => '\LeadersLinked\Controller\ConnectionController',
1007
                                'action' => 'delete'
1008
                            ]
1009
                        ]
1010
                    ],
1011
                ]
553 geraldo 1012
            ],
1 www 1013
            'feed' => [
1014
                'type' => Literal::class,
1015
                'options' => [
1016
                    'route' => '/feed',
1017
                    'defaults' => [
1018
                        'controller' => '\LeadersLinked\Controller\FeedController',
1019
                        'action' => 'index'
1020
                    ]
1021
                ],
1022
                'may_terminate' => true,
1023
                'child_routes' => [
1024
                    'timeline' => [
1025
                        'type' => Segment::class,
1026
                        'options' => [
1027
                            'route' => '/timeline/:id/:type[/feed/:feed]',
1028
                            'constraints' => [
1029
                                'id' => '[A-Za-z0-9\-]+\=*',
1030
                                'type' => 'user|company|group',
1031
                            ],
1032
                            'defaults' => [
1033
                                'controller' => '\LeadersLinked\Controller\FeedController',
1034
                                'action' => 'timeline'
1035
                            ]
1036
                        ]
1037
                    ],
1038
                    'delete' => [
1039
                        'type' => Segment::class,
1040
                        'options' => [
1041
                            'route' => '/delete/:id',
1042
                            'constraints' => [
1043
                                'id' => '[A-Za-z0-9\-]+\=*',
1044
                            ],
1045
                            'defaults' => [
1046
                                'controller' => '\LeadersLinked\Controller\FeedController',
1047
                                'action' => 'delete'
1048
                            ],
1049
                        ]
1050
                    ],
1051
                    'comment' => [
1052
                        'type' => Segment::class,
1053
                        'options' => [
1054
                            'route' => '/comment/:id',
1055
                            'constraints' => [
1056
                                'id' => '[A-Za-z0-9\-]+\=*',
1057
                            ],
1058
                            'defaults' => [
1059
                                'controller' => '\LeadersLinked\Controller\FeedController',
1060
                                'action' => 'comment'
1061
                            ],
1062
                        ],
1063
                        'may_terminate' => true,
1064
                        'child_routes' => [
1065
                            'delete' => [
1066
                                'type' => Segment::class,
1067
                                'options' => [
1068
                                    'route' => '/delete/:comment',
1069
                                    'constraints' => [
1070
                                        'comment' => '[A-Za-z0-9\-]+\=*',
1071
                                    ],
1072
                                    'defaults' => [
1073
                                        'controller' => '\LeadersLinked\Controller\FeedController',
1074
                                        'action' => 'commentDelete'
1075
                                    ]
1076
                                ]
1077
                            ],
1078
                        ]
1079
                    ],
1080
                    'share' => [
1081
                        'type' => Segment::class,
1082
                        'options' => [
1083
                            'route' => '/share/:id[/company/:company_id][/group/:group_id][/encoding/:encoding]',
1084
                            'constraints' => [
1085
                                'id' => '[A-Za-z0-9\-]+\=*',
1086
                                'company_id' => '[A-Za-z0-9\-]+\=*',
1087
                                'group_id' => '[A-Za-z0-9\-]+\=*',
1088
                                'encoding' => 'base64'
1089
                            ],
1090
                            'defaults' => [
1091
                                'controller' => '\LeadersLinked\Controller\FeedController',
1092
                                'action' => 'share'
1093
                            ]
1094
                        ]
1095
                    ],
1096
                    'like' => [
1097
                        'type' => Segment::class,
1098
                        'options' => [
1099
                            'route' => '/like/:id',
1100
                            'constraints' => [
1101
                                'id' => '[A-Za-z0-9\-]+\=*',
1102
                            ],
1103
                            'defaults' => [
1104
                                'controller' => '\LeadersLinked\Controller\FeedController',
1105
                                'action' => 'like'
1106
                            ]
1107
                        ]
1108
                    ],
1109
                    'unlike' => [
1110
                        'type' => Segment::class,
1111
                        'options' => [
1112
                            'route' => '/unlike/:id',
1113
                            'constraints' => [
1114
                                'id' => '[A-Za-z0-9\-]+\=*',
1115
                            ],
1116
                            'defaults' => [
1117
                                'controller' => '\LeadersLinked\Controller\FeedController',
1118
                                'action' => 'unlike'
1119
                            ]
1120
                        ]
1121
                    ],
1122
                    'add' => [
1123
                        'type' => Segment::class,
1124
                        'options' => [
2455 efrain 1125
                            'route' => '/add[/company/:company_id][/group/:group_id][/encoding/:encoding]',
1 www 1126
                            'constraints' => [
2455 efrain 1127
                                'company_id' => '[A-Za-z0-9\-]+\=*',
1128
                                'group_id' => '[A-Za-z0-9\-]+\=*',
1 www 1129
                                'encoding' => 'base64'
1130
                            ],
1131
                            'defaults' => [
1132
                                'controller' => '\LeadersLinked\Controller\FeedController',
1133
                                'action' => 'add'
1134
                            ]
1135
                        ]
1136
                    ],
1137
                ],
553 geraldo 1138
            ],
1 www 1139
            'job' => [
1140
                'type' => Literal::class,
1141
                'options' => [
1142
                    'route' => '/job',
1143
                    'defaults' => [
1144
                        'controller' => '\LeadersLinked\Controller\JobController',
1145
                        'action' => 'index'
1146
                    ]
1147
                ],
1148
                'may_terminate' => true,
1149
                'child_routes' => [
1150
                    'view' => [
1151
                        'type' => Segment::class,
1152
                        'options' => [
1153
                            'route' => '/view/:id',
1154
                            'constraints' => [
1155
                                'id' => '[A-Za-z0-9\-]+\=*'
1156
                            ],
1157
                            'defaults' => [
1158
                                'controller' => '\LeadersLinked\Controller\JobController',
1159
                                'action' => 'view'
1160
                            ]
1161
                        ]
1162
                    ],
1163
                    'apply-job' => [
1164
                        'type' => Segment::class,
1165
                        'options' => [
1166
                            'route' => '/apply-job/:id',
1167
                            'constraints' => [
1168
                                'id' => '[A-Za-z0-9\-]+\=*'
1169
                            ],
1170
                            'defaults' => [
1171
                                'controller' => '\LeadersLinked\Controller\JobController',
1172
                                'action' => 'applyJob'
1173
                            ]
1174
                        ]
1175
                    ],
1176
                    'remove-apply-job' => [
1177
                        'type' => Segment::class,
1178
                        'options' => [
1179
                            'route' => '/remove-apply-job/:id',
1180
                            'constraints' => [
1181
                                'id' => '[A-Za-z0-9\-]+\=*'
1182
                            ],
1183
                            'defaults' => [
1184
                                'controller' => '\LeadersLinked\Controller\JobController',
1185
                                'action' => 'removeApplyJob'
1186
                            ]
1187
                        ]
1188
                    ],
1189
                    'save-job' => [
1190
                        'type' => Segment::class,
1191
                        'options' => [
1192
                            'route' => '/save-job/:id',
1193
                            'constraints' => [
1194
                                'id' => '[A-Za-z0-9\-]+\=*'
1195
                            ],
1196
                            'defaults' => [
1197
                                'controller' => '\LeadersLinked\Controller\JobController',
1198
                                'action' => 'saveJob'
1199
                            ]
1200
                        ]
1201
                    ],
1202
                    'remove-save-job' => [
1203
                        'type' => Segment::class,
1204
                        'options' => [
1205
                            'route' => '/remove-save-job/:id',
1206
                            'constraints' => [
1207
                                'id' => '[A-Za-z0-9\-]+\=*'
1208
                            ],
1209
                            'defaults' => [
1210
                                'controller' => '\LeadersLinked\Controller\JobController',
1211
                                'action' => 'removeSaveJob'
1212
                            ]
1213
                        ]
1214
                    ],
1215
                    'applied-jobs' => [
1216
                        'type' => Literal::class,
1217
                        'options' => [
1218
                            'route' => '/applied-jobs',
1219
                            'defaults' => [
1220
                                'controller' => '\LeadersLinked\Controller\JobController',
1221
                                'action' => 'appliedJobs'
1222
                            ]
1223
                        ]
1224
                    ],
1225
                    'saved-jobs' => [
1226
                        'type' => Literal::class,
1227
                        'options' => [
1228
                            'route' => '/saved-jobs',
1229
                            'defaults' => [
1230
                                'controller' => '\LeadersLinked\Controller\JobController',
1231
                                'action' => 'savedJobs'
1232
                            ]
1233
                        ]
1234
                    ],
553 geraldo 1235
                ]
1 www 1236
            ],
1237
            /*
553 geraldo 1238
              'job' => [
1239
              'type' => Literal::class,
1240
              'options' => [
1241
              'route' => '/job',
1242
              'defaults' => [
1243
              'controller' => '\LeadersLinked\Controller\JobController',
1244
              'action' => 'index'
1245
              ]
1246
              ],
1247
              'may_terminate' => true,
1248
              'child_routes' => [
1249
              'view' => [
1250
              'type' => Segment::class,
1251
              'options' => [
1252
              'route' => '/view/:id',
1253
              'constraints' => [
1254
              'id' => '[A-Za-z0-9\-]+\=*'
1255
              ],
1256
              'defaults' => [
1257
              'controller' => '\LeadersLinked\Controller\CompanyController',
1258
              'action' => 'job'
1259
              ]
1260
              ]
1261
              ],
1262
              ]
1263
              ],
1 www 1264
             */
1265
            'search' => [
1266
                'type' => Segment::class,
1267
                'options' => [
1268
                    'route' => '/search[/entity/:entity]',
1269
                    'constraints' => [
1270
                        'entity' => 'user|company|group|job'
1271
                    ],
1272
                    'defaults' => [
1273
                        'controller' => '\LeadersLinked\Controller\SearchController',
1274
                        'action' => 'index'
1275
                    ]
1276
                ],
1277
            ],
1278
            'group' => [
1279
                'type' => Literal::class,
1280
                'options' => [
1281
                    'route' => '/group',
1282
                    'defaults' => [
1283
                        'controller' => '\LeadersLinked\GroupController',
1284
                        'action' => 'index'
1285
                    ]
1286
                ],
1287
                'may_terminate' => true,
1288
                'child_routes' => [
1289
                    'view' => [
1290
                        'type' => Segment::class,
1291
                        'options' => [
1292
                            'route' => '/view/:id',
1293
                            'constraints' => [
1294
                                'id' => '[A-Za-z0-9\-]+\=*'
1295
                            ],
1296
                            'defaults' => [
1297
                                'controller' => '\LeadersLinked\Controller\GroupController',
1298
                                'action' => 'view'
1299
                            ]
1300
                        ]
1301
                    ],
1302
                    'request' => [
1303
                        'type' => Segment::class,
1304
                        'options' => [
1305
                            'route' => '/request/:id',
1306
                            'constraints' => [
1307
                                'id' => '[A-Za-z0-9\-]+\=*'
1308
                            ],
1309
                            'defaults' => [
1310
                                'controller' => '\LeadersLinked\Controller\GroupController',
1311
                                'action' => 'request'
1312
                            ]
1313
                        ]
1314
                    ],
1315
                    'leave' => [
1316
                        'type' => Segment::class,
1317
                        'options' => [
1318
                            'route' => '/leave/:id',
1319
                            'constraints' => [
1320
                                'id' => '[A-Za-z0-9\-]+\=*'
1321
                            ],
1322
                            'defaults' => [
1323
                                'controller' => '\LeadersLinked\Controller\GroupController',
1324
                                'action' => 'leave'
1325
                            ]
1326
                        ]
1327
                    ],
1328
                    'accept' => [
1329
                        'type' => Segment::class,
1330
                        'options' => [
1331
                            'route' => '/accept/:id',
1332
                            'constraints' => [
1333
                                'id' => '[A-Za-z0-9\-]+\=*'
1334
                            ],
1335
                            'defaults' => [
1336
                                'controller' => '\LeadersLinked\Controller\GroupController',
1337
                                'action' => 'accept'
1338
                            ]
1339
                        ]
1340
                    ],
1341
                    'cancel' => [
1342
                        'type' => Segment::class,
1343
                        'options' => [
1344
                            'route' => '/cancel/:id',
1345
                            'constraints' => [
1346
                                'id' => '[A-Za-z0-9\-]+\=*'
1347
                            ],
1348
                            'defaults' => [
1349
                                'controller' => '\LeadersLinked\Controller\GroupController',
1350
                                'action' => 'cancel'
1351
                            ]
1352
                        ]
1353
                    ],
1354
                    'reject' => [
1355
                        'type' => Segment::class,
1356
                        'options' => [
1357
                            'route' => '/reject/:id',
1358
                            'constraints' => [
1359
                                'id' => '[A-Za-z0-9\-]+\=*'
1360
                            ],
1361
                            'defaults' => [
1362
                                'controller' => '\LeadersLinked\Controller\GroupController',
1363
                                'action' => 'reject'
1364
                            ]
1365
                        ]
1366
                    ],
1367
                    'joined-groups' => [
1368
                        'type' => Literal::class,
1369
                        'options' => [
1370
                            'route' => '/joined-groups',
1371
                            'defaults' => [
1372
                                'controller' => '\LeadersLinked\Controller\GroupController',
1373
                                'action' => 'joinedGroups'
1374
                            ]
1375
                        ],
1376
                    ],
1377
                    'requests-sent' => [
1378
                        'type' => Literal::class,
1379
                        'options' => [
1380
                            'route' => '/requests-sent',
1381
                            'defaults' => [
1382
                                'controller' => '\LeadersLinked\Controller\GroupController',
1383
                                'action' => 'requestsSent'
1384
                            ]
1385
                        ],
1386
                    ],
1387
                    'invitations-received' => [
1388
                        'type' => Literal::class,
1389
                        'options' => [
1390
                            'route' => '/invitations-received',
1391
                            'defaults' => [
1392
                                'controller' => '\LeadersLinked\Controller\GroupController',
1393
                                'action' => 'invitationsReceived'
1394
                            ]
1395
                        ],
1396
                    ],
1397
                    'my-groups' => [
1398
                        'type' => Literal::class,
1399
                        'options' => [
1400
                            'route' => '/my-groups',
1401
                            'defaults' => [
1402
                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
1403
                                'action' => 'index'
1404
                            ]
1405
                        ],
1406
                        'may_terminate' => true,
1407
                        'child_routes' => [
1408
                            'add' => [
1409
                                'type' => Literal::class,
1410
                                'options' => [
1411
                                    'route' => '/add',
1412
                                    'defaults' => [
1413
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1414
                                        'action' => 'add'
1415
                                    ]
1416
                                ]
1417
                            ],
1418
                            'edit' => [
1419
                                'type' => Segment::class,
1420
                                'options' => [
1421
                                    'route' => '/edit/:id',
1422
                                    'constraints' => [
1423
                                        'id' => '[A-Za-z0-9\-]+\=*'
1424
                                    ],
1425
                                    'defaults' => [
1426
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1427
                                        'action' => 'edit'
1428
                                    ]
1429
                                ]
1430
                            ],
1431
                            'delete' => [
1432
                                'type' => Segment::class,
1433
                                'options' => [
1434
                                    'route' => '/delete/:id',
1435
                                    'constraints' => [
1436
                                        'id' => '[A-Za-z0-9\-]+\=*'
1437
                                    ],
1438
                                    'defaults' => [
1439
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1440
                                        'action' => 'delete'
1441
                                    ]
1442
                                ]
1443
                            ],
1444
                            'extended' => [
1445
                                'type' => Segment::class,
1446
                                'options' => [
1447
                                    'route' => '/extended/:id',
1448
                                    'constraints' => [
1449
                                        'id' => '[A-Za-z0-9\-]+\=*'
1450
                                    ],
1451
                                    'defaults' => [
1452
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1453
                                        'action' => 'extended'
1454
                                    ]
1455
                                ]
1456
                            ],
1457
                            'image' => [
1458
                                'type' => Segment::class,
1459
                                'options' => [
1460
                                    'route' => '/image/:id/operation/:operation',
1461
                                    'constraints' => [
1462
                                        'id' => '[A-Za-z0-9\-]+\=*',
1463
                                        'operation' => 'upload|delete'
1464
                                    ],
1465
                                    'defaults' => [
1466
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1467
                                        'action' => 'image'
1468
                                    ]
1469
                                ]
1470
                            ],
1471
                            'cover' => [
1472
                                'type' => Segment::class,
1473
                                'options' => [
1474
                                    'route' => '/cover/:id/operation/:operation',
1475
                                    'constraints' => [
1476
                                        'id' => '[A-Za-z0-9\-]+\=*',
1477
                                        'operation' => 'upload|delete'
1478
                                    ],
1479
                                    'defaults' => [
1480
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1481
                                        'action' => 'cover'
1482
                                    ]
1483
                                ]
1484
                            ],
1485
                            'privacy' => [
1486
                                'type' => Segment::class,
1487
                                'options' => [
1488
                                    'route' => '/privacy/:id',
1489
                                    'constraints' => [
1490
                                        'id' => '[A-Za-z0-9\-]+\=*'
1491
                                    ],
1492
                                    'defaults' => [
1493
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1494
                                        'action' => 'privacy'
1495
                                    ]
1496
                                ]
1497
                            ],
1498
                            'website' => [
1499
                                'type' => Segment::class,
1500
                                'options' => [
1501
                                    'route' => '/website/:id',
1502
                                    'constraints' => [
1503
                                        'id' => '[A-Za-z0-9\-]+\=*'
1504
                                    ],
1505
                                    'defaults' => [
1506
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1507
                                        'action' => 'website'
1508
                                    ]
1509
                                ]
1510
                            ],
1511
                            'industry' => [
1512
                                'type' => Segment::class,
1513
                                'options' => [
1514
                                    'route' => '/industry/:id',
1515
                                    'constraints' => [
1516
                                        'id' => '[A-Za-z0-9\-]+\=*'
1517
                                    ],
1518
                                    'defaults' => [
1519
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1520
                                        'action' => 'industry'
1521
                                    ]
1522
                                ]
1523
                            ],
1524
                            'accessibility' => [
1525
                                'type' => Segment::class,
1526
                                'options' => [
1527
                                    'route' => '/accessibility/:id',
1528
                                    'constraints' => [
1529
                                        'id' => '[A-Za-z0-9\-]+\=*'
1530
                                    ],
1531
                                    'defaults' => [
1532
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1533
                                        'action' => 'accessibility'
1534
                                    ]
1535
                                ]
1536
                            ],
1537
                            'type' => [
1538
                                'type' => Segment::class,
1539
                                'options' => [
1540
                                    'route' => '/type/:id',
1541
                                    'constraints' => [
1542
                                        'id' => '[A-Za-z0-9\-]+\=*'
1543
                                    ],
1544
                                    'defaults' => [
1545
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1546
                                        'action' => 'type'
1547
                                    ]
1548
                                ]
1549
                            ],
1550
                            'status' => [
1551
                                'type' => Segment::class,
1552
                                'options' => [
1553
                                    'route' => '/status/:id',
1554
                                    'constraints' => [
1555
                                        'id' => '[A-Za-z0-9\-]+\=*'
1556
                                    ],
1557
                                    'defaults' => [
1558
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1559
                                        'action' => 'status'
1560
                                    ]
1561
                                ]
1562
                            ],
1563
                            'members' => [
1564
                                'type' => Segment::class,
1565
                                'options' => [
1566
                                    'route' => '/members/:id',
1567
                                    'constraints' => [
1568
                                        'id' => '[A-Za-z0-9\-]+\=*'
1569
                                    ],
1570
                                    'defaults' => [
1571
                                        'controller' => '\LeadersLinked\Controller\MyGroupsController',
1572
                                        'action' => 'members'
1573
                                    ]
1574
                                ],
1575
                                'may_terminate' => true,
1576
                                'child_routes' => [
1577
                                    'invite' => [
1578
                                        'type' => Segment::class,
1579
                                        'options' => [
1580
                                            'route' => '/invite/:user_id',
1581
                                            'constraints' => [
1582
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
1583
                                            ],
1584
                                            'defaults' => [
1585
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
1586
                                                'action' => 'invite'
1587
                                            ]
1588
                                        ]
1589
                                    ],
1590
                                    'approve' => [
1591
                                        'type' => Segment::class,
1592
                                        'options' => [
1593
                                            'route' => '/approve/:user_id',
1594
                                            'constraints' => [
1595
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
1596
                                            ],
1597
                                            'defaults' => [
1598
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
1599
                                                'action' => 'approve'
1600
                                            ]
1601
                                        ]
1602
                                    ],
1603
                                    'reject' => [
1604
                                        'type' => Segment::class,
1605
                                        'options' => [
1606
                                            'route' => '/reject/:user_id',
1607
                                            'constraints' => [
1608
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
1609
                                            ],
1610
                                            'defaults' => [
1611
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
1612
                                                'action' => 'reject'
1613
                                            ]
1614
                                        ]
1615
                                    ],
1616
                                    'cancel' => [
1617
                                        'type' => Segment::class,
1618
                                        'options' => [
1619
                                            'route' => '/cancel/:user_id',
1620
                                            'constraints' => [
1621
                                                'user_id' => '[A-Za-z0-9\-]+\=*'
1622
                                            ],
1623
                                            'defaults' => [
1624
                                                'controller' => '\LeadersLinked\Controller\MyGroupsController',
1625
                                                'action' => 'cancel'
1626
                                            ]
1627
                                        ]
1628
                                    ],
553 geraldo 1629
                                ]
1 www 1630
                            ],
1631
                        ]
1632
                    ]
1633
                ]
1634
            ],
1635
            'profile' => [
1636
                'type' => Literal::class,
1637
                'options' => [
1638
                    'route' => '/profile',
1639
                    'defaults' => [
1640
                        'controller' => '\LeadersLinked\ControllerProfileController',
1641
                        'action' => 'index'
1642
                    ]
1643
                ],
1644
                'may_terminate' => true,
1645
                'child_routes' => [
1646
                    'microlearning' => [
1647
                        'type' => Literal::class,
1648
                        'options' => [
1649
                            'route' => '/microlearning',
1650
                            'defaults' => [
1651
                                'controller' => '\LeadersLinked\Controller\ProfileMicrolearningController',
1652
                                'action' => 'index'
1653
                            ]
1654
                        ],
1655
                        'may_terminate' => true,
1656
                        'child_routes' => [
1657
                            'timeline' => [
1658
                                'type' => Literal::class,
1659
                                'options' => [
1660
                                    'route' => '/timeline',
1661
                                    'defaults' => [
1662
                                        'controller' => '\LeadersLinked\Controller\ProfileMicrolearningController',
1663
                                        'action' => 'timeline'
1664
                                    ]
1665
                                ]
1666
                            ],
1667
                            'progress' => [
1668
                                'type' => Literal::class,
1669
                                'options' => [
1670
                                    'route' => '/progress',
1671
                                    'defaults' => [
1672
                                        'controller' => '\LeadersLinked\Controller\ProfileMicrolearningController',
1673
                                        'action' => 'progress'
1674
                                    ]
1675
                                ]
1676
                            ],
1677
                        ]
1678
                    ],
1679
                    'people-viewed-profile' => [
1680
                        'type' => Literal::class,
1681
                        'options' => [
1682
                            'route' => '/people-viewed-profile',
1683
                            'defaults' => [
1684
                                'controller' => '\LeadersLinked\Controller\ProfileController',
1685
                                'action' => 'peopleViewedProfile'
1686
                            ]
1687
                        ]
1688
                    ],
580 geraldo 1689
                    'view' => [
1690
                        'type' => Segment::class,
263 geraldo 1691
                        'options' => [
580 geraldo 1692
                            'route' => '/view/:id',
1693
                            'constraints' => [
1694
                                'id' => '[A-Za-z0-9\-]+\=*'
1695
                            ],
263 geraldo 1696
                            'defaults' => [
580 geraldo 1697
                                'controller' => '\LeadersLinked\Controller\ProfileController',
1698
                                'action' => 'view'
263 geraldo 1699
                            ]
1700
                        ]
1701
                    ],
580 geraldo 1702
                    'self-evaluation' => [
553 geraldo 1703
                        'type' => Literal::class,
1704
                        'options' => [
580 geraldo 1705
                            'route' => '/self-evaluation',
553 geraldo 1706
                            'defaults' => [
580 geraldo 1707
                                'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
553 geraldo 1708
                                'action' => 'index'
1709
                            ]
1710
                        ],
1711
                        'may_terminate' => true,
1712
                        'child_routes' => [
1713
                            'take-a-test' => [
580 geraldo 1714
                                'type' => Segment::class,
553 geraldo 1715
                                'options' => [
1716
                                    'route' => '/take-a-test/:id',
1717
                                    'constraints' => [
1718
                                        'id' => '[A-Za-z0-9\-]+\=*'
1719
                                    ],
1720
                                    'defaults' => [
578 geraldo 1721
                                        'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
553 geraldo 1722
                                        'action' => 'takeaTest'
1723
                                    ]
1724
                                ]
1725
                            ],
1726
                            'report' => [
580 geraldo 1727
                                'type' => Segment::class,
553 geraldo 1728
                                'options' => [
1729
                                    'route' => '/report/:id',
1730
                                    'constraints' => [
1731
                                        'id' => '[A-Za-z0-9\-]+\=*'
1732
                                    ],
1733
                                    'defaults' => [
580 geraldo 1734
                                        'controller' => '\LeadersLinked\Controller\SelfEvaluationController',
553 geraldo 1735
                                        'action' => 'report'
1736
                                    ]
1737
                                ]
1738
                            ],
1739
                        ]
1740
                    ],
581 geraldo 1741
                    'performance-evaluation' => [
1742
                        'type' => Literal::class,
1743
                        'options' => [
1744
                            'route' => '/performance-evaluation',
1745
                            'defaults' => [
1746
                                'controller' => '\LeadersLinked\Controller\PerformanceEvaluationController',
1747
                                'action' => 'index'
1748
                            ]
1749
                        ],
1750
                        'may_terminate' => true,
1751
                        'child_routes' => [
1752
                            'take-a-test' => [
1753
                                'type' => Segment::class,
1754
                                'options' => [
1755
                                    'route' => '/take-a-test/:id',
1756
                                    'constraints' => [
1757
                                        'id' => '[A-Za-z0-9\-]+\=*'
1758
                                    ],
1759
                                    'defaults' => [
1760
                                        'controller' => '\LeadersLinked\Controller\PerformanceEvaluationController',
1761
                                        'action' => 'takeaTest'
1762
                                    ]
1763
                                ]
1764
                            ],
1765
                            'report' => [
1766
                                'type' => Segment::class,
1767
                                'options' => [
1768
                                    'route' => '/report/:id',
1769
                                    'constraints' => [
1770
                                        'id' => '[A-Za-z0-9\-]+\=*'
1771
                                    ],
1772
                                    'defaults' => [
1773
                                        'controller' => '\LeadersLinked\Controller\PerformanceEvaluationController',
1774
                                        'action' => 'report'
1775
                                    ]
1776
                                ]
1777
                            ],
1778
                        ]
1779
                    ],
1 www 1780
                    'my-profiles' => [
1781
                        'type' => Literal::class,
1782
                        'options' => [
1783
                            'route' => '/my-profiles',
1784
                            'defaults' => [
1785
                                'controller' => '\LeadersLinked\Controller\MyProfilesController',
1786
                                'action' => 'index'
1787
                            ]
1788
                        ],
1789
                        'may_terminate' => true,
1790
                        'child_routes' => [
1791
                            'add' => [
1792
                                'type' => Literal::class,
1793
                                'options' => [
1794
                                    'route' => '/add',
1795
                                    'defaults' => [
1796
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1797
                                        'action' => 'add'
1798
                                    ]
1799
                                ]
1800
                            ],
1801
                            'edit' => [
1802
                                'type' => Segment::class,
1803
                                'options' => [
1804
                                    'route' => '/edit/:id',
1805
                                    'constraints' => [
1806
                                        'id' => '[A-Za-z0-9\-]+\=*'
1807
                                    ],
1808
                                    'defaults' => [
1809
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1810
                                        'action' => 'edit'
1811
                                    ]
1812
                                ]
1813
                            ],
1814
                            'delete' => [
1815
                                'type' => Segment::class,
1816
                                'options' => [
1817
                                    'route' => '/delete/:id',
1818
                                    'constraints' => [
1819
                                        'id' => '[A-Za-z0-9\-]+\=*'
1820
                                    ],
1821
                                    'defaults' => [
1822
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1823
                                        'action' => 'delete'
1824
                                    ]
1825
                                ]
1826
                            ],
1827
                            'extended' => [
1828
                                'type' => Segment::class,
1829
                                'options' => [
1830
                                    'route' => '/extended/:id',
1831
                                    'constraints' => [
1832
                                        'id' => '[A-Za-z0-9\-]+\=*'
1833
                                    ],
1834
                                    'defaults' => [
1835
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1836
                                        'action' => 'extended'
1837
                                    ]
1838
                                ]
1839
                            ],
1840
                            'image' => [
1841
                                'type' => Segment::class,
1842
                                'options' => [
1843
                                    'route' => '/image/:id/operation/:operation',
1844
                                    'constraints' => [
1845
                                        'id' => '[A-Za-z0-9\-]+\=*',
1846
                                        'operation' => 'upload|delete'
1847
                                    ],
1848
                                    'defaults' => [
1849
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1850
                                        'action' => 'image'
1851
                                    ]
1852
                                ]
1853
                            ],
1854
                            'cover' => [
1855
                                'type' => Segment::class,
1856
                                'options' => [
1857
                                    'route' => '/cover/:id/operation/:operation',
1858
                                    'constraints' => [
1859
                                        'id' => '[A-Za-z0-9\-]+\=*',
1860
                                        'operation' => 'upload|delete'
1861
                                    ],
1862
                                    'defaults' => [
1863
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1864
                                        'action' => 'cover'
1865
                                    ]
1866
                                ]
1867
                            ],
1868
                            'experience' => [
1869
                                'type' => Segment::class,
1870
                                'options' => [
1871
                                    'route' => '/experience/:id/operation/:operation[/:user_experience_id]',
1872
                                    'constraints' => [
1873
                                        'id' => '[A-Za-z0-9\-]+\=*',
1874
                                        'operation' => 'add|edit|delete',
1875
                                        'user_education_id' => '[A-Za-z0-9\-]+\=*'
1876
                                    ],
1877
                                    'defaults' => [
1878
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1879
                                        'action' => 'experience'
1880
                                    ]
1881
                                ]
1882
                            ],
1883
                            'education' => [
1884
                                'type' => Segment::class,
1885
                                'options' => [
1886
                                    'route' => '/education/:id/operation/:operation[/:user_education_id]',
1887
                                    'constraints' => [
1888
                                        'id' => '[A-Za-z0-9\-]+\=*',
1889
                                        'operation' => 'add|edit|delete',
1890
                                        'user_education_id' => '[A-Za-z0-9\-]+\=*'
1891
                                    ],
1892
                                    'defaults' => [
1893
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1894
                                        'action' => 'education'
1895
                                    ]
1896
                                ]
1897
                            ],
1898
                            'language' => [
1899
                                'type' => Segment::class,
1900
                                'options' => [
1901
                                    'route' => '/language/:id',
1902
                                    'constraints' => [
1903
                                        'id' => '[A-Za-z0-9\-]+\=*'
1904
                                    ],
1905
                                    'defaults' => [
1906
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1907
                                        'action' => 'language'
1908
                                    ]
1909
                                ]
1910
                            ],
1911
                            'location' => [
1912
                                'type' => Segment::class,
1913
                                'options' => [
1914
                                    'route' => '/location/:id',
1915
                                    'constraints' => [
1916
                                        'id' => '[A-Za-z0-9\-]+\=*'
1917
                                    ],
1918
                                    'defaults' => [
1919
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1920
                                        'action' => 'location'
1921
                                    ]
1922
                                ]
1923
                            ],
1924
                            'skill' => [
1925
                                'type' => Segment::class,
1926
                                'options' => [
1927
                                    'route' => '/skill/:id',
1928
                                    'constraints' => [
1929
                                        'id' => '[A-Za-z0-9\-]+\=*'
1930
                                    ],
1931
                                    'defaults' => [
1932
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1933
                                        'action' => 'skill'
1934
                                    ]
1935
                                ]
1936
                            ],
1937
                            'social-network' => [
1938
                                'type' => Segment::class,
1939
                                'options' => [
1940
                                    'route' => '/social-network/:id',
1941
                                    'constraints' => [
1942
                                        'id' => '[A-Za-z0-9\-]+\=*'
1943
                                    ],
1944
                                    'defaults' => [
1945
                                        'controller' => '\LeadersLinked\Controller\MyProfilesController',
1946
                                        'action' => 'socialNetwork'
1947
                                    ]
1948
                                ]
1949
                            ]
1950
                        ]
1951
                    ]
1952
                ]
1953
            ],
1954
            'company' => [
1955
                'type' => Literal::class,
1956
                'options' => [
1957
                    'route' => '/company',
1958
                    'defaults' => [
1959
                        'controller' => '\LeadersLinked\Controller\CompanyController',
1960
                        'action' => 'index'
1961
                    ]
1962
                ],
1963
                'may_terminate' => true,
1964
                'child_routes' => [
1965
                    'view' => [
1966
                        'type' => Segment::class,
1967
                        'options' => [
1968
                            'route' => '/view/:id',
1969
                            'constraints' => [
1970
                                'id' => '[A-Za-z0-9\-]+\=*'
1971
                            ],
1972
                            'defaults' => [
1973
                                'controller' => '\LeadersLinked\Controller\CompanyController',
1974
                                'action' => 'view'
1975
                            ]
1976
                        ]
1977
                    ],
1978
                    'follow' => [
1979
                        'type' => Segment::class,
1980
                        'options' => [
1981
                            'route' => '/follow/:id',
1982
                            'constraints' => [
1983
                                'id' => '[A-Za-z0-9\-]+\=*'
1984
                            ],
1985
                            'defaults' => [
1986
                                'controller' => '\LeadersLinked\Controller\CompanyController',
1987
                                'action' => 'follow'
1988
                            ]
1989
                        ]
1990
                    ],
1991
                    'unfollow' => [
1992
                        'type' => Segment::class,
1993
                        'options' => [
1994
                            'route' => '/unfollow/:id',
1995
                            'constraints' => [
1996
                                'id' => '[A-Za-z0-9\-]+\=*'
1997
                            ],
1998
                            'defaults' => [
1999
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2000
                                'action' => 'unfollow'
2001
                            ]
2002
                        ]
2003
                    ],
2004
                    'request' => [
2005
                        'type' => Segment::class,
2006
                        'options' => [
2007
                            'route' => '/request/:id',
2008
                            'constraints' => [
2009
                                'id' => '[A-Za-z0-9\-]+\=*'
2010
                            ],
2011
                            'defaults' => [
2012
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2013
                                'action' => 'request'
2014
                            ]
2015
                        ]
2016
                    ],
2017
                    'accept' => [
2018
                        'type' => Segment::class,
2019
                        'options' => [
2020
                            'route' => '/accept/:id',
2021
                            'constraints' => [
2022
                                'id' => '[A-Za-z0-9\-]+\=*'
2023
                            ],
2024
                            'defaults' => [
2025
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2026
                                'action' => 'accept'
2027
                            ]
2028
                        ]
2029
                    ],
2030
                    'cancel' => [
2031
                        'type' => Segment::class,
2032
                        'options' => [
2033
                            'route' => '/cancel/:id',
2034
                            'constraints' => [
2035
                                'id' => '[A-Za-z0-9\-]+\=*'
2036
                            ],
2037
                            'defaults' => [
2038
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2039
                                'action' => 'cancel'
2040
                            ]
2041
                        ]
2042
                    ],
2043
                    'reject' => [
2044
                        'type' => Segment::class,
2045
                        'options' => [
2046
                            'route' => '/reject/:id',
2047
                            'constraints' => [
2048
                                'id' => '[A-Za-z0-9\-]+\=*'
2049
                            ],
2050
                            'defaults' => [
2051
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2052
                                'action' => 'reject'
2053
                            ]
2054
                        ]
2055
                    ],
2056
                    'leave' => [
2057
                        'type' => Segment::class,
2058
                        'options' => [
2059
                            'route' => '/leave/:id',
2060
                            'constraints' => [
2061
                                'id' => '[A-Za-z0-9\-]+\=*'
2062
                            ],
2063
                            'defaults' => [
2064
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2065
                                'action' => 'leave'
2066
                            ]
2067
                        ]
2068
                    ],
2069
                    'following-companies' => [
2070
                        'type' => Literal::class,
2071
                        'options' => [
2072
                            'route' => '/following-companies',
2073
                            'defaults' => [
2074
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2075
                                'action' => 'followingCompanies'
2076
                            ]
2077
                        ],
2078
                    ],
2079
                    'requests-sent' => [
2080
                        'type' => Literal::class,
2081
                        'options' => [
2082
                            'route' => '/requests-sent',
2083
                            'defaults' => [
2084
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2085
                                'action' => 'requestsSent'
2086
                            ]
2087
                        ],
2088
                        'may_terminate' => true,
2089
                    ],
2090
                    'invitations-received' => [
2091
                        'type' => Literal::class,
2092
                        'options' => [
2093
                            'route' => '/invitations-received',
2094
                            'defaults' => [
2095
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2096
                                'action' => 'invitationsReceived'
2097
                            ]
2098
                        ],
2099
                        'may_terminate' => true,
2100
                    ],
2101
                    'i-work-with' => [
2102
                        'type' => Literal::class,
2103
                        'options' => [
2104
                            'route' => '/i-work-with',
2105
                            'defaults' => [
2106
                                'controller' => '\LeadersLinked\Controller\CompanyController',
2107
                                'action' => 'iWorkWith'
2108
                            ]
2109
                        ],
2110
                        'may_terminate' => true,
2111
                    ],
2112
                    'my-companies' => [
2113
                        'type' => Literal::class,
2114
                        'options' => [
2115
                            'route' => '/my-companies',
2116
                            'defaults' => [
2117
                                'controller' => '\LeadersLinked\Controller\MyCompaniesController',
2118
                                'action' => 'index'
2119
                            ]
2120
                        ],
2121
                        'may_terminate' => true,
2122
                        'child_routes' => [
2123
                            'add' => [
2124
                                'type' => Literal::class,
2125
                                'options' => [
2126
                                    'route' => '/add',
2127
                                    'defaults' => [
2128
                                        'controller' => '\LeadersLinked\Controller\MyCompaniesController',
2129
                                        'action' => 'add'
2130
                                    ]
2131
                                ]
2132
                            ],
2133
                        ]
2134
                    ],
2135
                ]
2136
            ],
2137
            'account-settings' => [
2138
                'type' => Literal::class,
2139
                'options' => [
2140
                    'route' => '/account-settings',
2141
                    'defaults' => [
2142
                        'controller' => '\LeadersLinked\Controller\AccountSettingController',
2143
                        'action' => 'index'
2144
                    ]
2145
                ],
2146
                'may_terminate' => true,
2147
                'child_routes' => [
2148
                    'image' => [
2149
                        'type' => Segment::class,
2150
                        'options' => [
2151
                            'route' => '/image/:operation',
2152
                            'cconstraints' => [
2153
                                'operation' => 'upload|delete'
2154
                            ],
2155
                            'defaults' => [
2156
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2157
                                'action' => 'image',
2158
                                'operation' => 'upload'
2159
                            ]
2160
                        ]
2161
                    ],
2162
                    'deactivate' => [
2163
                        'type' => Literal::class,
2164
                        'options' => [
2165
                            'route' => '/deactivate',
2166
                            'defaults' => [
2167
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2168
                                'action' => 'deactivate'
2169
                            ]
2170
                        ]
2171
                    ],
2172
                    'notifications' => [
2173
                        'type' => Literal::class,
2174
                        'options' => [
2175
                            'route' => '/notification',
2176
                            'defaults' => [
2177
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2178
                                'action' => 'notification'
2179
                            ]
2180
                        ]
2181
                    ],
2182
                    'password' => [
2183
                        'type' => Literal::class,
2184
                        'options' => [
2185
                            'route' => '/password',
2186
                            'defaults' => [
2187
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2188
                                'action' => 'password'
2189
                            ]
2190
                        ]
2191
                    ],
2192
                    'add-facebook' => [
2193
                        'type' => Literal::class,
2194
                        'options' => [
2195
                            'route' => '/add-facebook',
2196
                            'defaults' => [
2197
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2198
                                'action' => 'addFacebook'
2199
                            ]
2200
                        ]
2201
                    ],
2202
                    'remove-facebook' => [
2203
                        'type' => Literal::class,
2204
                        'options' => [
2205
                            'route' => '/remove-facebook',
2206
                            'defaults' => [
2207
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2208
                                'action' => 'removeFacebook'
2209
                            ]
2210
                        ]
2211
                    ],
2212
                    'add-twitter' => [
2213
                        'type' => Literal::class,
2214
                        'options' => [
2215
                            'route' => '/add-twitter',
2216
                            'defaults' => [
2217
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2218
                                'action' => 'addTwitter'
2219
                            ]
2220
                        ]
2221
                    ],
2222
                    'remove-twitter' => [
2223
                        'type' => Literal::class,
2224
                        'options' => [
2225
                            'route' => '/remove-twitter',
2226
                            'defaults' => [
2227
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2228
                                'action' => 'removeTwitter'
2229
                            ]
2230
                        ]
2231
                    ],
2232
                    'add-google' => [
2233
                        'type' => Literal::class,
2234
                        'options' => [
2235
                            'route' => '/add-google',
2236
                            'defaults' => [
2237
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2238
                                'action' => 'addGoogle'
2239
                            ]
2240
                        ]
2241
                    ],
2242
                    'remove-google' => [
2243
                        'type' => Literal::class,
2244
                        'options' => [
2245
                            'route' => '/remove-google',
2246
                            'defaults' => [
2247
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2248
                                'action' => 'removeGoogle'
2249
                            ]
2250
                        ]
2251
                    ],
2252
                    'location' => [
2253
                        'type' => Literal::class,
2254
                        'options' => [
2255
                            'route' => '/location',
2256
                            'defaults' => [
2257
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2258
                                'action' => 'location'
2259
                            ]
2260
                        ]
2261
                    ],
2262
                    'privacy' => [
2263
                        'type' => Literal::class,
2264
                        'options' => [
2265
                            'route' => '/privacy',
2266
                            'defaults' => [
2267
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2268
                                'action' => 'privacy'
2269
                            ]
2270
                        ]
2271
                    ],
2272
                    'basic' => [
2273
                        'type' => Literal::class,
2274
                        'options' => [
2275
                            'route' => '/basic',
2276
                            'defaults' => [
2277
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2278
                                'action' => 'basic'
2279
                            ]
2280
                        ]
2281
                    ],
2282
                    'transactions' => [
2283
                        'type' => Literal::class,
2284
                        'options' => [
2285
                            'route' => '/transactions',
2286
                            'defaults' => [
2287
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2288
                                'action' => 'transactions'
2289
                            ]
2290
                        ],
2291
                        'may_terminate' => true,
2292
                        'child_routes' => [
2293
                            'add-funds' => [
2294
                                'type' => Literal::class,
2295
                                'options' => [
2296
                                    'route' => '/add-funds',
2297
                                    'defaults' => [
2298
                                        'controller' => '\LeadersLinked\Controller\AccountSettingController',
2299
                                        'action' => 'addFund'
2300
                                    ]
2301
                                ]
2302
                            ],
2303
                        ]
2304
                    ],
2305
                    'browsers' => [
2306
                        'type' => Literal::class,
2307
                        'options' => [
2308
                            'route' => '/browsers',
2309
                            'defaults' => [
2310
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2311
                                'action' => 'browsers'
2312
                            ]
2313
                        ]
2314
                    ],
2315
                    'ips' => [
2316
                        'type' => Literal::class,
2317
                        'options' => [
2318
                            'route' => '/ips',
2319
                            'defaults' => [
2320
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2321
                                'action' => 'ips'
2322
                            ]
2323
                        ]
2324
                    ],
2325
                    'devices' => [
2326
                        'type' => Literal::class,
2327
                        'options' => [
2328
                            'route' => '/devices',
2329
                            'defaults' => [
2330
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2331
                                'action' => 'devices'
2332
                            ]
2333
                        ]
1979 efrain 2334
                    ],
2335
                    'delete-account' => [
2336
                        'type' => Literal::class,
2337
                        'options' => [
2338
                            'route' => '/delete-account',
2339
                            'defaults' => [
2340
                                'controller' => '\LeadersLinked\Controller\AccountSettingController',
2341
                                'action' => 'deleteAccount'
2342
                            ]
2343
                        ]
2344
                    ],
1 www 2345
                ],
2346
                'may_terminate' => true
2347
            ],
2348
            'moodle' => [
2349
                'type' => Literal::class,
2350
                'options' => [
2351
                    'route' => '/moodle',
2352
                    'defaults' => [
2353
                        'controller' => '\LeadersLinked\Controller\MoodleController',
2354
                        'action' => 'index'
2355
                    ]
2356
                ],
2357
                'may_terminate' => true
2358
            ],
2359
            'oauth' => [
2360
                'type' => Literal::class,
2361
                'options' => [
2362
                    'route' => '/oauth',
2363
                    'defaults' => [
2364
                        'controller' => '\LeadersLinked\Controller\OauthController',
2365
                        'action' => 'index'
2366
                    ]
2367
                ],
2368
                'may_terminate' => true,
2369
                'child_routes' => [
2370
                    'facebook' => [
2371
                        'type' => Literal::class,
2372
                        'options' => [
2373
                            'route' => '/facebook',
2374
                            'defaults' => [
2375
                                'controller' => '\LeadersLinked\Controller\OauthController',
2376
                                'action' => 'facebook'
2377
                            ]
2378
                        ],
2379
                        'may_terminate' => true,
2380
                        'child_routes' => [
2381
                            'delete' => [
2382
                                'type' => Literal::class,
2383
                                'options' => [
2384
                                    'route' => '/delete',
2385
                                    'defaults' => [
2386
                                        'controller' => '\LeadersLinked\Controller\OauthController',
2387
                                        'action' => 'facebookDelete'
2388
                                    ]
2389
                                ],
2390
                                'may_terminate' => true,
2391
                            ],
2392
                            'cancel' => [
2393
                                'type' => Literal::class,
2394
                                'options' => [
2395
                                    'route' => '/cancel',
2396
                                    'defaults' => [
2397
                                        'controller' => '\LeadersLinked\Controller\OauthController',
2398
                                        'action' => 'facebookCancel'
2399
                                    ]
2400
                                ],
2401
                                'may_terminate' => true,
2402
                            ],
553 geraldo 2403
                        ],
1 www 2404
                    ],
2405
                    'twitter' => [
2406
                        'type' => Literal::class,
2407
                        'options' => [
2408
                            'route' => '/twitter',
2409
                            'defaults' => [
2410
                                'controller' => '\LeadersLinked\Controller\OauthController',
2411
                                'action' => 'twitter'
2412
                            ]
2413
                        ],
2414
                        'may_terminate' => true,
2415
                    ],
2416
                    'google' => [
2417
                        'type' => Literal::class,
2418
                        'options' => [
2419
                            'route' => '/google',
2420
                            'defaults' => [
2421
                                'controller' => '\LeadersLinked\Controller\OauthController',
2422
                                'action' => 'google'
2423
                            ]
2424
                        ],
2425
                        'may_terminate' => true,
2426
                    ],
553 geraldo 2427
                /* 'facebook' => [
2428
                  'type' => Literal::class,
2429
                  'options' => [
2430
                  'route' => '/facebook',
2431
                  'defaults' => [
2432
                  'controller' => '\LeadersLinked\Controller\OauthController',
2433
                  'action' => 'facebook'
2434
                  ]
2435
                  ],
2436
                  'may_terminate' => true,
2437
                  'child_routes' => [
2438
                  'cancel' => [
2439
                  'type' => Literal::class,
2440
                  'options' => [
2441
                  'route' => '/cancel',
2442
                  'defaults' => [
2443
                  'controller' => '\LeadersLinked\Controller\OauthController',
2444
                  'action' => 'facebookCancel'
2445
                  ]
2446
                  ]
2447
                  ],
2448
                  'delete' => [
2449
                  'type' => Literal::class,
2450
                  'options' => [
2451
                  'route' => '/delete',
2452
                  'defaults' => [
2453
                  'controller' => '\LeadersLinked\Controller\OauthController',
2454
                  'action' => 'facebookDelete'
2455
                  ]
2456
                  ]
2457
                  ]
2458
                  ]
2459
                  ] */
1 www 2460
                ]
2461
            ],
2462
            'helpers' => [
2463
                'type' => Literal::class,
2464
                'options' => [
2465
                    'route' => '/helpers',
2466
                    'defaults' => [
2467
                        'controller' => '\LeadersLinked\Controller\HelperController',
2468
                        'action' => 'index'
2469
                    ]
2470
                ],
2471
                'may_terminate' => true,
2472
                'child_routes' => [
2473
                    'search-people' => [
2474
                        'type' => Literal::class,
2475
                        'options' => [
2476
                            'route' => '/search-people',
2477
                            'defaults' => [
2478
                                'controller' => '\LeadersLinked\Controller\HelperController',
2479
                                'action' => 'searchPeople'
2480
                            ]
2481
                        ]
2482
                    ],
2483
                    'company-suggestion' => [
2484
                        'type' => Segment::class,
2485
                        'options' => [
2486
                            'route' => '/company-suggestion/:company_id',
2487
                            'constraints' => [
2488
                                'company_id' => '[A-Za-z0-9\-]+\=*'
2489
                            ],
2490
                            'defaults' => [
2491
                                'controller' => '\LeadersLinked\Controller\HelperController',
2492
                                'action' => 'companySuggestion'
2493
                            ]
2494
                        ]
2495
                    ],
2496
                    'posts' => [
2497
                        'type' => Literal::class,
2498
                        'options' => [
2499
                            'route' => '/posts',
2500
                            'defaults' => [
2501
                                'controller' => '\LeadersLinked\Controller\HelperController',
2502
                                'action' => 'posts'
2503
                            ]
2504
                        ]
2505
                    ],
2506
                    'people-you-may-know' => [
2507
                        'type' => Literal::class,
2508
                        'options' => [
2509
                            'route' => '/people-you-may-know',
2510
                            'defaults' => [
2511
                                'controller' => '\LeadersLinked\Controller\HelperController',
2512
                                'action' => 'peopleYouMayKnow'
2513
                            ]
2514
                        ]
2515
                    ],
2516
                    'people-viewed-profile' => [
2517
                        'type' => Segment::class,
2518
                        'options' => [
2519
                            'route' => '/people-viewed-profile/:user_profile_id',
2520
                            'constraints' => [
2521
                                'user_profile_id' => '[A-Za-z0-9\-]+\=*'
2522
                            ],
2523
                            'defaults' => [
2524
                                'controller' => '\LeadersLinked\Controller\HelperController',
2525
                                'action' => 'peopleViewedProfile'
2526
                            ]
2527
                        ]
2528
                    ],
2529
                    'company-follower' => [
2530
                        'type' => Segment::class,
2531
                        'options' => [
2532
                            'route' => '/company-follower/:company_id',
2533
                            'constraints' => [
2534
                                'company_id' => '[A-Za-z0-9\-]+\=*'
2535
                            ],
2536
                            'defaults' => [
2537
                                'controller' => '\LeadersLinked\Controller\HelperController',
2538
                                'action' => 'companyFollower'
2539
                            ]
2540
                        ]
2541
                    ],
2542
                    'group-members' => [
2543
                        'type' => Segment::class,
2544
                        'options' => [
2545
                            'route' => '/group-members/:group_id',
2546
                            'constraints' => [
2547
                                'group_id' => '[A-Za-z0-9\-]+\=*'
2548
                            ],
2549
                            'defaults' => [
2550
                                'controller' => '\LeadersLinked\Controller\HelperController',
2551
                                'action' => 'groupMembers'
2552
                            ]
2553
                        ],
2554
                        'may_terminate' => true,
2555
                        'child_routes' => [
2556
                            'invite' => [
2557
                                'type' => Literal::class,
2558
                                'options' => [
2559
                                    'route' => '/invite',
2560
                                    'defaults' => [
2561
                                        'controller' => '\LeadersLinked\Controller\HelperController',
2562
                                        'action' => 'groupMemberInvite'
2563
                                    ]
2564
                                ]
2565
                            ],
2566
                            'reject' => [
2567
                                'type' => Segment::class,
2568
                                'options' => [
2569
                                    'route' => '/reject/:user_id',
2570
                                    'constraints' => [
2571
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
2572
                                    ],
2573
                                    'defaults' => [
2574
                                        'controller' => '\LeadersLinked\Controller\HelperController',
2575
                                        'action' => 'groupMemberReject'
2576
                                    ]
2577
                                ]
2578
                            ],
2579
                            'cancel' => [
2580
                                'type' => Segment::class,
2581
                                'options' => [
2582
                                    'route' => '/cancel/:user_id',
2583
                                    'constraints' => [
2584
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
2585
                                    ],
2586
                                    'defaults' => [
2587
                                        'controller' => '\LeadersLinked\Controller\HelperController',
2588
                                        'action' => 'groupMemberCancel'
2589
                                    ]
2590
                                ]
2591
                            ],
2592
                            'approve' => [
2593
                                'type' => Segment::class,
2594
                                'options' => [
2595
                                    'route' => '/approve/:user_id',
2596
                                    'constraints' => [
2597
                                        'user_id' => '[A-Za-z0-9\-]+\=*'
2598
                                    ],
2599
                                    'defaults' => [
2600
                                        'controller' => '\LeadersLinked\Controller\HelperController',
2601
                                        'action' => 'groupMemberApprove'
2602
                                    ]
2603
                                ]
2604
                            ],
553 geraldo 2605
                        ]
1 www 2606
                    ],
2607
                    'groups-suggestion' => [
2920 efrain 2608
                        'type' => Literal::class,
1 www 2609
                        'options' => [
2920 efrain 2610
                            'route' => '/groups-suggestion',
1 www 2611
                            'defaults' => [
2612
                                'controller' => '\LeadersLinked\Controller\HelperController',
2613
                                'action' => 'groupsSuggestion'
2614
                            ]
2615
                        ]
2616
                    ],
3298 efrain 2617
                    'my-groups' => [
2618
                        'type' => Literal::class,
2619
                        'options' => [
2620
                            'route' => '/my-groups',
2621
                            'defaults' => [
2622
                                'controller' => '\LeadersLinked\Controller\HelperController',
2623
                                'action' => 'myGroups'
2624
                            ]
2625
                        ]
2626
                    ],
2444 efrain 2627
                    'footer' => [
2628
                        'type' => Literal::class,
2629
                        'options' => [
2630
                            'route' => '/footer',
2631
                            'defaults' => [
2632
                                'controller' => '\LeadersLinked\Controller\HelperController',
2633
                                'action' => 'footer'
2634
                            ]
2635
                        ]
2636
                    ],
1 www 2637
                ]
2638
            ],
2639
            'help' => [
2640
                'type' => Literal::class,
2641
                'options' => [
2642
                    'route' => '/help',
2643
                    'defaults' => [
2644
                        'controller' => '\LeadersLinked\Controller\HelpController',
2645
                        'action' => 'send'
2646
                    ]
2647
                ],
2648
                'may_terminate' => true,
553 geraldo 2649
            ],
1 www 2650
            'services' => [
2651
                'type' => Literal::class,
2652
                'options' => [
2653
                    'route' => '/services',
2654
                    'defaults' => [
2655
                        'controller' => '\LeadersLinked\Controller\ServiceController',
2656
                        'action' => 'index'
2657
                    ]
2658
                ],
2659
                'may_terminate' => true,
2660
                'child_routes' => [
2661
                    'storage' => [
2662
                        'type' => Segment::class,
2663
                        'options' => [
2664
                            'route' => '/storage/type/:type[/code/:code][/filename/:filename]',
2665
                            'constraints' => [
2666
                                'type' => 'user|user-profile|user-cover|company|company-cover|group|group-cover|job|chat|image|feed|post|microlearning-topic|microlearning-capsule|microlearning-slide',
2667
                                'code' => '[A-Za-z0-9\-]+\=*',
2668
                                'filename' => '[a-zA-Z0-9\-\_]+\.(jpg|jpeg|gif|png|mp3|mp4|flv|doc|pdf|docx|xls|ppt|pdf|xlsx|pptx)'
2669
                            ],
2670
                            // MjM5ODk0Mzgg
2671
                            'defaults' => [
2672
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2673
                                'action' => 'storage'
2674
                            ]
2675
                        ]
2676
                    ],
2677
                    'device' => [
2678
                        'type' => Literal::class,
2679
                        'options' => [
2680
                            'route' => '/device',
2681
                            'defaults' => [
2682
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2683
                                'action' => 'device'
2684
                            ]
2685
                        ]
2686
                    ],
2687
                    'fcm' => [
2688
                        'type' => Literal::class,
2689
                        'options' => [
2690
                            'route' => '/fcm',
2691
                            'defaults' => [
2692
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2693
                                'action' => 'fcm'
2694
                            ]
2695
                        ]
2696
                    ],
2697
                    'signin' => [
2698
                        'type' => Literal::class,
2699
                        'options' => [
2700
                            'route' => '/signin',
2701
                            'defaults' => [
2702
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2703
                                'action' => 'signin'
2704
                            ]
2705
                        ]
2706
                    ],
2707
                    'check-session' => [
2708
                        'type' => Literal::class,
2709
                        'options' => [
2710
                            'route' => '/check-session',
2711
                            'defaults' => [
2712
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2713
                                'action' => 'checkSession'
2714
                            ]
2715
                        ]
2716
                    ],
2717
                    'signout' => [
2718
                        'type' => Literal::class,
2719
                        'options' => [
2720
                            'route' => '/signout',
2721
                            'defaults' => [
2722
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2723
                                'action' => 'signout'
2724
                            ]
2725
                        ]
2726
                    ],
2727
                    'sync' => [
2728
                        'type' => Literal::class,
2729
                        'options' => [
2730
                            'route' => '/sync',
2731
                            'defaults' => [
2732
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2733
                                'action' => 'sync'
2734
                            ]
2735
                        ]
2736
                    ],
2737
                    'sync-batch' => [
2738
                        'type' => Literal::class,
2739
                        'options' => [
2740
                            'route' => '/sync-batch',
2741
                            'defaults' => [
2742
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2743
                                'action' => 'syncBatch'
2744
                            ]
2745
                        ]
2746
                    ],
2004 efrain 2747
                    'delete-account' => [
2748
                        'type' => Literal::class,
2749
                        'options' => [
2750
                            'route' => '/delete-account',
2751
                            'defaults' => [
2752
                                'controller' => '\LeadersLinked\Controller\ServiceController',
2753
                                'action' => 'deleteAccount'
2754
                            ]
2755
                        ]
2756
                    ],
1 www 2757
                    'microlearning' => [
2758
                        'type' => Literal::class,
2759
                        'options' => [
2760
                            'route' => '/microlearning',
2761
                            'defaults' => [
2762
                                'controller' => '\LeadersLinked\Controller\ServiceMicrolearningController',
2763
                                'action' => 'index'
2764
                            ]
2765
                        ],
2766
                        'may_terminate' => true,
2767
                        'child_routes' => [
2768
                            'refresh' => [
2769
                                'type' => Literal::class,
2770
                                'options' => [
2771
                                    'route' => '/refresh',
2772
                                    'defaults' => [
2773
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
2774
                                        'action' => 'microlearningRefresh'
2775
                                    ]
2776
                                ]
2777
                            ],
1979 efrain 2778
                            'delete-account' => [
2779
                                'type' => Literal::class,
2780
                                'options' => [
2781
                                    'route' => '/delete-account',
2782
                                    'defaults' => [
2783
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
2784
                                        'action' => 'deleteAccount'
2785
                                    ]
2786
                                ]
2787
                            ],
1 www 2788
                            'check-changes' => [
2789
                                'type' => Literal::class,
2790
                                'options' => [
2791
                                    'route' => '/check-changes',
2792
                                    'defaults' => [
2793
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
2794
                                        'action' => 'microlearningCheckChanges'
2795
                                    ]
2796
                                ]
2797
                            ],
280 efrain 2798
                            'capsules' => [
2799
                                'type' => Literal::class,
2800
                                'options' => [
2801
                                    'route' => '/capsules',
2802
                                    'defaults' => [
2803
                                        'controller' => '\LeadersLinked\Controller\ServiceController',
2804
                                        'action' => 'microlearningCapsules'
2805
                                    ]
2806
                                ],
2807
                                'may_terminate' => true,
2808
                                'child_routes' => [
2809
                                    'comments' => [
553 geraldo 2810
                                        'type' => Segment::class,
280 efrain 2811
                                        'options' => [
2812
                                            'route' => '/comments/:capsule_id',
2813
                                            'constraints' => [
2814
                                                'capsule_id' => '[A-Za-z0-9\-]+\=*'
2815
                                            ],
2816
                                            'defaults' => [
2817
                                                'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
2818
                                                'action' => 'index'
2819
                                            ]
2820
                                        ],
2821
                                        'may_terminate' => true,
2822
                                        'child_routes' => [
2823
                                            'add' => [
2824
                                                'type' => Literal::class,
2825
                                                'options' => [
2826
                                                    'route' => '/add',
2827
                                                    'defaults' => [
2828
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
2829
                                                        'action' => 'add'
2830
                                                    ]
2831
                                                ]
2832
                                            ],
2833
                                            'get' => [
2834
                                                'type' => Segment::class,
2835
                                                'options' => [
1323 efrain 2836
                                                    'route' => '/get/:comment_id',
280 efrain 2837
                                                    'constraints' => [
1323 efrain 2838
                                                        'comment_id' => '[A-Za-z0-9\-]+\=*'
280 efrain 2839
                                                    ],
2840
                                                    'defaults' => [
2841
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
2842
                                                        'action' => 'get'
2843
                                                    ]
2844
                                                ]
2845
                                            ],
1323 efrain 2846
                                            'edit' => [
2847
                                                'type' => Segment::class,
2848
                                                'options' => [
2849
                                                    'route' => '/edit/:comment_id',
2850
                                                    'constraints' => [
2851
                                                        'comment_id' => '[A-Za-z0-9\-]+\=*'
2852
                                                    ],
2853
                                                    'defaults' => [
2854
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
2855
                                                        'action' => 'edit'
2856
                                                    ]
2857
                                                ]
2858
                                            ],
280 efrain 2859
                                            'delete' => [
2860
                                                'type' => Segment::class,
2861
                                                'options' => [
1323 efrain 2862
                                                    'route' => '/delete/:comment_id',
280 efrain 2863
                                                    'constraints' => [
1323 efrain 2864
                                                        'comment_id' => '[A-Za-z0-9\-]+\=*'
280 efrain 2865
                                                    ],
2866
                                                    'defaults' => [
2867
                                                        'controller' => '\LeadersLinked\Controller\ServiceCapsuleCommentsController',
2868
                                                        'action' => 'delete'
2869
                                                    ]
2870
                                                ]
2871
                                            ],
2872
                                        ]
2873
                                    ],
553 geraldo 2874
                                ]
280 efrain 2875
                            ],
733 efrain 2876
 
553 geraldo 2877
                        ]
1 www 2878
                    ],
2879
                ]
2880
            ],
2881
            'marketplace' => [
2882
                'type' => Literal::class,
2883
                'options' => [
2884
                    'route' => '/marketplace',
2885
                    'defaults' => [
2886
                        'controller' => '\LeadersLinked\Controller\MarketPlaceController',
2887
                        'action' => 'index'
2888
                    ]
2889
                ],
2890
                'may_terminate' => true,
2891
                'child_routes' => [
2892
                    'categories' => [
2893
                        'type' => Segment::class,
2894
                        'options' => [
2895
                            'route' => '/categories',
2896
                            'defaults' => [
2897
                                'controller' => '\LeadersLinked\Controller\MarketPlaceController',
2898
                                'action' => 'getCategories'
2899
                            ]
2900
                        ]
2901
                    ],
2902
                    'enroll' => [
2903
                        'type' => Segment::class,
2904
                        'options' => [
2905
                            'route' => '/enroll/:company_id/:topic_id/:capsule_id',
2906
                            'constraints' => [
2907
                                'company_id' => '[A-Za-z0-9\-]+\=*',
2908
                                'topic_id' => '[A-Za-z0-9\-]+\=*',
2909
                                'capsule_id' => '[A-Za-z0-9\-]+\=*',
2910
                            ],
2911
                            'defaults' => [
2912
                                'controller' => '\LeadersLinked\Controller\MarketPlaceController',
2913
                                'action' => 'enroll'
2914
                            ]
2915
                        ]
2916
                    ],
2917
                ]
553 geraldo 2918
            ],
1 www 2919
        ]
2920
    ],
2921
    'controllers' => [
2922
        'factories' => [
2923
            \LeadersLinked\Controller\AccountSettingController::class => \LeadersLinked\Factory\Controller\AccountSettingControllerFactory::class,
2924
            \LeadersLinked\Controller\AuthController::class => \LeadersLinked\Factory\Controller\AuthControllerFactory::class,
2925
            \LeadersLinked\Controller\BackendController::class => \LeadersLinked\Factory\Controller\BackendControllerFactory::class,
2926
            \LeadersLinked\Controller\ChatController::class => \LeadersLinked\Factory\Controller\ChatControllerFactory::class,
2927
            \LeadersLinked\Controller\CompanyController::class => \LeadersLinked\Factory\Controller\CompanyControllerFactory::class,
2928
            \LeadersLinked\Controller\DashboardController::class => \LeadersLinked\Factory\Controller\DashboardControllerFactory::class,
2929
            \LeadersLinked\Controller\ConnectionController::class => \LeadersLinked\Factory\Controller\ConnectionControllerFactory::class,
2930
            \LeadersLinked\Controller\HomeController::class => \LeadersLinked\Factory\Controller\HomeControllerFactory::class,
2931
            \LeadersLinked\Controller\HelperController::class => \LeadersLinked\Factory\Controller\HelperControllerFactory::class,
2932
            \LeadersLinked\Controller\HelpController::class => \LeadersLinked\Factory\Controller\HelpControllerFactory::class,
2933
            \LeadersLinked\Controller\FeedController::class => \LeadersLinked\Factory\Controller\FeedControllerFactory::class,
2934
            \LeadersLinked\Controller\MarketPlaceController::class => \LeadersLinked\Factory\Controller\MarketPlaceControllerFactory::class,
2935
            \LeadersLinked\Controller\MoodleController::class => \LeadersLinked\Factory\Controller\MoodleControllerFactory::class,
2936
            \LeadersLinked\Controller\OauthController::class => \LeadersLinked\Factory\Controller\OauthControllerFactory::class,
2937
            \LeadersLinked\Controller\JobController::class => \LeadersLinked\Factory\Controller\JobControllerFactory::class,
2938
            \LeadersLinked\Controller\InMailController::class => \LeadersLinked\Factory\Controller\InMailControllerFactory::class,
2939
            \LeadersLinked\Controller\GroupController::class => \LeadersLinked\Factory\Controller\GroupControllerFactory::class,
2940
            \LeadersLinked\Controller\MyGroupsController::class => \LeadersLinked\Factory\Controller\MyGroupsControllerFactory::class,
2941
            \LeadersLinked\Controller\MyCompaniesController::class => \LeadersLinked\Factory\Controller\MyCompaniesControllerFactory::class,
3262 efrain 2942
            \LeadersLinked\Controller\NotificationController::class => \LeadersLinked\Factory\Controller\NotificationControllerFactory::class,
1 www 2943
            \LeadersLinked\Controller\PaypalController::class => \LeadersLinked\Factory\Controller\PaypalControllerFactory::class,
2944
            \LeadersLinked\Controller\ProfileController::class => \LeadersLinked\Factory\Controller\ProfileControllerFactory::class,
2945
            \LeadersLinked\Controller\ProfileMicrolearningController::class => \LeadersLinked\Factory\Controller\ProfileMicrolearningControllerFactory::class,
272 geraldo 2946
            \LeadersLinked\Controller\SelfEvaluationController::class => \LeadersLinked\Factory\Controller\SelfEvaluationControllerFactory::class,
559 geraldo 2947
            \LeadersLinked\Controller\PerformanceEvaluationController::class => \LeadersLinked\Factory\Controller\PerformanceEvaluationControllerFactory::class,
1 www 2948
            \LeadersLinked\Controller\MyProfilesController::class => \LeadersLinked\Factory\Controller\MyProfilesControllerFactory::class,
2949
            \LeadersLinked\Controller\SearchController::class => \LeadersLinked\Factory\Controller\SearchControllerFactory::class,
2950
            \LeadersLinked\Controller\StorageController::class => \LeadersLinked\Factory\Controller\StorageControllerFactory::class,
2951
            \LeadersLinked\Controller\ServiceController::class => \LeadersLinked\Factory\Controller\ServiceControllerFactory::class,
1323 efrain 2952
            \LeadersLinked\Controller\ServiceCapsuleCommentsController::class => \LeadersLinked\Factory\Controller\ServiceCapsuleCommentsControllerFactory::class,
2953
 
2954
 
1 www 2955
        ],
2956
        'aliases' => [
2957
            '\LeadersLinked\Controller\AuthController' => \LeadersLinked\Controller\AuthController::class,
2958
            '\LeadersLinked\Controller\BackendController' => \LeadersLinked\Controller\BackendController::class,
2959
            '\LeadersLinked\Controller\AccountSettingController' => \LeadersLinked\Controller\AccountSettingController::class,
2960
            '\LeadersLinked\Controller\ChatController' => \LeadersLinked\Controller\ChatController::class,
2961
            '\LeadersLinked\Controller\CompanyController' => \LeadersLinked\Controller\CompanyController::class,
2962
            '\LeadersLinked\Controller\ConnectionController' => \LeadersLinked\Controller\ConnectionController::class,
2963
            '\LeadersLinked\Controller\DashboardController' => \LeadersLinked\Controller\DashboardController::class,
2964
            '\LeadersLinked\Controller\HomeController' => \LeadersLinked\Controller\HomeController::class,
2965
            '\LeadersLinked\Controller\HelpController' => \LeadersLinked\Controller\HelpController::class,
2966
            '\LeadersLinked\Controller\HelperController' => \LeadersLinked\Controller\HelperController::class,
2967
            '\LeadersLinked\Controller\FeedController' => \LeadersLinked\Controller\FeedController::class,
553 geraldo 2968
            '\LeadersLinked\Controller\InMailController' => \LeadersLinked\Controller\InMailController::class,
1 www 2969
            '\LeadersLinked\Controller\JobController' => \LeadersLinked\Controller\JobController::class,
2970
            '\LeadersLinked\Controller\GroupController' => \LeadersLinked\Controller\GroupController::class,
2971
            '\LeadersLinked\Controller\MyGroupsController' => \LeadersLinked\Controller\MyGroupsController::class,
2972
            '\LeadersLinked\Controller\MyCompaniesController' => \LeadersLinked\Controller\MyCompaniesController::class,
2973
            '\LeadersLinked\Controller\PaypalController' => \LeadersLinked\Controller\PaypalController::class,
2974
            '\LeadersLinked\Controller\ProfileController' => \LeadersLinked\Controller\ProfileController::class,
2975
            '\LeadersLinked\Controller\ProfileMicrolearningController' => \LeadersLinked\Controller\ProfileMicrolearningController::class,
2976
            '\LeadersLinked\Controller\MyProfilesController' => \LeadersLinked\Controller\MyProfilesController::class,
2977
            '\LeadersLinked\Controller\MarketPlaceController' => \LeadersLinked\Controller\MarketPlaceController::class,
2978
            '\LeadersLinked\Controller\MoodleController' => \LeadersLinked\Controller\MoodleController::class,
3262 efrain 2979
            '\LeadersLinked\Controller\NotificationController' => \LeadersLinked\Controller\NotificationController::class,
1 www 2980
            '\LeadersLinked\Controller\SearchController' => \LeadersLinked\Controller\SearchController::class,
2981
            '\LeadersLinked\Controller\StorageController' => \LeadersLinked\Controller\StorageController::class,
2982
            '\LeadersLinked\Controller\OauthController' => \LeadersLinked\Controller\OauthController::class,
2983
            '\LeadersLinked\Controller\ServiceController' => \LeadersLinked\Controller\ServiceController::class,
1323 efrain 2984
            '\LeadersLinked\Controller\ServiceCapsuleCommentsController' => \LeadersLinked\Controller\ServiceCapsuleCommentsController::class,
273 geraldo 2985
            '\LeadersLinked\Controller\SelfEvaluationController' => \LeadersLinked\Controller\SelfEvaluationController::class,
559 geraldo 2986
            '\LeadersLinked\Controller\PerformanceEvaluationController' => \LeadersLinked\Controller\PerformanceEvaluationController::class,
1 www 2987
        ]
2988
    ],
2989
    'laminas-cli' => [
2990
        'commands' => [
2991
            'process-queue-email' => \LeadersLinked\Command\ProcessQueueEmailCommand::class,
2992
            'process-queue-push' => \LeadersLinked\Command\ProcessQueuePushCommand::class,
1979 efrain 2993
            'process-queue-user-deleted' => \LeadersLinked\Command\ProcessQueueUserDeletedCommand::class,
1 www 2994
            'process-queue-video-convert' => \LeadersLinked\Command\ProcessQueueVideoConvertCommand::class,
2995
            'recalculate-microlearning-progress' => \LeadersLinked\Command\RecalculateMicrolearningProgressCommand::class,
2996
            'check-owner-user-for-company' => \LeadersLinked\Command\CheckOwnerUserForCompanyCommand::class,
242 efrain 2997
            'check-preview-poster-for-feed' => \LeadersLinked\Command\CheckPreviewPosterForFeedCommand::class,
1 www 2998
        ]
2999
    ],
3000
    'service_manager' => [
3001
        'abstract_factories' => [
3002
            \Laminas\Db\Adapter\AdapterAbstractServiceFactory::class
3003
        ],
3004
        'factories' => [
3005
            'RenderingStrategy' => function ($container) {
3006
                $translator = $container->get('MvcTranslator');
3007
                return new \LeadersLinked\View\RenderingStrategy($translator);
3008
            },
3009
            'menuNavigation' => \LeadersLinked\Navigation\MenuNavigation::class,
3010
            'footerNavigation' => \LeadersLinked\Navigation\FooterNavigation::class,
1979 efrain 3011
 
1 www 3012
            \LeadersLinked\Command\ProcessQueueEmailCommand::class => \LeadersLinked\Factory\Command\ProcessQueueEmailCommandFactory::class,
3013
            \LeadersLinked\Command\ProcessQueuePushCommand::class => \LeadersLinked\Factory\Command\ProcessQueuePushCommandFactory::class,
1979 efrain 3014
            \LeadersLinked\Command\ProcessQueueUserDeletedCommand::class => \LeadersLinked\Factory\Command\ProcessQueueUserDeletedCommandFactory::class,
3015
 
1 www 3016
            \LeadersLinked\Command\ProcessQueueVideoConvertCommand::class => \LeadersLinked\Factory\Command\ProcessQueueVideoConvertCommandFactory::class,
3017
            \LeadersLinked\Command\RecalculateMicrolearningProgressCommand::class => \LeadersLinked\Factory\Command\RecalculateMicrolearningProgressCommandFactory::class,
3018
            \LeadersLinked\Command\CheckOwnerUserForCompanyCommand::class => \LeadersLinked\Factory\Command\CheckOwnerUserForCompanyCommandFactory::class,
1979 efrain 3019
 
242 efrain 3020
            \LeadersLinked\Command\CheckPreviewPosterForFeedCommand::class => \LeadersLinked\Factory\Command\CheckPreviewPosterForFeedCommandFactory::class,
1 www 3021
        ],
553 geraldo 3022
        'aliases' => [// 'leaders-linked-storage' => \LeadersLinked\Service\StorageService::class
1 www 3023
        ]
3024
    ],
3025
    'view_helpers' => [
3026
        'factories' => [
3027
            \LeadersLinked\Helper\ChatHelper::class => \LeadersLinked\Factory\Helper\ChatHelperFactory::class,
3028
            \LeadersLinked\Helper\CompanyFollowerHelper::class => \LeadersLinked\Factory\Helper\CompanyFollowerHelperFactory::class,
3029
            \LeadersLinked\Helper\CompanySuggestionHelper::class => \LeadersLinked\Factory\Helper\CompanySuggestionHelperFactory::class,
3030
            \LeadersLinked\Helper\CurrentUserHelper::class => \LeadersLinked\Factory\Helper\CurrentUserHelperFactory::class,
3031
            \LeadersLinked\Helper\GroupMembersHelper::class => \LeadersLinked\Factory\Helper\GroupMembersHelperFactory::class,
3032
            \LeadersLinked\Helper\GroupsSuggestionHelper::class => \LeadersLinked\Factory\Helper\GroupsSuggestionHelperFactory::class,
3033
            \LeadersLinked\Helper\MenuHelper::class => \LeadersLinked\Factory\Helper\MenuHelperFactory::class,
3034
            \LeadersLinked\Helper\PeopleViewedProfileHelper::class => \LeadersLinked\Factory\Helper\PeopleViewedProfileHelperFactory::class,
3035
            \LeadersLinked\Helper\PeopleYouMayKnowHelper::class => \LeadersLinked\Factory\Helper\PeopleYouMayKnowHelperFactory::class,
3036
            \LeadersLinked\Helper\SimilarGroupsHelper::class => \LeadersLinked\Factory\Helper\SimilarGroupsHelperFactory::class
3037
        ],
3038
        'invokables' => [
3039
            'menuBackendHelper' => \LeadersLinked\Helper\MenuBackendHelper::class,
3040
            'menuMyCompanyHelper' => \LeadersLinked\Helper\MenuMyCompanyHelper::class,
3041
            'footerHelper' => \LeadersLinked\Helper\FooterHelper::class
3042
        ],
3043
        'aliases' => [
3044
            'chatHelper' => \LeadersLinked\Helper\ChatHelper::class,
3045
            'companyFollowerHelper' => \LeadersLinked\Helper\CompanyFollowerHelper::class,
3046
            'companySuggestionHelper' => \LeadersLinked\Helper\CompanySuggestionHelper::class,
3047
            'currentUserHelper' => \LeadersLinked\Helper\CurrentUserHelper::class,
3048
            'menuHelper' => \LeadersLinked\Helper\MenuHelper::class,
3049
            'peopleViewedProfileHelper' => \LeadersLinked\Helper\PeopleViewedProfileHelper::class,
3050
            'peopleYouMayKnowHelper' => \LeadersLinked\Helper\PeopleYouMayKnowHelper::class,
3051
            'groupMembersHelper' => \LeadersLinked\Helper\GroupMembersHelper::class,
3052
            'similarGroupsHelper' => \LeadersLinked\Helper\SimilarGroupsHelper::class
3053
        ]
3054
    ],
3055
    'controller_plugins' => [
3056
        'invokables' => [],
3057
        'factories' => [
2920 efrain 3058
            \LeadersLinked\Plugin\CurrentUserPlugin::class => \LeadersLinked\Factory\Plugin\CurrentUserPluginFactory::class,
3059
            \LeadersLinked\Plugin\CurrentNetworkPlugin::class => \LeadersLinked\Factory\Plugin\CurrentNetworkPluginFactory::class,
1 www 3060
        ],
3061
        'aliases' => [
2920 efrain 3062
            'currentUserPlugin' => \LeadersLinked\Plugin\CurrentUserPlugin::class,
3063
            'currentNetworkPlugin' => \LeadersLinked\Plugin\CurrentNetworkPlugin::class,
1 www 3064
        ]
3065
    ],
3066
    'view_manager' => [
3067
        'display_not_found_reason' => true,
3068
        'display_exceptions' => true,
3069
        'doctype' => 'HTML5',
3070
        'not_found_template' => 'error/404',
3071
        'exception_template' => 'error/index',
3072
        'template_map' => [
3073
            'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
3074
            'error/404' => __DIR__ . '/../view/error/404.phtml',
3075
            'error/index' => __DIR__ . '/../view/error/index.phtml'
3076
        ],
3077
        'template_path_stack' => [
3078
            __DIR__ . '/../view'
3079
        ],
3080
        'strategies' => [
3081
            'ViewJsonStrategy',
3082
            'RenderingStrategy'
3083
        ]
3084
    ]
3085
];
3086