Proyectos de Subversion LeadersLinked - Services

Rev

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