Proyectos de Subversion LeadersLinked - Services

Rev

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

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
 
3
use LeadersLinked\Model\UserType;
4
 
5
function getAclResources()
6
{
7
    return [
8
        'home',
9
        'onroom',
10
        'signin',
11
        'signin/facebook',
12
        'signin/twitter',
13
        'signin/google',
14
        'signin/impersonate',
177 efrain 15
        'signin/debug',
1 efrain 16
        'share',
17
        'share/increment-external-counter',
18
        'signout',
19
        'signup',
20
        'backend',
21
        'backend/signin-admin',
22
        'backend/signin-company',
23
        'shorter',
24
        'shorter/generate',
25
        'csrf',
26
        'check-session',
27
        'language',
28
        'impersonate',
29
        'impersonate/execute',
30
        'notifications',
31
        'notifications/mark-read',
32
        'notifications/mark-all-read',
33
        'notifications/delete',
34
        'notifications/clear',
35
        'notifications/unreads',
36
        'reset-password',
37
        'forgot-password',
38
        'activate-account',
39
        'professionalism-policy',
40
        'privacy-policy',
41
        'terms-and-conditions',
42
        'cookies',
43
        'help',
44
        'oauth',
45
        'oauth/facebook',
46
        'oauth/facebook/cancel',
47
        'oauth/facebook/delete',
48
        'oauth/twitter',
49
        'oauth/google',
50
        'oauth/instagram',
51
        'paypal',
52
        'paypal/success',
53
        'paypal/cancel',
54
        'services',
55
        'services/device',
56
        'services/check-session',
57
        'services/fcm',
58
        'services/signin',
59
        'services/signout',
60
        'services/sync',
61
        'services/sync-batch',
62
        'services/storage',
63
        'services/microlearning',
64
        'services/microlearning/refresh',
65
        'services/microlearning/check-changes',
66
        'services/microlearning/capsules',
67
        'services/microlearning/capsules/comments',
68
        'services/microlearning/capsules/comments/add',
69
        'services/microlearning/capsules/comments/delete',
70
        'services/delete-account',
71
        'storage',
72
        'storage-network',
73
        'dashboard',
74
        'post',
75
        'post/comments',
76
        'post/comments/add',
77
        'post/comments/delete',
78
        'post/save-reaction',
79
        'post/delete-reaction',
80
 
81
        'feed',
82
        'feed/timeline',
83
        'feed/add',
84
        'feed/delete',
85
        'feed/share',
86
        'feed/comment',
87
        'feed/comment/delete',
88
        'feed/save-reaction',
89
        'feed/delete-reaction',
90
        'feed/vote',
91
        'connection',
92
        'connection/my-connections',
93
        'connection/people-you-may-know',
94
        'connection/people-blocked',
95
        'connection/people-blocked/delete',
96
        'connection/invitations-sent',
97
        'connection/invitations-received',
98
        'connection/request',
99
        'connection/approve',
100
        'connection/reject',
101
        'connection/block',
102
        'connection/cancel',
103
        'connection/delete',
104
        'connection/unblock',
105
        'account-settings',
106
        'account-settings/image',
107
        'account-settings/deactivate',
108
        'account-settings/notifications',
109
        'account-settings/password',
110
        'account-settings/social-networks',
111
        'account-settings/location',
112
        'account-settings/privacy',
113
        'account-settings/basic',
114
        'account-settings/browsers',
115
        'account-settings/ips',
116
        'account-settings/devices',
117
        'account-settings/transactions',
118
        'account-settings/transactions/add-funds',
119
        'account-settings/add-facebook',
120
        'account-settings/remove-facebook',
121
        'account-settings/add-twitter',
122
        'account-settings/remove-twitter',
123
        'account-settings/add-google',
124
        'account-settings/remove-google',
125
        'account-settings/delete-account',
126
        'search',
127
        'search/company',
128
        'search/group',
129
        'search/job',
130
        'search/user',
131
        'moodle',
132
        'profile',
133
        'profile/self-evaluation',
134
        'profile/self-evaluation/take-a-test',
135
        'profile/self-evaluation/report',
136
        'profile/performance-evaluation',
137
        'profile/performance-evaluation/take-a-test',
138
        'profile/performance-evaluation/report',
139
        'profile/microlearning',
140
        'profile/microlearning/timeline',
141
        'profile/microlearning/progress',
142
        'profile/view',
143
        'profile/people-viewed-profile',
144
        'profile/my-profiles',
145
        'profile/my-profiles/extended',
146
        'profile/my-profiles/cover',
147
        'profile/my-profiles/image',
148
        'profile/my-profiles/experience',
149
        'profile/my-profiles/education',
150
        'profile/my-profiles/language',
151
        'profile/my-profiles/location',
152
        'profile/my-profiles/skill',
153
        'profile/my-profiles/social-network',
154
        'profile/my-profiles/aptitude',
155
        'profile/my-profiles/hobby-and-interest',
156
        'profile/my-profiles/add',
157
        'profile/my-profiles/edit',
158
        'profile/my-profiles/delete',
159
        'company',
160
        'company/my-companies',
161
        'company/my-companies/add',
162
        'company/following-companies',
163
        'company/view',
164
        'company/follow',
165
        'company/unfollow',
166
        'company/request',
167
        'company/reject',
168
        'company/accept',
169
        'company/cancel',
170
        'company/leave',
171
        'company/requests-sent',
172
        'company/invitations-received',
173
        'company/i-work-with',
174
        'group',
175
        'group/view',
176
        'group/request',
177
        'group/leave',
178
        'group/cancel',
179
        'group/accept',
180
        'group/reject',
181
        'group/my-groups',
182
        'group/my-groups/accessibility',
183
        'group/my-groups/industry',
184
        'group/my-groups/extended',
185
        'group/my-groups/type',
186
        'group/my-groups/users',
187
        'group/my-groups/image',
188
        'group/my-groups/cover',
189
        'group/my-groups/website',
190
        'group/my-groups/privacy',
191
        'group/my-groups/add',
192
        'group/my-groups/edit',
193
        'group/my-groups/delete',
194
        'group/my-groups/status',
195
        'group/joined-groups',
196
        'group/requests-sent',
197
        'group/invitations-received',
198
        'group/members',
199
        'group/members/approve',
200
        'group/members/reject',
201
        'group/members/invite',
202
        'group/members/cancel',
203
        'job',
204
        'job/view',
205
        'job/applied-jobs',
206
        'job/apply-job',
207
        'job/remove-apply-job',
208
        'job/saved-jobs',
209
        'job/save-job',
210
        'job/remove-save-job',
211
        'inmail',
212
        'inmail/block',
213
        'inmail/delete',
214
        'inmail/message',
215
        'inmail/message/send',
216
        'inmail/message/delete',
217
        'chat',
218
        'chat/users',
219
        'chat/heart-beat',
220
        'chat/create-group',
221
        'chat/add-user-to-group',
222
        'chat/mark-seen',
223
        'chat/mark-received',
224
        'chat/remove-user-from-group',
225
        'chat/get-all-messages',
226
        'chat/send',
227
        'chat/get-contacts-availables-for-group',
228
        'chat/get-contact-group-list',
229
        'chat/leave-group',
230
        'chat/delete-group',
231
        'chat/close',
232
        'chat/clear',
233
        'chat/open',
234
        'chat/upload',
235
        'chat/zoom',
236
        'chat/open-or-create',
237
 
238
        'helpers',
239
        'helpers/search-people',
240
        'helpers/posts',
241
        'helpers/people-you-may-know',
242
        'helpers/people-viewed-profile',
243
        'helpers/company-follower',
244
        'helpers/company-suggestion',
245
        'helpers/group-members',
246
        'helpers/group-members/invite',
247
        'helpers/group-members/cancel',
248
        'helpers/group-members/reject',
249
        'helpers/group-members/approve',
250
        'helpers/groups-suggestion',
117 efrain 251
        'helpers/group-types',
1 efrain 252
        'helpers/my-groups',
253
        'helpers/footer',
254
        'helpers/next-events',
255
        'helpers/menu',
256
        'helpers/company-sizes',
257
        'helpers/degrees',
258
        'helpers/languages',
259
        'helpers/skills',
260
        'helpers/aptitudes',
261
        'helpers/hobbies',
262
        'helpers/industries',
263
        'helpers/timezones',
192 efrain 264
        'helpers/abuse-report',
1 efrain 265
 
192 efrain 266
        'abuse-report',
267
        'abuse-report/view',
1 efrain 268
 
269
 
117 efrain 270
 
1 efrain 271
        'marketplace',
272
        'marketplace/categories',
273
        'marketplace/enroll',
274
        'marketplace/claim',
275
        'marketplace/join',
276
        'marketplace/buy',
277
 
167 efrain 278
 
279
 
280
        //Menú virtual de opciones
281
        'communication',
282
        'knowledge',
283
 
284
 
1 efrain 285
        'calendar',
286
        'calendar/events',
287
 
288
        'knowledge-area',
289
        'knowledge-area/add',
290
        'knowledge-area/edit',
291
        'knowledge-area/delete',
292
        'knowledge-area/view',
293
        'knowledge-area/comments',
294
        'knowledge-area/comments/add',
295
        'knowledge-area/comments/delete',
296
        'knowledge-area/save-reaction',
297
        'knowledge-area/delete-reaction',
298
 
299
        'my-coach',
300
        'my-coach/questions',
301
        'my-coach/questions/view',
302
        'my-coach/questions/add',
303
        'my-coach/questions/edit',
304
        'my-coach/questions/delete',
305
        'my-coach/questions/answers',
306
        'my-coach/questions/answers/add',
307
        'my-coach/questions/answers/edit',
308
        'my-coach/questions/answers/delete',
309
        'my-coach/questions/reaction',
310
        'my-coach/questions/reaction/save',
311
        'my-coach/questions/reaction/delete',
312
        'my-coach/questions/comments',
313
        'my-coach/questions/comments/add',
314
        'my-coach/questions/comments/delete',
315
 
316
        'daily-pulse',
317
        'daily-pulse/how_are_you_feel',
318
        'daily-pulse/climate_on_your_organization',
119 efrain 319
 
320
 
321
        'microlearning',
322
        'microlearning/profile',
323
        'microlearning/companies',
324
        'microlearning/progress',
325
        'microlearning/timeline',
326
        'microlearning/last-capsule-in-progress',
327
        'microlearning/capsules-pending',
328
        'microlearning/capsules-completed',
329
        'microlearning/capsules-in-progress',
330
        'microlearning/capsules-comments',
331
        'microlearning/capsules-comments/add',
332
        'microlearning/capsules-comments/delete',
333
        'microlearning/topics',
334
        'microlearning/capsules',
335
        'microlearning/slides',
161 efrain 336
        'microlearning/get-topic',
337
        'microlearning/get-capsule',
338
        'microlearning/get-slide',
119 efrain 339
        'microlearning/sync',
340
 
192 efrain 341
 
342
 
1 efrain 343
    ];
344
}
345
 
346
function getAclSuperAdmin()
347
{
348
    return [
349
        'impersonate',
350
        'impersonate/execute',
351
    ];
352
}
353
 
354
function getAclUsertypeDefaultNetwork()
355
{
356
    return [
357
        UserType::ADMIN => [
358
            'company',
359
            'company/my-companies',
360
            'company/my-companies/add',
361
            'company/following-companies',
362
            'company/view',
363
            'company/follow',
364
            'company/unfollow',
365
            'company/request',
366
            'company/reject',
367
            'company/accept',
368
            'company/cancel',
369
            'company/leave',
370
            'company/requests-sent',
371
            'company/invitations-received',
372
            'company/i-work-with',
373
            'search',
374
            'search/company',
119 efrain 375
 
1 efrain 376
        ],
377
        UserType::USER => [
378
            'company',
379
            'company/my-companies',
380
            'company/my-companies/add',
381
            'company/following-companies',
382
            'company/view',
383
            'company/follow',
384
            'company/unfollow',
385
            'company/request',
386
            'company/reject',
387
            'company/accept',
388
            'company/cancel',
389
            'company/leave',
390
            'company/requests-sent',
391
            'company/invitations-received',
392
            'company/i-work-with',
393
            'search',
394
            'search/company',
395
        ],
396
    ];
397
}
398
 
167 efrain 399
function getAclMicrolearning()
400
{
401
    return [
402
        'knowledge',
403
        'microlearning',
404
        'microlearning/profile',
405
        'microlearning/companies',
406
        'microlearning/progress',
407
        'microlearning/timeline',
408
        'microlearning/last-capsule-in-progress',
409
        'microlearning/capsules-pending',
410
        'microlearning/capsules-completed',
411
        'microlearning/capsules-in-progress',
412
        'microlearning/capsules-comments',
413
        'microlearning/capsules-comments/add',
414
        'microlearning/capsules-comments/delete',
415
        'microlearning/topics',
416
        'microlearning/capsules',
417
        'microlearning/slides',
418
        'microlearning/get-topic',
419
        'microlearning/get-capsule',
420
        'microlearning/get-slide',
421
        'microlearning/sync',
422
    ];
423
}
1 efrain 424
 
167 efrain 425
 
1 efrain 426
function getAclUsertypeOtherNetworkCreator()
427
{
428
    return [
429
        'company',
430
        'company/my-companies',
431
        'company/view',
432
 
433
    ];
434
}
435
 
436
function getAclUsertypeOtherNetworkNonCreator()
437
{
438
    return [
439
        'company',
440
        'company/i-work-with',
441
        'company/view',
442
    ];
443
}
444
 
445
 
446
function getAclDailyPulse()
447
{
448
    return [
449
        'daily-pulse',
450
        'daily-pulse/how_are_you_feel',
451
        'daily-pulse/climate_on_your_organization',
452
    ];
453
}
454
 
455
function getAclKnowledgeArea()
456
{
457
    return [
167 efrain 458
        'knowledge',
1 efrain 459
        'knowledge-area',
460
        'knowledge-area/add',
461
        'knowledge-area/edit',
462
        'knowledge-area/delete',
463
        'knowledge-area/view',
464
        'knowledge-area/comments',
465
        'knowledge-area/comments/add',
466
        'knowledge-area/comments/delete',
467
        'knowledge-area/save-reaction',
468
        'knowledge-area/delete-reaction'
469
    ];
470
}
471
 
472
function getAclMyCoach()
473
{
474
    return [
167 efrain 475
        'knowledge',
1 efrain 476
        'my-coach',
477
        'my-coach/questions',
478
        'my-coach/questions/view',
479
        'my-coach/questions/add',
480
        'my-coach/questions/edit',
481
        'my-coach/questions/delete',
482
        'my-coach/questions/answers',
483
        'my-coach/questions/answers/add',
484
        'my-coach/questions/answers/edit',
485
        'my-coach/questions/answers/delete',
486
        'my-coach/questions/reaction',
487
        'my-coach/questions/reaction/save',
488
        'my-coach/questions/reaction/delete',
489
        'my-coach/questions/comments',
490
        'my-coach/questions/comments/add',
491
        'my-coach/questions/comments/delete',
492
    ];
493
}
494
 
495
 
496
 
167 efrain 497
 
498
 
499
 
1 efrain 500
function getAclUsertype()
501
{
502
    return [
503
        UserType::ADMIN => [
504
            'home',
505
            'share',
506
            'share/increment-external-counter',
507
            'onroom',
508
            'language',
509
            'signin',
510
            'signin/facebook',
511
            'signin/twitter',
512
            'signin/google',
513
            'signin/impersonate',
177 efrain 514
            'signin/debug',
1 efrain 515
            'signout',
516
            'signup',
517
            'csrf',
518
            'check-session',
519
            'shorter',
520
            'shorter/generate',
167 efrain 521
 
522
            'communication',
1 efrain 523
            'notifications',
524
            'notifications/mark-read',
525
            'notifications/mark-all-read',
526
            'notifications/delete',
527
            'notifications/clear',
528
            'notifications/unreads',
529
 
530
            'reset-password',
531
            'forgot-password',
532
            'professionalism-policy',
533
            'activate-account',
534
            'privacy-policy',
535
            'terms-and-conditions',
536
            'cookies',
537
            'backend',
538
            'backend/signin-admin',
539
            'backend/signin-company',
540
            'oauth',
541
            'oauth/facebook',
542
            'oauth/facebook/cancel',
543
            'oauth/facebook/delete',
544
            'oauth/twitter',
545
            'oauth/google',
546
            'oauth/instagram',
547
            'paypal',
548
            'paypal/success',
549
            'paypal/cancel',
550
            'services',
551
            'services/device',
552
            'services/check-session',
553
            'services/fcm',
554
            'services/signin',
555
            'services/signout',
556
            'services/sync',
557
            'services/sync-batch',
558
            'services/storage',
559
            'services/microlearning',
560
            'services/microlearning/refresh',
561
            'services/microlearning/check-changes',
562
            'services/microlearning/capsules',
563
            'services/microlearning/capsules/comments',
564
            'services/microlearning/capsules/comments/add',
565
            'services/microlearning/capsules/comments/delete',
566
            'services/delete-account',
567
            'storage',
568
            'storage-network',
569
            'dashboard',
570
            'post',
571
            'post/comments',
572
            'post/comments/add',
573
            'post/comments/delete',
574
            'post/save-reaction',
575
            'post/delete-reaction',
576
            'feed',
577
            'feed/timeline',
578
            'feed/add',
579
            'feed/delete',
580
            'feed/share',
581
            'feed/comment',
582
            'feed/comment/delete',
583
            'feed/save-reaction',
584
            'feed/delete-reaction',
585
            'feed/vote',
586
            'connection',
587
            'connection/my-connections',
588
            'connection/people-you-may-know',
589
            'connection/people-blocked',
590
            'connection/people-blocked/delete',
591
            'connection/invitations-sent',
592
            'connection/invitations-received',
593
            'connection/request',
594
            'connection/approve',
595
            'connection/reject',
596
            'connection/block',
597
            'connection/cancel',
598
            'connection/delete',
599
            'connection/unblock',
600
            'account-settings',
601
            'account-settings/image',
602
            'account-settings/deactivate',
603
            'account-settings/notifications',
604
            'account-settings/password',
605
            'account-settings/social-networks',
606
            'account-settings/location',
607
            'account-settings/privacy',
608
            'account-settings/basic',
609
            'account-settings/browsers',
610
            'account-settings/ips',
611
            'account-settings/devices',
612
            'account-settings/transactions',
613
            'account-settings/transactions/add-funds',
614
            'account-settings/add-facebook',
615
            'account-settings/remove-facebook',
616
            'account-settings/add-twitter',
617
            'account-settings/remove-twitter',
618
            'account-settings/add-google',
619
            'account-settings/remove-google',
620
            'account-settings/delete-account',
621
            'search',
622
            'search/group',
623
            'search/job',
624
            'search/user',
625
            'moodle',
626
            'profile',
627
            'profile/self-evaluation',
628
            'profile/self-evaluation/take-a-test',
629
            'profile/self-evaluation/report',
630
            'profile/performance-evaluation',
631
            'profile/performance-evaluation/take-a-test',
632
            'profile/performance-evaluation/report',
633
            'profile/microlearning',
634
            'profile/microlearning/timeline',
635
            'profile/microlearning/progress',
636
            'profile/view',
637
            'profile/people-viewed-profile',
638
            'profile/my-profiles',
639
            'profile/my-profiles/extended',
640
            'profile/my-profiles/cover',
641
            'profile/my-profiles/image',
642
            'profile/my-profiles/experience',
643
            'profile/my-profiles/education',
644
            'profile/my-profiles/language',
645
            'profile/my-profiles/location',
646
            'profile/my-profiles/skill',
647
            'profile/my-profiles/social-network',
648
            'profile/my-profiles/aptitude',
649
            'profile/my-profiles/hobby-and-interest',
650
            'profile/my-profiles/add',
651
            'profile/my-profiles/edit',
652
            'profile/my-profiles/delete',
653
 
654
            'group',
655
            'group/view',
656
            'group/request',
657
            'group/leave',
658
            'group/cancel',
659
            'group/accept',
660
            'group/reject',
661
            'group/my-groups',
662
            'group/my-groups/accessibility',
663
            'group/my-groups/industry',
664
            'group/my-groups/extended',
665
            'group/my-groups/type',
666
            'group/my-groups/users',
667
            'group/my-groups/image',
668
            'group/my-groups/cover',
669
            'group/my-groups/website',
670
            'group/my-groups/privacy',
671
            'group/my-groups/add',
672
            'group/my-groups/edit',
673
            'group/my-groups/delete',
674
            'group/my-groups/status',
675
            'group/joined-groups',
676
            'group/requests-sent',
677
            'group/invitations-received',
678
            'group/members',
679
            'group/members/approve',
680
            'group/members/reject',
681
            'group/members/invite',
682
            'group/members/cancel',
683
            'job',
684
            'job/view',
685
            'job/applied-jobs',
686
            'job/apply-job',
687
            'job/remove-apply-job',
688
            'job/saved-jobs',
689
            'job/save-job',
690
            'job/remove-save-job',
691
            'inmail',
692
            'inmail/block',
693
            'inmail/delete',
694
            'inmail/message',
695
            'inmail/message/send',
696
            'inmail/message/delete',
697
            'chat',
698
            'chat/users',
699
            'chat/heart-beat',
700
            'chat/create-group',
701
            'chat/add-user-to-group',
702
            'chat/mark-seen',
703
            'chat/mark-received',
704
            'chat/remove-user-from-group',
705
            'chat/get-all-messages',
706
            'chat/send',
707
            'chat/get-contacts-availables-for-group',
708
            'chat/get-contact-group-list',
709
            'chat/leave-group',
710
            'chat/delete-group',
711
            'chat/close',
712
            'chat/clear',
713
            'chat/open',
714
            'chat/upload',
715
            'chat/zoom',
716
            'chat/open-or-create',
717
 
718
            'help',
719
            'helpers',
720
            'helpers/search-people',
721
            'helpers/posts',
722
            'helpers/people-you-may-know',
723
            'helpers/people-viewed-profile',
724
            'helpers/company-follower',
725
            'helpers/company-suggestion',
726
            'helpers/group-members',
727
            'helpers/group-members/invite',
728
            'helpers/group-members/cancel',
729
            'helpers/group-members/reject',
730
            'helpers/group-members/approve',
731
            'helpers/groups-suggestion',
117 efrain 732
            'helpers/group-types',
1 efrain 733
            'helpers/my-groups',
734
            'helpers/footer',
735
            'helpers/next-events',
736
            'helpers/menu',
737
            'helpers/company-sizes',
738
            'helpers/degrees',
739
            'helpers/languages',
740
            'helpers/skills',
741
            'helpers/aptitudes',
742
            'helpers/hobbies',
743
            'helpers/industries',
744
            'helpers/timezones',
192 efrain 745
            'helpers/abuse-report',
1 efrain 746
 
192 efrain 747
            'abuse-report',
748
            'abuse-report/view',
749
 
1 efrain 750
            'marketplace',
751
            'marketplace/categories',
752
            'marketplace/enroll',
753
            'marketplace/claim',
754
            'marketplace/join',
755
            'marketplace/buy',
756
 
757
            'calendar',
758
            'calendar/events',
759
 
760
/*
761
            'zoom',
762
            'zoom/add',
763
            'zoom/delete',
764
            'zoom/listing',
765
            */
119 efrain 766
 
167 efrain 767
 
1 efrain 768
        ],
769
        UserType::USER => [
770
            'home',
771
            'onroom',
772
            'language',
773
            'share',
774
            'share/increment-external-counter',
775
            'signin',
776
            'signin/facebook',
777
            'signin/twitter',
778
            'signin/google',
779
            'signin/impersonate',
177 efrain 780
            'signin/debug',
1 efrain 781
            'signout',
782
            'signup',
783
            'csrf',
784
            'check-session',
785
            'shorter',
786
            'shorter/generate',
787
            'notifications',
788
            'notifications/mark-read',
789
            'notifications/mark-all-read',
790
            'notifications/delete',
791
            'notifications/clear',
792
            'notifications/unreads',
793
            'professionalism-policy',
794
            'reset-password',
795
            'forgot-password',
796
            'activate-account',
797
            'privacy-policy',
798
            'terms-and-conditions',
799
            'cookies',
800
            'backend',
801
            'backend/signin-company',
802
            'oauth',
803
            'oauth/facebook',
804
            'oauth/facebook/cancel',
805
            'oauth/facebook/delete',
806
            'oauth/twitter',
807
            'oauth/google',
808
            'oauth/instagram',
809
            'paypal',
810
            'paypal/success',
811
            'paypal/cancel',
812
            'services',
813
            'services/device',
814
            'services/check-session',
815
            'services/fcm',
816
            'services/signin',
817
            'services/signout',
818
            'services/sync',
819
            'services/sync-batch',
820
            'services/storage',
821
            'services/microlearning',
822
            'services/microlearning/refresh',
823
            'services/microlearning/check-changes',
824
            'services/microlearning/capsules',
825
            'services/microlearning/capsules/comments',
826
            'services/microlearning/capsules/comments/add',
827
            'services/microlearning/capsules/comments/delete',
828
            'services/delete-account',
829
            'storage',
830
            'storage-network',
831
            'dashboard',
832
            'post',
833
            'post/comments',
834
            'post/comments/add',
835
            'post/comments/delete',
836
            'post/save-reaction',
837
            'post/delete-reaction',
838
            'feed',
839
            'feed/timeline',
840
            'feed/add',
841
            'feed/delete',
842
            'feed/share',
843
            'feed/comment',
844
            'feed/comment/delete',
845
            'feed/save-reaction',
846
            'feed/delete-reaction',
847
            'feed/vote',
848
            'connection',
849
            'connection/my-connections',
850
            'connection/people-you-may-know',
851
            'connection/people-blocked',
852
            'connection/people-blocked/delete',
853
            'connection/invitations-sent',
854
            'connection/invitations-received',
855
            'connection/request',
856
            'connection/approve',
857
            'connection/reject',
858
            'connection/block',
859
            'connection/cancel',
860
            'connection/delete',
861
            'connection/unblock',
141 efrain 862
 
1 efrain 863
            'account-settings',
864
            'account-settings/image',
865
            'account-settings/deactivate',
866
            'account-settings/notifications',
867
            'account-settings/password',
868
            'account-settings/social-networks',
869
            'account-settings/location',
870
            'account-settings/privacy',
871
            'account-settings/basic',
872
            'account-settings/browsers',
873
            'account-settings/ips',
874
            'account-settings/devices',
875
            'account-settings/transactions',
876
            'account-settings/transactions/add-funds',
877
            'account-settings/add-facebook',
878
            'account-settings/remove-facebook',
879
            'account-settings/add-twitter',
880
            'account-settings/remove-twitter',
881
            'account-settings/add-google',
882
            'account-settings/remove-google',
883
            'account-settings/delete-account',
141 efrain 884
 
1 efrain 885
            'search',
886
            'search/group',
887
            'search/job',
888
            'search/user',
889
            'moodle',
890
            'profile',
891
            'profile/self-evaluation',
892
            'profile/self-evaluation/take-a-test',
893
            'profile/self-evaluation/report',
894
            'profile/performance-evaluation',
895
            'profile/performance-evaluation/take-a-test',
896
            'profile/performance-evaluation/report',
897
            'profile/microlearning',
898
            'profile/microlearning/timeline',
899
            'profile/microlearning/progress',
900
            'profile/view',
901
            'profile/people-viewed-profile',
902
            'profile/my-profiles',
903
            'profile/my-profiles/extended',
904
            'profile/my-profiles/cover',
905
            'profile/my-profiles/image',
906
            'profile/my-profiles/experience',
907
            'profile/my-profiles/education',
908
            'profile/my-profiles/language',
909
            'profile/my-profiles/location',
910
            'profile/my-profiles/skill',
911
            'profile/my-profiles/social-network',
912
            'profile/my-profiles/aptitude',
913
            'profile/my-profiles/hobby-and-interest',
914
            'profile/my-profiles/add',
915
            'profile/my-profiles/edit',
916
            'profile/my-profiles/delete',
917
            'group',
918
            'group/view',
919
            'group/request',
920
            'group/leave',
921
            'group/cancel',
922
            'group/accept',
923
            'group/reject',
924
            'group/my-groups',
925
            'group/my-groups/accessibility',
926
            'group/my-groups/industry',
927
            'group/my-groups/extended',
928
            'group/my-groups/type',
929
            'group/my-groups/users',
930
            'group/my-groups/image',
931
            'group/my-groups/cover',
932
            'group/my-groups/website',
933
            'group/my-groups/privacy',
934
            'group/my-groups/add',
935
            'group/my-groups/edit',
936
            'group/my-groups/delete',
937
            'group/my-groups/status',
938
            'group/joined-groups',
939
            'group/requests-sent',
940
            'group/invitations-received',
941
            'group/members',
942
            'group/members/approve',
943
            'group/members/reject',
944
            'group/members/invite',
945
            'group/members/cancel',
946
            'job',
947
            'job/view',
948
            'job/applied-jobs',
949
            'job/apply-job',
950
            'job/remove-apply-job',
951
            'job/saved-jobs',
952
            'job/save-job',
953
            'job/remove-save-job',
167 efrain 954
 
955
            'communication',
1 efrain 956
            'inmail',
957
            'inmail/block',
958
            'inmail/delete',
959
            'inmail/message',
960
            'inmail/message/send',
961
            'inmail/message/delete',
962
            'chat',
963
            'chat/users',
964
            'chat/heart-beat',
965
            'chat/create-group',
966
            'chat/add-user-to-group',
967
            'chat/mark-seen',
968
            'chat/mark-received',
969
            'chat/remove-user-from-group',
970
            'chat/get-all-messages',
971
            'chat/send',
972
            'chat/get-contacts-availables-for-group',
973
            'chat/get-contact-group-list',
974
            'chat/leave-group',
975
            'chat/delete-group',
976
            'chat/close',
977
            'chat/clear',
978
            'chat/open',
979
            'chat/upload',
980
            'chat/zoom',
981
            'chat/open-or-create',
982
 
983
            'help',
984
            'helpers',
985
            'helpers/search-people',
986
            'helpers/posts',
987
            'helpers/people-you-may-know',
988
            'helpers/people-viewed-profile',
989
            'helpers/company-follower',
990
            'helpers/company-suggestion',
991
            'helpers/group-members',
992
            'helpers/group-members/invite',
993
            'helpers/group-members/cancel',
994
            'helpers/group-members/reject',
995
            'helpers/group-members/approve',
996
            'helpers/groups-suggestion',
117 efrain 997
            'helpers/group-types',
1 efrain 998
            'helpers/my-groups',
999
            'helpers/footer',
1000
            'helpers/next-events',
1001
            'helpers/menu',
1002
            'helpers/company-sizes',
1003
            'helpers/degrees',
1004
            'helpers/languages',
1005
            'helpers/skills',
1006
            'helpers/aptitudes',
1007
            'helpers/hobbies',
1008
            'helpers/industries',
192 efrain 1009
            'helpers/abuse-report',
1 efrain 1010
 
192 efrain 1011
            'abuse-report',
1012
            'abuse-report/view',
1013
 
1 efrain 1014
            'marketplace',
1015
            'marketplace/categories',
1016
            'marketplace/enroll',
1017
            'marketplace/claim',
1018
            'marketplace/join',
1019
            'marketplace/buy',
1020
 
1021
            'calendar',
1022
            'calendar/events',
119 efrain 1023
 
1 efrain 1024
 
119 efrain 1025
 
167 efrain 1026
 
1 efrain 1027
            /*
1028
            'zoom',
1029
            'zoom/add',
1030
            'zoom/delete',
1031
            'zoom/listing',*/
1032
        ],
1033
        UserType::GUEST => [
1034
            'home',
1035
            'onroom',
1036
            'language',
1037
            'share',
1038
            'signin',
1039
            'signin/facebook',
1040
            'signin/twitter',
1041
            'signin/google',
177 efrain 1042
            'signin/debug',
1 efrain 1043
            'signout',
1044
            'signup',
1045
            'shorter',
1046
            'professionalism-policy',
1047
            'reset-password',
1048
            'forgot-password',
1049
            'activate-account',
1050
            'privacy-policy',
1051
            'terms-and-conditions',
1052
            'cookies',
1053
            'csrf',
1054
            'oauth',
1055
            'oauth/facebook',
1056
            'oauth/facebook/cancel',
1057
            'oauth/facebook/delete',
1058
            'oauth/twitter',
1059
            'oauth/google',
1060
            'oauth/instagram',
1061
            'paypal',
1062
            'paypal/success',
1063
            'paypal/cancel',
62 efrain 1064
            'storage',
1 efrain 1065
            'storage-network',
1066
            'services',
1067
            'services/device',
1068
            'services/check-session',
1069
            'services/fcm',
1070
            'services/signin',
1071
            'services/signout',
1072
            'services/sync',
1073
            'services/sync-batch',
189 efrain 1074
 
1075
            'helpers',
1076
            'helpers/footer',
1 efrain 1077
 
1078
            /*
1079
            'zoom',
1080
            'zoom/add',
1081
            'zoom/delete',
1082
            'zoom/listing',*/
1083
        ],
1084
        UserType::USER_DELETED => [
1085
            'home',
1086
            'language',
1087
            'signin',
1088
            'signin/facebook',
1089
            'signin/twitter',
1090
            'signin/google',
177 efrain 1091
            'signin/debug',
1 efrain 1092
            'signout',
1093
            'signup',
1094
            'check-session',
1095
            'notifications',
1096
            'notifications/mark-read',
1097
            'notifications/mark-all-read',
1098
            'notifications/delete',
1099
            'notifications/clear',
1100
            'notifications/unreads',
1101
            'professionalism-policy',
1102
            'reset-password',
1103
            'forgot-password',
1104
            'activate-account',
1105
            'privacy-policy',
1106
            'terms-and-conditions',
1107
            'cookies',
1108
            'oauth',
1109
            'csrf',
1110
            'shorter',
1111
            'oauth/facebook',
1112
            'oauth/facebook/cancel',
1113
            'oauth/facebook/delete',
1114
            'oauth/twitter',
1115
            'oauth/google',
1116
            'oauth/instagram',
1117
            'services',
1118
            'services/device',
1119
            'services/check-session',
1120
            'services/fcm',
1121
            'services/signin',
1122
            'services/signout',
1123
            'services/sync',
1124
            'services/sync-batch',
1125
        ],
1126
    ];
1127
}
1128
 
1129
function getAclMenuDefaultNetworkConnectionUser2User()
1130
{
1131
    return [
1132
        [
1133
            'label' => 'LABEL_HOME',
1134
            'route' => 'dashboard',
1135
            'class' => '/images/navbar/home.svg',
1136
        ],
1137
        [
1138
            'label' => 'LABEL_PROFILE',
1139
            'route' => 'profile',
1140
            'class' => '/images/navbar/perfil.svg',
1141
            'pages' => [
1142
                [
1143
                    'label' => 'LABEL_CONNECTIONS',
1144
                    'route' => 'connection',
1145
                    //'class' =>'/images/navbar/conexion.svg',
1146
                    'pages' => [
1147
                        [
1148
                            'label' => 'LABEL_MY_CONNECTIONS',
1149
                            'route' => 'connection/my-connections'
1150
                        ],
1151
                        [
1152
                            'label' => 'LABEL_INVITATIONS_SENT',
1153
                            'route' => 'connection/invitations-sent'
1154
                        ],
1155
                        [
1156
                            'label' => 'LABEL_INVITATIONS_RECEIVED',
1157
                            'route' => 'connection/invitations-received'
1158
                        ],
1159
                        [
1160
                            'label' => 'LABEL_PEOPLE_YOU_MAY_KNOW',
1161
                            'route' => 'connection/people-you-may-know'
1162
                        ],
1163
                        [
1164
                            'label' => 'LABEL_PEOPLE_BLOCKED',
1165
                            'route' => 'connection/people-blocked'
1166
                        ],
1167
 
1168
 
1169
                    ]
1170
                ],
1171
                [
1172
                    'label' => 'LABEL_MY_PROFILES',
1173
                    'route' => 'profile/my-profiles'
1174
                ],
1175
                [
1176
                    'label' => 'LABEL_JOBS',
1177
                    'route' => 'job',
1178
                    'pages' => [
1179
                        [
1180
                            'label' => 'LABEL_JOBS_APPLIED',
1181
                            'route' => 'job/applied-jobs'
1182
                        ],
1183
                        [
1184
                            'label' => 'LABEL_JOBS_SAVED',
1185
                            'route' => 'job/saved-jobs'
1186
                        ],
1187
                    ]
1188
                ],
1189
 
1190
 
1191
                [
1192
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1193
                    'route' => 'profile/people-viewed-profile'
1194
                ],
1195
 
1196
            ]
1197
        ],
1198
 
1199
 
1200
        [
1201
            'label' => 'LABEL_COMPANIES',
1202
            'route' => 'company',
1203
            'class' => '/images/navbar/empresa.svg',
1204
            'pages' => [
1205
                [
1206
                    'label' => 'LABEL_MY_COMPANIES',
1207
                    'route' => 'company/my-companies'
1208
                ],
1209
                [
1210
                    'label' => 'LABEL_COMPANIES_I_FOLLOW',
1211
                    'route' => 'company/following-companies'
1212
                ],
1213
                [
1214
                    'label' => 'LABEL_COMPANIES_I_WORK_WITH',
1215
                    'route' => 'company/i-work-with'
1216
                ],
1217
                [
1218
                    'label' => 'LABEL_REQUESTS_SENT',
1219
                    'route' => 'company/requests-sent'
1220
                ],
1221
                [
1222
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1223
                    'route' => 'company/invitations-received'
1224
                ]
1225
            ]
1226
        ],
1227
 
1228
        [
1229
            'label' => 'LABEL_GROUPS',
1230
            'route' => 'group',
1231
            'class' => '/images/navbar/grupos.svg',
1232
            'pages' => [
1233
                [
1234
                    'label' => 'LABEL_MY_GROUPS',
1235
                    'route' => 'group/my-groups'
1236
                ],
1237
                [
1238
                    'label' => 'LABEL_JOINED_GROUPS',
1239
                    'route' => 'group/joined-groups'
1240
                ],
1241
                [
1242
                    'label' => 'LABEL_REQUESTS_SENT',
1243
                    'route' => 'group/requests-sent'
1244
                ],
1245
                [
1246
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1247
                    'route' => 'group/invitations-received'
1248
                ]
1249
            ]
1250
        ],
1251
        [
1252
            'label' => 'LABEL_MARKETPLACE',
1253
            'route' => 'marketplace',
1254
            'class' => '/images/navbar/market-place.svg',
1255
        ],
167 efrain 1256
 
1257
 
1258
 
1 efrain 1259
        [
167 efrain 1260
            'label' => 'LABEL_COMMUNICATION',
1261
            'route' => 'communication',
1 efrain 1262
            'class' => '/images/navbar/calendar.svg',
167 efrain 1263
            'pages' => [
1264
                [
1265
                    'label' => 'LABEL_CALENDAR',
1266
                    'route' => 'calendar',
1267
                    'class' => '/images/navbar/calendar.svg',
1268
                ],
1269
                [
1270
                    'label' => 'LABEL_INMAIL',
1271
                    'route' => 'inmail',
1272
                    'class' => '/images/navbar/calendar.svg',
1273
                ],
1274
                [
1275
                    'label' => 'LABEL_CHAT',
1276
                    'route' => 'chat',
1277
                    'class' => '/images/navbar/calendar.svg',
1278
                ],
1279
                [
1280
                    'label' => 'LABEL_NOTIFICATIONS',
1281
                    'route' => 'notifications',
1282
                    'class' => '/images/navbar/calendar.svg',
1283
                ],
1284
            ],
1 efrain 1285
        ],
167 efrain 1286
 
1287
        [
1288
            'label' => 'LABEL_KNOWLEDGE',
1289
            'route' => 'knowledge',
1290
            'class' => '/images/navbar/calendar.svg',
1291
            'pages' => [
1292
                [
1293
                    'label' => 'LABEL_MY_COACH',
1294
                    'route' => 'my-coach',
1295
                    'class' => '/images/navbar/calendar.svg',
1296
                ],
1297
                [
1298
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1299
                    'route' => 'knowledge-area',
1300
                    'class' => '/images/navbar/calendar.svg',
1301
                ],
1302
                [
1303
                    'label' => 'LABEL_MICROLEARNING',
1304
                    'route' => 'microlearning',
1305
                    'class' => '/images/navbar/calendar.svg',
191 efrain 1306
                    /*
167 efrain 1307
                    'pages' => [
1308
                        [
1309
                            'label' => 'LABEL_HOME',
1310
                            'route' => 'microlearning',
1311
                            'class' => '/images/navbar/calendar.svg',
1312
                        ],
1313
                        [
1314
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1315
                            'route' => 'microlearning/topics',
1316
                            'class' => '/images/navbar/calendar.svg',
1317
                        ],
1318
                        [
1319
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1320
                            'route' => 'microlearning/timeline',
1321
                            'class' => '/images/navbar/calendar.svg',
1322
                        ],
1323
                        [
1324
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1325
                            'route' => 'microlearning/companies',
1326
                            'class' => '/images/navbar/calendar.svg',
1327
                        ],
1328
                        [
1329
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1330
                            'route' => 'microlearning/profile',
1331
                            'class' => '/images/navbar/calendar.svg',
1332
                        ],
191 efrain 1333
                    ]*/
167 efrain 1334
                ],
1335
 
1336
            ]
1337
 
1338
 
1339
        ],
1340
 
1 efrain 1341
 
1342
    ];
1343
}
1344
 
1345
function getAclMenuDefaultNetworkConnectionAll2All()
1346
{
1347
    return [
1348
        [
1349
            'label' => 'LABEL_HOME',
1350
            'route' => 'dashboard',
1351
            'class' => '/images/navbar/home.svg',
1352
        ],
1353
        [
1354
            'label' => 'LABEL_PROFILE',
1355
            'route' => 'profile',
1356
            'class' => '/images/navbar/perfil.svg',
1357
            'pages' => [
1358
                [
1359
                    'label' => 'LABEL_MY_CONNECTIONS',
1360
                    'route' => 'connection/my-connections',
1361
                ],
1362
                [
1363
                    'label' => 'LABEL_MY_PROFILES',
1364
                    'route' => 'profile/my-profiles'
1365
                ],
1366
                [
1367
                    'label' => 'LABEL_JOBS_APPLIED',
1368
                    'route' => 'job/applied-jobs'
1369
                ],
1370
                [
1371
                    'label' => 'LABEL_JOBS_SAVED',
1372
                    'route' => 'job/saved-jobs'
1373
                ],
1374
                [
1375
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1376
                    'route' => 'profile/people-viewed-profile'
1377
                ],
1378
 
1379
            ]
1380
        ],
1381
 
1382
 
1383
        [
1384
            'label' => 'LABEL_COMPANIES',
1385
            'route' => 'company',
1386
            'class' => '/images/navbar/empresa.svg',
1387
            'pages' => [
1388
                [
1389
                    'label' => 'LABEL_MY_COMPANIES',
1390
                    'route' => 'company/my-companies'
1391
                ],
1392
                [
1393
                    'label' => 'LABEL_COMPANIES_I_FOLLOW',
1394
                    'route' => 'company/following-companies'
1395
                ],
1396
                [
1397
                    'label' => 'LABEL_COMPANIES_I_WORK_WITH',
1398
                    'route' => 'company/i-work-with'
1399
                ],
1400
                [
1401
                    'label' => 'LABEL_REQUESTS_SENT',
1402
                    'route' => 'company/requests-sent'
1403
                ],
1404
                [
1405
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1406
                    'route' => 'company/invitations-received'
1407
                ]
1408
            ]
1409
        ],
1410
 
1411
        [
1412
            'label' => 'LABEL_GROUPS',
1413
            'route' => 'group',
1414
            'class' => '/images/navbar/grupos.svg',
1415
            'pages' => [
1416
                [
1417
                    'label' => 'LABEL_MY_GROUPS',
1418
                    'route' => 'group/my-groups'
1419
                ],
1420
                [
1421
                    'label' => 'LABEL_JOINED_GROUPS',
1422
                    'route' => 'group/joined-groups'
1423
                ],
1424
                [
1425
                    'label' => 'LABEL_REQUESTS_SENT',
1426
                    'route' => 'group/requests-sent'
1427
                ],
1428
                [
1429
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1430
                    'route' => 'group/invitations-received'
1431
                ]
1432
            ]
1433
        ],
1434
        [
1435
            'label' => 'LABEL_MARKETPLACE',
1436
            'route' => 'marketplace',
1437
            'class' => '/images/navbar/market-place.svg',
1438
        ],
167 efrain 1439
 
1440
 
1 efrain 1441
        [
167 efrain 1442
            'label' => 'LABEL_COMMUNICATION',
1443
            'route' => 'communication',
1 efrain 1444
            'class' => '/images/navbar/calendar.svg',
167 efrain 1445
            'pages' => [
1446
                [
1447
                    'label' => 'LABEL_CALENDAR',
1448
                    'route' => 'calendar',
1449
                    'class' => '/images/navbar/calendar.svg',
1450
                ],
1451
                [
1452
                    'label' => 'LABEL_INMAIL',
1453
                    'route' => 'inmail',
1454
                    'class' => '/images/navbar/calendar.svg',
1455
                ],
1456
                [
1457
                    'label' => 'LABEL_CHAT',
1458
                    'route' => 'chat',
1459
                    'class' => '/images/navbar/calendar.svg',
1460
                ],
1461
                [
1462
                    'label' => 'LABEL_NOTIFICATIONS',
1463
                    'route' => 'notifications',
1464
                    'class' => '/images/navbar/calendar.svg',
1465
                ],
1466
            ],
1 efrain 1467
        ],
167 efrain 1468
 
1469
        [
1470
            'label' => 'LABEL_KNOWLEDGE',
1471
            'route' => 'knowledge',
1472
            'class' => '/images/navbar/calendar.svg',
1473
            'pages' => [
1474
                [
1475
                    'label' => 'LABEL_MY_COACH',
1476
                    'route' => 'my-coach',
1477
                    'class' => '/images/navbar/calendar.svg',
1478
                ],
1479
                [
1480
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1481
                    'route' => 'knowledge-area',
1482
                    'class' => '/images/navbar/calendar.svg',
1483
                ],
1484
                [
1485
                    'label' => 'LABEL_MICROLEARNING',
1486
                    'route' => 'microlearning',
1487
                    'class' => '/images/navbar/calendar.svg',
191 efrain 1488
       /*
167 efrain 1489
                    'pages' => [
1490
                        [
1491
                            'label' => 'LABEL_HOME',
1492
                            'route' => 'microlearning',
1493
                            'class' => '/images/navbar/calendar.svg',
1494
                        ],
1495
                        [
1496
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1497
                            'route' => 'microlearning/topics',
1498
                            'class' => '/images/navbar/calendar.svg',
1499
                        ],
1500
                        [
1501
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1502
                            'route' => 'microlearning/timeline',
1503
                            'class' => '/images/navbar/calendar.svg',
1504
                        ],
1505
                        [
1506
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1507
                            'route' => 'microlearning/companies',
1508
                            'class' => '/images/navbar/calendar.svg',
1509
                        ],
1510
                        [
1511
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1512
                            'route' => 'microlearning/profile',
1513
                            'class' => '/images/navbar/calendar.svg',
1514
                        ],
191 efrain 1515
                    ]*/
167 efrain 1516
                ],
1517
 
1518
            ]
1519
 
1520
 
1521
        ],
1 efrain 1522
    ];
1523
}
1524
 
1525
function getAclMenuNonDefaulNetworkConnectionUser2User()
1526
{
1527
    return [
1528
        [
1529
            'label' => 'LABEL_HOME',
1530
            'route' => 'dashboard',
1531
            'class' => '/images/navbar/home.svg',
1532
        ],
1533
        [
1534
            'label' => 'LABEL_PROFILE',
1535
            'route' => 'profile',
1536
            'class' => '/images/navbar/perfil.svg',
1537
            'pages' => [
1538
                [
1539
                    'label' => 'LABEL_CONNECTIONS',
1540
                    'route' => 'connection',
1541
                    //'class' =>'/images/navbar/conexion.svg',
1542
                    'pages' => [
1543
                        [
1544
                            'label' => 'LABEL_MY_CONNECTIONS',
1545
                            'route' => 'connection/my-connections'
1546
                        ],
1547
                        [
1548
                            'label' => 'LABEL_INVITATIONS_SENT',
1549
                            'route' => 'connection/invitations-sent'
1550
                        ],
1551
                        [
1552
                            'label' => 'LABEL_INVITATIONS_RECEIVED',
1553
                            'route' => 'connection/invitations-received'
1554
                        ],
1555
                        [
1556
                            'label' => 'LABEL_PEOPLE_YOU_MAY_KNOW',
1557
                            'route' => 'connection/people-you-may-know'
1558
                        ],
1559
                        [
1560
                            'label' => 'LABEL_PEOPLE_BLOCKED',
1561
                            'route' => 'connection/people-blocked'
1562
                        ],
1563
 
1564
 
1565
                    ]
1566
                ],
1567
                [
1568
                    'label' => 'LABEL_MY_PROFILES',
1569
                    'route' => 'profile/my-profiles'
1570
                ],
1571
                [
1572
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1573
                    'route' => 'profile/people-viewed-profile'
1574
                ],
1575
 
1576
            ]
1577
        ],
1578
 
1579
        [
1580
            'label' => 'LABEL_COMPANY',
1581
            'route' => 'company',
1582
            'class' => '/images/navbar/empresa.svg',
1583
 
1584
        ],
1585
 
1586
        [
1587
            'label' => 'LABEL_GROUPS',
1588
            'route' => 'group',
1589
            'class' => '/images/navbar/grupos.svg',
1590
            'pages' => [
1591
                [
1592
                    'label' => 'LABEL_MY_GROUPS',
1593
                    'route' => 'group/my-groups'
1594
                ],
1595
                [
1596
                    'label' => 'LABEL_JOINED_GROUPS',
1597
                    'route' => 'group/joined-groups'
1598
                ],
1599
                [
1600
                    'label' => 'LABEL_REQUESTS_SENT',
1601
                    'route' => 'group/requests-sent'
1602
                ],
1603
                [
1604
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1605
                    'route' => 'group/invitations-received'
1606
                ]
1607
            ]
1608
        ],
1609
        [
1610
            'label' => 'LABEL_MARKETPLACE',
1611
            'route' => 'marketplace',
1612
            'class' => '/images/navbar/market-place.svg',
1613
        ],
167 efrain 1614
 
1615
 
1 efrain 1616
        [
167 efrain 1617
            'label' => 'LABEL_COMMUNICATION',
1618
            'route' => 'communication',
1 efrain 1619
            'class' => '/images/navbar/calendar.svg',
167 efrain 1620
            'pages' => [
1621
                [
1622
                    'label' => 'LABEL_CALENDAR',
1623
                    'route' => 'calendar',
1624
                    'class' => '/images/navbar/calendar.svg',
1625
                ],
1626
                [
1627
                    'label' => 'LABEL_INMAIL',
1628
                    'route' => 'inmail',
1629
                    'class' => '/images/navbar/calendar.svg',
1630
                ],
1631
                [
1632
                    'label' => 'LABEL_CHAT',
1633
                    'route' => 'chat',
1634
                    'class' => '/images/navbar/calendar.svg',
1635
                ],
1636
                [
1637
                    'label' => 'LABEL_NOTIFICATIONS',
1638
                    'route' => 'notifications',
1639
                    'class' => '/images/navbar/calendar.svg',
1640
                ],
1641
            ],
1 efrain 1642
        ],
167 efrain 1643
 
1644
        [
1645
            'label' => 'LABEL_KNOWLEDGE',
1646
            'route' => 'knowledge',
1647
            'class' => '/images/navbar/calendar.svg',
1648
            'pages' => [
1649
                [
1650
                    'label' => 'LABEL_MY_COACH',
1651
                    'route' => 'my-coach',
1652
                    'class' => '/images/navbar/calendar.svg',
1653
                ],
1654
                [
1655
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1656
                    'route' => 'knowledge-area',
1657
                    'class' => '/images/navbar/calendar.svg',
1658
                ],
1659
                [
1660
                    'label' => 'LABEL_MICROLEARNING',
1661
                    'route' => 'microlearning',
1662
                    'class' => '/images/navbar/calendar.svg',
191 efrain 1663
       /*
167 efrain 1664
                    'pages' => [
1665
                        [
1666
                            'label' => 'LABEL_HOME',
1667
                            'route' => 'microlearning',
1668
                            'class' => '/images/navbar/calendar.svg',
1669
                        ],
1670
                        [
1671
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1672
                            'route' => 'microlearning/topics',
1673
                            'class' => '/images/navbar/calendar.svg',
1674
                        ],
1675
                        [
1676
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1677
                            'route' => 'microlearning/timeline',
1678
                            'class' => '/images/navbar/calendar.svg',
1679
                        ],
1680
                        [
1681
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1682
                            'route' => 'microlearning/companies',
1683
                            'class' => '/images/navbar/calendar.svg',
1684
                        ],
1685
                        [
1686
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1687
                            'route' => 'microlearning/profile',
1688
                            'class' => '/images/navbar/calendar.svg',
1689
                        ],
191 efrain 1690
                    ]*/
167 efrain 1691
                ],
1692
 
1693
            ]
1694
 
1695
 
1696
        ],
1 efrain 1697
    ];
1698
}
1699
 
1700
function getAclMenuNonDefaultNetworkConnectionAll2All()
1701
{
1702
    return [
1703
        [
1704
            'label' => 'LABEL_HOME',
1705
            'route' => 'dashboard',
1706
            'class' => '/images/navbar/home.svg',
1707
        ],
1708
        [
1709
            'label' => 'LABEL_PROFILE',
1710
            'route' => 'profile',
1711
            'class' => '/images/navbar/perfil.svg',
1712
            'pages' => [
1713
                [
1714
                    'label' => 'LABEL_MY_CONNECTIONS',
1715
                    'route' => 'connection/my-connections'
1716
                ],
1717
                [
1718
                    'label' => 'LABEL_MY_PROFILES',
1719
                    'route' => 'profile/my-profiles'
1720
                ],
1721
                [
1722
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1723
                    'route' => 'profile/people-viewed-profile'
1724
                ],
1725
 
1726
            ]
1727
        ],
1728
 
1729
        [
1730
            'label' => 'LABEL_COMPANY',
1731
            'route' => 'company',
1732
            'class' => '/images/navbar/empresa.svg',
1733
 
1734
        ],
1735
 
1736
 
1737
        [
1738
            'label' => 'LABEL_GROUPS',
1739
            'route' => 'group',
1740
            'class' => '/images/navbar/grupos.svg',
1741
            'pages' => [
1742
                [
1743
                    'label' => 'LABEL_MY_GROUPS',
1744
                    'route' => 'group/my-groups'
1745
                ],
1746
                [
1747
                    'label' => 'LABEL_JOINED_GROUPS',
1748
                    'route' => 'group/joined-groups'
1749
                ],
1750
                [
1751
                    'label' => 'LABEL_REQUESTS_SENT',
1752
                    'route' => 'group/requests-sent'
1753
                ],
1754
                [
1755
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1756
                    'route' => 'group/invitations-received'
1757
                ]
1758
            ]
1759
        ],
1760
        [
1761
            'label' => 'LABEL_MARKETPLACE',
1762
            'route' => 'marketplace',
1763
            'class' => '/images/navbar/market-place.svg',
1764
        ],
167 efrain 1765
 
1766
 
1 efrain 1767
        [
167 efrain 1768
            'label' => 'LABEL_COMMUNICATION',
1769
            'route' => 'communication',
1 efrain 1770
            'class' => '/images/navbar/calendar.svg',
167 efrain 1771
            'pages' => [
1772
                [
1773
                    'label' => 'LABEL_CALENDAR',
1774
                    'route' => 'calendar',
1775
                    'class' => '/images/navbar/calendar.svg',
1776
                ],
1777
                [
1778
                    'label' => 'LABEL_INMAIL',
1779
                    'route' => 'inmail',
1780
                    'class' => '/images/navbar/calendar.svg',
1781
                ],
1782
                [
1783
                    'label' => 'LABEL_CHAT',
1784
                    'route' => 'chat',
1785
                    'class' => '/images/navbar/calendar.svg',
1786
                ],
1787
                [
1788
                    'label' => 'LABEL_NOTIFICATIONS',
1789
                    'route' => 'notifications',
1790
                    'class' => '/images/navbar/calendar.svg',
1791
                ],
1792
            ],
1 efrain 1793
        ],
167 efrain 1794
 
1795
        [
1796
            'label' => 'LABEL_KNOWLEDGE',
1797
            'route' => 'knowledge',
1798
            'class' => '/images/navbar/calendar.svg',
1799
            'pages' => [
1800
                [
1801
                    'label' => 'LABEL_MY_COACH',
1802
                    'route' => 'my-coach',
1803
                    'class' => '/images/navbar/calendar.svg',
1804
                ],
1805
                [
1806
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1807
                    'route' => 'knowledge-area',
1808
                    'class' => '/images/navbar/calendar.svg',
1809
                ],
1810
                [
1811
                    'label' => 'LABEL_MICROLEARNING',
1812
                    'route' => 'microlearning',
1813
                    'class' => '/images/navbar/calendar.svg',
191 efrain 1814
                    /*
167 efrain 1815
 
1816
                    'pages' => [
1817
                        [
1818
                            'label' => 'LABEL_HOME',
1819
                            'route' => 'microlearning',
1820
                            'class' => '/images/navbar/calendar.svg',
1821
                        ],
1822
                        [
1823
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1824
                            'route' => 'microlearning/topics',
1825
                            'class' => '/images/navbar/calendar.svg',
1826
                        ],
1827
                        [
1828
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1829
                            'route' => 'microlearning/timeline',
1830
                            'class' => '/images/navbar/calendar.svg',
1831
                        ],
1832
                        [
1833
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1834
                            'route' => 'microlearning/companies',
1835
                            'class' => '/images/navbar/calendar.svg',
1836
                        ],
1837
                        [
1838
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1839
                            'route' => 'microlearning/profile',
1840
                            'class' => '/images/navbar/calendar.svg',
1841
                        ],
191 efrain 1842
                    ]*/
167 efrain 1843
                ],
1844
 
1845
            ]
1846
 
1847
 
1848
        ],
1 efrain 1849
    ];
1850
}