Proyectos de Subversion LeadersLinked - Services

Rev

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