Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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