Proyectos de Subversion LeadersLinked - Services

Rev

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