Proyectos de Subversion LeadersLinked - Services

Rev

Rev 776 | | 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
 
794 stevensc 867
            'habits',
868
            'habits/aspect-daily-log',
869
 
870
            'habits/values',
871
            'habits/values/add',
872
            'habits/values/edit',
873
            'habits/values/delete',
874
 
875
            'habits/paradigms',
876
            'habits/paradigms/add',
877
            'habits/paradigms/edit',
878
            'habits/paradigms/delete',
879
 
880
            'habits/purposes',
881
            'habits/purposes/add',
882
            'habits/purposes/edit',
883
            'habits/purposes/delete',
884
 
885
            'habits/skills',
886
            'habits/skills/add',
887
            'habits/skills/edit',
888
            'habits/skills/delete',
889
 
890
            'habits/skills/registers',
891
            'habits/skills/registers/add',
892
            'habits/skills/registers/edit',
893
            'habits/skills/registers/delete',
894
 
895
            'habits/reports',
896
 
897
            'habits/goals',
898
            'habits/goals/add',
899
            'habits/goals/edit',
900
            'habits/goals/delete',
901
 
902
            'helpers',
903
            'helpers/habits-and-skills',
904
            'helpers/habits-and-skills/get',
905
            'helpers/habits-and-skills/my',
906
 
1 efrain 907
        ],
908
        UserType::USER => [
909
            'home',
333 www 910
            'storage',
766 stevensc 911
            'data-storage',
1 efrain 912
            'onroom',
283 www 913
            'cesams',
1 efrain 914
            'language',
754 stevensc 915
            'theme',
1 efrain 916
            'share',
917
            'share/increment-external-counter',
918
            'signin',
919
            'signin/facebook',
920
            'signin/twitter',
921
            'signin/google',
922
            'signin/impersonate',
177 efrain 923
            'signin/debug',
1 efrain 924
            'signout',
925
            'signup',
926
            'csrf',
927
            'check-session',
928
            'shorter',
929
            'shorter/generate',
930
            'notifications',
931
            'notifications/mark-read',
932
            'notifications/mark-all-read',
933
            'notifications/delete',
934
            'notifications/clear',
935
            'notifications/unreads',
936
            'professionalism-policy',
937
            'reset-password',
938
            'forgot-password',
939
            'activate-account',
940
            'privacy-policy',
941
            'terms-and-conditions',
942
            'cookies',
943
            'backend',
944
            'backend/signin-company',
945
            'oauth',
946
            'oauth/facebook',
947
            'oauth/facebook/cancel',
948
            'oauth/facebook/delete',
949
            'oauth/twitter',
950
            'oauth/google',
951
            'oauth/instagram',
952
            'paypal',
953
            'paypal/success',
954
            'paypal/cancel',
352 ariadna 955
 
956
 
1 efrain 957
            'services',
958
            'services/device',
959
            'services/fcm',
960
            'services/signin',
961
            'services/signout',
314 www 962
 
1 efrain 963
            'dashboard',
964
            'post',
965
            'post/comments',
966
            'post/comments/add',
967
            'post/comments/delete',
968
            'post/save-reaction',
969
            'post/delete-reaction',
242 efrain 970
            'post/reactions',
1 efrain 971
            'feed',
972
            'feed/timeline',
973
            'feed/add',
974
            'feed/delete',
975
            'feed/share',
976
            'feed/comment',
977
            'feed/comment/delete',
978
            'feed/save-reaction',
979
            'feed/delete-reaction',
980
            'feed/vote',
232 efrain 981
            'feed/reactions',
1 efrain 982
            'connection',
983
            'connection/my-connections',
984
            'connection/people-you-may-know',
985
            'connection/people-blocked',
986
            'connection/people-blocked/delete',
987
            'connection/invitations-sent',
988
            'connection/invitations-received',
989
            'connection/request',
990
            'connection/approve',
991
            'connection/reject',
992
            'connection/block',
993
            'connection/cancel',
994
            'connection/delete',
995
            'connection/unblock',
352 ariadna 996
 
1 efrain 997
            'account-settings',
998
            'account-settings/image',
999
            'account-settings/deactivate',
1000
            'account-settings/notifications',
1001
            'account-settings/password',
1002
            'account-settings/social-networks',
1003
            'account-settings/location',
1004
            'account-settings/privacy',
1005
            'account-settings/basic',
1006
            'account-settings/browsers',
1007
            'account-settings/ips',
1008
            'account-settings/devices',
1009
            'account-settings/transactions',
1010
            'account-settings/transactions/add-funds',
1011
            'account-settings/add-facebook',
1012
            'account-settings/remove-facebook',
1013
            'account-settings/add-twitter',
1014
            'account-settings/remove-twitter',
1015
            'account-settings/add-google',
1016
            'account-settings/remove-google',
1017
            'account-settings/delete-account',
352 ariadna 1018
 
1 efrain 1019
            'search',
1020
            'search/group',
1021
            'search/job',
1022
            'search/user',
1023
            'moodle',
1024
            'profile',
1025
            'profile/self-evaluation',
1026
            'profile/self-evaluation/take-a-test',
1027
            'profile/self-evaluation/report',
1028
            'profile/performance-evaluation',
1029
            'profile/performance-evaluation/take-a-test',
1030
            'profile/performance-evaluation/report',
1031
            'profile/microlearning',
1032
            'profile/microlearning/timeline',
1033
            'profile/microlearning/progress',
1034
            'profile/view',
1035
            'profile/people-viewed-profile',
1036
            'profile/my-profiles',
1037
            'profile/my-profiles/extended',
1038
            'profile/my-profiles/cover',
1039
            'profile/my-profiles/image',
1040
            'profile/my-profiles/experience',
1041
            'profile/my-profiles/education',
1042
            'profile/my-profiles/language',
1043
            'profile/my-profiles/location',
1044
            'profile/my-profiles/skill',
1045
            'profile/my-profiles/social-network',
1046
            'profile/my-profiles/aptitude',
1047
            'profile/my-profiles/hobby-and-interest',
1048
            'profile/my-profiles/add',
1049
            'profile/my-profiles/edit',
1050
            'profile/my-profiles/delete',
1051
            'group',
1052
            'group/view',
1053
            'group/request',
1054
            'group/leave',
1055
            'group/cancel',
1056
            'group/accept',
1057
            'group/reject',
1058
            'group/my-groups',
1059
            'group/my-groups/accessibility',
1060
            'group/my-groups/industry',
1061
            'group/my-groups/extended',
1062
            'group/my-groups/type',
1063
            'group/my-groups/users',
1064
            'group/my-groups/image',
1065
            'group/my-groups/cover',
1066
            'group/my-groups/website',
1067
            'group/my-groups/privacy',
1068
            'group/my-groups/add',
1069
            'group/my-groups/edit',
1070
            'group/my-groups/delete',
1071
            'group/my-groups/status',
1072
            'group/joined-groups',
1073
            'group/requests-sent',
1074
            'group/invitations-received',
1075
            'group/members',
1076
            'group/members/approve',
1077
            'group/members/reject',
1078
            'group/members/invite',
1079
            'group/members/cancel',
1080
            'job',
1081
            'job/view',
1082
            'job/applied-jobs',
1083
            'job/apply-job',
1084
            'job/remove-apply-job',
1085
            'job/saved-jobs',
1086
            'job/save-job',
1087
            'job/remove-save-job',
352 ariadna 1088
 
167 efrain 1089
            'communication',
352 ariadna 1090
 
1 efrain 1091
            'help',
1092
            'helpers',
1093
            'helpers/search-people',
1094
            'helpers/posts',
1095
            'helpers/people-you-may-know',
1096
            'helpers/people-viewed-profile',
1097
            'helpers/company-follower',
1098
            'helpers/company-suggestion',
1099
            'helpers/group-members',
1100
            'helpers/group-members/invite',
1101
            'helpers/group-members/cancel',
1102
            'helpers/group-members/reject',
1103
            'helpers/group-members/approve',
1104
            'helpers/groups-suggestion',
117 efrain 1105
            'helpers/group-types',
1 efrain 1106
            'helpers/my-groups',
1107
            'helpers/footer',
617 ariadna 1108
            'helpers/timezones',
1 efrain 1109
            'helpers/next-events',
1110
            'helpers/menu',
1111
            'helpers/company-sizes',
1112
            'helpers/degrees',
1113
            'helpers/languages',
1114
            'helpers/skills',
1115
            'helpers/aptitudes',
1116
            'helpers/hobbies',
1117
            'helpers/industries',
192 efrain 1118
            'helpers/abuse-report',
352 ariadna 1119
 
192 efrain 1120
            'abuse-report',
1121
            'abuse-report/view',
352 ariadna 1122
 
624 stevensc 1123
 
1 efrain 1124
            'marketplace',
1125
            'marketplace/categories',
1126
            'marketplace/enroll',
1127
            'marketplace/claim',
1128
            'marketplace/join',
1129
            'marketplace/buy',
624 stevensc 1130
 
1 efrain 1131
            'calendar',
1132
            'calendar/events',
352 ariadna 1133
 
283 www 1134
            'inmail',
1135
            'inmail/user',
1136
            'inmail/user/block',
706 stevensc 1137
            'inmail/messages',
1138
            'inmail/messages/send',
1139
            'inmail/messages/delete',
1140
            'inmail/messages/get',
1141
            'inmail/messages/attachment',
1 efrain 1142
 
794 stevensc 1143
            'microlearning',
1144
            'microlearning/take-a-test',
1145
            'microlearning/profile',
1146
            'microlearning/companies',
1147
            'microlearning/progress',
1148
            'microlearning/timeline',
1149
            'microlearning/last-capsule-in-progress',
1150
            'microlearning/capsules-pending',
1151
            'microlearning/capsules-completed',
1152
            'microlearning/capsules-in-progress',
1153
            'microlearning/capsules-comments',
1154
            'microlearning/capsules-comments/add',
1155
            'microlearning/capsules-comments/delete',
1156
            'microlearning/topics',
1157
            'microlearning/capsules',
1158
            'microlearning/slides',
1159
            'microlearning/topic',
1160
            'microlearning/capsule',
1161
            'microlearning/get-slide',
1162
            'microlearning/sync',
119 efrain 1163
 
794 stevensc 1164
            'habits',
1165
            'habits/aspect-daily-log',
1166
 
1167
            'habits/values',
1168
            'habits/values/add',
1169
            'habits/values/edit',
1170
            'habits/values/delete',
1171
 
1172
            'habits/paradigms',
1173
            'habits/paradigms/add',
1174
            'habits/paradigms/edit',
1175
            'habits/paradigms/delete',
1176
 
1177
            'habits/purposes',
1178
            'habits/purposes/add',
1179
            'habits/purposes/edit',
1180
            'habits/purposes/delete',
1181
 
1182
            'habits/skills',
1183
            'habits/skills/add',
1184
            'habits/skills/edit',
1185
            'habits/skills/delete',
1186
 
1187
            'habits/skills/registers',
1188
            'habits/skills/registers/add',
1189
            'habits/skills/registers/edit',
1190
            'habits/skills/registers/delete',
1191
 
1192
            'habits/reports',
1193
 
1194
            'habits/goals',
1195
            'habits/goals/add',
1196
            'habits/goals/edit',
1197
            'habits/goals/delete',
1198
 
1199
            'helpers',
1200
            'helpers/habits-and-skills',
1201
            'helpers/habits-and-skills/get',
1202
            'helpers/habits-and-skills/my',
1203
 
1204
 
1 efrain 1205
            /*
1206
            'zoom',
1207
            'zoom/add',
1208
            'zoom/delete',
1209
            'zoom/listing',*/
1210
        ],
1211
        UserType::GUEST => [
1212
            'home',
333 www 1213
            'storage',
766 stevensc 1214
            'data-storage',
1 efrain 1215
            'onroom',
283 www 1216
            'cesams',
1 efrain 1217
            'language',
754 stevensc 1218
            'theme',
1 efrain 1219
            'share',
342 www 1220
            'crypto',
1 efrain 1221
            'signin',
1222
            'signin/facebook',
1223
            'signin/twitter',
1224
            'signin/google',
177 efrain 1225
            'signin/debug',
1 efrain 1226
            'signout',
1227
            'signup',
1228
            'shorter',
1229
            'professionalism-policy',
1230
            'reset-password',
1231
            'forgot-password',
1232
            'activate-account',
1233
            'privacy-policy',
1234
            'terms-and-conditions',
1235
            'cookies',
1236
            'csrf',
1237
            'oauth',
1238
            'oauth/facebook',
1239
            'oauth/facebook/cancel',
1240
            'oauth/facebook/delete',
1241
            'oauth/twitter',
1242
            'oauth/google',
1243
            'oauth/instagram',
1244
            'paypal',
1245
            'paypal/success',
1246
            'paypal/cancel',
314 www 1247
 
352 ariadna 1248
 
1 efrain 1249
            'services',
1250
            'services/device',
1251
            'services/fcm',
1252
            'services/signin',
1253
            'services/signout',
352 ariadna 1254
 
189 efrain 1255
            'helpers',
1256
            'helpers/footer',
617 ariadna 1257
            'helpers/timezones',
794 stevensc 1258
 
1259
            'habits',
1260
            'habits/aspect-daily-log',
1261
 
1262
            'habits/values',
1263
            'habits/values/add',
1264
            'habits/values/edit',
1265
            'habits/values/delete',
1266
 
1267
            'habits/paradigms',
1268
            'habits/paradigms/add',
1269
            'habits/paradigms/edit',
1270
            'habits/paradigms/delete',
1271
 
1272
            'habits/purposes',
1273
            'habits/purposes/add',
1274
            'habits/purposes/edit',
1275
            'habits/purposes/delete',
1276
 
1277
            'habits/skills',
1278
            'habits/skills/add',
1279
            'habits/skills/edit',
1280
            'habits/skills/delete',
1281
 
1282
            'habits/skills/registers',
1283
            'habits/skills/registers/add',
1284
            'habits/skills/registers/edit',
1285
            'habits/skills/registers/delete',
1286
 
1287
            'habits/reports',
1288
 
1289
            'habits/goals',
1290
            'habits/goals/add',
1291
            'habits/goals/edit',
1292
            'habits/goals/delete',
1293
 
1294
            'helpers',
1295
            'helpers/habits-and-skills',
1296
            'helpers/habits-and-skills/get',
1297
            'helpers/habits-and-skills/my',
1 efrain 1298
            /*
1299
            'zoom',
1300
            'zoom/add',
1301
            'zoom/delete',
1302
            'zoom/listing',*/
1303
        ],
1304
        UserType::USER_DELETED => [
1305
            'home',
1306
            'language',
754 stevensc 1307
            'theme',
1 efrain 1308
            'signin',
1309
            'signin/facebook',
1310
            'signin/twitter',
1311
            'signin/google',
177 efrain 1312
            'signin/debug',
1 efrain 1313
            'signout',
1314
            'signup',
1315
            'check-session',
1316
            'notifications',
1317
            'notifications/mark-read',
1318
            'notifications/mark-all-read',
1319
            'notifications/delete',
1320
            'notifications/clear',
1321
            'notifications/unreads',
1322
            'professionalism-policy',
1323
            'reset-password',
1324
            'forgot-password',
1325
            'activate-account',
1326
            'privacy-policy',
1327
            'terms-and-conditions',
1328
            'cookies',
1329
            'oauth',
1330
            'csrf',
1331
            'shorter',
617 ariadna 1332
            'helpers',
1333
            'helpers/timezones',
1 efrain 1334
            'oauth/facebook',
1335
            'oauth/facebook/cancel',
1336
            'oauth/facebook/delete',
1337
            'oauth/twitter',
1338
            'oauth/google',
1339
            'oauth/instagram',
352 ariadna 1340
 
1 efrain 1341
            'services',
1342
            'services/device',
1343
            'services/fcm',
1344
            'services/signin',
1345
            'services/signout',
794 stevensc 1346
 
1347
            'habits',
1348
            'habits/aspect-daily-log',
1349
 
1350
            'habits/values',
1351
            'habits/values/add',
1352
            'habits/values/edit',
1353
            'habits/values/delete',
1354
 
1355
            'habits/paradigms',
1356
            'habits/paradigms/add',
1357
            'habits/paradigms/edit',
1358
            'habits/paradigms/delete',
1359
 
1360
            'habits/purposes',
1361
            'habits/purposes/add',
1362
            'habits/purposes/edit',
1363
            'habits/purposes/delete',
1364
 
1365
            'habits/skills',
1366
            'habits/skills/add',
1367
            'habits/skills/edit',
1368
            'habits/skills/delete',
1369
 
1370
            'habits/skills/registers',
1371
            'habits/skills/registers/add',
1372
            'habits/skills/registers/edit',
1373
            'habits/skills/registers/delete',
1374
 
1375
            'habits/reports',
1376
 
1377
            'habits/goals',
1378
            'habits/goals/add',
1379
            'habits/goals/edit',
1380
            'habits/goals/delete',
1381
 
1382
            'helpers',
1383
            'helpers/habits-and-skills',
1384
            'helpers/habits-and-skills/get',
1385
            'helpers/habits-and-skills/my',
1 efrain 1386
        ],
1387
    ];
1388
}
1389
 
1390
function getAclMenuDefaultNetworkConnectionUser2User()
1391
{
1392
    return [
1393
        [
1394
            'label' => 'LABEL_HOME',
1395
            'route' => 'dashboard',
1396
            'class' => '/images/navbar/home.svg',
1397
        ],
1398
        [
1399
            'label' => 'LABEL_PROFILE',
1400
            'route' => 'profile',
1401
            'class' => '/images/navbar/perfil.svg',
1402
            'pages' => [
1403
                [
1404
                    'label' => 'LABEL_CONNECTIONS',
1405
                    'route' => 'connection',
1406
                    //'class' =>'/images/navbar/conexion.svg',
1407
                    'pages' => [
1408
                        [
1409
                            'label' => 'LABEL_MY_CONNECTIONS',
1410
                            'route' => 'connection/my-connections'
1411
                        ],
1412
                        [
1413
                            'label' => 'LABEL_INVITATIONS_SENT',
1414
                            'route' => 'connection/invitations-sent'
1415
                        ],
1416
                        [
1417
                            'label' => 'LABEL_INVITATIONS_RECEIVED',
1418
                            'route' => 'connection/invitations-received'
1419
                        ],
1420
                        [
1421
                            'label' => 'LABEL_PEOPLE_YOU_MAY_KNOW',
1422
                            'route' => 'connection/people-you-may-know'
1423
                        ],
1424
                        [
1425
                            'label' => 'LABEL_PEOPLE_BLOCKED',
1426
                            'route' => 'connection/people-blocked'
1427
                        ],
1428
 
1429
 
1430
                    ]
1431
                ],
1432
                [
1433
                    'label' => 'LABEL_MY_PROFILES',
1434
                    'route' => 'profile/my-profiles'
1435
                ],
1436
                [
1437
                    'label' => 'LABEL_JOBS',
1438
                    'route' => 'job',
1439
                    'pages' => [
1440
                        [
1441
                            'label' => 'LABEL_JOBS_APPLIED',
1442
                            'route' => 'job/applied-jobs'
1443
                        ],
1444
                        [
1445
                            'label' => 'LABEL_JOBS_SAVED',
1446
                            'route' => 'job/saved-jobs'
1447
                        ],
352 ariadna 1448
                    ]
1 efrain 1449
                ],
1450
 
352 ariadna 1451
 
1 efrain 1452
                [
1453
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1454
                    'route' => 'profile/people-viewed-profile'
1455
                ],
1456
 
1457
            ]
1458
        ],
1459
 
1460
 
1461
        [
1462
            'label' => 'LABEL_COMPANIES',
1463
            'route' => 'company',
1464
            'class' => '/images/navbar/empresa.svg',
1465
            'pages' => [
1466
                [
1467
                    'label' => 'LABEL_MY_COMPANIES',
1468
                    'route' => 'company/my-companies'
1469
                ],
1470
                [
1471
                    'label' => 'LABEL_COMPANIES_I_FOLLOW',
1472
                    'route' => 'company/following-companies'
1473
                ],
1474
                [
1475
                    'label' => 'LABEL_COMPANIES_I_WORK_WITH',
1476
                    'route' => 'company/i-work-with'
1477
                ],
1478
                [
1479
                    'label' => 'LABEL_REQUESTS_SENT',
1480
                    'route' => 'company/requests-sent'
1481
                ],
1482
                [
1483
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1484
                    'route' => 'company/invitations-received'
1485
                ]
1486
            ]
1487
        ],
1488
 
1489
        [
1490
            'label' => 'LABEL_GROUPS',
1491
            'route' => 'group',
1492
            'class' => '/images/navbar/grupos.svg',
1493
            'pages' => [
1494
                [
1495
                    'label' => 'LABEL_MY_GROUPS',
1496
                    'route' => 'group/my-groups'
1497
                ],
1498
                [
1499
                    'label' => 'LABEL_JOINED_GROUPS',
1500
                    'route' => 'group/joined-groups'
1501
                ],
1502
                [
1503
                    'label' => 'LABEL_REQUESTS_SENT',
1504
                    'route' => 'group/requests-sent'
1505
                ],
1506
                [
1507
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1508
                    'route' => 'group/invitations-received'
1509
                ]
1510
            ]
1511
        ],
624 stevensc 1512
 
1 efrain 1513
        [
1514
            'label' => 'LABEL_MARKETPLACE',
1515
            'route' => 'marketplace',
1516
            'class' => '/images/navbar/market-place.svg',
624 stevensc 1517
        ],
167 efrain 1518
 
352 ariadna 1519
 
1520
 
1 efrain 1521
        [
167 efrain 1522
            'label' => 'LABEL_COMMUNICATION',
1523
            'route' => 'communication',
1 efrain 1524
            'class' => '/images/navbar/calendar.svg',
167 efrain 1525
            'pages' => [
1526
                [
1527
                    'label' => 'LABEL_CALENDAR',
1528
                    'route' => 'calendar',
1529
                    'class' => '/images/navbar/calendar.svg',
1530
                ],
1531
                [
1532
                    'label' => 'LABEL_INMAIL',
1533
                    'route' => 'inmail',
1534
                    'class' => '/images/navbar/calendar.svg',
1535
                ],
1536
                [
1537
                    'label' => 'LABEL_CHAT',
1538
                    'route' => 'chat',
1539
                    'class' => '/images/navbar/calendar.svg',
1540
                ],
1541
                [
1542
                    'label' => 'LABEL_NOTIFICATIONS',
1543
                    'route' => 'notifications',
1544
                    'class' => '/images/navbar/calendar.svg',
1545
                ],
1546
            ],
1 efrain 1547
        ],
352 ariadna 1548
 
167 efrain 1549
        [
1550
            'label' => 'LABEL_KNOWLEDGE',
1551
            'route' => 'knowledge',
1552
            'class' => '/images/navbar/calendar.svg',
1553
            'pages' => [
1554
                [
1555
                    'label' => 'LABEL_MY_COACH',
1556
                    'route' => 'my-coach',
1557
                    'class' => '/images/navbar/calendar.svg',
1558
                ],
1559
                [
1560
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1561
                    'route' => 'knowledge-area',
1562
                    'class' => '/images/navbar/calendar.svg',
1563
                ],
1564
                [
1565
                    'label' => 'LABEL_MICROLEARNING',
1566
                    'route' => 'microlearning',
1567
                    'class' => '/images/navbar/calendar.svg',
191 efrain 1568
                    /*
167 efrain 1569
                    'pages' => [
1570
                        [
1571
                            'label' => 'LABEL_HOME',
1572
                            'route' => 'microlearning',
1573
                            'class' => '/images/navbar/calendar.svg',
1574
                        ],
1575
                        [
1576
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1577
                            'route' => 'microlearning/topics',
1578
                            'class' => '/images/navbar/calendar.svg',
1579
                        ],
1580
                        [
1581
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1582
                            'route' => 'microlearning/timeline',
1583
                            'class' => '/images/navbar/calendar.svg',
1584
                        ],
1585
                        [
1586
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1587
                            'route' => 'microlearning/companies',
1588
                            'class' => '/images/navbar/calendar.svg',
1589
                        ],
1590
                        [
1591
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1592
                            'route' => 'microlearning/profile',
1593
                            'class' => '/images/navbar/calendar.svg',
1594
                        ],
191 efrain 1595
                    ]*/
167 efrain 1596
                ],
302 www 1597
                [
1598
                    'label' => 'LABEL_HABITS',
1599
                    'route' => 'habits',
1600
                    'class' => '/images/navbar/calendar.svg',
352 ariadna 1601
                ]
1602
 
1603
            ]
1604
 
1605
 
167 efrain 1606
        ],
1 efrain 1607
 
352 ariadna 1608
 
1 efrain 1609
    ];
1610
}
1611
 
1612
function getAclMenuDefaultNetworkConnectionAll2All()
1613
{
1614
    return [
1615
        [
1616
            'label' => 'LABEL_HOME',
1617
            'route' => 'dashboard',
1618
            'class' => '/images/navbar/home.svg',
1619
        ],
1620
        [
1621
            'label' => 'LABEL_PROFILE',
1622
            'route' => 'profile',
1623
            'class' => '/images/navbar/perfil.svg',
1624
            'pages' => [
1625
                [
1626
                    'label' => 'LABEL_MY_CONNECTIONS',
1627
                    'route' => 'connection/my-connections',
1628
                ],
1629
                [
1630
                    'label' => 'LABEL_MY_PROFILES',
1631
                    'route' => 'profile/my-profiles'
1632
                ],
1633
                [
1634
                    'label' => 'LABEL_JOBS_APPLIED',
1635
                    'route' => 'job/applied-jobs'
1636
                ],
1637
                [
1638
                    'label' => 'LABEL_JOBS_SAVED',
1639
                    'route' => 'job/saved-jobs'
1640
                ],
1641
                [
1642
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1643
                    'route' => 'profile/people-viewed-profile'
1644
                ],
1645
 
1646
            ]
1647
        ],
1648
 
1649
 
1650
        [
1651
            'label' => 'LABEL_COMPANIES',
1652
            'route' => 'company',
1653
            'class' => '/images/navbar/empresa.svg',
1654
            'pages' => [
1655
                [
1656
                    'label' => 'LABEL_MY_COMPANIES',
1657
                    'route' => 'company/my-companies'
1658
                ],
1659
                [
1660
                    'label' => 'LABEL_COMPANIES_I_FOLLOW',
1661
                    'route' => 'company/following-companies'
1662
                ],
1663
                [
1664
                    'label' => 'LABEL_COMPANIES_I_WORK_WITH',
1665
                    'route' => 'company/i-work-with'
1666
                ],
1667
                [
1668
                    'label' => 'LABEL_REQUESTS_SENT',
1669
                    'route' => 'company/requests-sent'
1670
                ],
1671
                [
1672
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1673
                    'route' => 'company/invitations-received'
1674
                ]
1675
            ]
1676
        ],
1677
 
1678
        [
1679
            'label' => 'LABEL_GROUPS',
1680
            'route' => 'group',
1681
            'class' => '/images/navbar/grupos.svg',
1682
            'pages' => [
1683
                [
1684
                    'label' => 'LABEL_MY_GROUPS',
1685
                    'route' => 'group/my-groups'
1686
                ],
1687
                [
1688
                    'label' => 'LABEL_JOINED_GROUPS',
1689
                    'route' => 'group/joined-groups'
1690
                ],
1691
                [
1692
                    'label' => 'LABEL_REQUESTS_SENT',
1693
                    'route' => 'group/requests-sent'
1694
                ],
1695
                [
1696
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1697
                    'route' => 'group/invitations-received'
1698
                ]
1699
            ]
1700
        ],
1701
        [
1702
            'label' => 'LABEL_MARKETPLACE',
1703
            'route' => 'marketplace',
1704
            'class' => '/images/navbar/market-place.svg',
1705
        ],
167 efrain 1706
 
352 ariadna 1707
 
1 efrain 1708
        [
167 efrain 1709
            'label' => 'LABEL_COMMUNICATION',
1710
            'route' => 'communication',
1 efrain 1711
            'class' => '/images/navbar/calendar.svg',
167 efrain 1712
            'pages' => [
1713
                [
1714
                    'label' => 'LABEL_CALENDAR',
1715
                    'route' => 'calendar',
1716
                    'class' => '/images/navbar/calendar.svg',
1717
                ],
1718
                [
1719
                    'label' => 'LABEL_INMAIL',
617 ariadna 1720
                    'route' => 'inmail',
167 efrain 1721
                    'class' => '/images/navbar/calendar.svg',
1722
                ],
1723
                [
1724
                    'label' => 'LABEL_CHAT',
1725
                    'route' => 'chat',
1726
                    'class' => '/images/navbar/calendar.svg',
1727
                ],
1728
                [
1729
                    'label' => 'LABEL_NOTIFICATIONS',
1730
                    'route' => 'notifications',
1731
                    'class' => '/images/navbar/calendar.svg',
1732
                ],
1733
            ],
1 efrain 1734
        ],
352 ariadna 1735
 
167 efrain 1736
        [
1737
            'label' => 'LABEL_KNOWLEDGE',
1738
            'route' => 'knowledge',
1739
            'class' => '/images/navbar/calendar.svg',
1740
            'pages' => [
1741
                [
1742
                    'label' => 'LABEL_MY_COACH',
1743
                    'route' => 'my-coach',
1744
                    'class' => '/images/navbar/calendar.svg',
1745
                ],
1746
                [
1747
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1748
                    'route' => 'knowledge-area',
1749
                    'class' => '/images/navbar/calendar.svg',
1750
                ],
1751
                [
1752
                    'label' => 'LABEL_MICROLEARNING',
1753
                    'route' => 'microlearning',
1754
                    'class' => '/images/navbar/calendar.svg',
352 ariadna 1755
                    /*
167 efrain 1756
                    'pages' => [
1757
                        [
1758
                            'label' => 'LABEL_HOME',
1759
                            'route' => 'microlearning',
1760
                            'class' => '/images/navbar/calendar.svg',
1761
                        ],
1762
                        [
1763
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1764
                            'route' => 'microlearning/topics',
1765
                            'class' => '/images/navbar/calendar.svg',
1766
                        ],
1767
                        [
1768
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1769
                            'route' => 'microlearning/timeline',
1770
                            'class' => '/images/navbar/calendar.svg',
1771
                        ],
1772
                        [
1773
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1774
                            'route' => 'microlearning/companies',
1775
                            'class' => '/images/navbar/calendar.svg',
1776
                        ],
1777
                        [
1778
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1779
                            'route' => 'microlearning/profile',
1780
                            'class' => '/images/navbar/calendar.svg',
1781
                        ],
191 efrain 1782
                    ]*/
167 efrain 1783
                ],
352 ariadna 1784
 
167 efrain 1785
            ]
352 ariadna 1786
 
1787
 
167 efrain 1788
        ],
1 efrain 1789
    ];
1790
}
1791
 
1792
function getAclMenuNonDefaulNetworkConnectionUser2User()
1793
{
1794
    return [
1795
        [
1796
            'label' => 'LABEL_HOME',
1797
            'route' => 'dashboard',
1798
            'class' => '/images/navbar/home.svg',
1799
        ],
1800
        [
1801
            'label' => 'LABEL_PROFILE',
1802
            'route' => 'profile',
1803
            'class' => '/images/navbar/perfil.svg',
1804
            'pages' => [
1805
                [
1806
                    'label' => 'LABEL_CONNECTIONS',
1807
                    'route' => 'connection',
1808
                    //'class' =>'/images/navbar/conexion.svg',
1809
                    'pages' => [
1810
                        [
1811
                            'label' => 'LABEL_MY_CONNECTIONS',
1812
                            'route' => 'connection/my-connections'
1813
                        ],
1814
                        [
1815
                            'label' => 'LABEL_INVITATIONS_SENT',
1816
                            'route' => 'connection/invitations-sent'
1817
                        ],
1818
                        [
1819
                            'label' => 'LABEL_INVITATIONS_RECEIVED',
1820
                            'route' => 'connection/invitations-received'
1821
                        ],
1822
                        [
1823
                            'label' => 'LABEL_PEOPLE_YOU_MAY_KNOW',
1824
                            'route' => 'connection/people-you-may-know'
1825
                        ],
1826
                        [
1827
                            'label' => 'LABEL_PEOPLE_BLOCKED',
1828
                            'route' => 'connection/people-blocked'
1829
                        ],
1830
 
1831
 
1832
                    ]
1833
                ],
1834
                [
1835
                    'label' => 'LABEL_MY_PROFILES',
1836
                    'route' => 'profile/my-profiles'
1837
                ],
1838
                [
1839
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1840
                    'route' => 'profile/people-viewed-profile'
1841
                ],
1842
 
1843
            ]
1844
        ],
1845
 
1846
        [
1847
            'label' => 'LABEL_COMPANY',
1848
            'route' => 'company',
1849
            'class' => '/images/navbar/empresa.svg',
1850
 
1851
        ],
1852
 
1853
        [
1854
            'label' => 'LABEL_GROUPS',
1855
            'route' => 'group',
1856
            'class' => '/images/navbar/grupos.svg',
1857
            'pages' => [
1858
                [
1859
                    'label' => 'LABEL_MY_GROUPS',
1860
                    'route' => 'group/my-groups'
1861
                ],
1862
                [
1863
                    'label' => 'LABEL_JOINED_GROUPS',
1864
                    'route' => 'group/joined-groups'
1865
                ],
1866
                [
1867
                    'label' => 'LABEL_REQUESTS_SENT',
1868
                    'route' => 'group/requests-sent'
1869
                ],
1870
                [
1871
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1872
                    'route' => 'group/invitations-received'
1873
                ]
1874
            ]
1875
        ],
1876
        [
1877
            'label' => 'LABEL_MARKETPLACE',
1878
            'route' => 'marketplace',
1879
            'class' => '/images/navbar/market-place.svg',
1880
        ],
167 efrain 1881
 
352 ariadna 1882
 
1 efrain 1883
        [
167 efrain 1884
            'label' => 'LABEL_COMMUNICATION',
1885
            'route' => 'communication',
1 efrain 1886
            'class' => '/images/navbar/calendar.svg',
167 efrain 1887
            'pages' => [
1888
                [
1889
                    'label' => 'LABEL_CALENDAR',
1890
                    'route' => 'calendar',
1891
                    'class' => '/images/navbar/calendar.svg',
1892
                ],
1893
                [
1894
                    'label' => 'LABEL_INMAIL',
1895
                    'route' => 'inmail',
1896
                    'class' => '/images/navbar/calendar.svg',
1897
                ],
1898
                [
1899
                    'label' => 'LABEL_CHAT',
1900
                    'route' => 'chat',
1901
                    'class' => '/images/navbar/calendar.svg',
1902
                ],
1903
                [
1904
                    'label' => 'LABEL_NOTIFICATIONS',
1905
                    'route' => 'notifications',
1906
                    'class' => '/images/navbar/calendar.svg',
1907
                ],
1908
            ],
1 efrain 1909
        ],
352 ariadna 1910
 
167 efrain 1911
        [
1912
            'label' => 'LABEL_KNOWLEDGE',
1913
            'route' => 'knowledge',
1914
            'class' => '/images/navbar/calendar.svg',
1915
            'pages' => [
1916
                [
1917
                    'label' => 'LABEL_MY_COACH',
1918
                    'route' => 'my-coach',
1919
                    'class' => '/images/navbar/calendar.svg',
1920
                ],
1921
                [
1922
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1923
                    'route' => 'knowledge-area',
1924
                    'class' => '/images/navbar/calendar.svg',
1925
                ],
1926
                [
1927
                    'label' => 'LABEL_MICROLEARNING',
1928
                    'route' => 'microlearning',
1929
                    'class' => '/images/navbar/calendar.svg',
352 ariadna 1930
                    /*
167 efrain 1931
                    'pages' => [
1932
                        [
1933
                            'label' => 'LABEL_HOME',
1934
                            'route' => 'microlearning',
1935
                            'class' => '/images/navbar/calendar.svg',
1936
                        ],
1937
                        [
1938
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1939
                            'route' => 'microlearning/topics',
1940
                            'class' => '/images/navbar/calendar.svg',
1941
                        ],
1942
                        [
1943
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1944
                            'route' => 'microlearning/timeline',
1945
                            'class' => '/images/navbar/calendar.svg',
1946
                        ],
1947
                        [
1948
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1949
                            'route' => 'microlearning/companies',
1950
                            'class' => '/images/navbar/calendar.svg',
1951
                        ],
1952
                        [
1953
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1954
                            'route' => 'microlearning/profile',
1955
                            'class' => '/images/navbar/calendar.svg',
1956
                        ],
191 efrain 1957
                    ]*/
167 efrain 1958
                ],
352 ariadna 1959
 
167 efrain 1960
            ]
352 ariadna 1961
 
1962
 
167 efrain 1963
        ],
1 efrain 1964
    ];
1965
}
1966
 
1967
function getAclMenuNonDefaultNetworkConnectionAll2All()
1968
{
1969
    return [
1970
        [
1971
            'label' => 'LABEL_HOME',
1972
            'route' => 'dashboard',
1973
            'class' => '/images/navbar/home.svg',
1974
        ],
1975
        [
1976
            'label' => 'LABEL_PROFILE',
1977
            'route' => 'profile',
1978
            'class' => '/images/navbar/perfil.svg',
1979
            'pages' => [
1980
                [
1981
                    'label' => 'LABEL_MY_CONNECTIONS',
1982
                    'route' => 'connection/my-connections'
1983
                ],
1984
                [
1985
                    'label' => 'LABEL_MY_PROFILES',
1986
                    'route' => 'profile/my-profiles'
1987
                ],
1988
                [
1989
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1990
                    'route' => 'profile/people-viewed-profile'
1991
                ],
1992
 
1993
            ]
1994
        ],
1995
 
1996
        [
1997
            'label' => 'LABEL_COMPANY',
1998
            'route' => 'company',
1999
            'class' => '/images/navbar/empresa.svg',
2000
 
2001
        ],
2002
 
2003
 
2004
        [
2005
            'label' => 'LABEL_GROUPS',
2006
            'route' => 'group',
2007
            'class' => '/images/navbar/grupos.svg',
2008
            'pages' => [
2009
                [
2010
                    'label' => 'LABEL_MY_GROUPS',
2011
                    'route' => 'group/my-groups'
2012
                ],
2013
                [
2014
                    'label' => 'LABEL_JOINED_GROUPS',
2015
                    'route' => 'group/joined-groups'
2016
                ],
2017
                [
2018
                    'label' => 'LABEL_REQUESTS_SENT',
2019
                    'route' => 'group/requests-sent'
2020
                ],
2021
                [
2022
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
2023
                    'route' => 'group/invitations-received'
2024
                ]
2025
            ]
2026
        ],
2027
        [
2028
            'label' => 'LABEL_MARKETPLACE',
2029
            'route' => 'marketplace',
2030
            'class' => '/images/navbar/market-place.svg',
2031
        ],
167 efrain 2032
 
352 ariadna 2033
 
1 efrain 2034
        [
167 efrain 2035
            'label' => 'LABEL_COMMUNICATION',
2036
            'route' => 'communication',
1 efrain 2037
            'class' => '/images/navbar/calendar.svg',
167 efrain 2038
            'pages' => [
2039
                [
2040
                    'label' => 'LABEL_CALENDAR',
2041
                    'route' => 'calendar',
2042
                    'class' => '/images/navbar/calendar.svg',
2043
                ],
2044
                [
2045
                    'label' => 'LABEL_INMAIL',
2046
                    'route' => 'inmail',
2047
                    'class' => '/images/navbar/calendar.svg',
2048
                ],
2049
                [
2050
                    'label' => 'LABEL_CHAT',
2051
                    'route' => 'chat',
2052
                    'class' => '/images/navbar/calendar.svg',
2053
                ],
2054
                [
2055
                    'label' => 'LABEL_NOTIFICATIONS',
2056
                    'route' => 'notifications',
2057
                    'class' => '/images/navbar/calendar.svg',
2058
                ],
2059
            ],
1 efrain 2060
        ],
352 ariadna 2061
 
167 efrain 2062
        [
2063
            'label' => 'LABEL_KNOWLEDGE',
2064
            'route' => 'knowledge',
2065
            'class' => '/images/navbar/calendar.svg',
2066
            'pages' => [
2067
                [
2068
                    'label' => 'LABEL_MY_COACH',
2069
                    'route' => 'my-coach',
2070
                    'class' => '/images/navbar/calendar.svg',
2071
                ],
2072
                [
2073
                    'label' => 'LABEL_KNOWLEDGE_AREA',
2074
                    'route' => 'knowledge-area',
2075
                    'class' => '/images/navbar/calendar.svg',
2076
                ],
2077
                [
2078
                    'label' => 'LABEL_MICROLEARNING',
2079
                    'route' => 'microlearning',
2080
                    'class' => '/images/navbar/calendar.svg',
191 efrain 2081
                    /*
167 efrain 2082
 
2083
                    'pages' => [
2084
                        [
2085
                            'label' => 'LABEL_HOME',
2086
                            'route' => 'microlearning',
2087
                            'class' => '/images/navbar/calendar.svg',
2088
                        ],
2089
                        [
2090
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
2091
                            'route' => 'microlearning/topics',
2092
                            'class' => '/images/navbar/calendar.svg',
2093
                        ],
2094
                        [
2095
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
2096
                            'route' => 'microlearning/timeline',
2097
                            'class' => '/images/navbar/calendar.svg',
2098
                        ],
2099
                        [
2100
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
2101
                            'route' => 'microlearning/companies',
2102
                            'class' => '/images/navbar/calendar.svg',
2103
                        ],
2104
                        [
2105
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
2106
                            'route' => 'microlearning/profile',
2107
                            'class' => '/images/navbar/calendar.svg',
2108
                        ],
191 efrain 2109
                    ]*/
167 efrain 2110
                ],
352 ariadna 2111
 
167 efrain 2112
            ]
352 ariadna 2113
 
2114
 
167 efrain 2115
        ],
1 efrain 2116
    ];
2117
}