Proyectos de Subversion LeadersLinked - Services

Rev

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