Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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