Proyectos de Subversion LeadersLinked - Services

Rev

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