Proyectos de Subversion LeadersLinked - Services

Rev

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

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