Proyectos de Subversion LeadersLinked - Services

Rev

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