Proyectos de Subversion LeadersLinked - Services

Rev

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