Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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