Proyectos de Subversion LeadersLinked - Services

Rev

Rev 571 | Rev 573 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

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