Proyectos de Subversion LeadersLinked - Services

Rev

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