Proyectos de Subversion LeadersLinked - Services

Rev

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