Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

Rev 5050 | Rev 5223 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

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