Proyectos de Subversion LeadersLinked - Services

Rev

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