Proyectos de Subversion LeadersLinked - Services

Rev

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