Proyectos de Subversion LeadersLinked - Services

Rev

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