Proyectos de Subversion LeadersLinked - Services

Rev

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