Proyectos de Subversion LeadersLinked - Services

Rev

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