Proyectos de Subversion LeadersLinked - Services

Rev

Rev 302 | Rev 307 | 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',
1 efrain 371
    ];
372
}
373
 
374
function getAclSuperAdmin()
375
{
376
    return [
377
        'impersonate',
378
        'impersonate/execute',
379
    ];
380
}
381
 
382
function getAclUsertypeDefaultNetwork()
383
{
384
    return [
385
        UserType::ADMIN => [
386
            'company',
387
            'company/my-companies',
388
            'company/my-companies/add',
389
            'company/following-companies',
390
            'company/view',
391
            'company/follow',
392
            'company/unfollow',
393
            'company/request',
394
            'company/reject',
395
            'company/accept',
396
            'company/cancel',
397
            'company/leave',
398
            'company/requests-sent',
399
            'company/invitations-received',
400
            'company/i-work-with',
401
            'search',
402
            'search/company',
119 efrain 403
 
1 efrain 404
        ],
405
        UserType::USER => [
406
            'company',
407
            'company/my-companies',
408
            'company/my-companies/add',
409
            'company/following-companies',
410
            'company/view',
411
            'company/follow',
412
            'company/unfollow',
413
            'company/request',
414
            'company/reject',
415
            'company/accept',
416
            'company/cancel',
417
            'company/leave',
418
            'company/requests-sent',
419
            'company/invitations-received',
420
            'company/i-work-with',
421
            'search',
422
            'search/company',
423
        ],
424
    ];
425
}
426
 
167 efrain 427
function getAclMicrolearning()
428
{
429
    return [
430
        'knowledge',
431
        'microlearning',
235 efrain 432
        'microlearning/take-a-test',
167 efrain 433
        'microlearning/profile',
434
        'microlearning/companies',
435
        'microlearning/progress',
436
        'microlearning/timeline',
437
        'microlearning/last-capsule-in-progress',
438
        'microlearning/capsules-pending',
439
        'microlearning/capsules-completed',
440
        'microlearning/capsules-in-progress',
441
        'microlearning/capsules-comments',
442
        'microlearning/capsules-comments/add',
443
        'microlearning/capsules-comments/delete',
444
        'microlearning/topics',
445
        'microlearning/capsules',
446
        'microlearning/slides',
447
        'microlearning/get-topic',
448
        'microlearning/get-capsule',
449
        'microlearning/get-slide',
450
        'microlearning/sync',
451
    ];
452
}
1 efrain 453
 
302 www 454
function getAclHabits()
455
{
456
    return [
457
        'habits',
458
        'habits/values',
459
        'habits/values/add',
460
        'habits/values/edit',
461
        'habits/values/delete',
462
 
463
        'habits/paradigms',
464
        'habits/paradigms/add',
465
        'habits/paradigms/edit',
466
        'habits/paradigms/delete',
467
 
468
        'habits/purposes',
469
        'habits/purposes/add',
470
        'habits/purposes/edit',
471
        'habits/purposes/delete',
304 www 472
 
473
        'habits/skills',
474
        'habits/skills/add',
475
        'habits/skills/edit',
476
        'habits/skills/delete',
302 www 477
    ];
478
}
167 efrain 479
 
302 www 480
 
1 efrain 481
function getAclUsertypeOtherNetworkCreator()
482
{
483
    return [
484
        'company',
485
        'company/my-companies',
486
        'company/view',
487
 
488
    ];
489
}
490
 
491
function getAclUsertypeOtherNetworkNonCreator()
492
{
493
    return [
494
        'company',
495
        'company/i-work-with',
496
        'company/view',
497
    ];
498
}
499
 
500
 
501
function getAclDailyPulse()
502
{
503
    return [
504
        'daily-pulse',
505
        'daily-pulse/how_are_you_feel',
506
        'daily-pulse/climate_on_your_organization',
507
    ];
508
}
509
 
510
function getAclKnowledgeArea()
511
{
512
    return [
167 efrain 513
        'knowledge',
1 efrain 514
        'knowledge-area',
515
        'knowledge-area/add',
516
        'knowledge-area/edit',
517
        'knowledge-area/delete',
518
        'knowledge-area/view',
519
        'knowledge-area/comments',
520
        'knowledge-area/comments/add',
521
        'knowledge-area/comments/delete',
522
        'knowledge-area/save-reaction',
242 efrain 523
        'knowledge-area/delete-reaction',
524
        'knowledge-area/reactions'
1 efrain 525
    ];
526
}
527
 
528
function getAclMyCoach()
529
{
530
    return [
167 efrain 531
        'knowledge',
1 efrain 532
        'my-coach',
533
        'my-coach/questions',
534
        'my-coach/questions/view',
535
        'my-coach/questions/add',
536
        'my-coach/questions/edit',
537
        'my-coach/questions/delete',
538
        'my-coach/questions/answers',
539
        'my-coach/questions/answers/add',
540
        'my-coach/questions/answers/edit',
541
        'my-coach/questions/answers/delete',
542
        'my-coach/questions/reaction',
543
        'my-coach/questions/reaction/save',
544
        'my-coach/questions/reaction/delete',
255 efrain 545
        'my-coach/questions/reactions',
1 efrain 546
        'my-coach/questions/comments',
547
        'my-coach/questions/comments/add',
548
        'my-coach/questions/comments/delete',
549
    ];
550
}
551
 
552
 
553
 
167 efrain 554
 
555
 
556
 
1 efrain 557
function getAclUsertype()
558
{
559
    return [
560
        UserType::ADMIN => [
561
            'home',
562
            'share',
563
            'share/increment-external-counter',
564
            'onroom',
283 www 565
            'cesams',
1 efrain 566
            'language',
567
            'signin',
568
            'signin/facebook',
569
            'signin/twitter',
570
            'signin/google',
571
            'signin/impersonate',
177 efrain 572
            'signin/debug',
1 efrain 573
            'signout',
574
            'signup',
575
            'csrf',
576
            'check-session',
577
            'shorter',
578
            'shorter/generate',
167 efrain 579
 
580
            'communication',
1 efrain 581
            'notifications',
582
            'notifications/mark-read',
583
            'notifications/mark-all-read',
584
            'notifications/delete',
585
            'notifications/clear',
586
            'notifications/unreads',
587
 
588
            'reset-password',
589
            'forgot-password',
590
            'professionalism-policy',
591
            'activate-account',
592
            'privacy-policy',
593
            'terms-and-conditions',
594
            'cookies',
595
            'backend',
596
            'backend/signin-admin',
597
            'backend/signin-company',
598
            'oauth',
599
            'oauth/facebook',
600
            'oauth/facebook/cancel',
601
            'oauth/facebook/delete',
602
            'oauth/twitter',
603
            'oauth/google',
604
            'oauth/instagram',
605
            'paypal',
606
            'paypal/success',
607
            'paypal/cancel',
608
            'services',
609
            'services/device',
610
            'services/check-session',
611
            'services/fcm',
612
            'services/signin',
613
            'services/signout',
614
            'services/sync',
615
            'services/sync-batch',
616
            'services/storage',
617
            'services/microlearning',
618
            'services/microlearning/refresh',
619
            'services/microlearning/check-changes',
620
            'services/microlearning/capsules',
621
            'services/microlearning/capsules/comments',
622
            'services/microlearning/capsules/comments/add',
623
            'services/microlearning/capsules/comments/delete',
624
            'services/delete-account',
625
            'dashboard',
626
            'post',
627
            'post/comments',
628
            'post/comments/add',
629
            'post/comments/delete',
630
            'post/save-reaction',
631
            'post/delete-reaction',
242 efrain 632
            'post/reactions',
1 efrain 633
            'feed',
634
            'feed/timeline',
635
            'feed/add',
636
            'feed/delete',
637
            'feed/share',
638
            'feed/comment',
639
            'feed/comment/delete',
640
            'feed/save-reaction',
641
            'feed/delete-reaction',
642
            'feed/vote',
232 efrain 643
            'feed/reactions',
1 efrain 644
            'connection',
645
            'connection/my-connections',
646
            'connection/people-you-may-know',
647
            'connection/people-blocked',
648
            'connection/people-blocked/delete',
649
            'connection/invitations-sent',
650
            'connection/invitations-received',
651
            'connection/request',
652
            'connection/approve',
653
            'connection/reject',
654
            'connection/block',
655
            'connection/cancel',
656
            'connection/delete',
657
            'connection/unblock',
658
            'account-settings',
659
            'account-settings/image',
660
            'account-settings/deactivate',
661
            'account-settings/notifications',
662
            'account-settings/password',
663
            'account-settings/social-networks',
664
            'account-settings/location',
665
            'account-settings/privacy',
666
            'account-settings/basic',
667
            'account-settings/browsers',
668
            'account-settings/ips',
669
            'account-settings/devices',
670
            'account-settings/transactions',
671
            'account-settings/transactions/add-funds',
672
            'account-settings/add-facebook',
673
            'account-settings/remove-facebook',
674
            'account-settings/add-twitter',
675
            'account-settings/remove-twitter',
676
            'account-settings/add-google',
677
            'account-settings/remove-google',
678
            'account-settings/delete-account',
679
            'search',
680
            'search/group',
681
            'search/job',
682
            'search/user',
683
            'moodle',
684
            'profile',
685
            'profile/self-evaluation',
686
            'profile/self-evaluation/take-a-test',
687
            'profile/self-evaluation/report',
688
            'profile/performance-evaluation',
689
            'profile/performance-evaluation/take-a-test',
690
            'profile/performance-evaluation/report',
691
            'profile/microlearning',
692
            'profile/microlearning/timeline',
693
            'profile/microlearning/progress',
694
            'profile/view',
695
            'profile/people-viewed-profile',
696
            'profile/my-profiles',
697
            'profile/my-profiles/extended',
698
            'profile/my-profiles/cover',
699
            'profile/my-profiles/image',
700
            'profile/my-profiles/experience',
701
            'profile/my-profiles/education',
702
            'profile/my-profiles/language',
703
            'profile/my-profiles/location',
704
            'profile/my-profiles/skill',
705
            'profile/my-profiles/social-network',
706
            'profile/my-profiles/aptitude',
707
            'profile/my-profiles/hobby-and-interest',
708
            'profile/my-profiles/add',
709
            'profile/my-profiles/edit',
710
            'profile/my-profiles/delete',
711
 
712
            'group',
713
            'group/view',
714
            'group/request',
715
            'group/leave',
716
            'group/cancel',
717
            'group/accept',
718
            'group/reject',
719
            'group/my-groups',
720
            'group/my-groups/accessibility',
721
            'group/my-groups/industry',
722
            'group/my-groups/extended',
723
            'group/my-groups/type',
724
            'group/my-groups/users',
725
            'group/my-groups/image',
726
            'group/my-groups/cover',
727
            'group/my-groups/website',
728
            'group/my-groups/privacy',
729
            'group/my-groups/add',
730
            'group/my-groups/edit',
731
            'group/my-groups/delete',
732
            'group/my-groups/status',
733
            'group/joined-groups',
734
            'group/requests-sent',
735
            'group/invitations-received',
736
            'group/members',
737
            'group/members/approve',
738
            'group/members/reject',
739
            'group/members/invite',
740
            'group/members/cancel',
741
            'job',
742
            'job/view',
743
            'job/applied-jobs',
744
            'job/apply-job',
745
            'job/remove-apply-job',
746
            'job/saved-jobs',
747
            'job/save-job',
748
            'job/remove-save-job',
283 www 749
 
1 efrain 750
            'help',
751
            'helpers',
752
            'helpers/search-people',
753
            'helpers/posts',
754
            'helpers/people-you-may-know',
755
            'helpers/people-viewed-profile',
756
            'helpers/company-follower',
757
            'helpers/company-suggestion',
758
            'helpers/group-members',
759
            'helpers/group-members/invite',
760
            'helpers/group-members/cancel',
761
            'helpers/group-members/reject',
762
            'helpers/group-members/approve',
763
            'helpers/groups-suggestion',
117 efrain 764
            'helpers/group-types',
1 efrain 765
            'helpers/my-groups',
766
            'helpers/footer',
767
            'helpers/next-events',
768
            'helpers/menu',
769
            'helpers/company-sizes',
770
            'helpers/degrees',
771
            'helpers/languages',
772
            'helpers/skills',
773
            'helpers/aptitudes',
774
            'helpers/hobbies',
775
            'helpers/industries',
776
            'helpers/timezones',
192 efrain 777
            'helpers/abuse-report',
1 efrain 778
 
192 efrain 779
            'abuse-report',
780
            'abuse-report/view',
781
 
1 efrain 782
            'marketplace',
783
            'marketplace/categories',
784
            'marketplace/enroll',
785
            'marketplace/claim',
786
            'marketplace/join',
787
            'marketplace/buy',
788
 
789
            'calendar',
790
            'calendar/events',
791
 
792
/*
793
            'zoom',
794
            'zoom/add',
795
            'zoom/delete',
796
            'zoom/listing',
797
            */
283 www 798
            'inmail',
799
            'inmail/user',
800
            'inmail/user/block',
801
            'inmail/message',
802
            'inmail/message/send',
803
            'inmail/message/delete',
804
            'inmail/message/get',
805
            'inmail/message/attachment',
119 efrain 806
 
1 efrain 807
        ],
808
        UserType::USER => [
809
            'home',
810
            'onroom',
283 www 811
            'cesams',
1 efrain 812
            'language',
813
            'share',
814
            'share/increment-external-counter',
815
            'signin',
816
            'signin/facebook',
817
            'signin/twitter',
818
            'signin/google',
819
            'signin/impersonate',
177 efrain 820
            'signin/debug',
1 efrain 821
            'signout',
822
            'signup',
823
            'csrf',
824
            'check-session',
825
            'shorter',
826
            'shorter/generate',
827
            'notifications',
828
            'notifications/mark-read',
829
            'notifications/mark-all-read',
830
            'notifications/delete',
831
            'notifications/clear',
832
            'notifications/unreads',
833
            'professionalism-policy',
834
            'reset-password',
835
            'forgot-password',
836
            'activate-account',
837
            'privacy-policy',
838
            'terms-and-conditions',
839
            'cookies',
840
            'backend',
841
            'backend/signin-company',
842
            'oauth',
843
            'oauth/facebook',
844
            'oauth/facebook/cancel',
845
            'oauth/facebook/delete',
846
            'oauth/twitter',
847
            'oauth/google',
848
            'oauth/instagram',
849
            'paypal',
850
            'paypal/success',
851
            'paypal/cancel',
852
            'services',
853
            'services/device',
854
            'services/check-session',
855
            'services/fcm',
856
            'services/signin',
857
            'services/signout',
858
            'services/sync',
859
            'services/sync-batch',
860
            'services/storage',
861
            'services/microlearning',
862
            'services/microlearning/refresh',
863
            'services/microlearning/check-changes',
864
            'services/microlearning/capsules',
865
            'services/microlearning/capsules/comments',
866
            'services/microlearning/capsules/comments/add',
867
            'services/microlearning/capsules/comments/delete',
868
            'services/delete-account',
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
 
1 efrain 1029
            'marketplace',
1030
            'marketplace/categories',
1031
            'marketplace/enroll',
1032
            'marketplace/claim',
1033
            'marketplace/join',
1034
            'marketplace/buy',
1035
 
1036
            'calendar',
1037
            'calendar/events',
119 efrain 1038
 
283 www 1039
            'inmail',
1040
            'inmail/user',
1041
            'inmail/user/block',
1042
            'inmail/message',
1043
            'inmail/message/send',
1044
            'inmail/message/delete',
1045
            'inmail/message/get',
1046
            'inmail/message/attachment',
1 efrain 1047
 
119 efrain 1048
 
1 efrain 1049
            /*
1050
            'zoom',
1051
            'zoom/add',
1052
            'zoom/delete',
1053
            'zoom/listing',*/
1054
        ],
1055
        UserType::GUEST => [
1056
            'home',
1057
            'onroom',
283 www 1058
            'cesams',
1 efrain 1059
            'language',
1060
            'share',
1061
            'signin',
1062
            'signin/facebook',
1063
            'signin/twitter',
1064
            'signin/google',
177 efrain 1065
            'signin/debug',
1 efrain 1066
            'signout',
1067
            'signup',
1068
            'shorter',
1069
            'professionalism-policy',
1070
            'reset-password',
1071
            'forgot-password',
1072
            'activate-account',
1073
            'privacy-policy',
1074
            'terms-and-conditions',
1075
            'cookies',
1076
            'csrf',
1077
            'oauth',
1078
            'oauth/facebook',
1079
            'oauth/facebook/cancel',
1080
            'oauth/facebook/delete',
1081
            'oauth/twitter',
1082
            'oauth/google',
1083
            'oauth/instagram',
1084
            'paypal',
1085
            'paypal/success',
1086
            'paypal/cancel',
1087
            'services',
1088
            'services/device',
1089
            'services/check-session',
1090
            'services/fcm',
1091
            'services/signin',
1092
            'services/signout',
1093
            'services/sync',
1094
            'services/sync-batch',
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',
1138
            'services',
1139
            'services/device',
1140
            'services/check-session',
1141
            'services/fcm',
1142
            'services/signin',
1143
            'services/signout',
1144
            'services/sync',
1145
            'services/sync-batch',
1146
        ],
1147
    ];
1148
}
1149
 
1150
function getAclMenuDefaultNetworkConnectionUser2User()
1151
{
1152
    return [
1153
        [
1154
            'label' => 'LABEL_HOME',
1155
            'route' => 'dashboard',
1156
            'class' => '/images/navbar/home.svg',
1157
        ],
1158
        [
1159
            'label' => 'LABEL_PROFILE',
1160
            'route' => 'profile',
1161
            'class' => '/images/navbar/perfil.svg',
1162
            'pages' => [
1163
                [
1164
                    'label' => 'LABEL_CONNECTIONS',
1165
                    'route' => 'connection',
1166
                    //'class' =>'/images/navbar/conexion.svg',
1167
                    'pages' => [
1168
                        [
1169
                            'label' => 'LABEL_MY_CONNECTIONS',
1170
                            'route' => 'connection/my-connections'
1171
                        ],
1172
                        [
1173
                            'label' => 'LABEL_INVITATIONS_SENT',
1174
                            'route' => 'connection/invitations-sent'
1175
                        ],
1176
                        [
1177
                            'label' => 'LABEL_INVITATIONS_RECEIVED',
1178
                            'route' => 'connection/invitations-received'
1179
                        ],
1180
                        [
1181
                            'label' => 'LABEL_PEOPLE_YOU_MAY_KNOW',
1182
                            'route' => 'connection/people-you-may-know'
1183
                        ],
1184
                        [
1185
                            'label' => 'LABEL_PEOPLE_BLOCKED',
1186
                            'route' => 'connection/people-blocked'
1187
                        ],
1188
 
1189
 
1190
                    ]
1191
                ],
1192
                [
1193
                    'label' => 'LABEL_MY_PROFILES',
1194
                    'route' => 'profile/my-profiles'
1195
                ],
1196
                [
1197
                    'label' => 'LABEL_JOBS',
1198
                    'route' => 'job',
1199
                    'pages' => [
1200
                        [
1201
                            'label' => 'LABEL_JOBS_APPLIED',
1202
                            'route' => 'job/applied-jobs'
1203
                        ],
1204
                        [
1205
                            'label' => 'LABEL_JOBS_SAVED',
1206
                            'route' => 'job/saved-jobs'
1207
                        ],
1208
                    ]
1209
                ],
1210
 
1211
 
1212
                [
1213
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1214
                    'route' => 'profile/people-viewed-profile'
1215
                ],
1216
 
1217
            ]
1218
        ],
1219
 
1220
 
1221
        [
1222
            'label' => 'LABEL_COMPANIES',
1223
            'route' => 'company',
1224
            'class' => '/images/navbar/empresa.svg',
1225
            'pages' => [
1226
                [
1227
                    'label' => 'LABEL_MY_COMPANIES',
1228
                    'route' => 'company/my-companies'
1229
                ],
1230
                [
1231
                    'label' => 'LABEL_COMPANIES_I_FOLLOW',
1232
                    'route' => 'company/following-companies'
1233
                ],
1234
                [
1235
                    'label' => 'LABEL_COMPANIES_I_WORK_WITH',
1236
                    'route' => 'company/i-work-with'
1237
                ],
1238
                [
1239
                    'label' => 'LABEL_REQUESTS_SENT',
1240
                    'route' => 'company/requests-sent'
1241
                ],
1242
                [
1243
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1244
                    'route' => 'company/invitations-received'
1245
                ]
1246
            ]
1247
        ],
1248
 
1249
        [
1250
            'label' => 'LABEL_GROUPS',
1251
            'route' => 'group',
1252
            'class' => '/images/navbar/grupos.svg',
1253
            'pages' => [
1254
                [
1255
                    'label' => 'LABEL_MY_GROUPS',
1256
                    'route' => 'group/my-groups'
1257
                ],
1258
                [
1259
                    'label' => 'LABEL_JOINED_GROUPS',
1260
                    'route' => 'group/joined-groups'
1261
                ],
1262
                [
1263
                    'label' => 'LABEL_REQUESTS_SENT',
1264
                    'route' => 'group/requests-sent'
1265
                ],
1266
                [
1267
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1268
                    'route' => 'group/invitations-received'
1269
                ]
1270
            ]
1271
        ],
1272
        [
1273
            'label' => 'LABEL_MARKETPLACE',
1274
            'route' => 'marketplace',
1275
            'class' => '/images/navbar/market-place.svg',
1276
        ],
167 efrain 1277
 
1278
 
1279
 
1 efrain 1280
        [
167 efrain 1281
            'label' => 'LABEL_COMMUNICATION',
1282
            'route' => 'communication',
1 efrain 1283
            'class' => '/images/navbar/calendar.svg',
167 efrain 1284
            'pages' => [
1285
                [
1286
                    'label' => 'LABEL_CALENDAR',
1287
                    'route' => 'calendar',
1288
                    'class' => '/images/navbar/calendar.svg',
1289
                ],
1290
                [
1291
                    'label' => 'LABEL_INMAIL',
1292
                    'route' => 'inmail',
1293
                    'class' => '/images/navbar/calendar.svg',
1294
                ],
1295
                [
1296
                    'label' => 'LABEL_CHAT',
1297
                    'route' => 'chat',
1298
                    'class' => '/images/navbar/calendar.svg',
1299
                ],
1300
                [
1301
                    'label' => 'LABEL_NOTIFICATIONS',
1302
                    'route' => 'notifications',
1303
                    'class' => '/images/navbar/calendar.svg',
1304
                ],
1305
            ],
1 efrain 1306
        ],
167 efrain 1307
 
1308
        [
1309
            'label' => 'LABEL_KNOWLEDGE',
1310
            'route' => 'knowledge',
1311
            'class' => '/images/navbar/calendar.svg',
1312
            'pages' => [
1313
                [
1314
                    'label' => 'LABEL_MY_COACH',
1315
                    'route' => 'my-coach',
1316
                    'class' => '/images/navbar/calendar.svg',
1317
                ],
1318
                [
1319
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1320
                    'route' => 'knowledge-area',
1321
                    'class' => '/images/navbar/calendar.svg',
1322
                ],
1323
                [
1324
                    'label' => 'LABEL_MICROLEARNING',
1325
                    'route' => 'microlearning',
1326
                    'class' => '/images/navbar/calendar.svg',
191 efrain 1327
                    /*
167 efrain 1328
                    'pages' => [
1329
                        [
1330
                            'label' => 'LABEL_HOME',
1331
                            'route' => 'microlearning',
1332
                            'class' => '/images/navbar/calendar.svg',
1333
                        ],
1334
                        [
1335
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1336
                            'route' => 'microlearning/topics',
1337
                            'class' => '/images/navbar/calendar.svg',
1338
                        ],
1339
                        [
1340
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1341
                            'route' => 'microlearning/timeline',
1342
                            'class' => '/images/navbar/calendar.svg',
1343
                        ],
1344
                        [
1345
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1346
                            'route' => 'microlearning/companies',
1347
                            'class' => '/images/navbar/calendar.svg',
1348
                        ],
1349
                        [
1350
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1351
                            'route' => 'microlearning/profile',
1352
                            'class' => '/images/navbar/calendar.svg',
1353
                        ],
191 efrain 1354
                    ]*/
167 efrain 1355
                ],
302 www 1356
                [
1357
                    'label' => 'LABEL_HABITS',
1358
                    'route' => 'habits',
1359
                    'class' => '/images/navbar/calendar.svg',
1360
                ]
167 efrain 1361
 
1362
            ]
1363
 
1364
 
1365
        ],
1366
 
1 efrain 1367
 
1368
    ];
1369
}
1370
 
1371
function getAclMenuDefaultNetworkConnectionAll2All()
1372
{
1373
    return [
1374
        [
1375
            'label' => 'LABEL_HOME',
1376
            'route' => 'dashboard',
1377
            'class' => '/images/navbar/home.svg',
1378
        ],
1379
        [
1380
            'label' => 'LABEL_PROFILE',
1381
            'route' => 'profile',
1382
            'class' => '/images/navbar/perfil.svg',
1383
            'pages' => [
1384
                [
1385
                    'label' => 'LABEL_MY_CONNECTIONS',
1386
                    'route' => 'connection/my-connections',
1387
                ],
1388
                [
1389
                    'label' => 'LABEL_MY_PROFILES',
1390
                    'route' => 'profile/my-profiles'
1391
                ],
1392
                [
1393
                    'label' => 'LABEL_JOBS_APPLIED',
1394
                    'route' => 'job/applied-jobs'
1395
                ],
1396
                [
1397
                    'label' => 'LABEL_JOBS_SAVED',
1398
                    'route' => 'job/saved-jobs'
1399
                ],
1400
                [
1401
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1402
                    'route' => 'profile/people-viewed-profile'
1403
                ],
1404
 
1405
            ]
1406
        ],
1407
 
1408
 
1409
        [
1410
            'label' => 'LABEL_COMPANIES',
1411
            'route' => 'company',
1412
            'class' => '/images/navbar/empresa.svg',
1413
            'pages' => [
1414
                [
1415
                    'label' => 'LABEL_MY_COMPANIES',
1416
                    'route' => 'company/my-companies'
1417
                ],
1418
                [
1419
                    'label' => 'LABEL_COMPANIES_I_FOLLOW',
1420
                    'route' => 'company/following-companies'
1421
                ],
1422
                [
1423
                    'label' => 'LABEL_COMPANIES_I_WORK_WITH',
1424
                    'route' => 'company/i-work-with'
1425
                ],
1426
                [
1427
                    'label' => 'LABEL_REQUESTS_SENT',
1428
                    'route' => 'company/requests-sent'
1429
                ],
1430
                [
1431
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1432
                    'route' => 'company/invitations-received'
1433
                ]
1434
            ]
1435
        ],
1436
 
1437
        [
1438
            'label' => 'LABEL_GROUPS',
1439
            'route' => 'group',
1440
            'class' => '/images/navbar/grupos.svg',
1441
            'pages' => [
1442
                [
1443
                    'label' => 'LABEL_MY_GROUPS',
1444
                    'route' => 'group/my-groups'
1445
                ],
1446
                [
1447
                    'label' => 'LABEL_JOINED_GROUPS',
1448
                    'route' => 'group/joined-groups'
1449
                ],
1450
                [
1451
                    'label' => 'LABEL_REQUESTS_SENT',
1452
                    'route' => 'group/requests-sent'
1453
                ],
1454
                [
1455
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1456
                    'route' => 'group/invitations-received'
1457
                ]
1458
            ]
1459
        ],
1460
        [
1461
            'label' => 'LABEL_MARKETPLACE',
1462
            'route' => 'marketplace',
1463
            'class' => '/images/navbar/market-place.svg',
1464
        ],
167 efrain 1465
 
1466
 
1 efrain 1467
        [
167 efrain 1468
            'label' => 'LABEL_COMMUNICATION',
1469
            'route' => 'communication',
1 efrain 1470
            'class' => '/images/navbar/calendar.svg',
167 efrain 1471
            'pages' => [
1472
                [
1473
                    'label' => 'LABEL_CALENDAR',
1474
                    'route' => 'calendar',
1475
                    'class' => '/images/navbar/calendar.svg',
1476
                ],
1477
                [
1478
                    'label' => 'LABEL_INMAIL',
1479
                    'class' => '/images/navbar/calendar.svg',
1480
                ],
1481
                [
1482
                    'label' => 'LABEL_CHAT',
1483
                    'route' => 'chat',
1484
                    'class' => '/images/navbar/calendar.svg',
1485
                ],
1486
                [
1487
                    'label' => 'LABEL_NOTIFICATIONS',
1488
                    'route' => 'notifications',
1489
                    'class' => '/images/navbar/calendar.svg',
1490
                ],
1491
            ],
1 efrain 1492
        ],
167 efrain 1493
 
1494
        [
1495
            'label' => 'LABEL_KNOWLEDGE',
1496
            'route' => 'knowledge',
1497
            'class' => '/images/navbar/calendar.svg',
1498
            'pages' => [
1499
                [
1500
                    'label' => 'LABEL_MY_COACH',
1501
                    'route' => 'my-coach',
1502
                    'class' => '/images/navbar/calendar.svg',
1503
                ],
1504
                [
1505
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1506
                    'route' => 'knowledge-area',
1507
                    'class' => '/images/navbar/calendar.svg',
1508
                ],
1509
                [
1510
                    'label' => 'LABEL_MICROLEARNING',
1511
                    'route' => 'microlearning',
1512
                    'class' => '/images/navbar/calendar.svg',
191 efrain 1513
       /*
167 efrain 1514
                    'pages' => [
1515
                        [
1516
                            'label' => 'LABEL_HOME',
1517
                            'route' => 'microlearning',
1518
                            'class' => '/images/navbar/calendar.svg',
1519
                        ],
1520
                        [
1521
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1522
                            'route' => 'microlearning/topics',
1523
                            'class' => '/images/navbar/calendar.svg',
1524
                        ],
1525
                        [
1526
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1527
                            'route' => 'microlearning/timeline',
1528
                            'class' => '/images/navbar/calendar.svg',
1529
                        ],
1530
                        [
1531
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1532
                            'route' => 'microlearning/companies',
1533
                            'class' => '/images/navbar/calendar.svg',
1534
                        ],
1535
                        [
1536
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1537
                            'route' => 'microlearning/profile',
1538
                            'class' => '/images/navbar/calendar.svg',
1539
                        ],
191 efrain 1540
                    ]*/
167 efrain 1541
                ],
1542
 
1543
            ]
1544
 
1545
 
1546
        ],
1 efrain 1547
    ];
1548
}
1549
 
1550
function getAclMenuNonDefaulNetworkConnectionUser2User()
1551
{
1552
    return [
1553
        [
1554
            'label' => 'LABEL_HOME',
1555
            'route' => 'dashboard',
1556
            'class' => '/images/navbar/home.svg',
1557
        ],
1558
        [
1559
            'label' => 'LABEL_PROFILE',
1560
            'route' => 'profile',
1561
            'class' => '/images/navbar/perfil.svg',
1562
            'pages' => [
1563
                [
1564
                    'label' => 'LABEL_CONNECTIONS',
1565
                    'route' => 'connection',
1566
                    //'class' =>'/images/navbar/conexion.svg',
1567
                    'pages' => [
1568
                        [
1569
                            'label' => 'LABEL_MY_CONNECTIONS',
1570
                            'route' => 'connection/my-connections'
1571
                        ],
1572
                        [
1573
                            'label' => 'LABEL_INVITATIONS_SENT',
1574
                            'route' => 'connection/invitations-sent'
1575
                        ],
1576
                        [
1577
                            'label' => 'LABEL_INVITATIONS_RECEIVED',
1578
                            'route' => 'connection/invitations-received'
1579
                        ],
1580
                        [
1581
                            'label' => 'LABEL_PEOPLE_YOU_MAY_KNOW',
1582
                            'route' => 'connection/people-you-may-know'
1583
                        ],
1584
                        [
1585
                            'label' => 'LABEL_PEOPLE_BLOCKED',
1586
                            'route' => 'connection/people-blocked'
1587
                        ],
1588
 
1589
 
1590
                    ]
1591
                ],
1592
                [
1593
                    'label' => 'LABEL_MY_PROFILES',
1594
                    'route' => 'profile/my-profiles'
1595
                ],
1596
                [
1597
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1598
                    'route' => 'profile/people-viewed-profile'
1599
                ],
1600
 
1601
            ]
1602
        ],
1603
 
1604
        [
1605
            'label' => 'LABEL_COMPANY',
1606
            'route' => 'company',
1607
            'class' => '/images/navbar/empresa.svg',
1608
 
1609
        ],
1610
 
1611
        [
1612
            'label' => 'LABEL_GROUPS',
1613
            'route' => 'group',
1614
            'class' => '/images/navbar/grupos.svg',
1615
            'pages' => [
1616
                [
1617
                    'label' => 'LABEL_MY_GROUPS',
1618
                    'route' => 'group/my-groups'
1619
                ],
1620
                [
1621
                    'label' => 'LABEL_JOINED_GROUPS',
1622
                    'route' => 'group/joined-groups'
1623
                ],
1624
                [
1625
                    'label' => 'LABEL_REQUESTS_SENT',
1626
                    'route' => 'group/requests-sent'
1627
                ],
1628
                [
1629
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1630
                    'route' => 'group/invitations-received'
1631
                ]
1632
            ]
1633
        ],
1634
        [
1635
            'label' => 'LABEL_MARKETPLACE',
1636
            'route' => 'marketplace',
1637
            'class' => '/images/navbar/market-place.svg',
1638
        ],
167 efrain 1639
 
1640
 
1 efrain 1641
        [
167 efrain 1642
            'label' => 'LABEL_COMMUNICATION',
1643
            'route' => 'communication',
1 efrain 1644
            'class' => '/images/navbar/calendar.svg',
167 efrain 1645
            'pages' => [
1646
                [
1647
                    'label' => 'LABEL_CALENDAR',
1648
                    'route' => 'calendar',
1649
                    'class' => '/images/navbar/calendar.svg',
1650
                ],
1651
                [
1652
                    'label' => 'LABEL_INMAIL',
1653
                    'route' => 'inmail',
1654
                    'class' => '/images/navbar/calendar.svg',
1655
                ],
1656
                [
1657
                    'label' => 'LABEL_CHAT',
1658
                    'route' => 'chat',
1659
                    'class' => '/images/navbar/calendar.svg',
1660
                ],
1661
                [
1662
                    'label' => 'LABEL_NOTIFICATIONS',
1663
                    'route' => 'notifications',
1664
                    'class' => '/images/navbar/calendar.svg',
1665
                ],
1666
            ],
1 efrain 1667
        ],
167 efrain 1668
 
1669
        [
1670
            'label' => 'LABEL_KNOWLEDGE',
1671
            'route' => 'knowledge',
1672
            'class' => '/images/navbar/calendar.svg',
1673
            'pages' => [
1674
                [
1675
                    'label' => 'LABEL_MY_COACH',
1676
                    'route' => 'my-coach',
1677
                    'class' => '/images/navbar/calendar.svg',
1678
                ],
1679
                [
1680
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1681
                    'route' => 'knowledge-area',
1682
                    'class' => '/images/navbar/calendar.svg',
1683
                ],
1684
                [
1685
                    'label' => 'LABEL_MICROLEARNING',
1686
                    'route' => 'microlearning',
1687
                    'class' => '/images/navbar/calendar.svg',
191 efrain 1688
       /*
167 efrain 1689
                    'pages' => [
1690
                        [
1691
                            'label' => 'LABEL_HOME',
1692
                            'route' => 'microlearning',
1693
                            'class' => '/images/navbar/calendar.svg',
1694
                        ],
1695
                        [
1696
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1697
                            'route' => 'microlearning/topics',
1698
                            'class' => '/images/navbar/calendar.svg',
1699
                        ],
1700
                        [
1701
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1702
                            'route' => 'microlearning/timeline',
1703
                            'class' => '/images/navbar/calendar.svg',
1704
                        ],
1705
                        [
1706
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1707
                            'route' => 'microlearning/companies',
1708
                            'class' => '/images/navbar/calendar.svg',
1709
                        ],
1710
                        [
1711
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1712
                            'route' => 'microlearning/profile',
1713
                            'class' => '/images/navbar/calendar.svg',
1714
                        ],
191 efrain 1715
                    ]*/
167 efrain 1716
                ],
1717
 
1718
            ]
1719
 
1720
 
1721
        ],
1 efrain 1722
    ];
1723
}
1724
 
1725
function getAclMenuNonDefaultNetworkConnectionAll2All()
1726
{
1727
    return [
1728
        [
1729
            'label' => 'LABEL_HOME',
1730
            'route' => 'dashboard',
1731
            'class' => '/images/navbar/home.svg',
1732
        ],
1733
        [
1734
            'label' => 'LABEL_PROFILE',
1735
            'route' => 'profile',
1736
            'class' => '/images/navbar/perfil.svg',
1737
            'pages' => [
1738
                [
1739
                    'label' => 'LABEL_MY_CONNECTIONS',
1740
                    'route' => 'connection/my-connections'
1741
                ],
1742
                [
1743
                    'label' => 'LABEL_MY_PROFILES',
1744
                    'route' => 'profile/my-profiles'
1745
                ],
1746
                [
1747
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1748
                    'route' => 'profile/people-viewed-profile'
1749
                ],
1750
 
1751
            ]
1752
        ],
1753
 
1754
        [
1755
            'label' => 'LABEL_COMPANY',
1756
            'route' => 'company',
1757
            'class' => '/images/navbar/empresa.svg',
1758
 
1759
        ],
1760
 
1761
 
1762
        [
1763
            'label' => 'LABEL_GROUPS',
1764
            'route' => 'group',
1765
            'class' => '/images/navbar/grupos.svg',
1766
            'pages' => [
1767
                [
1768
                    'label' => 'LABEL_MY_GROUPS',
1769
                    'route' => 'group/my-groups'
1770
                ],
1771
                [
1772
                    'label' => 'LABEL_JOINED_GROUPS',
1773
                    'route' => 'group/joined-groups'
1774
                ],
1775
                [
1776
                    'label' => 'LABEL_REQUESTS_SENT',
1777
                    'route' => 'group/requests-sent'
1778
                ],
1779
                [
1780
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1781
                    'route' => 'group/invitations-received'
1782
                ]
1783
            ]
1784
        ],
1785
        [
1786
            'label' => 'LABEL_MARKETPLACE',
1787
            'route' => 'marketplace',
1788
            'class' => '/images/navbar/market-place.svg',
1789
        ],
167 efrain 1790
 
1791
 
1 efrain 1792
        [
167 efrain 1793
            'label' => 'LABEL_COMMUNICATION',
1794
            'route' => 'communication',
1 efrain 1795
            'class' => '/images/navbar/calendar.svg',
167 efrain 1796
            'pages' => [
1797
                [
1798
                    'label' => 'LABEL_CALENDAR',
1799
                    'route' => 'calendar',
1800
                    'class' => '/images/navbar/calendar.svg',
1801
                ],
1802
                [
1803
                    'label' => 'LABEL_INMAIL',
1804
                    'route' => 'inmail',
1805
                    'class' => '/images/navbar/calendar.svg',
1806
                ],
1807
                [
1808
                    'label' => 'LABEL_CHAT',
1809
                    'route' => 'chat',
1810
                    'class' => '/images/navbar/calendar.svg',
1811
                ],
1812
                [
1813
                    'label' => 'LABEL_NOTIFICATIONS',
1814
                    'route' => 'notifications',
1815
                    'class' => '/images/navbar/calendar.svg',
1816
                ],
1817
            ],
1 efrain 1818
        ],
167 efrain 1819
 
1820
        [
1821
            'label' => 'LABEL_KNOWLEDGE',
1822
            'route' => 'knowledge',
1823
            'class' => '/images/navbar/calendar.svg',
1824
            'pages' => [
1825
                [
1826
                    'label' => 'LABEL_MY_COACH',
1827
                    'route' => 'my-coach',
1828
                    'class' => '/images/navbar/calendar.svg',
1829
                ],
1830
                [
1831
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1832
                    'route' => 'knowledge-area',
1833
                    'class' => '/images/navbar/calendar.svg',
1834
                ],
1835
                [
1836
                    'label' => 'LABEL_MICROLEARNING',
1837
                    'route' => 'microlearning',
1838
                    'class' => '/images/navbar/calendar.svg',
191 efrain 1839
                    /*
167 efrain 1840
 
1841
                    'pages' => [
1842
                        [
1843
                            'label' => 'LABEL_HOME',
1844
                            'route' => 'microlearning',
1845
                            'class' => '/images/navbar/calendar.svg',
1846
                        ],
1847
                        [
1848
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1849
                            'route' => 'microlearning/topics',
1850
                            'class' => '/images/navbar/calendar.svg',
1851
                        ],
1852
                        [
1853
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1854
                            'route' => 'microlearning/timeline',
1855
                            'class' => '/images/navbar/calendar.svg',
1856
                        ],
1857
                        [
1858
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1859
                            'route' => 'microlearning/companies',
1860
                            'class' => '/images/navbar/calendar.svg',
1861
                        ],
1862
                        [
1863
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1864
                            'route' => 'microlearning/profile',
1865
                            'class' => '/images/navbar/calendar.svg',
1866
                        ],
191 efrain 1867
                    ]*/
167 efrain 1868
                ],
1869
 
1870
            ]
1871
 
1872
 
1873
        ],
1 efrain 1874
    ];
1875
}