Proyectos de Subversion LeadersLinked - Antes de SPA

Rev

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