Proyectos de Subversion LeadersLinked - Services

Rev

Rev 315 | Rev 323 | 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
 
321 www 790
            /*
1 efrain 791
            'marketplace',
792
            'marketplace/categories',
793
            'marketplace/enroll',
794
            'marketplace/claim',
795
            'marketplace/join',
796
            'marketplace/buy',
321 www 797
*/
1 efrain 798
            'calendar',
799
            'calendar/events',
800
 
801
/*
802
            'zoom',
803
            'zoom/add',
804
            'zoom/delete',
805
            'zoom/listing',
806
            */
283 www 807
            'inmail',
808
            'inmail/user',
809
            'inmail/user/block',
810
            'inmail/message',
811
            'inmail/message/send',
812
            'inmail/message/delete',
813
            'inmail/message/get',
814
            'inmail/message/attachment',
119 efrain 815
 
1 efrain 816
        ],
817
        UserType::USER => [
818
            'home',
819
            'onroom',
283 www 820
            'cesams',
1 efrain 821
            'language',
822
            'share',
823
            'share/increment-external-counter',
824
            'signin',
825
            'signin/facebook',
826
            'signin/twitter',
827
            'signin/google',
828
            'signin/impersonate',
177 efrain 829
            'signin/debug',
1 efrain 830
            'signout',
831
            'signup',
832
            'csrf',
833
            'check-session',
834
            'shorter',
835
            'shorter/generate',
836
            'notifications',
837
            'notifications/mark-read',
838
            'notifications/mark-all-read',
839
            'notifications/delete',
840
            'notifications/clear',
841
            'notifications/unreads',
842
            'professionalism-policy',
843
            'reset-password',
844
            'forgot-password',
845
            'activate-account',
846
            'privacy-policy',
847
            'terms-and-conditions',
848
            'cookies',
849
            'backend',
850
            'backend/signin-company',
851
            'oauth',
852
            'oauth/facebook',
853
            'oauth/facebook/cancel',
854
            'oauth/facebook/delete',
855
            'oauth/twitter',
856
            'oauth/google',
857
            'oauth/instagram',
858
            'paypal',
859
            'paypal/success',
860
            'paypal/cancel',
314 www 861
 
862
 
1 efrain 863
            'services',
864
            'services/device',
865
            'services/fcm',
866
            'services/signin',
867
            'services/signout',
314 www 868
 
1 efrain 869
            'dashboard',
870
            'post',
871
            'post/comments',
872
            'post/comments/add',
873
            'post/comments/delete',
874
            'post/save-reaction',
875
            'post/delete-reaction',
242 efrain 876
            'post/reactions',
1 efrain 877
            'feed',
878
            'feed/timeline',
879
            'feed/add',
880
            'feed/delete',
881
            'feed/share',
882
            'feed/comment',
883
            'feed/comment/delete',
884
            'feed/save-reaction',
885
            'feed/delete-reaction',
886
            'feed/vote',
232 efrain 887
            'feed/reactions',
1 efrain 888
            'connection',
889
            'connection/my-connections',
890
            'connection/people-you-may-know',
891
            'connection/people-blocked',
892
            'connection/people-blocked/delete',
893
            'connection/invitations-sent',
894
            'connection/invitations-received',
895
            'connection/request',
896
            'connection/approve',
897
            'connection/reject',
898
            'connection/block',
899
            'connection/cancel',
900
            'connection/delete',
901
            'connection/unblock',
141 efrain 902
 
1 efrain 903
            'account-settings',
904
            'account-settings/image',
905
            'account-settings/deactivate',
906
            'account-settings/notifications',
907
            'account-settings/password',
908
            'account-settings/social-networks',
909
            'account-settings/location',
910
            'account-settings/privacy',
911
            'account-settings/basic',
912
            'account-settings/browsers',
913
            'account-settings/ips',
914
            'account-settings/devices',
915
            'account-settings/transactions',
916
            'account-settings/transactions/add-funds',
917
            'account-settings/add-facebook',
918
            'account-settings/remove-facebook',
919
            'account-settings/add-twitter',
920
            'account-settings/remove-twitter',
921
            'account-settings/add-google',
922
            'account-settings/remove-google',
923
            'account-settings/delete-account',
141 efrain 924
 
1 efrain 925
            'search',
926
            'search/group',
927
            'search/job',
928
            'search/user',
929
            'moodle',
930
            'profile',
931
            'profile/self-evaluation',
932
            'profile/self-evaluation/take-a-test',
933
            'profile/self-evaluation/report',
934
            'profile/performance-evaluation',
935
            'profile/performance-evaluation/take-a-test',
936
            'profile/performance-evaluation/report',
937
            'profile/microlearning',
938
            'profile/microlearning/timeline',
939
            'profile/microlearning/progress',
940
            'profile/view',
941
            'profile/people-viewed-profile',
942
            'profile/my-profiles',
943
            'profile/my-profiles/extended',
944
            'profile/my-profiles/cover',
945
            'profile/my-profiles/image',
946
            'profile/my-profiles/experience',
947
            'profile/my-profiles/education',
948
            'profile/my-profiles/language',
949
            'profile/my-profiles/location',
950
            'profile/my-profiles/skill',
951
            'profile/my-profiles/social-network',
952
            'profile/my-profiles/aptitude',
953
            'profile/my-profiles/hobby-and-interest',
954
            'profile/my-profiles/add',
955
            'profile/my-profiles/edit',
956
            'profile/my-profiles/delete',
957
            'group',
958
            'group/view',
959
            'group/request',
960
            'group/leave',
961
            'group/cancel',
962
            'group/accept',
963
            'group/reject',
964
            'group/my-groups',
965
            'group/my-groups/accessibility',
966
            'group/my-groups/industry',
967
            'group/my-groups/extended',
968
            'group/my-groups/type',
969
            'group/my-groups/users',
970
            'group/my-groups/image',
971
            'group/my-groups/cover',
972
            'group/my-groups/website',
973
            'group/my-groups/privacy',
974
            'group/my-groups/add',
975
            'group/my-groups/edit',
976
            'group/my-groups/delete',
977
            'group/my-groups/status',
978
            'group/joined-groups',
979
            'group/requests-sent',
980
            'group/invitations-received',
981
            'group/members',
982
            'group/members/approve',
983
            'group/members/reject',
984
            'group/members/invite',
985
            'group/members/cancel',
986
            'job',
987
            'job/view',
988
            'job/applied-jobs',
989
            'job/apply-job',
990
            'job/remove-apply-job',
991
            'job/saved-jobs',
992
            'job/save-job',
993
            'job/remove-save-job',
167 efrain 994
 
995
            'communication',
283 www 996
 
1 efrain 997
            'help',
998
            'helpers',
999
            'helpers/search-people',
1000
            'helpers/posts',
1001
            'helpers/people-you-may-know',
1002
            'helpers/people-viewed-profile',
1003
            'helpers/company-follower',
1004
            'helpers/company-suggestion',
1005
            'helpers/group-members',
1006
            'helpers/group-members/invite',
1007
            'helpers/group-members/cancel',
1008
            'helpers/group-members/reject',
1009
            'helpers/group-members/approve',
1010
            'helpers/groups-suggestion',
117 efrain 1011
            'helpers/group-types',
1 efrain 1012
            'helpers/my-groups',
1013
            'helpers/footer',
1014
            'helpers/next-events',
1015
            'helpers/menu',
1016
            'helpers/company-sizes',
1017
            'helpers/degrees',
1018
            'helpers/languages',
1019
            'helpers/skills',
1020
            'helpers/aptitudes',
1021
            'helpers/hobbies',
1022
            'helpers/industries',
208 efrain 1023
            'helpers/timezones',
192 efrain 1024
            'helpers/abuse-report',
1 efrain 1025
 
192 efrain 1026
            'abuse-report',
1027
            'abuse-report/view',
1028
 
321 www 1029
            /*
1 efrain 1030
            'marketplace',
1031
            'marketplace/categories',
1032
            'marketplace/enroll',
1033
            'marketplace/claim',
1034
            'marketplace/join',
1035
            'marketplace/buy',
321 www 1036
*/
1 efrain 1037
            'calendar',
1038
            'calendar/events',
119 efrain 1039
 
283 www 1040
            'inmail',
1041
            'inmail/user',
1042
            'inmail/user/block',
1043
            'inmail/message',
1044
            'inmail/message/send',
1045
            'inmail/message/delete',
1046
            'inmail/message/get',
1047
            'inmail/message/attachment',
1 efrain 1048
 
119 efrain 1049
 
1 efrain 1050
            /*
1051
            'zoom',
1052
            'zoom/add',
1053
            'zoom/delete',
1054
            'zoom/listing',*/
1055
        ],
1056
        UserType::GUEST => [
1057
            'home',
1058
            'onroom',
283 www 1059
            'cesams',
1 efrain 1060
            'language',
1061
            'share',
1062
            'signin',
1063
            'signin/facebook',
1064
            'signin/twitter',
1065
            'signin/google',
177 efrain 1066
            'signin/debug',
1 efrain 1067
            'signout',
1068
            'signup',
1069
            'shorter',
1070
            'professionalism-policy',
1071
            'reset-password',
1072
            'forgot-password',
1073
            'activate-account',
1074
            'privacy-policy',
1075
            'terms-and-conditions',
1076
            'cookies',
1077
            'csrf',
1078
            'oauth',
1079
            'oauth/facebook',
1080
            'oauth/facebook/cancel',
1081
            'oauth/facebook/delete',
1082
            'oauth/twitter',
1083
            'oauth/google',
1084
            'oauth/instagram',
1085
            'paypal',
1086
            'paypal/success',
1087
            'paypal/cancel',
314 www 1088
 
1089
 
1 efrain 1090
            'services',
1091
            'services/device',
1092
            'services/fcm',
1093
            'services/signin',
1094
            'services/signout',
189 efrain 1095
 
1096
            'helpers',
1097
            'helpers/footer',
1 efrain 1098
 
1099
            /*
1100
            'zoom',
1101
            'zoom/add',
1102
            'zoom/delete',
1103
            'zoom/listing',*/
1104
        ],
1105
        UserType::USER_DELETED => [
1106
            'home',
1107
            'language',
1108
            'signin',
1109
            'signin/facebook',
1110
            'signin/twitter',
1111
            'signin/google',
177 efrain 1112
            'signin/debug',
1 efrain 1113
            'signout',
1114
            'signup',
1115
            'check-session',
1116
            'notifications',
1117
            'notifications/mark-read',
1118
            'notifications/mark-all-read',
1119
            'notifications/delete',
1120
            'notifications/clear',
1121
            'notifications/unreads',
1122
            'professionalism-policy',
1123
            'reset-password',
1124
            'forgot-password',
1125
            'activate-account',
1126
            'privacy-policy',
1127
            'terms-and-conditions',
1128
            'cookies',
1129
            'oauth',
1130
            'csrf',
1131
            'shorter',
1132
            'oauth/facebook',
1133
            'oauth/facebook/cancel',
1134
            'oauth/facebook/delete',
1135
            'oauth/twitter',
1136
            'oauth/google',
1137
            'oauth/instagram',
314 www 1138
 
1 efrain 1139
            'services',
1140
            'services/device',
1141
            'services/fcm',
1142
            'services/signin',
1143
            'services/signout',
1144
        ],
1145
    ];
1146
}
1147
 
1148
function getAclMenuDefaultNetworkConnectionUser2User()
1149
{
1150
    return [
1151
        [
1152
            'label' => 'LABEL_HOME',
1153
            'route' => 'dashboard',
1154
            'class' => '/images/navbar/home.svg',
1155
        ],
1156
        [
1157
            'label' => 'LABEL_PROFILE',
1158
            'route' => 'profile',
1159
            'class' => '/images/navbar/perfil.svg',
1160
            'pages' => [
1161
                [
1162
                    'label' => 'LABEL_CONNECTIONS',
1163
                    'route' => 'connection',
1164
                    //'class' =>'/images/navbar/conexion.svg',
1165
                    'pages' => [
1166
                        [
1167
                            'label' => 'LABEL_MY_CONNECTIONS',
1168
                            'route' => 'connection/my-connections'
1169
                        ],
1170
                        [
1171
                            'label' => 'LABEL_INVITATIONS_SENT',
1172
                            'route' => 'connection/invitations-sent'
1173
                        ],
1174
                        [
1175
                            'label' => 'LABEL_INVITATIONS_RECEIVED',
1176
                            'route' => 'connection/invitations-received'
1177
                        ],
1178
                        [
1179
                            'label' => 'LABEL_PEOPLE_YOU_MAY_KNOW',
1180
                            'route' => 'connection/people-you-may-know'
1181
                        ],
1182
                        [
1183
                            'label' => 'LABEL_PEOPLE_BLOCKED',
1184
                            'route' => 'connection/people-blocked'
1185
                        ],
1186
 
1187
 
1188
                    ]
1189
                ],
1190
                [
1191
                    'label' => 'LABEL_MY_PROFILES',
1192
                    'route' => 'profile/my-profiles'
1193
                ],
1194
                [
1195
                    'label' => 'LABEL_JOBS',
1196
                    'route' => 'job',
1197
                    'pages' => [
1198
                        [
1199
                            'label' => 'LABEL_JOBS_APPLIED',
1200
                            'route' => 'job/applied-jobs'
1201
                        ],
1202
                        [
1203
                            'label' => 'LABEL_JOBS_SAVED',
1204
                            'route' => 'job/saved-jobs'
1205
                        ],
1206
                    ]
1207
                ],
1208
 
1209
 
1210
                [
1211
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1212
                    'route' => 'profile/people-viewed-profile'
1213
                ],
1214
 
1215
            ]
1216
        ],
1217
 
1218
 
1219
        [
1220
            'label' => 'LABEL_COMPANIES',
1221
            'route' => 'company',
1222
            'class' => '/images/navbar/empresa.svg',
1223
            'pages' => [
1224
                [
1225
                    'label' => 'LABEL_MY_COMPANIES',
1226
                    'route' => 'company/my-companies'
1227
                ],
1228
                [
1229
                    'label' => 'LABEL_COMPANIES_I_FOLLOW',
1230
                    'route' => 'company/following-companies'
1231
                ],
1232
                [
1233
                    'label' => 'LABEL_COMPANIES_I_WORK_WITH',
1234
                    'route' => 'company/i-work-with'
1235
                ],
1236
                [
1237
                    'label' => 'LABEL_REQUESTS_SENT',
1238
                    'route' => 'company/requests-sent'
1239
                ],
1240
                [
1241
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1242
                    'route' => 'company/invitations-received'
1243
                ]
1244
            ]
1245
        ],
1246
 
1247
        [
1248
            'label' => 'LABEL_GROUPS',
1249
            'route' => 'group',
1250
            'class' => '/images/navbar/grupos.svg',
1251
            'pages' => [
1252
                [
1253
                    'label' => 'LABEL_MY_GROUPS',
1254
                    'route' => 'group/my-groups'
1255
                ],
1256
                [
1257
                    'label' => 'LABEL_JOINED_GROUPS',
1258
                    'route' => 'group/joined-groups'
1259
                ],
1260
                [
1261
                    'label' => 'LABEL_REQUESTS_SENT',
1262
                    'route' => 'group/requests-sent'
1263
                ],
1264
                [
1265
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1266
                    'route' => 'group/invitations-received'
1267
                ]
1268
            ]
1269
        ],
321 www 1270
        /*
1 efrain 1271
        [
1272
            'label' => 'LABEL_MARKETPLACE',
1273
            'route' => 'marketplace',
1274
            'class' => '/images/navbar/market-place.svg',
321 www 1275
        ],*/
167 efrain 1276
 
1277
 
1278
 
1 efrain 1279
        [
167 efrain 1280
            'label' => 'LABEL_COMMUNICATION',
1281
            'route' => 'communication',
1 efrain 1282
            'class' => '/images/navbar/calendar.svg',
167 efrain 1283
            'pages' => [
1284
                [
1285
                    'label' => 'LABEL_CALENDAR',
1286
                    'route' => 'calendar',
1287
                    'class' => '/images/navbar/calendar.svg',
1288
                ],
1289
                [
1290
                    'label' => 'LABEL_INMAIL',
1291
                    'route' => 'inmail',
1292
                    'class' => '/images/navbar/calendar.svg',
1293
                ],
1294
                [
1295
                    'label' => 'LABEL_CHAT',
1296
                    'route' => 'chat',
1297
                    'class' => '/images/navbar/calendar.svg',
1298
                ],
1299
                [
1300
                    'label' => 'LABEL_NOTIFICATIONS',
1301
                    'route' => 'notifications',
1302
                    'class' => '/images/navbar/calendar.svg',
1303
                ],
1304
            ],
1 efrain 1305
        ],
167 efrain 1306
 
1307
        [
1308
            'label' => 'LABEL_KNOWLEDGE',
1309
            'route' => 'knowledge',
1310
            'class' => '/images/navbar/calendar.svg',
1311
            'pages' => [
1312
                [
1313
                    'label' => 'LABEL_MY_COACH',
1314
                    'route' => 'my-coach',
1315
                    'class' => '/images/navbar/calendar.svg',
1316
                ],
1317
                [
1318
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1319
                    'route' => 'knowledge-area',
1320
                    'class' => '/images/navbar/calendar.svg',
1321
                ],
1322
                [
1323
                    'label' => 'LABEL_MICROLEARNING',
1324
                    'route' => 'microlearning',
1325
                    'class' => '/images/navbar/calendar.svg',
191 efrain 1326
                    /*
167 efrain 1327
                    'pages' => [
1328
                        [
1329
                            'label' => 'LABEL_HOME',
1330
                            'route' => 'microlearning',
1331
                            'class' => '/images/navbar/calendar.svg',
1332
                        ],
1333
                        [
1334
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1335
                            'route' => 'microlearning/topics',
1336
                            'class' => '/images/navbar/calendar.svg',
1337
                        ],
1338
                        [
1339
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1340
                            'route' => 'microlearning/timeline',
1341
                            'class' => '/images/navbar/calendar.svg',
1342
                        ],
1343
                        [
1344
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1345
                            'route' => 'microlearning/companies',
1346
                            'class' => '/images/navbar/calendar.svg',
1347
                        ],
1348
                        [
1349
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1350
                            'route' => 'microlearning/profile',
1351
                            'class' => '/images/navbar/calendar.svg',
1352
                        ],
191 efrain 1353
                    ]*/
167 efrain 1354
                ],
302 www 1355
                [
1356
                    'label' => 'LABEL_HABITS',
1357
                    'route' => 'habits',
1358
                    'class' => '/images/navbar/calendar.svg',
1359
                ]
167 efrain 1360
 
1361
            ]
1362
 
1363
 
1364
        ],
1365
 
1 efrain 1366
 
1367
    ];
1368
}
1369
 
1370
function getAclMenuDefaultNetworkConnectionAll2All()
1371
{
1372
    return [
1373
        [
1374
            'label' => 'LABEL_HOME',
1375
            'route' => 'dashboard',
1376
            'class' => '/images/navbar/home.svg',
1377
        ],
1378
        [
1379
            'label' => 'LABEL_PROFILE',
1380
            'route' => 'profile',
1381
            'class' => '/images/navbar/perfil.svg',
1382
            'pages' => [
1383
                [
1384
                    'label' => 'LABEL_MY_CONNECTIONS',
1385
                    'route' => 'connection/my-connections',
1386
                ],
1387
                [
1388
                    'label' => 'LABEL_MY_PROFILES',
1389
                    'route' => 'profile/my-profiles'
1390
                ],
1391
                [
1392
                    'label' => 'LABEL_JOBS_APPLIED',
1393
                    'route' => 'job/applied-jobs'
1394
                ],
1395
                [
1396
                    'label' => 'LABEL_JOBS_SAVED',
1397
                    'route' => 'job/saved-jobs'
1398
                ],
1399
                [
1400
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1401
                    'route' => 'profile/people-viewed-profile'
1402
                ],
1403
 
1404
            ]
1405
        ],
1406
 
1407
 
1408
        [
1409
            'label' => 'LABEL_COMPANIES',
1410
            'route' => 'company',
1411
            'class' => '/images/navbar/empresa.svg',
1412
            'pages' => [
1413
                [
1414
                    'label' => 'LABEL_MY_COMPANIES',
1415
                    'route' => 'company/my-companies'
1416
                ],
1417
                [
1418
                    'label' => 'LABEL_COMPANIES_I_FOLLOW',
1419
                    'route' => 'company/following-companies'
1420
                ],
1421
                [
1422
                    'label' => 'LABEL_COMPANIES_I_WORK_WITH',
1423
                    'route' => 'company/i-work-with'
1424
                ],
1425
                [
1426
                    'label' => 'LABEL_REQUESTS_SENT',
1427
                    'route' => 'company/requests-sent'
1428
                ],
1429
                [
1430
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1431
                    'route' => 'company/invitations-received'
1432
                ]
1433
            ]
1434
        ],
1435
 
1436
        [
1437
            'label' => 'LABEL_GROUPS',
1438
            'route' => 'group',
1439
            'class' => '/images/navbar/grupos.svg',
1440
            'pages' => [
1441
                [
1442
                    'label' => 'LABEL_MY_GROUPS',
1443
                    'route' => 'group/my-groups'
1444
                ],
1445
                [
1446
                    'label' => 'LABEL_JOINED_GROUPS',
1447
                    'route' => 'group/joined-groups'
1448
                ],
1449
                [
1450
                    'label' => 'LABEL_REQUESTS_SENT',
1451
                    'route' => 'group/requests-sent'
1452
                ],
1453
                [
1454
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1455
                    'route' => 'group/invitations-received'
1456
                ]
1457
            ]
1458
        ],
1459
        [
1460
            'label' => 'LABEL_MARKETPLACE',
1461
            'route' => 'marketplace',
1462
            'class' => '/images/navbar/market-place.svg',
1463
        ],
167 efrain 1464
 
1465
 
1 efrain 1466
        [
167 efrain 1467
            'label' => 'LABEL_COMMUNICATION',
1468
            'route' => 'communication',
1 efrain 1469
            'class' => '/images/navbar/calendar.svg',
167 efrain 1470
            'pages' => [
1471
                [
1472
                    'label' => 'LABEL_CALENDAR',
1473
                    'route' => 'calendar',
1474
                    'class' => '/images/navbar/calendar.svg',
1475
                ],
1476
                [
1477
                    'label' => 'LABEL_INMAIL',
1478
                    'class' => '/images/navbar/calendar.svg',
1479
                ],
1480
                [
1481
                    'label' => 'LABEL_CHAT',
1482
                    'route' => 'chat',
1483
                    'class' => '/images/navbar/calendar.svg',
1484
                ],
1485
                [
1486
                    'label' => 'LABEL_NOTIFICATIONS',
1487
                    'route' => 'notifications',
1488
                    'class' => '/images/navbar/calendar.svg',
1489
                ],
1490
            ],
1 efrain 1491
        ],
167 efrain 1492
 
1493
        [
1494
            'label' => 'LABEL_KNOWLEDGE',
1495
            'route' => 'knowledge',
1496
            'class' => '/images/navbar/calendar.svg',
1497
            'pages' => [
1498
                [
1499
                    'label' => 'LABEL_MY_COACH',
1500
                    'route' => 'my-coach',
1501
                    'class' => '/images/navbar/calendar.svg',
1502
                ],
1503
                [
1504
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1505
                    'route' => 'knowledge-area',
1506
                    'class' => '/images/navbar/calendar.svg',
1507
                ],
1508
                [
1509
                    'label' => 'LABEL_MICROLEARNING',
1510
                    'route' => 'microlearning',
1511
                    'class' => '/images/navbar/calendar.svg',
191 efrain 1512
       /*
167 efrain 1513
                    'pages' => [
1514
                        [
1515
                            'label' => 'LABEL_HOME',
1516
                            'route' => 'microlearning',
1517
                            'class' => '/images/navbar/calendar.svg',
1518
                        ],
1519
                        [
1520
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1521
                            'route' => 'microlearning/topics',
1522
                            'class' => '/images/navbar/calendar.svg',
1523
                        ],
1524
                        [
1525
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1526
                            'route' => 'microlearning/timeline',
1527
                            'class' => '/images/navbar/calendar.svg',
1528
                        ],
1529
                        [
1530
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1531
                            'route' => 'microlearning/companies',
1532
                            'class' => '/images/navbar/calendar.svg',
1533
                        ],
1534
                        [
1535
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1536
                            'route' => 'microlearning/profile',
1537
                            'class' => '/images/navbar/calendar.svg',
1538
                        ],
191 efrain 1539
                    ]*/
167 efrain 1540
                ],
1541
 
1542
            ]
1543
 
1544
 
1545
        ],
1 efrain 1546
    ];
1547
}
1548
 
1549
function getAclMenuNonDefaulNetworkConnectionUser2User()
1550
{
1551
    return [
1552
        [
1553
            'label' => 'LABEL_HOME',
1554
            'route' => 'dashboard',
1555
            'class' => '/images/navbar/home.svg',
1556
        ],
1557
        [
1558
            'label' => 'LABEL_PROFILE',
1559
            'route' => 'profile',
1560
            'class' => '/images/navbar/perfil.svg',
1561
            'pages' => [
1562
                [
1563
                    'label' => 'LABEL_CONNECTIONS',
1564
                    'route' => 'connection',
1565
                    //'class' =>'/images/navbar/conexion.svg',
1566
                    'pages' => [
1567
                        [
1568
                            'label' => 'LABEL_MY_CONNECTIONS',
1569
                            'route' => 'connection/my-connections'
1570
                        ],
1571
                        [
1572
                            'label' => 'LABEL_INVITATIONS_SENT',
1573
                            'route' => 'connection/invitations-sent'
1574
                        ],
1575
                        [
1576
                            'label' => 'LABEL_INVITATIONS_RECEIVED',
1577
                            'route' => 'connection/invitations-received'
1578
                        ],
1579
                        [
1580
                            'label' => 'LABEL_PEOPLE_YOU_MAY_KNOW',
1581
                            'route' => 'connection/people-you-may-know'
1582
                        ],
1583
                        [
1584
                            'label' => 'LABEL_PEOPLE_BLOCKED',
1585
                            'route' => 'connection/people-blocked'
1586
                        ],
1587
 
1588
 
1589
                    ]
1590
                ],
1591
                [
1592
                    'label' => 'LABEL_MY_PROFILES',
1593
                    'route' => 'profile/my-profiles'
1594
                ],
1595
                [
1596
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1597
                    'route' => 'profile/people-viewed-profile'
1598
                ],
1599
 
1600
            ]
1601
        ],
1602
 
1603
        [
1604
            'label' => 'LABEL_COMPANY',
1605
            'route' => 'company',
1606
            'class' => '/images/navbar/empresa.svg',
1607
 
1608
        ],
1609
 
1610
        [
1611
            'label' => 'LABEL_GROUPS',
1612
            'route' => 'group',
1613
            'class' => '/images/navbar/grupos.svg',
1614
            'pages' => [
1615
                [
1616
                    'label' => 'LABEL_MY_GROUPS',
1617
                    'route' => 'group/my-groups'
1618
                ],
1619
                [
1620
                    'label' => 'LABEL_JOINED_GROUPS',
1621
                    'route' => 'group/joined-groups'
1622
                ],
1623
                [
1624
                    'label' => 'LABEL_REQUESTS_SENT',
1625
                    'route' => 'group/requests-sent'
1626
                ],
1627
                [
1628
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1629
                    'route' => 'group/invitations-received'
1630
                ]
1631
            ]
1632
        ],
1633
        [
1634
            'label' => 'LABEL_MARKETPLACE',
1635
            'route' => 'marketplace',
1636
            'class' => '/images/navbar/market-place.svg',
1637
        ],
167 efrain 1638
 
1639
 
1 efrain 1640
        [
167 efrain 1641
            'label' => 'LABEL_COMMUNICATION',
1642
            'route' => 'communication',
1 efrain 1643
            'class' => '/images/navbar/calendar.svg',
167 efrain 1644
            'pages' => [
1645
                [
1646
                    'label' => 'LABEL_CALENDAR',
1647
                    'route' => 'calendar',
1648
                    'class' => '/images/navbar/calendar.svg',
1649
                ],
1650
                [
1651
                    'label' => 'LABEL_INMAIL',
1652
                    'route' => 'inmail',
1653
                    'class' => '/images/navbar/calendar.svg',
1654
                ],
1655
                [
1656
                    'label' => 'LABEL_CHAT',
1657
                    'route' => 'chat',
1658
                    'class' => '/images/navbar/calendar.svg',
1659
                ],
1660
                [
1661
                    'label' => 'LABEL_NOTIFICATIONS',
1662
                    'route' => 'notifications',
1663
                    'class' => '/images/navbar/calendar.svg',
1664
                ],
1665
            ],
1 efrain 1666
        ],
167 efrain 1667
 
1668
        [
1669
            'label' => 'LABEL_KNOWLEDGE',
1670
            'route' => 'knowledge',
1671
            'class' => '/images/navbar/calendar.svg',
1672
            'pages' => [
1673
                [
1674
                    'label' => 'LABEL_MY_COACH',
1675
                    'route' => 'my-coach',
1676
                    'class' => '/images/navbar/calendar.svg',
1677
                ],
1678
                [
1679
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1680
                    'route' => 'knowledge-area',
1681
                    'class' => '/images/navbar/calendar.svg',
1682
                ],
1683
                [
1684
                    'label' => 'LABEL_MICROLEARNING',
1685
                    'route' => 'microlearning',
1686
                    'class' => '/images/navbar/calendar.svg',
191 efrain 1687
       /*
167 efrain 1688
                    'pages' => [
1689
                        [
1690
                            'label' => 'LABEL_HOME',
1691
                            'route' => 'microlearning',
1692
                            'class' => '/images/navbar/calendar.svg',
1693
                        ],
1694
                        [
1695
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1696
                            'route' => 'microlearning/topics',
1697
                            'class' => '/images/navbar/calendar.svg',
1698
                        ],
1699
                        [
1700
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1701
                            'route' => 'microlearning/timeline',
1702
                            'class' => '/images/navbar/calendar.svg',
1703
                        ],
1704
                        [
1705
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1706
                            'route' => 'microlearning/companies',
1707
                            'class' => '/images/navbar/calendar.svg',
1708
                        ],
1709
                        [
1710
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1711
                            'route' => 'microlearning/profile',
1712
                            'class' => '/images/navbar/calendar.svg',
1713
                        ],
191 efrain 1714
                    ]*/
167 efrain 1715
                ],
1716
 
1717
            ]
1718
 
1719
 
1720
        ],
1 efrain 1721
    ];
1722
}
1723
 
1724
function getAclMenuNonDefaultNetworkConnectionAll2All()
1725
{
1726
    return [
1727
        [
1728
            'label' => 'LABEL_HOME',
1729
            'route' => 'dashboard',
1730
            'class' => '/images/navbar/home.svg',
1731
        ],
1732
        [
1733
            'label' => 'LABEL_PROFILE',
1734
            'route' => 'profile',
1735
            'class' => '/images/navbar/perfil.svg',
1736
            'pages' => [
1737
                [
1738
                    'label' => 'LABEL_MY_CONNECTIONS',
1739
                    'route' => 'connection/my-connections'
1740
                ],
1741
                [
1742
                    'label' => 'LABEL_MY_PROFILES',
1743
                    'route' => 'profile/my-profiles'
1744
                ],
1745
                [
1746
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1747
                    'route' => 'profile/people-viewed-profile'
1748
                ],
1749
 
1750
            ]
1751
        ],
1752
 
1753
        [
1754
            'label' => 'LABEL_COMPANY',
1755
            'route' => 'company',
1756
            'class' => '/images/navbar/empresa.svg',
1757
 
1758
        ],
1759
 
1760
 
1761
        [
1762
            'label' => 'LABEL_GROUPS',
1763
            'route' => 'group',
1764
            'class' => '/images/navbar/grupos.svg',
1765
            'pages' => [
1766
                [
1767
                    'label' => 'LABEL_MY_GROUPS',
1768
                    'route' => 'group/my-groups'
1769
                ],
1770
                [
1771
                    'label' => 'LABEL_JOINED_GROUPS',
1772
                    'route' => 'group/joined-groups'
1773
                ],
1774
                [
1775
                    'label' => 'LABEL_REQUESTS_SENT',
1776
                    'route' => 'group/requests-sent'
1777
                ],
1778
                [
1779
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1780
                    'route' => 'group/invitations-received'
1781
                ]
1782
            ]
1783
        ],
1784
        [
1785
            'label' => 'LABEL_MARKETPLACE',
1786
            'route' => 'marketplace',
1787
            'class' => '/images/navbar/market-place.svg',
1788
        ],
167 efrain 1789
 
1790
 
1 efrain 1791
        [
167 efrain 1792
            'label' => 'LABEL_COMMUNICATION',
1793
            'route' => 'communication',
1 efrain 1794
            'class' => '/images/navbar/calendar.svg',
167 efrain 1795
            'pages' => [
1796
                [
1797
                    'label' => 'LABEL_CALENDAR',
1798
                    'route' => 'calendar',
1799
                    'class' => '/images/navbar/calendar.svg',
1800
                ],
1801
                [
1802
                    'label' => 'LABEL_INMAIL',
1803
                    'route' => 'inmail',
1804
                    'class' => '/images/navbar/calendar.svg',
1805
                ],
1806
                [
1807
                    'label' => 'LABEL_CHAT',
1808
                    'route' => 'chat',
1809
                    'class' => '/images/navbar/calendar.svg',
1810
                ],
1811
                [
1812
                    'label' => 'LABEL_NOTIFICATIONS',
1813
                    'route' => 'notifications',
1814
                    'class' => '/images/navbar/calendar.svg',
1815
                ],
1816
            ],
1 efrain 1817
        ],
167 efrain 1818
 
1819
        [
1820
            'label' => 'LABEL_KNOWLEDGE',
1821
            'route' => 'knowledge',
1822
            'class' => '/images/navbar/calendar.svg',
1823
            'pages' => [
1824
                [
1825
                    'label' => 'LABEL_MY_COACH',
1826
                    'route' => 'my-coach',
1827
                    'class' => '/images/navbar/calendar.svg',
1828
                ],
1829
                [
1830
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1831
                    'route' => 'knowledge-area',
1832
                    'class' => '/images/navbar/calendar.svg',
1833
                ],
1834
                [
1835
                    'label' => 'LABEL_MICROLEARNING',
1836
                    'route' => 'microlearning',
1837
                    'class' => '/images/navbar/calendar.svg',
191 efrain 1838
                    /*
167 efrain 1839
 
1840
                    'pages' => [
1841
                        [
1842
                            'label' => 'LABEL_HOME',
1843
                            'route' => 'microlearning',
1844
                            'class' => '/images/navbar/calendar.svg',
1845
                        ],
1846
                        [
1847
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1848
                            'route' => 'microlearning/topics',
1849
                            'class' => '/images/navbar/calendar.svg',
1850
                        ],
1851
                        [
1852
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1853
                            'route' => 'microlearning/timeline',
1854
                            'class' => '/images/navbar/calendar.svg',
1855
                        ],
1856
                        [
1857
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1858
                            'route' => 'microlearning/companies',
1859
                            'class' => '/images/navbar/calendar.svg',
1860
                        ],
1861
                        [
1862
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1863
                            'route' => 'microlearning/profile',
1864
                            'class' => '/images/navbar/calendar.svg',
1865
                        ],
191 efrain 1866
                    ]*/
167 efrain 1867
                ],
1868
 
1869
            ]
1870
 
1871
 
1872
        ],
1 efrain 1873
    ];
1874
}