Proyectos de Subversion LeadersLinked - Services

Rev

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