Proyectos de Subversion LeadersLinked - Services

Rev

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