Proyectos de Subversion LeadersLinked - Services

Rev

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