Proyectos de Subversion LeadersLinked - Services

Rev

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