Proyectos de Subversion LeadersLinked - Services

Rev

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