Proyectos de Subversion LeadersLinked - Services

Rev

Rev 333 | Rev 342 | 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',
341 www 26
        'cripto',
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',
1075
            'signin',
1076
            'signin/facebook',
1077
            'signin/twitter',
1078
            'signin/google',
177 efrain 1079
            'signin/debug',
1 efrain 1080
            'signout',
1081
            'signup',
1082
            'shorter',
1083
            'professionalism-policy',
1084
            'reset-password',
1085
            'forgot-password',
1086
            'activate-account',
1087
            'privacy-policy',
1088
            'terms-and-conditions',
1089
            'cookies',
1090
            'csrf',
1091
            'oauth',
1092
            'oauth/facebook',
1093
            'oauth/facebook/cancel',
1094
            'oauth/facebook/delete',
1095
            'oauth/twitter',
1096
            'oauth/google',
1097
            'oauth/instagram',
1098
            'paypal',
1099
            'paypal/success',
1100
            'paypal/cancel',
314 www 1101
 
1102
 
1 efrain 1103
            'services',
1104
            'services/device',
1105
            'services/fcm',
1106
            'services/signin',
1107
            'services/signout',
189 efrain 1108
 
1109
            'helpers',
1110
            'helpers/footer',
1 efrain 1111
 
1112
            /*
1113
            'zoom',
1114
            'zoom/add',
1115
            'zoom/delete',
1116
            'zoom/listing',*/
1117
        ],
1118
        UserType::USER_DELETED => [
1119
            'home',
1120
            'language',
1121
            'signin',
1122
            'signin/facebook',
1123
            'signin/twitter',
1124
            'signin/google',
177 efrain 1125
            'signin/debug',
1 efrain 1126
            'signout',
1127
            'signup',
1128
            'check-session',
1129
            'notifications',
1130
            'notifications/mark-read',
1131
            'notifications/mark-all-read',
1132
            'notifications/delete',
1133
            'notifications/clear',
1134
            'notifications/unreads',
1135
            'professionalism-policy',
1136
            'reset-password',
1137
            'forgot-password',
1138
            'activate-account',
1139
            'privacy-policy',
1140
            'terms-and-conditions',
1141
            'cookies',
1142
            'oauth',
1143
            'csrf',
1144
            'shorter',
1145
            'oauth/facebook',
1146
            'oauth/facebook/cancel',
1147
            'oauth/facebook/delete',
1148
            'oauth/twitter',
1149
            'oauth/google',
1150
            'oauth/instagram',
314 www 1151
 
1 efrain 1152
            'services',
1153
            'services/device',
1154
            'services/fcm',
1155
            'services/signin',
1156
            'services/signout',
1157
        ],
1158
    ];
1159
}
1160
 
1161
function getAclMenuDefaultNetworkConnectionUser2User()
1162
{
1163
    return [
1164
        [
1165
            'label' => 'LABEL_HOME',
1166
            'route' => 'dashboard',
1167
            'class' => '/images/navbar/home.svg',
1168
        ],
1169
        [
1170
            'label' => 'LABEL_PROFILE',
1171
            'route' => 'profile',
1172
            'class' => '/images/navbar/perfil.svg',
1173
            'pages' => [
1174
                [
1175
                    'label' => 'LABEL_CONNECTIONS',
1176
                    'route' => 'connection',
1177
                    //'class' =>'/images/navbar/conexion.svg',
1178
                    'pages' => [
1179
                        [
1180
                            'label' => 'LABEL_MY_CONNECTIONS',
1181
                            'route' => 'connection/my-connections'
1182
                        ],
1183
                        [
1184
                            'label' => 'LABEL_INVITATIONS_SENT',
1185
                            'route' => 'connection/invitations-sent'
1186
                        ],
1187
                        [
1188
                            'label' => 'LABEL_INVITATIONS_RECEIVED',
1189
                            'route' => 'connection/invitations-received'
1190
                        ],
1191
                        [
1192
                            'label' => 'LABEL_PEOPLE_YOU_MAY_KNOW',
1193
                            'route' => 'connection/people-you-may-know'
1194
                        ],
1195
                        [
1196
                            'label' => 'LABEL_PEOPLE_BLOCKED',
1197
                            'route' => 'connection/people-blocked'
1198
                        ],
1199
 
1200
 
1201
                    ]
1202
                ],
1203
                [
1204
                    'label' => 'LABEL_MY_PROFILES',
1205
                    'route' => 'profile/my-profiles'
1206
                ],
1207
                [
1208
                    'label' => 'LABEL_JOBS',
1209
                    'route' => 'job',
1210
                    'pages' => [
1211
                        [
1212
                            'label' => 'LABEL_JOBS_APPLIED',
1213
                            'route' => 'job/applied-jobs'
1214
                        ],
1215
                        [
1216
                            'label' => 'LABEL_JOBS_SAVED',
1217
                            'route' => 'job/saved-jobs'
1218
                        ],
1219
                    ]
1220
                ],
1221
 
1222
 
1223
                [
1224
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1225
                    'route' => 'profile/people-viewed-profile'
1226
                ],
1227
 
1228
            ]
1229
        ],
1230
 
1231
 
1232
        [
1233
            'label' => 'LABEL_COMPANIES',
1234
            'route' => 'company',
1235
            'class' => '/images/navbar/empresa.svg',
1236
            'pages' => [
1237
                [
1238
                    'label' => 'LABEL_MY_COMPANIES',
1239
                    'route' => 'company/my-companies'
1240
                ],
1241
                [
1242
                    'label' => 'LABEL_COMPANIES_I_FOLLOW',
1243
                    'route' => 'company/following-companies'
1244
                ],
1245
                [
1246
                    'label' => 'LABEL_COMPANIES_I_WORK_WITH',
1247
                    'route' => 'company/i-work-with'
1248
                ],
1249
                [
1250
                    'label' => 'LABEL_REQUESTS_SENT',
1251
                    'route' => 'company/requests-sent'
1252
                ],
1253
                [
1254
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1255
                    'route' => 'company/invitations-received'
1256
                ]
1257
            ]
1258
        ],
1259
 
1260
        [
1261
            'label' => 'LABEL_GROUPS',
1262
            'route' => 'group',
1263
            'class' => '/images/navbar/grupos.svg',
1264
            'pages' => [
1265
                [
1266
                    'label' => 'LABEL_MY_GROUPS',
1267
                    'route' => 'group/my-groups'
1268
                ],
1269
                [
1270
                    'label' => 'LABEL_JOINED_GROUPS',
1271
                    'route' => 'group/joined-groups'
1272
                ],
1273
                [
1274
                    'label' => 'LABEL_REQUESTS_SENT',
1275
                    'route' => 'group/requests-sent'
1276
                ],
1277
                [
1278
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1279
                    'route' => 'group/invitations-received'
1280
                ]
1281
            ]
1282
        ],
321 www 1283
        /*
1 efrain 1284
        [
1285
            'label' => 'LABEL_MARKETPLACE',
1286
            'route' => 'marketplace',
1287
            'class' => '/images/navbar/market-place.svg',
321 www 1288
        ],*/
167 efrain 1289
 
1290
 
1291
 
1 efrain 1292
        [
167 efrain 1293
            'label' => 'LABEL_COMMUNICATION',
1294
            'route' => 'communication',
1 efrain 1295
            'class' => '/images/navbar/calendar.svg',
167 efrain 1296
            'pages' => [
1297
                [
1298
                    'label' => 'LABEL_CALENDAR',
1299
                    'route' => 'calendar',
1300
                    'class' => '/images/navbar/calendar.svg',
1301
                ],
1302
                [
1303
                    'label' => 'LABEL_INMAIL',
1304
                    'route' => 'inmail',
1305
                    'class' => '/images/navbar/calendar.svg',
1306
                ],
1307
                [
1308
                    'label' => 'LABEL_CHAT',
1309
                    'route' => 'chat',
1310
                    'class' => '/images/navbar/calendar.svg',
1311
                ],
1312
                [
1313
                    'label' => 'LABEL_NOTIFICATIONS',
1314
                    'route' => 'notifications',
1315
                    'class' => '/images/navbar/calendar.svg',
1316
                ],
1317
            ],
1 efrain 1318
        ],
167 efrain 1319
 
1320
        [
1321
            'label' => 'LABEL_KNOWLEDGE',
1322
            'route' => 'knowledge',
1323
            'class' => '/images/navbar/calendar.svg',
1324
            'pages' => [
1325
                [
1326
                    'label' => 'LABEL_MY_COACH',
1327
                    'route' => 'my-coach',
1328
                    'class' => '/images/navbar/calendar.svg',
1329
                ],
1330
                [
1331
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1332
                    'route' => 'knowledge-area',
1333
                    'class' => '/images/navbar/calendar.svg',
1334
                ],
1335
                [
1336
                    'label' => 'LABEL_MICROLEARNING',
1337
                    'route' => 'microlearning',
1338
                    'class' => '/images/navbar/calendar.svg',
191 efrain 1339
                    /*
167 efrain 1340
                    'pages' => [
1341
                        [
1342
                            'label' => 'LABEL_HOME',
1343
                            'route' => 'microlearning',
1344
                            'class' => '/images/navbar/calendar.svg',
1345
                        ],
1346
                        [
1347
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1348
                            'route' => 'microlearning/topics',
1349
                            'class' => '/images/navbar/calendar.svg',
1350
                        ],
1351
                        [
1352
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1353
                            'route' => 'microlearning/timeline',
1354
                            'class' => '/images/navbar/calendar.svg',
1355
                        ],
1356
                        [
1357
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1358
                            'route' => 'microlearning/companies',
1359
                            'class' => '/images/navbar/calendar.svg',
1360
                        ],
1361
                        [
1362
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1363
                            'route' => 'microlearning/profile',
1364
                            'class' => '/images/navbar/calendar.svg',
1365
                        ],
191 efrain 1366
                    ]*/
167 efrain 1367
                ],
302 www 1368
                [
1369
                    'label' => 'LABEL_HABITS',
1370
                    'route' => 'habits',
1371
                    'class' => '/images/navbar/calendar.svg',
1372
                ]
167 efrain 1373
 
1374
            ]
1375
 
1376
 
1377
        ],
1378
 
1 efrain 1379
 
1380
    ];
1381
}
1382
 
1383
function getAclMenuDefaultNetworkConnectionAll2All()
1384
{
1385
    return [
1386
        [
1387
            'label' => 'LABEL_HOME',
1388
            'route' => 'dashboard',
1389
            'class' => '/images/navbar/home.svg',
1390
        ],
1391
        [
1392
            'label' => 'LABEL_PROFILE',
1393
            'route' => 'profile',
1394
            'class' => '/images/navbar/perfil.svg',
1395
            'pages' => [
1396
                [
1397
                    'label' => 'LABEL_MY_CONNECTIONS',
1398
                    'route' => 'connection/my-connections',
1399
                ],
1400
                [
1401
                    'label' => 'LABEL_MY_PROFILES',
1402
                    'route' => 'profile/my-profiles'
1403
                ],
1404
                [
1405
                    'label' => 'LABEL_JOBS_APPLIED',
1406
                    'route' => 'job/applied-jobs'
1407
                ],
1408
                [
1409
                    'label' => 'LABEL_JOBS_SAVED',
1410
                    'route' => 'job/saved-jobs'
1411
                ],
1412
                [
1413
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1414
                    'route' => 'profile/people-viewed-profile'
1415
                ],
1416
 
1417
            ]
1418
        ],
1419
 
1420
 
1421
        [
1422
            'label' => 'LABEL_COMPANIES',
1423
            'route' => 'company',
1424
            'class' => '/images/navbar/empresa.svg',
1425
            'pages' => [
1426
                [
1427
                    'label' => 'LABEL_MY_COMPANIES',
1428
                    'route' => 'company/my-companies'
1429
                ],
1430
                [
1431
                    'label' => 'LABEL_COMPANIES_I_FOLLOW',
1432
                    'route' => 'company/following-companies'
1433
                ],
1434
                [
1435
                    'label' => 'LABEL_COMPANIES_I_WORK_WITH',
1436
                    'route' => 'company/i-work-with'
1437
                ],
1438
                [
1439
                    'label' => 'LABEL_REQUESTS_SENT',
1440
                    'route' => 'company/requests-sent'
1441
                ],
1442
                [
1443
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1444
                    'route' => 'company/invitations-received'
1445
                ]
1446
            ]
1447
        ],
1448
 
1449
        [
1450
            'label' => 'LABEL_GROUPS',
1451
            'route' => 'group',
1452
            'class' => '/images/navbar/grupos.svg',
1453
            'pages' => [
1454
                [
1455
                    'label' => 'LABEL_MY_GROUPS',
1456
                    'route' => 'group/my-groups'
1457
                ],
1458
                [
1459
                    'label' => 'LABEL_JOINED_GROUPS',
1460
                    'route' => 'group/joined-groups'
1461
                ],
1462
                [
1463
                    'label' => 'LABEL_REQUESTS_SENT',
1464
                    'route' => 'group/requests-sent'
1465
                ],
1466
                [
1467
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1468
                    'route' => 'group/invitations-received'
1469
                ]
1470
            ]
1471
        ],
1472
        [
1473
            'label' => 'LABEL_MARKETPLACE',
1474
            'route' => 'marketplace',
1475
            'class' => '/images/navbar/market-place.svg',
1476
        ],
167 efrain 1477
 
1478
 
1 efrain 1479
        [
167 efrain 1480
            'label' => 'LABEL_COMMUNICATION',
1481
            'route' => 'communication',
1 efrain 1482
            'class' => '/images/navbar/calendar.svg',
167 efrain 1483
            'pages' => [
1484
                [
1485
                    'label' => 'LABEL_CALENDAR',
1486
                    'route' => 'calendar',
1487
                    'class' => '/images/navbar/calendar.svg',
1488
                ],
1489
                [
1490
                    'label' => 'LABEL_INMAIL',
1491
                    'class' => '/images/navbar/calendar.svg',
1492
                ],
1493
                [
1494
                    'label' => 'LABEL_CHAT',
1495
                    'route' => 'chat',
1496
                    'class' => '/images/navbar/calendar.svg',
1497
                ],
1498
                [
1499
                    'label' => 'LABEL_NOTIFICATIONS',
1500
                    'route' => 'notifications',
1501
                    'class' => '/images/navbar/calendar.svg',
1502
                ],
1503
            ],
1 efrain 1504
        ],
167 efrain 1505
 
1506
        [
1507
            'label' => 'LABEL_KNOWLEDGE',
1508
            'route' => 'knowledge',
1509
            'class' => '/images/navbar/calendar.svg',
1510
            'pages' => [
1511
                [
1512
                    'label' => 'LABEL_MY_COACH',
1513
                    'route' => 'my-coach',
1514
                    'class' => '/images/navbar/calendar.svg',
1515
                ],
1516
                [
1517
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1518
                    'route' => 'knowledge-area',
1519
                    'class' => '/images/navbar/calendar.svg',
1520
                ],
1521
                [
1522
                    'label' => 'LABEL_MICROLEARNING',
1523
                    'route' => 'microlearning',
1524
                    'class' => '/images/navbar/calendar.svg',
191 efrain 1525
       /*
167 efrain 1526
                    'pages' => [
1527
                        [
1528
                            'label' => 'LABEL_HOME',
1529
                            'route' => 'microlearning',
1530
                            'class' => '/images/navbar/calendar.svg',
1531
                        ],
1532
                        [
1533
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1534
                            'route' => 'microlearning/topics',
1535
                            'class' => '/images/navbar/calendar.svg',
1536
                        ],
1537
                        [
1538
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1539
                            'route' => 'microlearning/timeline',
1540
                            'class' => '/images/navbar/calendar.svg',
1541
                        ],
1542
                        [
1543
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1544
                            'route' => 'microlearning/companies',
1545
                            'class' => '/images/navbar/calendar.svg',
1546
                        ],
1547
                        [
1548
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1549
                            'route' => 'microlearning/profile',
1550
                            'class' => '/images/navbar/calendar.svg',
1551
                        ],
191 efrain 1552
                    ]*/
167 efrain 1553
                ],
1554
 
1555
            ]
1556
 
1557
 
1558
        ],
1 efrain 1559
    ];
1560
}
1561
 
1562
function getAclMenuNonDefaulNetworkConnectionUser2User()
1563
{
1564
    return [
1565
        [
1566
            'label' => 'LABEL_HOME',
1567
            'route' => 'dashboard',
1568
            'class' => '/images/navbar/home.svg',
1569
        ],
1570
        [
1571
            'label' => 'LABEL_PROFILE',
1572
            'route' => 'profile',
1573
            'class' => '/images/navbar/perfil.svg',
1574
            'pages' => [
1575
                [
1576
                    'label' => 'LABEL_CONNECTIONS',
1577
                    'route' => 'connection',
1578
                    //'class' =>'/images/navbar/conexion.svg',
1579
                    'pages' => [
1580
                        [
1581
                            'label' => 'LABEL_MY_CONNECTIONS',
1582
                            'route' => 'connection/my-connections'
1583
                        ],
1584
                        [
1585
                            'label' => 'LABEL_INVITATIONS_SENT',
1586
                            'route' => 'connection/invitations-sent'
1587
                        ],
1588
                        [
1589
                            'label' => 'LABEL_INVITATIONS_RECEIVED',
1590
                            'route' => 'connection/invitations-received'
1591
                        ],
1592
                        [
1593
                            'label' => 'LABEL_PEOPLE_YOU_MAY_KNOW',
1594
                            'route' => 'connection/people-you-may-know'
1595
                        ],
1596
                        [
1597
                            'label' => 'LABEL_PEOPLE_BLOCKED',
1598
                            'route' => 'connection/people-blocked'
1599
                        ],
1600
 
1601
 
1602
                    ]
1603
                ],
1604
                [
1605
                    'label' => 'LABEL_MY_PROFILES',
1606
                    'route' => 'profile/my-profiles'
1607
                ],
1608
                [
1609
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1610
                    'route' => 'profile/people-viewed-profile'
1611
                ],
1612
 
1613
            ]
1614
        ],
1615
 
1616
        [
1617
            'label' => 'LABEL_COMPANY',
1618
            'route' => 'company',
1619
            'class' => '/images/navbar/empresa.svg',
1620
 
1621
        ],
1622
 
1623
        [
1624
            'label' => 'LABEL_GROUPS',
1625
            'route' => 'group',
1626
            'class' => '/images/navbar/grupos.svg',
1627
            'pages' => [
1628
                [
1629
                    'label' => 'LABEL_MY_GROUPS',
1630
                    'route' => 'group/my-groups'
1631
                ],
1632
                [
1633
                    'label' => 'LABEL_JOINED_GROUPS',
1634
                    'route' => 'group/joined-groups'
1635
                ],
1636
                [
1637
                    'label' => 'LABEL_REQUESTS_SENT',
1638
                    'route' => 'group/requests-sent'
1639
                ],
1640
                [
1641
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1642
                    'route' => 'group/invitations-received'
1643
                ]
1644
            ]
1645
        ],
1646
        [
1647
            'label' => 'LABEL_MARKETPLACE',
1648
            'route' => 'marketplace',
1649
            'class' => '/images/navbar/market-place.svg',
1650
        ],
167 efrain 1651
 
1652
 
1 efrain 1653
        [
167 efrain 1654
            'label' => 'LABEL_COMMUNICATION',
1655
            'route' => 'communication',
1 efrain 1656
            'class' => '/images/navbar/calendar.svg',
167 efrain 1657
            'pages' => [
1658
                [
1659
                    'label' => 'LABEL_CALENDAR',
1660
                    'route' => 'calendar',
1661
                    'class' => '/images/navbar/calendar.svg',
1662
                ],
1663
                [
1664
                    'label' => 'LABEL_INMAIL',
1665
                    'route' => 'inmail',
1666
                    'class' => '/images/navbar/calendar.svg',
1667
                ],
1668
                [
1669
                    'label' => 'LABEL_CHAT',
1670
                    'route' => 'chat',
1671
                    'class' => '/images/navbar/calendar.svg',
1672
                ],
1673
                [
1674
                    'label' => 'LABEL_NOTIFICATIONS',
1675
                    'route' => 'notifications',
1676
                    'class' => '/images/navbar/calendar.svg',
1677
                ],
1678
            ],
1 efrain 1679
        ],
167 efrain 1680
 
1681
        [
1682
            'label' => 'LABEL_KNOWLEDGE',
1683
            'route' => 'knowledge',
1684
            'class' => '/images/navbar/calendar.svg',
1685
            'pages' => [
1686
                [
1687
                    'label' => 'LABEL_MY_COACH',
1688
                    'route' => 'my-coach',
1689
                    'class' => '/images/navbar/calendar.svg',
1690
                ],
1691
                [
1692
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1693
                    'route' => 'knowledge-area',
1694
                    'class' => '/images/navbar/calendar.svg',
1695
                ],
1696
                [
1697
                    'label' => 'LABEL_MICROLEARNING',
1698
                    'route' => 'microlearning',
1699
                    'class' => '/images/navbar/calendar.svg',
191 efrain 1700
       /*
167 efrain 1701
                    'pages' => [
1702
                        [
1703
                            'label' => 'LABEL_HOME',
1704
                            'route' => 'microlearning',
1705
                            'class' => '/images/navbar/calendar.svg',
1706
                        ],
1707
                        [
1708
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1709
                            'route' => 'microlearning/topics',
1710
                            'class' => '/images/navbar/calendar.svg',
1711
                        ],
1712
                        [
1713
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1714
                            'route' => 'microlearning/timeline',
1715
                            'class' => '/images/navbar/calendar.svg',
1716
                        ],
1717
                        [
1718
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1719
                            'route' => 'microlearning/companies',
1720
                            'class' => '/images/navbar/calendar.svg',
1721
                        ],
1722
                        [
1723
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1724
                            'route' => 'microlearning/profile',
1725
                            'class' => '/images/navbar/calendar.svg',
1726
                        ],
191 efrain 1727
                    ]*/
167 efrain 1728
                ],
1729
 
1730
            ]
1731
 
1732
 
1733
        ],
1 efrain 1734
    ];
1735
}
1736
 
1737
function getAclMenuNonDefaultNetworkConnectionAll2All()
1738
{
1739
    return [
1740
        [
1741
            'label' => 'LABEL_HOME',
1742
            'route' => 'dashboard',
1743
            'class' => '/images/navbar/home.svg',
1744
        ],
1745
        [
1746
            'label' => 'LABEL_PROFILE',
1747
            'route' => 'profile',
1748
            'class' => '/images/navbar/perfil.svg',
1749
            'pages' => [
1750
                [
1751
                    'label' => 'LABEL_MY_CONNECTIONS',
1752
                    'route' => 'connection/my-connections'
1753
                ],
1754
                [
1755
                    'label' => 'LABEL_MY_PROFILES',
1756
                    'route' => 'profile/my-profiles'
1757
                ],
1758
                [
1759
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1760
                    'route' => 'profile/people-viewed-profile'
1761
                ],
1762
 
1763
            ]
1764
        ],
1765
 
1766
        [
1767
            'label' => 'LABEL_COMPANY',
1768
            'route' => 'company',
1769
            'class' => '/images/navbar/empresa.svg',
1770
 
1771
        ],
1772
 
1773
 
1774
        [
1775
            'label' => 'LABEL_GROUPS',
1776
            'route' => 'group',
1777
            'class' => '/images/navbar/grupos.svg',
1778
            'pages' => [
1779
                [
1780
                    'label' => 'LABEL_MY_GROUPS',
1781
                    'route' => 'group/my-groups'
1782
                ],
1783
                [
1784
                    'label' => 'LABEL_JOINED_GROUPS',
1785
                    'route' => 'group/joined-groups'
1786
                ],
1787
                [
1788
                    'label' => 'LABEL_REQUESTS_SENT',
1789
                    'route' => 'group/requests-sent'
1790
                ],
1791
                [
1792
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1793
                    'route' => 'group/invitations-received'
1794
                ]
1795
            ]
1796
        ],
1797
        [
1798
            'label' => 'LABEL_MARKETPLACE',
1799
            'route' => 'marketplace',
1800
            'class' => '/images/navbar/market-place.svg',
1801
        ],
167 efrain 1802
 
1803
 
1 efrain 1804
        [
167 efrain 1805
            'label' => 'LABEL_COMMUNICATION',
1806
            'route' => 'communication',
1 efrain 1807
            'class' => '/images/navbar/calendar.svg',
167 efrain 1808
            'pages' => [
1809
                [
1810
                    'label' => 'LABEL_CALENDAR',
1811
                    'route' => 'calendar',
1812
                    'class' => '/images/navbar/calendar.svg',
1813
                ],
1814
                [
1815
                    'label' => 'LABEL_INMAIL',
1816
                    'route' => 'inmail',
1817
                    'class' => '/images/navbar/calendar.svg',
1818
                ],
1819
                [
1820
                    'label' => 'LABEL_CHAT',
1821
                    'route' => 'chat',
1822
                    'class' => '/images/navbar/calendar.svg',
1823
                ],
1824
                [
1825
                    'label' => 'LABEL_NOTIFICATIONS',
1826
                    'route' => 'notifications',
1827
                    'class' => '/images/navbar/calendar.svg',
1828
                ],
1829
            ],
1 efrain 1830
        ],
167 efrain 1831
 
1832
        [
1833
            'label' => 'LABEL_KNOWLEDGE',
1834
            'route' => 'knowledge',
1835
            'class' => '/images/navbar/calendar.svg',
1836
            'pages' => [
1837
                [
1838
                    'label' => 'LABEL_MY_COACH',
1839
                    'route' => 'my-coach',
1840
                    'class' => '/images/navbar/calendar.svg',
1841
                ],
1842
                [
1843
                    'label' => 'LABEL_KNOWLEDGE_AREA',
1844
                    'route' => 'knowledge-area',
1845
                    'class' => '/images/navbar/calendar.svg',
1846
                ],
1847
                [
1848
                    'label' => 'LABEL_MICROLEARNING',
1849
                    'route' => 'microlearning',
1850
                    'class' => '/images/navbar/calendar.svg',
191 efrain 1851
                    /*
167 efrain 1852
 
1853
                    'pages' => [
1854
                        [
1855
                            'label' => 'LABEL_HOME',
1856
                            'route' => 'microlearning',
1857
                            'class' => '/images/navbar/calendar.svg',
1858
                        ],
1859
                        [
1860
                            'label' => 'LABEL_MICROLEARNING_TOPICS',
1861
                            'route' => 'microlearning/topics',
1862
                            'class' => '/images/navbar/calendar.svg',
1863
                        ],
1864
                        [
1865
                            'label' => 'LABEL_MICROLEARNING_TIMELINE' ,
1866
                            'route' => 'microlearning/timeline',
1867
                            'class' => '/images/navbar/calendar.svg',
1868
                        ],
1869
                        [
1870
                            'label' => 'LABEL_MICROLEARNING_PROGRESS' ,
1871
                            'route' => 'microlearning/companies',
1872
                            'class' => '/images/navbar/calendar.svg',
1873
                        ],
1874
                        [
1875
                            'label' => 'LABEL_MICROLEARNING_PROFILE',
1876
                            'route' => 'microlearning/profile',
1877
                            'class' => '/images/navbar/calendar.svg',
1878
                        ],
191 efrain 1879
                    ]*/
167 efrain 1880
                ],
1881
 
1882
            ]
1883
 
1884
 
1885
        ],
1 efrain 1886
    ];
1887
}