Proyectos de Subversion LeadersLinked - Services

Rev

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