Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 5951 | Rev 6388 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 www 1
<?php
553 geraldo 2
 
1 www 3
use LeadersLinked\Model\UserType;
4
 
5546 anderson 5
function getAclResources()
6
{
1 www 7
    return [
8
        'home',
9
        'onroom',
10
        'signin',
11
        'signin/facebook',
12
        'signin/twitter',
13
        'signin/google',
3639 efrain 14
        'signin/impersonate',
3298 efrain 15
        'share',
4778 efrain 16
        'share/increment-external-counter',
1 www 17
        'signout',
18
        'signup',
19
        'backend',
20
        'backend/signin-admin',
21
        'backend/signin-company',
3775 efrain 22
        'shorter',
23
        'shorter/generate',
210 efrain 24
        'csrf',
1 www 25
        'check-session',
5751 efrain 26
        'language',
3639 efrain 27
        'impersonate',
28
        'impersonate/execute',
1 www 29
        'notifications',
3262 efrain 30
        'notifications/mark-read',
31
        'notifications/mark-all-read',
32
        'notifications/delete',
33
        'notifications/clear',
34
        'notifications/unreads',
1 www 35
        'reset-password',
36
        'forgot-password',
37
        'activate-account',
38
        'professionalism-policy',
39
        'privacy-policy',
40
        'terms-and-conditions',
41
        'cookies',
42
        'help',
43
        'oauth',
44
        'oauth/facebook',
45
        'oauth/facebook/cancel',
46
        'oauth/facebook/delete',
47
        'oauth/twitter',
48
        'oauth/google',
49
        'oauth/instagram',
50
        'paypal',
51
        'paypal/success',
52
        'paypal/cancel',
53
        'services',
54
        'services/device',
55
        'services/check-session',
56
        'services/fcm',
57
        'services/signin',
58
        'services/signout',
59
        'services/sync',
60
        'services/sync-batch',
61
        'services/storage',
62
        'services/microlearning',
63
        'services/microlearning/refresh',
64
        'services/microlearning/check-changes',
280 efrain 65
        'services/microlearning/capsules',
66
        'services/microlearning/capsules/comments',
67
        'services/microlearning/capsules/comments/add',
68
        'services/microlearning/capsules/comments/delete',
1979 efrain 69
        'services/delete-account',
1 www 70
        'storage',
3639 efrain 71
        'storage-network',
1 www 72
        'dashboard',
73
        'post',
4808 efrain 74
        'post/comments',
75
        'post/comments/add',
76
        'post/comments/delete',
5765 efrain 77
        'post/save-reaction',
5780 efrain 78
        'post/delete-reaction',
5546 anderson 79
 
1 www 80
        'feed',
81
        'feed/timeline',
82
        'feed/add',
83
        'feed/delete',
84
        'feed/share',
85
        'feed/comment',
86
        'feed/comment/delete',
5765 efrain 87
        'feed/save-reaction',
5780 efrain 88
        'feed/delete-reaction',
1 www 89
        'connection',
90
        'connection/my-connections',
91
        'connection/people-you-may-know',
92
        'connection/people-blocked',
93
        'connection/people-blocked/delete',
94
        'connection/invitations-sent',
95
        'connection/invitations-received',
96
        'connection/request',
97
        'connection/approve',
98
        'connection/reject',
99
        'connection/block',
100
        'connection/cancel',
101
        'connection/delete',
102
        'connection/unblock',
103
        'account-settings',
104
        'account-settings/image',
105
        'account-settings/deactivate',
106
        'account-settings/notifications',
107
        'account-settings/password',
108
        'account-settings/social-networks',
109
        'account-settings/location',
110
        'account-settings/privacy',
111
        'account-settings/basic',
112
        'account-settings/browsers',
113
        'account-settings/ips',
114
        'account-settings/devices',
115
        'account-settings/transactions',
116
        'account-settings/transactions/add-funds',
117
        'account-settings/add-facebook',
118
        'account-settings/remove-facebook',
119
        'account-settings/add-twitter',
120
        'account-settings/remove-twitter',
121
        'account-settings/add-google',
122
        'account-settings/remove-google',
1979 efrain 123
        'account-settings/delete-account',
1 www 124
        'search',
125
        'search/company',
126
        'search/group',
127
        'search/job',
128
        'search/user',
129
        'moodle',
130
        'profile',
131
        'profile/self-evaluation',
132
        'profile/self-evaluation/take-a-test',
279 efrain 133
        'profile/self-evaluation/report',
553 geraldo 134
        'profile/performance-evaluation',
135
        'profile/performance-evaluation/take-a-test',
136
        'profile/performance-evaluation/report',
1 www 137
        'profile/microlearning',
138
        'profile/microlearning/timeline',
139
        'profile/microlearning/progress',
140
        'profile/view',
141
        'profile/people-viewed-profile',
142
        'profile/my-profiles',
143
        'profile/my-profiles/extended',
144
        'profile/my-profiles/cover',
145
        'profile/my-profiles/image',
146
        'profile/my-profiles/experience',
147
        'profile/my-profiles/education',
148
        'profile/my-profiles/language',
149
        'profile/my-profiles/location',
150
        'profile/my-profiles/skill',
151
        'profile/my-profiles/social-network',
3912 efrain 152
        'profile/my-profiles/aptitude',
153
        'profile/my-profiles/hobby-and-interest',
1 www 154
        'profile/my-profiles/add',
155
        'profile/my-profiles/edit',
156
        'profile/my-profiles/delete',
157
        'company',
158
        'company/my-companies',
159
        'company/my-companies/add',
160
        'company/following-companies',
161
        'company/view',
162
        'company/follow',
163
        'company/unfollow',
164
        'company/request',
165
        'company/reject',
166
        'company/accept',
167
        'company/cancel',
168
        'company/leave',
169
        'company/requests-sent',
170
        'company/invitations-received',
171
        'company/i-work-with',
172
        'group',
173
        'group/view',
174
        'group/request',
175
        'group/leave',
176
        'group/cancel',
1360 efrain 177
        'group/accept',
178
        'group/reject',
1 www 179
        'group/my-groups',
180
        'group/my-groups/accessibility',
181
        'group/my-groups/industry',
182
        'group/my-groups/extended',
183
        'group/my-groups/type',
184
        'group/my-groups/users',
185
        'group/my-groups/image',
186
        'group/my-groups/cover',
187
        'group/my-groups/website',
188
        'group/my-groups/privacy',
189
        'group/my-groups/add',
190
        'group/my-groups/edit',
191
        'group/my-groups/delete',
192
        'group/my-groups/status',
193
        'group/joined-groups',
194
        'group/requests-sent',
195
        'group/invitations-received',
196
        'group/members',
197
        'group/members/approve',
198
        'group/members/reject',
199
        'group/members/invite',
200
        'group/members/cancel',
201
        'job',
202
        'job/view',
203
        'job/applied-jobs',
204
        'job/apply-job',
205
        'job/remove-apply-job',
206
        'job/saved-jobs',
207
        'job/save-job',
208
        'job/remove-save-job',
209
        'inmail',
210
        'inmail/block',
211
        'inmail/delete',
212
        'inmail/message',
213
        'inmail/message/send',
214
        'inmail/message/delete',
215
        'chat',
4857 efrain 216
        'chat/users',
1 www 217
        'chat/heart-beat',
218
        'chat/create-group',
219
        'chat/add-user-to-group',
220
        'chat/mark-seen',
221
        'chat/mark-received',
222
        'chat/remove-user-from-group',
223
        'chat/get-all-messages',
224
        'chat/send',
225
        'chat/get-contacts-availables-for-group',
226
        'chat/get-contact-group-list',
227
        'chat/leave-group',
228
        'chat/delete-group',
229
        'chat/close',
230
        'chat/clear',
3121 efrain 231
        'chat/open',
1 www 232
        'chat/upload',
4113 efrain 233
        'chat/zoom',
5343 efrain 234
        'chat/open-or-create',
5546 anderson 235
 
1 www 236
        'helpers',
237
        'helpers/search-people',
238
        'helpers/posts',
239
        'helpers/people-you-may-know',
240
        'helpers/people-viewed-profile',
241
        'helpers/company-follower',
242
        'helpers/company-suggestion',
243
        'helpers/group-members',
244
        'helpers/group-members/invite',
245
        'helpers/group-members/cancel',
246
        'helpers/group-members/reject',
247
        'helpers/group-members/approve',
248
        'helpers/groups-suggestion',
3298 efrain 249
        'helpers/my-groups',
2444 efrain 250
        'helpers/footer',
4179 efrain 251
        'helpers/next-events',
1 www 252
        'marketplace',
253
        'marketplace/categories',
254
        'marketplace/enroll',
5223 efrain 255
        'marketplace/claim',
1 www 256
        'marketplace/join',
257
        'marketplace/buy',
4113 efrain 258
        'calendar',
259
        'calendar/events',
4398 efrain 260
 
5837 efrain 261
/*
262
        'zoom',
263
        'zoom/add',
264
        'zoom/delete',
265
        'zoom/listing',
266
*/
267
 
268
 
5951 efrain 269
        'knowledge-area',
270
        'knowledge-area/add',
271
        'knowledge-area/edit',
272
        'knowledge-area/delete',
273
        'knowledge-area/view',
6056 efrain 274
        'knowledge-area/comments',
275
        'knowledge-area/comments/add',
276
        'knowledge-area/comments/delete',
277
        'knowledge-area/save-reaction',
278
        'knowledge-area/delete-reaction',
5951 efrain 279
 
280
 
5050 efrain 281
        'my-coach',
5751 efrain 282
 
283
 
284
 
285
 
5205 efrain 286
        'daily-pulse',
287
        'daily-pulse/how_are_you_feel',
288
        'daily-pulse/climate_on_your_organization',
1 www 289
    ];
290
}
291
 
5546 anderson 292
function getAclSuperAdmin()
293
{
3639 efrain 294
    return [
295
        'impersonate',
296
        'impersonate/execute',
5546 anderson 297
    ];
3639 efrain 298
}
299
 
5546 anderson 300
function getAclUsertypeDefaultNetwork()
3639 efrain 301
{
302
    return [
303
        UserType::ADMIN => [
304
            'company',
305
            'company/my-companies',
306
            'company/my-companies/add',
307
            'company/following-companies',
308
            'company/view',
309
            'company/follow',
310
            'company/unfollow',
311
            'company/request',
312
            'company/reject',
313
            'company/accept',
314
            'company/cancel',
315
            'company/leave',
316
            'company/requests-sent',
317
            'company/invitations-received',
318
            'company/i-work-with',
319
            'search',
320
            'search/company',
5546 anderson 321
 
5050 efrain 322
            'my-coach',
5546 anderson 323
        ],
3639 efrain 324
        UserType::USER => [
325
            'company',
326
            'company/my-companies',
327
            'company/my-companies/add',
328
            'company/following-companies',
329
            'company/view',
330
            'company/follow',
331
            'company/unfollow',
332
            'company/request',
333
            'company/reject',
334
            'company/accept',
335
            'company/cancel',
336
            'company/leave',
337
            'company/requests-sent',
338
            'company/invitations-received',
339
            'company/i-work-with',
340
            'search',
341
            'search/company',
5546 anderson 342
 
5050 efrain 343
            'my-coach',
344
 
5546 anderson 345
 
346
        ],
3639 efrain 347
    ];
348
}
349
 
350
 
351
function getAclUsertypeOtherNetworkCreator()
352
{
353
    return [
354
        'company',
355
        'company/my-companies',
356
        'company/view',
3674 efrain 357
 
3639 efrain 358
    ];
359
}
360
 
361
function getAclUsertypeOtherNetworkNonCreator()
362
{
363
    return [
364
        'company',
365
        'company/i-work-with',
366
        'company/view',
367
    ];
368
}
369
 
370
 
5205 efrain 371
function getAclDailyPulse()
372
{
373
    return [
374
        'daily-pulse',
375
        'daily-pulse/how_are_you_feel',
376
        'daily-pulse/climate_on_your_organization',
377
    ];
378
}
3639 efrain 379
 
5951 efrain 380
function getAclKnowledgeArea()
381
{
382
    return [
383
 
384
        'knowledge-area',
385
        'knowledge-area/add',
386
        'knowledge-area/edit',
387
        'knowledge-area/delete',
388
        'knowledge-area/view',
6056 efrain 389
        'knowledge-area/comments',
390
        'knowledge-area/comments/add',
391
        'knowledge-area/comments/delete',
392
        'knowledge-area/save-reaction',
393
        'knowledge-area/delete-reaction'
5951 efrain 394
    ];
395
}
5205 efrain 396
 
397
 
5951 efrain 398
 
5546 anderson 399
function getAclUsertype()
400
{
1 www 401
    return [
402
        UserType::ADMIN => [
403
            'home',
3298 efrain 404
            'share',
4778 efrain 405
            'share/increment-external-counter',
1 www 406
            'onroom',
5751 efrain 407
            'language',
1 www 408
            'signin',
409
            'signin/facebook',
410
            'signin/twitter',
411
            'signin/google',
3639 efrain 412
            'signin/impersonate',
1 www 413
            'signout',
414
            'signup',
210 efrain 415
            'csrf',
1 www 416
            'check-session',
3775 efrain 417
            'shorter',
418
            'shorter/generate',
5546 anderson 419
 
1 www 420
            'notifications',
3262 efrain 421
            'notifications/mark-read',
422
            'notifications/mark-all-read',
423
            'notifications/delete',
424
            'notifications/clear',
425
            'notifications/unreads',
5546 anderson 426
 
1 www 427
            'reset-password',
428
            'forgot-password',
429
            'professionalism-policy',
430
            'activate-account',
431
            'privacy-policy',
432
            'terms-and-conditions',
433
            'cookies',
434
            'backend',
435
            'backend/signin-admin',
436
            'backend/signin-company',
437
            'oauth',
438
            'oauth/facebook',
439
            'oauth/facebook/cancel',
440
            'oauth/facebook/delete',
441
            'oauth/twitter',
442
            'oauth/google',
443
            'oauth/instagram',
444
            'paypal',
445
            'paypal/success',
446
            'paypal/cancel',
447
            'services',
448
            'services/device',
449
            'services/check-session',
450
            'services/fcm',
451
            'services/signin',
452
            'services/signout',
453
            'services/sync',
454
            'services/sync-batch',
455
            'services/storage',
456
            'services/microlearning',
457
            'services/microlearning/refresh',
458
            'services/microlearning/check-changes',
280 efrain 459
            'services/microlearning/capsules',
460
            'services/microlearning/capsules/comments',
461
            'services/microlearning/capsules/comments/add',
462
            'services/microlearning/capsules/comments/delete',
1979 efrain 463
            'services/delete-account',
1 www 464
            'storage',
3639 efrain 465
            'storage-network',
1 www 466
            'dashboard',
467
            'post',
4808 efrain 468
            'post/comments',
469
            'post/comments/add',
470
            'post/comments/delete',
5765 efrain 471
            'post/save-reaction',
5780 efrain 472
            'post/delete-reaction',
1 www 473
            'feed',
474
            'feed/timeline',
475
            'feed/add',
476
            'feed/delete',
477
            'feed/share',
478
            'feed/comment',
479
            'feed/comment/delete',
5765 efrain 480
            'feed/save-reaction',
5780 efrain 481
            'feed/delete-reaction',
1 www 482
            'connection',
483
            'connection/my-connections',
484
            'connection/people-you-may-know',
485
            'connection/people-blocked',
486
            'connection/people-blocked/delete',
487
            'connection/invitations-sent',
488
            'connection/invitations-received',
489
            'connection/request',
490
            'connection/approve',
491
            'connection/reject',
492
            'connection/block',
493
            'connection/cancel',
494
            'connection/delete',
495
            'connection/unblock',
496
            'account-settings',
497
            'account-settings/image',
498
            'account-settings/deactivate',
499
            'account-settings/notifications',
500
            'account-settings/password',
501
            'account-settings/social-networks',
502
            'account-settings/location',
503
            'account-settings/privacy',
504
            'account-settings/basic',
505
            'account-settings/browsers',
506
            'account-settings/ips',
507
            'account-settings/devices',
508
            'account-settings/transactions',
509
            'account-settings/transactions/add-funds',
510
            'account-settings/add-facebook',
511
            'account-settings/remove-facebook',
512
            'account-settings/add-twitter',
513
            'account-settings/remove-twitter',
514
            'account-settings/add-google',
515
            'account-settings/remove-google',
1979 efrain 516
            'account-settings/delete-account',
1 www 517
            'search',
518
            'search/group',
519
            'search/job',
520
            'search/user',
521
            'moodle',
522
            'profile',
523
            'profile/self-evaluation',
524
            'profile/self-evaluation/take-a-test',
279 efrain 525
            'profile/self-evaluation/report',
554 geraldo 526
            'profile/performance-evaluation',
527
            'profile/performance-evaluation/take-a-test',
528
            'profile/performance-evaluation/report',
1 www 529
            'profile/microlearning',
530
            'profile/microlearning/timeline',
531
            'profile/microlearning/progress',
532
            'profile/view',
533
            'profile/people-viewed-profile',
534
            'profile/my-profiles',
535
            'profile/my-profiles/extended',
536
            'profile/my-profiles/cover',
537
            'profile/my-profiles/image',
538
            'profile/my-profiles/experience',
539
            'profile/my-profiles/education',
540
            'profile/my-profiles/language',
541
            'profile/my-profiles/location',
542
            'profile/my-profiles/skill',
543
            'profile/my-profiles/social-network',
3912 efrain 544
            'profile/my-profiles/aptitude',
545
            'profile/my-profiles/hobby-and-interest',
1 www 546
            'profile/my-profiles/add',
547
            'profile/my-profiles/edit',
548
            'profile/my-profiles/delete',
3639 efrain 549
 
1 www 550
            'group',
551
            'group/view',
552
            'group/request',
553
            'group/leave',
554
            'group/cancel',
1360 efrain 555
            'group/accept',
556
            'group/reject',
1 www 557
            'group/my-groups',
558
            'group/my-groups/accessibility',
559
            'group/my-groups/industry',
560
            'group/my-groups/extended',
561
            'group/my-groups/type',
562
            'group/my-groups/users',
563
            'group/my-groups/image',
564
            'group/my-groups/cover',
565
            'group/my-groups/website',
566
            'group/my-groups/privacy',
567
            'group/my-groups/add',
568
            'group/my-groups/edit',
569
            'group/my-groups/delete',
570
            'group/my-groups/status',
571
            'group/joined-groups',
572
            'group/requests-sent',
573
            'group/invitations-received',
574
            'group/members',
575
            'group/members/approve',
576
            'group/members/reject',
577
            'group/members/invite',
578
            'group/members/cancel',
579
            'job',
580
            'job/view',
581
            'job/applied-jobs',
582
            'job/apply-job',
583
            'job/remove-apply-job',
584
            'job/saved-jobs',
585
            'job/save-job',
586
            'job/remove-save-job',
587
            'inmail',
588
            'inmail/block',
589
            'inmail/delete',
590
            'inmail/message',
591
            'inmail/message/send',
592
            'inmail/message/delete',
593
            'chat',
4857 efrain 594
            'chat/users',
1 www 595
            'chat/heart-beat',
596
            'chat/create-group',
597
            'chat/add-user-to-group',
598
            'chat/mark-seen',
599
            'chat/mark-received',
600
            'chat/remove-user-from-group',
601
            'chat/get-all-messages',
602
            'chat/send',
603
            'chat/get-contacts-availables-for-group',
604
            'chat/get-contact-group-list',
605
            'chat/leave-group',
606
            'chat/delete-group',
607
            'chat/close',
608
            'chat/clear',
3121 efrain 609
            'chat/open',
1 www 610
            'chat/upload',
4113 efrain 611
            'chat/zoom',
5343 efrain 612
            'chat/open-or-create',
5546 anderson 613
 
1 www 614
            'help',
615
            'helpers',
616
            'helpers/search-people',
617
            'helpers/posts',
618
            'helpers/people-you-may-know',
619
            'helpers/people-viewed-profile',
620
            'helpers/company-follower',
621
            'helpers/company-suggestion',
622
            'helpers/group-members',
623
            'helpers/group-members/invite',
624
            'helpers/group-members/cancel',
625
            'helpers/group-members/reject',
626
            'helpers/group-members/approve',
627
            'helpers/groups-suggestion',
3298 efrain 628
            'helpers/my-groups',
2444 efrain 629
            'helpers/footer',
4179 efrain 630
            'helpers/next-events',
1 www 631
            'marketplace',
632
            'marketplace/categories',
633
            'marketplace/enroll',
5223 efrain 634
            'marketplace/claim',
1 www 635
            'marketplace/join',
636
            'marketplace/buy',
4113 efrain 637
 
638
            'calendar',
639
            'calendar/events',
5546 anderson 640
 
5837 efrain 641
/*
642
            'zoom',
643
            'zoom/add',
644
            'zoom/delete',
645
            'zoom/listing',
646
            */
1 www 647
        ],
648
        UserType::USER => [
649
            'home',
650
            'onroom',
5751 efrain 651
            'language',
3298 efrain 652
            'share',
4778 efrain 653
            'share/increment-external-counter',
1 www 654
            'signin',
655
            'signin/facebook',
656
            'signin/twitter',
657
            'signin/google',
3639 efrain 658
            'signin/impersonate',
1 www 659
            'signout',
660
            'signup',
210 efrain 661
            'csrf',
1 www 662
            'check-session',
3775 efrain 663
            'shorter',
664
            'shorter/generate',
1 www 665
            'notifications',
3262 efrain 666
            'notifications/mark-read',
667
            'notifications/mark-all-read',
668
            'notifications/delete',
669
            'notifications/clear',
670
            'notifications/unreads',
1 www 671
            'professionalism-policy',
672
            'reset-password',
673
            'forgot-password',
674
            'activate-account',
675
            'privacy-policy',
676
            'terms-and-conditions',
677
            'cookies',
678
            'backend',
679
            'backend/signin-company',
680
            'oauth',
681
            'oauth/facebook',
682
            'oauth/facebook/cancel',
683
            'oauth/facebook/delete',
684
            'oauth/twitter',
685
            'oauth/google',
686
            'oauth/instagram',
687
            'paypal',
688
            'paypal/success',
689
            'paypal/cancel',
690
            'services',
691
            'services/device',
692
            'services/check-session',
693
            'services/fcm',
694
            'services/signin',
1323 efrain 695
            'services/signout',
1 www 696
            'services/sync',
697
            'services/sync-batch',
698
            'services/storage',
699
            'services/microlearning',
700
            'services/microlearning/refresh',
701
            'services/microlearning/check-changes',
280 efrain 702
            'services/microlearning/capsules',
703
            'services/microlearning/capsules/comments',
704
            'services/microlearning/capsules/comments/add',
705
            'services/microlearning/capsules/comments/delete',
1979 efrain 706
            'services/delete-account',
1 www 707
            'storage',
3639 efrain 708
            'storage-network',
1 www 709
            'dashboard',
710
            'post',
4808 efrain 711
            'post/comments',
712
            'post/comments/add',
713
            'post/comments/delete',
5765 efrain 714
            'post/save-reaction',
5780 efrain 715
            'post/delete-reaction',
1 www 716
            'feed',
717
            'feed/timeline',
718
            'feed/add',
719
            'feed/delete',
720
            'feed/share',
721
            'feed/comment',
722
            'feed/comment/delete',
5765 efrain 723
            'feed/save-reaction',
5780 efrain 724
            'feed/delete-reaction',
1 www 725
            'connection',
726
            'connection/my-connections',
727
            'connection/people-you-may-know',
728
            'connection/people-blocked',
729
            'connection/people-blocked/delete',
730
            'connection/invitations-sent',
731
            'connection/invitations-received',
732
            'connection/request',
733
            'connection/approve',
734
            'connection/reject',
735
            'connection/block',
736
            'connection/cancel',
737
            'connection/delete',
738
            'connection/unblock',
739
            'account-settings',
740
            'account-settings/image',
741
            'account-settings/deactivate',
742
            'account-settings/notifications',
743
            'account-settings/password',
744
            'account-settings/social-networks',
745
            'account-settings/location',
746
            'account-settings/privacy',
747
            'account-settings/basic',
748
            'account-settings/browsers',
749
            'account-settings/ips',
750
            'account-settings/devices',
751
            'account-settings/transactions',
752
            'account-settings/transactions/add-funds',
753
            'account-settings/add-facebook',
754
            'account-settings/remove-facebook',
755
            'account-settings/add-twitter',
756
            'account-settings/remove-twitter',
757
            'account-settings/add-google',
758
            'account-settings/remove-google',
1979 efrain 759
            'account-settings/delete-account',
1 www 760
            'search',
761
            'search/group',
762
            'search/job',
763
            'search/user',
764
            'moodle',
765
            'profile',
766
            'profile/self-evaluation',
767
            'profile/self-evaluation/take-a-test',
279 efrain 768
            'profile/self-evaluation/report',
554 geraldo 769
            'profile/performance-evaluation',
770
            'profile/performance-evaluation/take-a-test',
771
            'profile/performance-evaluation/report',
1 www 772
            'profile/microlearning',
773
            'profile/microlearning/timeline',
774
            'profile/microlearning/progress',
775
            'profile/view',
776
            'profile/people-viewed-profile',
777
            'profile/my-profiles',
778
            'profile/my-profiles/extended',
779
            'profile/my-profiles/cover',
780
            'profile/my-profiles/image',
781
            'profile/my-profiles/experience',
782
            'profile/my-profiles/education',
783
            'profile/my-profiles/language',
784
            'profile/my-profiles/location',
785
            'profile/my-profiles/skill',
786
            'profile/my-profiles/social-network',
3912 efrain 787
            'profile/my-profiles/aptitude',
788
            'profile/my-profiles/hobby-and-interest',
1 www 789
            'profile/my-profiles/add',
790
            'profile/my-profiles/edit',
791
            'profile/my-profiles/delete',
792
            'group',
793
            'group/view',
794
            'group/request',
795
            'group/leave',
796
            'group/cancel',
1360 efrain 797
            'group/accept',
798
            'group/reject',
1 www 799
            'group/my-groups',
800
            'group/my-groups/accessibility',
801
            'group/my-groups/industry',
802
            'group/my-groups/extended',
803
            'group/my-groups/type',
804
            'group/my-groups/users',
805
            'group/my-groups/image',
806
            'group/my-groups/cover',
807
            'group/my-groups/website',
808
            'group/my-groups/privacy',
809
            'group/my-groups/add',
810
            'group/my-groups/edit',
811
            'group/my-groups/delete',
812
            'group/my-groups/status',
813
            'group/joined-groups',
814
            'group/requests-sent',
815
            'group/invitations-received',
816
            'group/members',
817
            'group/members/approve',
818
            'group/members/reject',
819
            'group/members/invite',
820
            'group/members/cancel',
821
            'job',
822
            'job/view',
823
            'job/applied-jobs',
824
            'job/apply-job',
825
            'job/remove-apply-job',
826
            'job/saved-jobs',
827
            'job/save-job',
828
            'job/remove-save-job',
829
            'inmail',
830
            'inmail/block',
831
            'inmail/delete',
832
            'inmail/message',
833
            'inmail/message/send',
834
            'inmail/message/delete',
835
            'chat',
4857 efrain 836
            'chat/users',
1 www 837
            'chat/heart-beat',
838
            'chat/create-group',
839
            'chat/add-user-to-group',
840
            'chat/mark-seen',
841
            'chat/mark-received',
842
            'chat/remove-user-from-group',
843
            'chat/get-all-messages',
844
            'chat/send',
845
            'chat/get-contacts-availables-for-group',
846
            'chat/get-contact-group-list',
847
            'chat/leave-group',
848
            'chat/delete-group',
849
            'chat/close',
850
            'chat/clear',
3121 efrain 851
            'chat/open',
1 www 852
            'chat/upload',
4113 efrain 853
            'chat/zoom',
5343 efrain 854
            'chat/open-or-create',
5546 anderson 855
 
1 www 856
            'help',
857
            'helpers',
858
            'helpers/search-people',
859
            'helpers/posts',
860
            'helpers/people-you-may-know',
861
            'helpers/people-viewed-profile',
862
            'helpers/company-follower',
863
            'helpers/company-suggestion',
864
            'helpers/group-members',
865
            'helpers/group-members/invite',
866
            'helpers/group-members/cancel',
867
            'helpers/group-members/reject',
868
            'helpers/group-members/approve',
869
            'helpers/groups-suggestion',
3298 efrain 870
            'helpers/my-groups',
2444 efrain 871
            'helpers/footer',
4179 efrain 872
            'helpers/next-events',
1 www 873
            'marketplace',
874
            'marketplace/categories',
875
            'marketplace/enroll',
5223 efrain 876
            'marketplace/claim',
1 www 877
            'marketplace/join',
878
            'marketplace/buy',
4113 efrain 879
 
880
            'calendar',
881
            'calendar/events',
5546 anderson 882
 
5837 efrain 883
            /*
884
            'zoom',
885
            'zoom/add',
886
            'zoom/delete',
887
            'zoom/listing',*/
1 www 888
        ],
889
        UserType::GUEST => [
890
            'home',
891
            'onroom',
5751 efrain 892
            'language',
3349 efrain 893
            'share',
1 www 894
            'signin',
895
            'signin/facebook',
896
            'signin/twitter',
897
            'signin/google',
3639 efrain 898
            'signin/impersonate',
1 www 899
            'signout',
900
            'signup',
901
            'check-session',
3775 efrain 902
            'shorter',
1 www 903
            'notifications',
3262 efrain 904
            'notifications/mark-read',
905
            'notifications/mark-all-read',
906
            'notifications/delete',
907
            'notifications/clear',
908
            'notifications/unreads',
1 www 909
            'professionalism-policy',
910
            'reset-password',
911
            'forgot-password',
912
            'activate-account',
913
            'privacy-policy',
914
            'terms-and-conditions',
915
            'cookies',
2581 efrain 916
            'csrf',
1 www 917
            'oauth',
918
            'oauth/facebook',
919
            'oauth/facebook/cancel',
920
            'oauth/facebook/delete',
921
            'oauth/twitter',
922
            'oauth/google',
923
            'oauth/instagram',
924
            'paypal',
925
            'paypal/success',
926
            'paypal/cancel',
3639 efrain 927
            'storage-network',
1 www 928
            'services',
929
            'services/device',
930
            'services/check-session',
931
            'services/fcm',
932
            'services/signin',
933
            'services/signout',
934
            'services/sync',
935
            'services/sync-batch',
5546 anderson 936
 
5837 efrain 937
            /*
938
            'zoom',
939
            'zoom/add',
940
            'zoom/delete',
941
            'zoom/listing',*/
1 www 942
        ],
1979 efrain 943
        UserType::USER_DELETED => [
944
            'home',
5751 efrain 945
            'language',
1979 efrain 946
            'signin',
947
            'signin/facebook',
948
            'signin/twitter',
949
            'signin/google',
950
            'signout',
951
            'signup',
952
            'check-session',
953
            'notifications',
3262 efrain 954
            'notifications/mark-read',
955
            'notifications/mark-all-read',
956
            'notifications/delete',
957
            'notifications/clear',
958
            'notifications/unreads',
1979 efrain 959
            'professionalism-policy',
960
            'reset-password',
961
            'forgot-password',
962
            'activate-account',
963
            'privacy-policy',
964
            'terms-and-conditions',
965
            'cookies',
966
            'oauth',
2581 efrain 967
            'csrf',
3775 efrain 968
            'shorter',
1979 efrain 969
            'oauth/facebook',
970
            'oauth/facebook/cancel',
971
            'oauth/facebook/delete',
972
            'oauth/twitter',
973
            'oauth/google',
974
            'oauth/instagram',
2002 efrain 975
            'services',
976
            'services/device',
977
            'services/check-session',
978
            'services/fcm',
979
            'services/signin',
980
            'services/signout',
981
            'services/sync',
982
            'services/sync-batch',
1979 efrain 983
        ],
1 www 984
    ];
985
}
4842 efrain 986
 
987
function getAclMenuDefaultNetworkConnectionUser2User()
988
{
989
    return [
990
        [
991
            'label' => 'LABEL_HOME',
992
            'route' => 'dashboard',
993
            'class' => '/images/navbar/home.svg',
994
        ],
995
        [
996
            'label' => 'LABEL_PROFILE',
997
            'route' => 'profile',
998
            'class' => '/images/navbar/perfil.svg',
999
            'pages' => [
1000
                [
1001
                    'label' => 'LABEL_CONNECTIONS',
1002
                    'route' => 'connection',
1003
                    //'class' =>'/images/navbar/conexion.svg',
1004
                    'pages' => [
1005
                        [
1006
                            'label' => 'LABEL_MY_CONNECTIONS',
1007
                            'route' => 'connection/my-connections'
1008
                        ],
1009
                        [
1010
                            'label' => 'LABEL_INVITATIONS_SENT',
1011
                            'route' => 'connection/invitations-sent'
1012
                        ],
1013
                        [
1014
                            'label' => 'LABEL_INVITATIONS_RECEIVED',
1015
                            'route' => 'connection/invitations-received'
1016
                        ],
1017
                        [
1018
                            'label' => 'LABEL_PEOPLE_YOU_MAY_KNOW',
1019
                            'route' => 'connection/people-you-may-know'
1020
                        ],
1021
                        [
1022
                            'label' => 'LABEL_PEOPLE_BLOCKED',
1023
                            'route' => 'connection/people-blocked'
1024
                        ],
5546 anderson 1025
 
1026
 
4842 efrain 1027
                    ]
1028
                ],
1029
                [
1030
                    'label' => 'LABEL_MY_PROFILES',
1031
                    'route' => 'profile/my-profiles'
1032
                ],
1033
                [
1034
                    'label' => 'LABEL_JOBS_APPLIED',
1035
                    'route' => 'job/applied-jobs'
1036
                ],
1037
                [
1038
                    'label' => 'LABEL_JOBS_SAVED',
1039
                    'route' => 'job/saved-jobs'
1040
                ],
1041
                [
1042
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1043
                    'route' => 'profile/people-viewed-profile'
1044
                ],
5546 anderson 1045
 
4842 efrain 1046
            ]
1047
        ],
5546 anderson 1048
 
1049
 
4842 efrain 1050
        [
1051
            'label' => 'LABEL_COMPANIES',
1052
            'route' => 'company',
1053
            'class' => '/images/navbar/empresa.svg',
1054
            'pages' => [
1055
                [
1056
                    'label' => 'LABEL_MY_COMPANIES',
1057
                    'route' => 'company/my-companies'
1058
                ],
1059
                [
1060
                    'label' => 'LABEL_COMPANIES_I_FOLLOW',
1061
                    'route' => 'company/following-companies'
1062
                ],
1063
                [
1064
                    'label' => 'LABEL_COMPANIES_I_WORK_WITH',
1065
                    'route' => 'company/i-work-with'
1066
                ],
1067
                [
1068
                    'label' => 'LABEL_REQUESTS_SENT',
1069
                    'route' => 'company/requests-sent'
1070
                ],
1071
                [
1072
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1073
                    'route' => 'company/invitations-received'
1074
                ]
1075
            ]
1076
        ],
5546 anderson 1077
 
4842 efrain 1078
        [
1079
            'label' => 'LABEL_GROUPS',
1080
            'route' => 'group',
1081
            'class' => '/images/navbar/grupos.svg',
1082
            'pages' => [
1083
                [
1084
                    'label' => 'LABEL_MY_GROUPS',
1085
                    'route' => 'group/my-groups'
1086
                ],
1087
                [
1088
                    'label' => 'LABEL_JOINED_GROUPS',
1089
                    'route' => 'group/joined-groups'
1090
                ],
1091
                [
1092
                    'label' => 'LABEL_REQUESTS_SENT',
1093
                    'route' => 'group/requests-sent'
1094
                ],
1095
                [
1096
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1097
                    'route' => 'group/invitations-received'
1098
                ]
1099
            ]
1100
        ],
1101
        [
1102
            'label' => 'LABEL_MARKETPLACE',
1103
            'route' => 'marketplace',
1104
            'class' => '/images/navbar/market-place.svg',
1105
        ],
1106
        [
1107
            'label' => 'LABEL_CALENDAR',
1108
            'route' => 'calendar',
1109
            'class' => '/images/navbar/calendar.svg',
1110
        ],
5546 anderson 1111
 
1112
 
1113
 
1114
 
1115
 
1116
 
1117
 
1118
 
4842 efrain 1119
        /* [
1120
         'label' => 'LABEL_MESSAGES',
1121
         'route' => 'inmail',
1122
         'class' => 'fa fa-envelope',
1123
         ],
1124
         [
1125
         'label' => 'LABEL_NOTIFICATIONS',
1126
         'route' => 'dashboard',
1127
         'class' => 'fa fa-bolt',
1128
         ], */
1129
    ];
1130
}
1131
 
1132
function getAclMenuDefaultNetworkConnectionAll2All()
1133
{
1134
    return [
1135
        [
1136
            'label' => 'LABEL_HOME',
1137
            'route' => 'dashboard',
1138
            'class' => '/images/navbar/home.svg',
1139
        ],
1140
        [
1141
            'label' => 'LABEL_PROFILE',
1142
            'route' => 'profile',
1143
            'class' => '/images/navbar/perfil.svg',
1144
            'pages' => [
1145
                [
1146
                    'label' => 'LABEL_MY_CONNECTIONS',
5546 anderson 1147
                    'route' => 'connection/my-connections',
4842 efrain 1148
                ],
1149
                [
1150
                    'label' => 'LABEL_MY_PROFILES',
1151
                    'route' => 'profile/my-profiles'
1152
                ],
1153
                [
1154
                    'label' => 'LABEL_JOBS_APPLIED',
1155
                    'route' => 'job/applied-jobs'
1156
                ],
1157
                [
1158
                    'label' => 'LABEL_JOBS_SAVED',
1159
                    'route' => 'job/saved-jobs'
1160
                ],
1161
                [
1162
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1163
                    'route' => 'profile/people-viewed-profile'
1164
                ],
5546 anderson 1165
 
4842 efrain 1166
            ]
1167
        ],
5546 anderson 1168
 
1169
 
4842 efrain 1170
        [
1171
            'label' => 'LABEL_COMPANIES',
1172
            'route' => 'company',
1173
            'class' => '/images/navbar/empresa.svg',
1174
            'pages' => [
1175
                [
1176
                    'label' => 'LABEL_MY_COMPANIES',
1177
                    'route' => 'company/my-companies'
1178
                ],
1179
                [
1180
                    'label' => 'LABEL_COMPANIES_I_FOLLOW',
1181
                    'route' => 'company/following-companies'
1182
                ],
1183
                [
1184
                    'label' => 'LABEL_COMPANIES_I_WORK_WITH',
1185
                    'route' => 'company/i-work-with'
1186
                ],
1187
                [
1188
                    'label' => 'LABEL_REQUESTS_SENT',
1189
                    'route' => 'company/requests-sent'
1190
                ],
1191
                [
1192
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1193
                    'route' => 'company/invitations-received'
1194
                ]
1195
            ]
1196
        ],
5546 anderson 1197
 
4842 efrain 1198
        [
1199
            'label' => 'LABEL_GROUPS',
1200
            'route' => 'group',
1201
            'class' => '/images/navbar/grupos.svg',
1202
            'pages' => [
1203
                [
1204
                    'label' => 'LABEL_MY_GROUPS',
1205
                    'route' => 'group/my-groups'
1206
                ],
1207
                [
1208
                    'label' => 'LABEL_JOINED_GROUPS',
1209
                    'route' => 'group/joined-groups'
1210
                ],
1211
                [
1212
                    'label' => 'LABEL_REQUESTS_SENT',
1213
                    'route' => 'group/requests-sent'
1214
                ],
1215
                [
1216
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1217
                    'route' => 'group/invitations-received'
1218
                ]
1219
            ]
1220
        ],
1221
        [
1222
            'label' => 'LABEL_MARKETPLACE',
1223
            'route' => 'marketplace',
1224
            'class' => '/images/navbar/market-place.svg',
1225
        ],
1226
        [
1227
            'label' => 'LABEL_CALENDAR',
1228
            'route' => 'calendar',
1229
            'class' => '/images/navbar/calendar.svg',
1230
        ],
5546 anderson 1231
 
1232
 
1233
 
1234
 
1235
 
1236
 
1237
 
1238
 
4842 efrain 1239
        /* [
1240
         'label' => 'LABEL_MESSAGES',
1241
         'route' => 'inmail',
1242
         'class' => 'fa fa-envelope',
1243
         ],
1244
         [
1245
         'label' => 'LABEL_NOTIFICATIONS',
1246
         'route' => 'dashboard',
1247
         'class' => 'fa fa-bolt',
1248
         ], */
1249
    ];
1250
}
1251
 
1252
function getAclMenuNonDefaulNetworkConnectionUser2User()
1253
{
1254
    return [
1255
        [
1256
            'label' => 'LABEL_HOME',
1257
            'route' => 'dashboard',
1258
            'class' => '/images/navbar/home.svg',
1259
        ],
1260
        [
1261
            'label' => 'LABEL_PROFILE',
1262
            'route' => 'profile',
1263
            'class' => '/images/navbar/perfil.svg',
1264
            'pages' => [
1265
                [
1266
                    'label' => 'LABEL_CONNECTIONS',
1267
                    'route' => 'connection',
1268
                    //'class' =>'/images/navbar/conexion.svg',
1269
                    'pages' => [
1270
                        [
1271
                            'label' => 'LABEL_MY_CONNECTIONS',
1272
                            'route' => 'connection/my-connections'
1273
                        ],
1274
                        [
1275
                            'label' => 'LABEL_INVITATIONS_SENT',
1276
                            'route' => 'connection/invitations-sent'
1277
                        ],
1278
                        [
1279
                            'label' => 'LABEL_INVITATIONS_RECEIVED',
1280
                            'route' => 'connection/invitations-received'
1281
                        ],
1282
                        [
1283
                            'label' => 'LABEL_PEOPLE_YOU_MAY_KNOW',
1284
                            'route' => 'connection/people-you-may-know'
1285
                        ],
1286
                        [
1287
                            'label' => 'LABEL_PEOPLE_BLOCKED',
1288
                            'route' => 'connection/people-blocked'
1289
                        ],
5546 anderson 1290
 
1291
 
4842 efrain 1292
                    ]
1293
                ],
1294
                [
1295
                    'label' => 'LABEL_MY_PROFILES',
1296
                    'route' => 'profile/my-profiles'
1297
                ],
1298
                [
1299
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1300
                    'route' => 'profile/people-viewed-profile'
1301
                ],
5546 anderson 1302
 
4842 efrain 1303
            ]
1304
        ],
5546 anderson 1305
 
4842 efrain 1306
        [
1307
            'label' => 'LABEL_COMPANY',
1308
            'route' => 'company',
1309
            'class' => '/images/navbar/empresa.svg',
5546 anderson 1310
 
4842 efrain 1311
        ],
5546 anderson 1312
 
4842 efrain 1313
        [
1314
            'label' => 'LABEL_GROUPS',
1315
            'route' => 'group',
1316
            'class' => '/images/navbar/grupos.svg',
1317
            'pages' => [
1318
                [
1319
                    'label' => 'LABEL_MY_GROUPS',
1320
                    'route' => 'group/my-groups'
1321
                ],
1322
                [
1323
                    'label' => 'LABEL_JOINED_GROUPS',
1324
                    'route' => 'group/joined-groups'
1325
                ],
1326
                [
1327
                    'label' => 'LABEL_REQUESTS_SENT',
1328
                    'route' => 'group/requests-sent'
1329
                ],
1330
                [
1331
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1332
                    'route' => 'group/invitations-received'
1333
                ]
1334
            ]
1335
        ],
1336
        [
1337
            'label' => 'LABEL_MARKETPLACE',
1338
            'route' => 'marketplace',
1339
            'class' => '/images/navbar/market-place.svg',
1340
        ],
1341
        [
1342
            'label' => 'LABEL_CALENDAR',
1343
            'route' => 'calendar',
1344
            'class' => '/images/navbar/calendar.svg',
1345
        ],
5546 anderson 1346
 
1347
 
1348
 
1349
 
1350
 
1351
 
1352
 
1353
 
4842 efrain 1354
        /* [
1355
         'label' => 'LABEL_MESSAGES',
1356
         'route' => 'inmail',
1357
         'class' => 'fa fa-envelope',
1358
         ],
1359
         [
1360
         'label' => 'LABEL_NOTIFICATIONS',
1361
         'route' => 'dashboard',
1362
         'class' => 'fa fa-bolt',
1363
         ], */
1364
    ];
1365
}
1366
 
1367
function getAclMenuNonDefaultNetworkConnectionAll2All()
1368
{
1369
    return [
1370
        [
1371
            'label' => 'LABEL_HOME',
1372
            'route' => 'dashboard',
1373
            'class' => '/images/navbar/home.svg',
1374
        ],
1375
        [
1376
            'label' => 'LABEL_PROFILE',
1377
            'route' => 'profile',
1378
            'class' => '/images/navbar/perfil.svg',
1379
            'pages' => [
1380
                [
1381
                    'label' => 'LABEL_MY_CONNECTIONS',
1382
                    'route' => 'connection/my-connections'
1383
                ],
1384
                [
1385
                    'label' => 'LABEL_MY_PROFILES',
1386
                    'route' => 'profile/my-profiles'
1387
                ],
1388
                [
1389
                    'label' => 'LABEL_WHO_HAS_SEEN_MY_PROFILE',
1390
                    'route' => 'profile/people-viewed-profile'
1391
                ],
5546 anderson 1392
 
4842 efrain 1393
            ]
1394
        ],
5546 anderson 1395
 
4842 efrain 1396
        [
1397
            'label' => 'LABEL_COMPANY',
1398
            'route' => 'company',
1399
            'class' => '/images/navbar/empresa.svg',
5546 anderson 1400
 
4842 efrain 1401
        ],
5546 anderson 1402
 
1403
 
4842 efrain 1404
        [
1405
            'label' => 'LABEL_GROUPS',
1406
            'route' => 'group',
1407
            'class' => '/images/navbar/grupos.svg',
1408
            'pages' => [
1409
                [
1410
                    'label' => 'LABEL_MY_GROUPS',
1411
                    'route' => 'group/my-groups'
1412
                ],
1413
                [
1414
                    'label' => 'LABEL_JOINED_GROUPS',
1415
                    'route' => 'group/joined-groups'
1416
                ],
1417
                [
1418
                    'label' => 'LABEL_REQUESTS_SENT',
1419
                    'route' => 'group/requests-sent'
1420
                ],
1421
                [
1422
                    'label' => 'LABEL_INVITATIONS_RECEIVED',
1423
                    'route' => 'group/invitations-received'
1424
                ]
1425
            ]
1426
        ],
1427
        [
1428
            'label' => 'LABEL_MARKETPLACE',
1429
            'route' => 'marketplace',
1430
            'class' => '/images/navbar/market-place.svg',
1431
        ],
1432
        [
1433
            'label' => 'LABEL_CALENDAR',
1434
            'route' => 'calendar',
1435
            'class' => '/images/navbar/calendar.svg',
1436
        ],
5546 anderson 1437
 
1438
 
1439
 
1440
 
1441
 
1442
 
1443
 
1444
 
4842 efrain 1445
        /* [
1446
         'label' => 'LABEL_MESSAGES',
1447
         'route' => 'inmail',
1448
         'class' => 'fa fa-envelope',
1449
         ],
1450
         [
1451
         'label' => 'LABEL_NOTIFICATIONS',
1452
         'route' => 'dashboard',
1453
         'class' => 'fa fa-bolt',
1454
         ], */
1455
    ];
1456
}