Proyectos de Subversion LeadersLinked - Services

Rev

Rev 702 | 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',
706 stevensc 210
        'inmail/messages',
211
        'inmail/messages/send',
212
        'inmail/messages/delete',
213
        'inmail/messages/get',
214
        'inmail/messages/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',
591 stevensc 339
        'microlearning/get-slide',
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',
591 stevensc 465
        'microlearning/get-slide',
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',
617 ariadna 797
            'helpers/timezones',
1 efrain 798
            'helpers/next-events',
799
            'helpers/menu',
800
            'helpers/company-sizes',
801
            'helpers/degrees',
802
            'helpers/languages',
803
            'helpers/skills',
804
            'helpers/aptitudes',
805
            'helpers/hobbies',
806
            'helpers/industries',
192 efrain 807
            'helpers/abuse-report',
352 ariadna 808
 
192 efrain 809
            'abuse-report',
810
            'abuse-report/view',
352 ariadna 811
 
624 stevensc 812
 
1 efrain 813
            'marketplace',
814
            'marketplace/categories',
815
            'marketplace/enroll',
816
            'marketplace/claim',
817
            'marketplace/join',
818
            'marketplace/buy',
624 stevensc 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',
706 stevensc 832
            'inmail/messages',
833
            'inmail/messages/send',
834
            'inmail/messages/delete',
835
            'inmail/messages/get',
836
            'inmail/messages/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',
617 ariadna 1037
            'helpers/timezones',
1 efrain 1038
            'helpers/next-events',
1039
            'helpers/menu',
1040
            'helpers/company-sizes',
1041
            'helpers/degrees',
1042
            'helpers/languages',
1043
            'helpers/skills',
1044
            'helpers/aptitudes',
1045
            'helpers/hobbies',
1046
            'helpers/industries',
192 efrain 1047
            'helpers/abuse-report',
352 ariadna 1048
 
192 efrain 1049
            'abuse-report',
1050
            'abuse-report/view',
352 ariadna 1051
 
624 stevensc 1052
 
1 efrain 1053
            'marketplace',
1054
            'marketplace/categories',
1055
            'marketplace/enroll',
1056
            'marketplace/claim',
1057
            'marketplace/join',
1058
            'marketplace/buy',
624 stevensc 1059
 
1 efrain 1060
            'calendar',
1061
            'calendar/events',
352 ariadna 1062
 
283 www 1063
            'inmail',
1064
            'inmail/user',
1065
            'inmail/user/block',
706 stevensc 1066
            'inmail/messages',
1067
            'inmail/messages/send',
1068
            'inmail/messages/delete',
1069
            'inmail/messages/get',
1070
            'inmail/messages/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',
617 ariadna 1123
            'helpers/timezones',
1 efrain 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',
617 ariadna 1157
            'helpers',
1158
            'helpers/timezones',
1 efrain 1159
            'oauth/facebook',
1160
            'oauth/facebook/cancel',
1161
            'oauth/facebook/delete',
1162
            'oauth/twitter',
1163
            'oauth/google',
1164
            'oauth/instagram',
352 ariadna 1165
 
1 efrain 1166
            'services',
1167
            'services/device',
1168
            'services/fcm',
1169
            'services/signin',
1170
            'services/signout',
1171
        ],
1172
    ];
1173
}
1174
 
1175
function getAclMenuDefaultNetworkConnectionUser2User()
1176
{
1177
    return [
1178
        [
1179
            'label' => 'LABEL_HOME',
1180
            'route' => 'dashboard',
1181
            'class' => '/images/navbar/home.svg',
1182
        ],
1183
        [
1184
            'label' => 'LABEL_PROFILE',
1185
            'route' => 'profile',
1186
            'class' => '/images/navbar/perfil.svg',
1187
            'pages' => [
1188
                [
1189
                    'label' => 'LABEL_CONNECTIONS',
1190
                    'route' => 'connection',
1191
                    //'class' =>'/images/navbar/conexion.svg',
1192
                    'pages' => [
1193
                        [
1194
                            'label' => 'LABEL_MY_CONNECTIONS',
1195
                            'route' => 'connection/my-connections'
1196
                        ],
1197
                        [
1198
                            'label' => 'LABEL_INVITATIONS_SENT',
1199
                            'route' => 'connection/invitations-sent'
1200
                        ],
1201
                        [
1202
                            'label' => 'LABEL_INVITATIONS_RECEIVED',
1203
                            'route' => 'connection/invitations-received'
1204
                        ],
1205
                        [
1206
                            'label' => 'LABEL_PEOPLE_YOU_MAY_KNOW',
1207
                            'route' => 'connection/people-you-may-know'
1208
                        ],
1209
                        [
1210
                            'label' => 'LABEL_PEOPLE_BLOCKED',
1211
                            'route' => 'connection/people-blocked'
1212
                        ],
1213
 
1214
 
1215
                    ]
1216
                ],
1217
                [
1218
                    'label' => 'LABEL_MY_PROFILES',
1219
                    'route' => 'profile/my-profiles'
1220
                ],
1221
                [
1222
                    'label' => 'LABEL_JOBS',
1223
                    'route' => 'job',
1224
                    'pages' => [
1225
                        [
1226
                            'label' => 'LABEL_JOBS_APPLIED',
1227
                            'route' => 'job/applied-jobs'
1228
                        ],
1229
                        [
1230
                            'label' => 'LABEL_JOBS_SAVED',
1231
                            'route' => 'job/saved-jobs'
1232
                        ],
352 ariadna 1233
                    ]
1 efrain 1234
                ],
1235
 
352 ariadna 1236
 
1 efrain 1237
                [
1238
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1239
                    'route' => 'profile/people-viewed-profile'
1240
                ],
1241
 
1242
            ]
1243
        ],
1244
 
1245
 
1246
        [
1247
            'label' => 'LABEL_COMPANIES',
1248
            'route' => 'company',
1249
            'class' => '/images/navbar/empresa.svg',
1250
            'pages' => [
1251
                [
1252
                    'label' => 'LABEL_MY_COMPANIES',
1253
                    'route' => 'company/my-companies'
1254
                ],
1255
                [
1256
                    'label' => 'LABEL_COMPANIES_I_FOLLOW',
1257
                    'route' => 'company/following-companies'
1258
                ],
1259
                [
1260
                    'label' => 'LABEL_COMPANIES_I_WORK_WITH',
1261
                    'route' => 'company/i-work-with'
1262
                ],
1263
                [
1264
                    'label' => 'LABEL_REQUESTS_SENT',
1265
                    'route' => 'company/requests-sent'
1266
                ],
1267
                [
1268
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1269
                    'route' => 'company/invitations-received'
1270
                ]
1271
            ]
1272
        ],
1273
 
1274
        [
1275
            'label' => 'LABEL_GROUPS',
1276
            'route' => 'group',
1277
            'class' => '/images/navbar/grupos.svg',
1278
            'pages' => [
1279
                [
1280
                    'label' => 'LABEL_MY_GROUPS',
1281
                    'route' => 'group/my-groups'
1282
                ],
1283
                [
1284
                    'label' => 'LABEL_JOINED_GROUPS',
1285
                    'route' => 'group/joined-groups'
1286
                ],
1287
                [
1288
                    'label' => 'LABEL_REQUESTS_SENT',
1289
                    'route' => 'group/requests-sent'
1290
                ],
1291
                [
1292
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1293
                    'route' => 'group/invitations-received'
1294
                ]
1295
            ]
1296
        ],
624 stevensc 1297
 
1 efrain 1298
        [
1299
            'label' => 'LABEL_MARKETPLACE',
1300
            'route' => 'marketplace',
1301
            'class' => '/images/navbar/market-place.svg',
624 stevensc 1302
        ],
167 efrain 1303
 
352 ariadna 1304
 
1305
 
1 efrain 1306
        [
167 efrain 1307
            'label' => 'LABEL_COMMUNICATION',
1308
            'route' => 'communication',
1 efrain 1309
            'class' => '/images/navbar/calendar.svg',
167 efrain 1310
            'pages' => [
1311
                [
1312
                    'label' => 'LABEL_CALENDAR',
1313
                    'route' => 'calendar',
1314
                    'class' => '/images/navbar/calendar.svg',
1315
                ],
1316
                [
1317
                    'label' => 'LABEL_INMAIL',
1318
                    'route' => 'inmail',
1319
                    'class' => '/images/navbar/calendar.svg',
1320
                ],
1321
                [
1322
                    'label' => 'LABEL_CHAT',
1323
                    'route' => 'chat',
1324
                    'class' => '/images/navbar/calendar.svg',
1325
                ],
1326
                [
1327
                    'label' => 'LABEL_NOTIFICATIONS',
1328
                    'route' => 'notifications',
1329
                    'class' => '/images/navbar/calendar.svg',
1330
                ],
1331
            ],
1 efrain 1332
        ],
352 ariadna 1333
 
167 efrain 1334
        [
1335
            'label' => 'LABEL_KNOWLEDGE',
1336
            'route' => 'knowledge',
1337
            'class' => '/images/navbar/calendar.svg',
1338
            'pages' => [
1339
                [
1340
                    'label' => 'LABEL_MY_COACH',
1341
                    'route' => 'my-coach',
1342
                    'class' => '/images/navbar/calendar.svg',
1343
                ],
1344
                [
1345
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1346
                    'route' => 'knowledge-area',
1347
                    'class' => '/images/navbar/calendar.svg',
1348
                ],
1349
                [
1350
                    'label' => 'LABEL_MICROLEARNING',
1351
                    'route' => 'microlearning',
1352
                    'class' => '/images/navbar/calendar.svg',
191 efrain 1353
                    /*
167 efrain 1354
                    'pages' => [
1355
                        [
1356
                            'label' => 'LABEL_HOME',
1357
                            'route' => 'microlearning',
1358
                            'class' => '/images/navbar/calendar.svg',
1359
                        ],
1360
                        [
1361
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1362
                            'route' => 'microlearning/topics',
1363
                            'class' => '/images/navbar/calendar.svg',
1364
                        ],
1365
                        [
1366
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1367
                            'route' => 'microlearning/timeline',
1368
                            'class' => '/images/navbar/calendar.svg',
1369
                        ],
1370
                        [
1371
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1372
                            'route' => 'microlearning/companies',
1373
                            'class' => '/images/navbar/calendar.svg',
1374
                        ],
1375
                        [
1376
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1377
                            'route' => 'microlearning/profile',
1378
                            'class' => '/images/navbar/calendar.svg',
1379
                        ],
191 efrain 1380
                    ]*/
167 efrain 1381
                ],
302 www 1382
                [
1383
                    'label' => 'LABEL_HABITS',
1384
                    'route' => 'habits',
1385
                    'class' => '/images/navbar/calendar.svg',
352 ariadna 1386
                ]
1387
 
1388
            ]
1389
 
1390
 
167 efrain 1391
        ],
1 efrain 1392
 
352 ariadna 1393
 
1 efrain 1394
    ];
1395
}
1396
 
1397
function getAclMenuDefaultNetworkConnectionAll2All()
1398
{
1399
    return [
1400
        [
1401
            'label' => 'LABEL_HOME',
1402
            'route' => 'dashboard',
1403
            'class' => '/images/navbar/home.svg',
1404
        ],
1405
        [
1406
            'label' => 'LABEL_PROFILE',
1407
            'route' => 'profile',
1408
            'class' => '/images/navbar/perfil.svg',
1409
            'pages' => [
1410
                [
1411
                    'label' => 'LABEL_MY_CONNECTIONS',
1412
                    'route' => 'connection/my-connections',
1413
                ],
1414
                [
1415
                    'label' => 'LABEL_MY_PROFILES',
1416
                    'route' => 'profile/my-profiles'
1417
                ],
1418
                [
1419
                    'label' => 'LABEL_JOBS_APPLIED',
1420
                    'route' => 'job/applied-jobs'
1421
                ],
1422
                [
1423
                    'label' => 'LABEL_JOBS_SAVED',
1424
                    'route' => 'job/saved-jobs'
1425
                ],
1426
                [
1427
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1428
                    'route' => 'profile/people-viewed-profile'
1429
                ],
1430
 
1431
            ]
1432
        ],
1433
 
1434
 
1435
        [
1436
            'label' => 'LABEL_COMPANIES',
1437
            'route' => 'company',
1438
            'class' => '/images/navbar/empresa.svg',
1439
            'pages' => [
1440
                [
1441
                    'label' => 'LABEL_MY_COMPANIES',
1442
                    'route' => 'company/my-companies'
1443
                ],
1444
                [
1445
                    'label' => 'LABEL_COMPANIES_I_FOLLOW',
1446
                    'route' => 'company/following-companies'
1447
                ],
1448
                [
1449
                    'label' => 'LABEL_COMPANIES_I_WORK_WITH',
1450
                    'route' => 'company/i-work-with'
1451
                ],
1452
                [
1453
                    'label' => 'LABEL_REQUESTS_SENT',
1454
                    'route' => 'company/requests-sent'
1455
                ],
1456
                [
1457
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1458
                    'route' => 'company/invitations-received'
1459
                ]
1460
            ]
1461
        ],
1462
 
1463
        [
1464
            'label' => 'LABEL_GROUPS',
1465
            'route' => 'group',
1466
            'class' => '/images/navbar/grupos.svg',
1467
            'pages' => [
1468
                [
1469
                    'label' => 'LABEL_MY_GROUPS',
1470
                    'route' => 'group/my-groups'
1471
                ],
1472
                [
1473
                    'label' => 'LABEL_JOINED_GROUPS',
1474
                    'route' => 'group/joined-groups'
1475
                ],
1476
                [
1477
                    'label' => 'LABEL_REQUESTS_SENT',
1478
                    'route' => 'group/requests-sent'
1479
                ],
1480
                [
1481
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1482
                    'route' => 'group/invitations-received'
1483
                ]
1484
            ]
1485
        ],
1486
        [
1487
            'label' => 'LABEL_MARKETPLACE',
1488
            'route' => 'marketplace',
1489
            'class' => '/images/navbar/market-place.svg',
1490
        ],
167 efrain 1491
 
352 ariadna 1492
 
1 efrain 1493
        [
167 efrain 1494
            'label' => 'LABEL_COMMUNICATION',
1495
            'route' => 'communication',
1 efrain 1496
            'class' => '/images/navbar/calendar.svg',
167 efrain 1497
            'pages' => [
1498
                [
1499
                    'label' => 'LABEL_CALENDAR',
1500
                    'route' => 'calendar',
1501
                    'class' => '/images/navbar/calendar.svg',
1502
                ],
1503
                [
1504
                    'label' => 'LABEL_INMAIL',
617 ariadna 1505
                    'route' => 'inmail',
167 efrain 1506
                    'class' => '/images/navbar/calendar.svg',
1507
                ],
1508
                [
1509
                    'label' => 'LABEL_CHAT',
1510
                    'route' => 'chat',
1511
                    'class' => '/images/navbar/calendar.svg',
1512
                ],
1513
                [
1514
                    'label' => 'LABEL_NOTIFICATIONS',
1515
                    'route' => 'notifications',
1516
                    'class' => '/images/navbar/calendar.svg',
1517
                ],
1518
            ],
1 efrain 1519
        ],
352 ariadna 1520
 
167 efrain 1521
        [
1522
            'label' => 'LABEL_KNOWLEDGE',
1523
            'route' => 'knowledge',
1524
            'class' => '/images/navbar/calendar.svg',
1525
            'pages' => [
1526
                [
1527
                    'label' => 'LABEL_MY_COACH',
1528
                    'route' => 'my-coach',
1529
                    'class' => '/images/navbar/calendar.svg',
1530
                ],
1531
                [
1532
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1533
                    'route' => 'knowledge-area',
1534
                    'class' => '/images/navbar/calendar.svg',
1535
                ],
1536
                [
1537
                    'label' => 'LABEL_MICROLEARNING',
1538
                    'route' => 'microlearning',
1539
                    'class' => '/images/navbar/calendar.svg',
352 ariadna 1540
                    /*
167 efrain 1541
                    'pages' => [
1542
                        [
1543
                            'label' => 'LABEL_HOME',
1544
                            'route' => 'microlearning',
1545
                            'class' => '/images/navbar/calendar.svg',
1546
                        ],
1547
                        [
1548
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1549
                            'route' => 'microlearning/topics',
1550
                            'class' => '/images/navbar/calendar.svg',
1551
                        ],
1552
                        [
1553
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1554
                            'route' => 'microlearning/timeline',
1555
                            'class' => '/images/navbar/calendar.svg',
1556
                        ],
1557
                        [
1558
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1559
                            'route' => 'microlearning/companies',
1560
                            'class' => '/images/navbar/calendar.svg',
1561
                        ],
1562
                        [
1563
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1564
                            'route' => 'microlearning/profile',
1565
                            'class' => '/images/navbar/calendar.svg',
1566
                        ],
191 efrain 1567
                    ]*/
167 efrain 1568
                ],
352 ariadna 1569
 
167 efrain 1570
            ]
352 ariadna 1571
 
1572
 
167 efrain 1573
        ],
1 efrain 1574
    ];
1575
}
1576
 
1577
function getAclMenuNonDefaulNetworkConnectionUser2User()
1578
{
1579
    return [
1580
        [
1581
            'label' => 'LABEL_HOME',
1582
            'route' => 'dashboard',
1583
            'class' => '/images/navbar/home.svg',
1584
        ],
1585
        [
1586
            'label' => 'LABEL_PROFILE',
1587
            'route' => 'profile',
1588
            'class' => '/images/navbar/perfil.svg',
1589
            'pages' => [
1590
                [
1591
                    'label' => 'LABEL_CONNECTIONS',
1592
                    'route' => 'connection',
1593
                    //'class' =>'/images/navbar/conexion.svg',
1594
                    'pages' => [
1595
                        [
1596
                            'label' => 'LABEL_MY_CONNECTIONS',
1597
                            'route' => 'connection/my-connections'
1598
                        ],
1599
                        [
1600
                            'label' => 'LABEL_INVITATIONS_SENT',
1601
                            'route' => 'connection/invitations-sent'
1602
                        ],
1603
                        [
1604
                            'label' => 'LABEL_INVITATIONS_RECEIVED',
1605
                            'route' => 'connection/invitations-received'
1606
                        ],
1607
                        [
1608
                            'label' => 'LABEL_PEOPLE_YOU_MAY_KNOW',
1609
                            'route' => 'connection/people-you-may-know'
1610
                        ],
1611
                        [
1612
                            'label' => 'LABEL_PEOPLE_BLOCKED',
1613
                            'route' => 'connection/people-blocked'
1614
                        ],
1615
 
1616
 
1617
                    ]
1618
                ],
1619
                [
1620
                    'label' => 'LABEL_MY_PROFILES',
1621
                    'route' => 'profile/my-profiles'
1622
                ],
1623
                [
1624
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1625
                    'route' => 'profile/people-viewed-profile'
1626
                ],
1627
 
1628
            ]
1629
        ],
1630
 
1631
        [
1632
            'label' => 'LABEL_COMPANY',
1633
            'route' => 'company',
1634
            'class' => '/images/navbar/empresa.svg',
1635
 
1636
        ],
1637
 
1638
        [
1639
            'label' => 'LABEL_GROUPS',
1640
            'route' => 'group',
1641
            'class' => '/images/navbar/grupos.svg',
1642
            'pages' => [
1643
                [
1644
                    'label' => 'LABEL_MY_GROUPS',
1645
                    'route' => 'group/my-groups'
1646
                ],
1647
                [
1648
                    'label' => 'LABEL_JOINED_GROUPS',
1649
                    'route' => 'group/joined-groups'
1650
                ],
1651
                [
1652
                    'label' => 'LABEL_REQUESTS_SENT',
1653
                    'route' => 'group/requests-sent'
1654
                ],
1655
                [
1656
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1657
                    'route' => 'group/invitations-received'
1658
                ]
1659
            ]
1660
        ],
1661
        [
1662
            'label' => 'LABEL_MARKETPLACE',
1663
            'route' => 'marketplace',
1664
            'class' => '/images/navbar/market-place.svg',
1665
        ],
167 efrain 1666
 
352 ariadna 1667
 
1 efrain 1668
        [
167 efrain 1669
            'label' => 'LABEL_COMMUNICATION',
1670
            'route' => 'communication',
1 efrain 1671
            'class' => '/images/navbar/calendar.svg',
167 efrain 1672
            'pages' => [
1673
                [
1674
                    'label' => 'LABEL_CALENDAR',
1675
                    'route' => 'calendar',
1676
                    'class' => '/images/navbar/calendar.svg',
1677
                ],
1678
                [
1679
                    'label' => 'LABEL_INMAIL',
1680
                    'route' => 'inmail',
1681
                    'class' => '/images/navbar/calendar.svg',
1682
                ],
1683
                [
1684
                    'label' => 'LABEL_CHAT',
1685
                    'route' => 'chat',
1686
                    'class' => '/images/navbar/calendar.svg',
1687
                ],
1688
                [
1689
                    'label' => 'LABEL_NOTIFICATIONS',
1690
                    'route' => 'notifications',
1691
                    'class' => '/images/navbar/calendar.svg',
1692
                ],
1693
            ],
1 efrain 1694
        ],
352 ariadna 1695
 
167 efrain 1696
        [
1697
            'label' => 'LABEL_KNOWLEDGE',
1698
            'route' => 'knowledge',
1699
            'class' => '/images/navbar/calendar.svg',
1700
            'pages' => [
1701
                [
1702
                    'label' => 'LABEL_MY_COACH',
1703
                    'route' => 'my-coach',
1704
                    'class' => '/images/navbar/calendar.svg',
1705
                ],
1706
                [
1707
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1708
                    'route' => 'knowledge-area',
1709
                    'class' => '/images/navbar/calendar.svg',
1710
                ],
1711
                [
1712
                    'label' => 'LABEL_MICROLEARNING',
1713
                    'route' => 'microlearning',
1714
                    'class' => '/images/navbar/calendar.svg',
352 ariadna 1715
                    /*
167 efrain 1716
                    'pages' => [
1717
                        [
1718
                            'label' => 'LABEL_HOME',
1719
                            'route' => 'microlearning',
1720
                            'class' => '/images/navbar/calendar.svg',
1721
                        ],
1722
                        [
1723
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1724
                            'route' => 'microlearning/topics',
1725
                            'class' => '/images/navbar/calendar.svg',
1726
                        ],
1727
                        [
1728
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1729
                            'route' => 'microlearning/timeline',
1730
                            'class' => '/images/navbar/calendar.svg',
1731
                        ],
1732
                        [
1733
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1734
                            'route' => 'microlearning/companies',
1735
                            'class' => '/images/navbar/calendar.svg',
1736
                        ],
1737
                        [
1738
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1739
                            'route' => 'microlearning/profile',
1740
                            'class' => '/images/navbar/calendar.svg',
1741
                        ],
191 efrain 1742
                    ]*/
167 efrain 1743
                ],
352 ariadna 1744
 
167 efrain 1745
            ]
352 ariadna 1746
 
1747
 
167 efrain 1748
        ],
1 efrain 1749
    ];
1750
}
1751
 
1752
function getAclMenuNonDefaultNetworkConnectionAll2All()
1753
{
1754
    return [
1755
        [
1756
            'label' => 'LABEL_HOME',
1757
            'route' => 'dashboard',
1758
            'class' => '/images/navbar/home.svg',
1759
        ],
1760
        [
1761
            'label' => 'LABEL_PROFILE',
1762
            'route' => 'profile',
1763
            'class' => '/images/navbar/perfil.svg',
1764
            'pages' => [
1765
                [
1766
                    'label' => 'LABEL_MY_CONNECTIONS',
1767
                    'route' => 'connection/my-connections'
1768
                ],
1769
                [
1770
                    'label' => 'LABEL_MY_PROFILES',
1771
                    'route' => 'profile/my-profiles'
1772
                ],
1773
                [
1774
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1775
                    'route' => 'profile/people-viewed-profile'
1776
                ],
1777
 
1778
            ]
1779
        ],
1780
 
1781
        [
1782
            'label' => 'LABEL_COMPANY',
1783
            'route' => 'company',
1784
            'class' => '/images/navbar/empresa.svg',
1785
 
1786
        ],
1787
 
1788
 
1789
        [
1790
            'label' => 'LABEL_GROUPS',
1791
            'route' => 'group',
1792
            'class' => '/images/navbar/grupos.svg',
1793
            'pages' => [
1794
                [
1795
                    'label' => 'LABEL_MY_GROUPS',
1796
                    'route' => 'group/my-groups'
1797
                ],
1798
                [
1799
                    'label' => 'LABEL_JOINED_GROUPS',
1800
                    'route' => 'group/joined-groups'
1801
                ],
1802
                [
1803
                    'label' => 'LABEL_REQUESTS_SENT',
1804
                    'route' => 'group/requests-sent'
1805
                ],
1806
                [
1807
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1808
                    'route' => 'group/invitations-received'
1809
                ]
1810
            ]
1811
        ],
1812
        [
1813
            'label' => 'LABEL_MARKETPLACE',
1814
            'route' => 'marketplace',
1815
            'class' => '/images/navbar/market-place.svg',
1816
        ],
167 efrain 1817
 
352 ariadna 1818
 
1 efrain 1819
        [
167 efrain 1820
            'label' => 'LABEL_COMMUNICATION',
1821
            'route' => 'communication',
1 efrain 1822
            'class' => '/images/navbar/calendar.svg',
167 efrain 1823
            'pages' => [
1824
                [
1825
                    'label' => 'LABEL_CALENDAR',
1826
                    'route' => 'calendar',
1827
                    'class' => '/images/navbar/calendar.svg',
1828
                ],
1829
                [
1830
                    'label' => 'LABEL_INMAIL',
1831
                    'route' => 'inmail',
1832
                    'class' => '/images/navbar/calendar.svg',
1833
                ],
1834
                [
1835
                    'label' => 'LABEL_CHAT',
1836
                    'route' => 'chat',
1837
                    'class' => '/images/navbar/calendar.svg',
1838
                ],
1839
                [
1840
                    'label' => 'LABEL_NOTIFICATIONS',
1841
                    'route' => 'notifications',
1842
                    'class' => '/images/navbar/calendar.svg',
1843
                ],
1844
            ],
1 efrain 1845
        ],
352 ariadna 1846
 
167 efrain 1847
        [
1848
            'label' => 'LABEL_KNOWLEDGE',
1849
            'route' => 'knowledge',
1850
            'class' => '/images/navbar/calendar.svg',
1851
            'pages' => [
1852
                [
1853
                    'label' => 'LABEL_MY_COACH',
1854
                    'route' => 'my-coach',
1855
                    'class' => '/images/navbar/calendar.svg',
1856
                ],
1857
                [
1858
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1859
                    'route' => 'knowledge-area',
1860
                    'class' => '/images/navbar/calendar.svg',
1861
                ],
1862
                [
1863
                    'label' => 'LABEL_MICROLEARNING',
1864
                    'route' => 'microlearning',
1865
                    'class' => '/images/navbar/calendar.svg',
191 efrain 1866
                    /*
167 efrain 1867
 
1868
                    'pages' => [
1869
                        [
1870
                            'label' => 'LABEL_HOME',
1871
                            'route' => 'microlearning',
1872
                            'class' => '/images/navbar/calendar.svg',
1873
                        ],
1874
                        [
1875
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1876
                            'route' => 'microlearning/topics',
1877
                            'class' => '/images/navbar/calendar.svg',
1878
                        ],
1879
                        [
1880
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1881
                            'route' => 'microlearning/timeline',
1882
                            'class' => '/images/navbar/calendar.svg',
1883
                        ],
1884
                        [
1885
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1886
                            'route' => 'microlearning/companies',
1887
                            'class' => '/images/navbar/calendar.svg',
1888
                        ],
1889
                        [
1890
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1891
                            'route' => 'microlearning/profile',
1892
                            'class' => '/images/navbar/calendar.svg',
1893
                        ],
191 efrain 1894
                    ]*/
167 efrain 1895
                ],
352 ariadna 1896
 
167 efrain 1897
            ]
352 ariadna 1898
 
1899
 
167 efrain 1900
        ],
1 efrain 1901
    ];
1902
}