Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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