Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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