Proyectos de Subversion LeadersLinked - Services

Rev

Rev 387 | Rev 396 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

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