Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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