Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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