Proyectos de Subversion LeadersLinked - Services

Rev

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