Proyectos de Subversion LeadersLinked - Services

Rev

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