Proyectos de Subversion LeadersLinked - Services

Rev

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