Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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