Proyectos de Subversion LeadersLinked - Services

Rev

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