Proyectos de Subversion LeadersLinked - Services

Rev

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