Proyectos de Subversion LeadersLinked - Services

Rev

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