Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15386 | Rev 15390 | 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
779 geraldo 2
 
1 www 3
use LeadersLinked\Model\UserType;
4
 
15088 efrain 5
 
6
 
7
 
779 geraldo 8
function getAclResources() {
1 www 9
    return [
10
        'home',
11
        'signin-admin',
12
        'signin-company',
13
        'dashboard',
14
        'signout',
15
        'storage',
15336 efrain 16
        'storage-network',
1 www 17
        'settings',
18
        'settings/company-sizes',
19
        'settings/company-sizes/add',
20
        'settings/company-sizes/edit',
21
        'settings/company-sizes/delete',
22
        'settings/competency-types',
23
        'settings/competency-types/add',
24
        'settings/competency-types/edit',
25
        'settings/competency-types/delete',
8536 efrain 26
        'settings/competency-types/import',
1102 geraldo 27
        'settings/behaviors',
28
        'settings/behaviors/add',
1138 geraldo 29
        'settings/behaviors/edit',
14279 kerby 30
        'settings/behaviors/delete',
14875 efrain 31
        'settings/behaviors/import',
1 www 32
        'settings/competencies',
33
        'settings/competencies/add',
34
        'settings/competencies/edit',
35
        'settings/competencies/delete',
28 efrain 36
        'settings/competencies/import',
1 www 37
        'settings/degrees',
38
        'settings/degrees/add',
39
        'settings/degrees/edit',
40
        'settings/degrees/delete',
41
        'settings/email-templates',
42
        'settings/email-templates/edit',
43
        'settings/push-templates',
44
        'settings/push-templates/edit',
15336 efrain 45
        'settings/push-templates/import',
1 www 46
        'settings/group-types',
47
        'settings/group-types/add',
48
        'settings/group-types/edit',
49
        'settings/group-types/delete',
50
        'settings/industries',
51
        'settings/industries/add',
52
        'settings/industries/edit',
53
        'settings/industries/delete',
54
        'settings/job-categories',
55
        'settings/job-categories/add',
56
        'settings/job-categories/edit',
57
        'settings/job-categories/delete',
28 efrain 58
        'settings/jobs-description',
59
        'settings/jobs-description/add',
60
        'settings/jobs-description/edit',
61
        'settings/jobs-description/delete',
561 geraldo 62
        'settings/jobs-description/report',
846 geraldo 63
        'settings/jobs-description/import',
67 efrain 64
        'settings/positions',
65
        'settings/positions/add',
66
        'settings/positions/edit',
67
        'settings/positions/delete',
1320 efrain 68
        'settings/positions/subordinates',
1 www 69
        'settings/skills',
70
        'settings/skills/add',
71
        'settings/skills/edit',
72
        'settings/skills/delete',
15336 efrain 73
 
74
        'settings/aptitudes',
75
        'settings/aptitudes/add',
76
        'settings/aptitudes/edit',
77
        'settings/aptitudes/delete',
78
 
79
        'settings/hobbies-and-interests',
80
        'settings/hobbies-and-interests/add',
81
        'settings/hobbies-and-interests/edit',
82
        'settings/hobbies-and-interests/delete',
83
 
84
        'settings/private-networks',
85
        'settings/private-networks/add',
86
        'settings/private-networks/edit',
87
        'settings/private-networks/delete',
88
 
89
        'settings/my-private-network',
90
        'settings/my-private-network/intro',
91
        'settings/my-private-network/navbar',
92
        'settings/my-private-network/favicon',
93
        'settings/my-private-network/logo',
94
        'settings/my-private-network/styles-and-colors',
95
 
1 www 96
        'publications',
97
        'publications/posts',
98
        'publications/posts/add',
99
        'publications/posts/edit',
100
        'publications/posts/delete',
101
        'publications/pages',
102
        'publications/pages/add',
103
        'publications/pages/edit',
104
        'publications/pages/delete',
105
        'users',
106
        'users/change-password',
107
        'users/unblock',
108
        'users/invite',
109
        'users/accept',
110
        'users/cancel',
111
        'users/reject',
112
        'users/edit',
113
        'users/upload',
129 efrain 114
        'users/email-verify',
15387 efrain 115
 
1 www 116
        'companies',
117
        'companies/edit',
118
        'companies/services',
119
        'companies/roles',
120
        //Company
121
        'profile',
122
        'profile/extended',
123
        'profile/cover',
124
        'profile/image',
779 geraldo 125
        'profile/header',
126
        'profile/footer',
1 www 127
        'profile/website',
128
        'profile/foundation_year',
129
        'profile/location',
130
        'profile/social-network',
131
        'profile/company-size',
132
        'profile/industry',
133
        'profile/delete',
13065 nelberth 134
 
1 www 135
        'feeds',
136
        'feeds/timeline',
10123 nelberth 137
        'feeds/onefeed',
1 www 138
        'feeds/delete',
139
        'feeds/comments',
140
        'feeds/comments/delete',
8395 nelberth 141
        'feeds/comments/answer',
15364 efrain 142
        'feeds/add',
8395 nelberth 143
 
15364 efrain 144
 
1 www 145
        'followers',
146
        'followers/delete',
114 efrain 147
        'self-evaluation',
148
        'self-evaluation/forms',
149
        'self-evaluation/forms/add',
150
        'self-evaluation/forms/edit',
151
        'self-evaluation/forms/delete',
115 efrain 152
        'self-evaluation/users',
153
        'self-evaluation/users/add',
154
        'self-evaluation/users/delete',
114 efrain 155
        'self-evaluation/reviews',
115 efrain 156
        'self-evaluation/reviews/edit',
470 geraldo 157
        'self-evaluation/reviews/report',
946 geraldo 158
        'performance-evaluation',
159
        'performance-evaluation/forms',
160
        'performance-evaluation/forms/add',
161
        'performance-evaluation/forms/edit',
162
        'performance-evaluation/forms/delete',
15079 efrain 163
        'performance-evaluation/forms/job-decription',
1383 efrain 164
        'performance-evaluation/evaluations',
165
        'performance-evaluation/evaluations/add',
7870 eleazar 166
        'performance-evaluation/evaluations/self',
167
        'performance-evaluation/evaluations/both',
168
        'performance-evaluation/evaluations/superviser',
8068 eleazar 169
        'performance-evaluation/evaluations/user-by-email',
1383 efrain 170
        'performance-evaluation/evaluations/edit',
171
        'performance-evaluation/evaluations/delete',
8220 eleazar 172
        'performance-evaluation/evaluations/report-self',
173
        'performance-evaluation/evaluations/report-both',
8249 eleazar 174
        'performance-evaluation/evaluations/report-superviser',
1383 efrain 175
        'performance-evaluation/evaluations/users',
176
        'performance-evaluation/evaluations/users/add',
177
        'performance-evaluation/evaluations/users/delete',
178
 
1263 geraldo 179
        'performance-evaluation/forms/report',
1320 efrain 180
        'performance-evaluation/reviews',
181
        'performance-evaluation/reviews/pdf',
1477 efrain 182
 
183
        'recruitment-and-selection',
184
        'recruitment-and-selection/vacancies',
185
        'recruitment-and-selection/vacancies/add',
186
        'recruitment-and-selection/vacancies/edit',
187
        'recruitment-and-selection/vacancies/delete',
188
        'recruitment-and-selection/candidates',
189
        'recruitment-and-selection/candidates/add',
190
        'recruitment-and-selection/candidates/edit',
191
        'recruitment-and-selection/candidates/delete',
1636 eleazar 192
        'recruitment-and-selection/user-by-email',
1710 eleazar 193
        'recruitment-and-selection/interview',
1709 eleazar 194
        'recruitment-and-selection/interview/form',
8757 eleazar 195
        'recruitment-and-selection/interview/form/file',
1709 eleazar 196
        'recruitment-and-selection/interview/form/add',
197
        'recruitment-and-selection/interview/form/edit',
198
        'recruitment-and-selection/interview/form/delete',
199
        'recruitment-and-selection/interview/report',
3587 eleazar 200
        'recruitment-and-selection/interview/vacancy',
4367 eleazar 201
        'recruitment-and-selection/interview/type',
8782 eleazar 202
        'recruitment-and-selection/interview/file',
203
        'recruitment-and-selection/interview/file/add',
204
        'recruitment-and-selection/interview/file/edit',
205
        'recruitment-and-selection/interview/file/delete',
15088 efrain 206
 
4375 eleazar 207
        'survey',
4579 eleazar 208
        'survey/add',
209
        'survey/edit',
210
        'survey/delete',
4375 eleazar 211
        'survey/form',
212
        'survey/form/add',
213
        'survey/form/edit',
214
        'survey/form/delete',
5287 eleazar 215
        'survey/test',
216
        'survey/test/add',
6662 eleazar 217
        'survey/test/report',
5287 eleazar 218
        'survey/test/delete',
5823 eleazar 219
        'survey/report',
6497 eleazar 220
        'survey/report/overview',
5823 eleazar 221
        'survey/report/all',
15149 efrain 222
        'survey/report/excel',
15088 efrain 223
 
7218 eleazar 224
        'organizational-climate',
225
        'organizational-climate/add',
226
        'organizational-climate/edit',
227
        'organizational-climate/delete',
228
        'organizational-climate/form',
229
        'organizational-climate/form/add',
230
        'organizational-climate/form/edit',
231
        'organizational-climate/form/delete',
232
        'organizational-climate/test',
233
        'organizational-climate/test/add',
234
        'organizational-climate/test/report',
235
        'organizational-climate/test/delete',
236
        'organizational-climate/report',
237
        'organizational-climate/report/overview',
238
        'organizational-climate/report/all',
15149 efrain 239
        'organizational-climate/report/excel',
15088 efrain 240
 
1 www 241
        'jobs',
242
        'jobs/add',
243
        'jobs/delete',
244
        'jobs/users-who-applied',
245
        'jobs/edit',
246
        'jobs/edit/title',
247
        'jobs/edit/status',
248
        'jobs/edit/last-date-of-application',
249
        'jobs/edit/employment-type',
250
        'jobs/edit/experience',
251
        'jobs/edit/job-category',
252
        'jobs/edit/extended',
253
        'jobs/edit/location',
254
        'jobs/edit/salary',
255
        'jobs/edit/languages',
256
        'jobs/edit/degrees',
257
        'jobs/edit/skills',
258
        'jobs/edit/how-apply',
15088 efrain 259
 
1 www 260
        'microlearning',
261
        'microlearning/overview',
262
        'microlearning/reports',
2 efrain 263
        'microlearning/reports/progress',
14610 efrain 264
        'microlearning/reports/progress-for-capsule',
15386 efrain 265
        'microlearning/reports/progress-for-capsule/excel',
266
        'microlearning/reports/progress-for-topic',
267
        'microlearning/reports/progress-for-topic/excel',
268
        'microlearning/reports/progress-for-student',
269
        'microlearning/reports/progress-for-student/excel',
2 efrain 270
        'microlearning/reports/devices',
187 efrain 271
        'microlearning/reports/comments-for-capsule',
1 www 272
        'microlearning/content',
273
        'microlearning/content/topics',
274
        'microlearning/content/topics/add',
275
        'microlearning/content/topics/edit',
276
        'microlearning/content/topics/delete',
277
        'microlearning/content/capsules',
278
        'microlearning/content/capsules/add',
279
        'microlearning/content/capsules/edit',
280
        'microlearning/content/capsules/delete',
281
        'microlearning/content/capsules/users',
282
        'microlearning/content/slides',
283
        'microlearning/content/slides/add',
284
        'microlearning/content/slides/edit',
285
        'microlearning/content/slides/delete',
286
        'microlearning/content/slides/text',
66 efrain 287
        'microlearning/content/quizzes',
288
        'microlearning/content/quizzes/add',
289
        'microlearning/content/quizzes/edit',
290
        'microlearning/content/quizzes/delete',
291
        'microlearning/content/quizzes/check',
292
        'microlearning/content/quizzes/publish',
293
        'microlearning/content/quizzes/copy',
294
        'microlearning/content/quizzes/questions',
295
        'microlearning/content/quizzes/questions/add',
296
        'microlearning/content/quizzes/questions/edit',
297
        'microlearning/content/quizzes/questions/delete',
298
        'microlearning/content/quizzes/questions/answers',
299
        'microlearning/content/quizzes/questions/answers/add',
300
        'microlearning/content/quizzes/questions/answers/edit',
301
        'microlearning/content/quizzes/questions/answers/delete',
1 www 302
        'microlearning/access-for-students',
303
        'microlearning/access-for-students/revoke',
304
        'microlearning/access-for-students/unlimit',
305
        'microlearning/access-for-students/cancel',
306
        'microlearning/access-for-students/reactive',
307
        'microlearning/access-for-students/upload',
308
        'microlearning/access-for-students/notification',
309
        'microlearning/students',
310
        'microlearning/students/edit',
311
        'microlearning/students/timeline',
312
        'microlearning/students/change-password',
313
        'microlearning/students/unblock',
314
        'microlearning/settings',
315
        'microlearning/settings/student-types',
316
        'microlearning/settings/student-types/add',
317
        'microlearning/settings/student-types/edit',
318
        'microlearning/settings/student-types/delete',
319
        'microlearning/settings/functions',
320
        'microlearning/settings/functions/add',
321
        'microlearning/settings/functions/edit',
322
        'microlearning/settings/functions/delete',
323
        'microlearning/settings/sectors',
324
        'microlearning/settings/sectors/add',
325
        'microlearning/settings/sectors/edit',
326
        'microlearning/settings/sectors/delete',
327
        'microlearning/settings/programs',
328
        'microlearning/settings/programs/add',
329
        'microlearning/settings/programs/edit',
330
        'microlearning/settings/programs/delete',
331
        'microlearning/settings/groups',
332
        'microlearning/settings/groups/add',
333
        'microlearning/settings/groups/edit',
334
        'microlearning/settings/groups/delete',
335
        'microlearning/settings/companies',
336
        'microlearning/settings/companies/add',
337
        'microlearning/settings/companies/edit',
338
        'microlearning/settings/companies/delete',
339
        'microlearning/settings/partners',
340
        'microlearning/settings/partners/add',
341
        'microlearning/settings/partners/edit',
342
        'microlearning/settings/partners/delete',
343
        'microlearning/settings/institutions',
344
        'microlearning/settings/institutions/add',
345
        'microlearning/settings/institutions/edit',
346
        'microlearning/settings/institutions/delete',
15088 efrain 347
 
1333 efrain 348
        'own-professional-network',
349
        'organizational-design',
15386 efrain 350
 
1333 efrain 351
        'planning-objectives-and-goals',
2228 nelberth 352
        'planning-objectives-and-goals/objectives',
3462 nelberth 353
        'planning-objectives-and-goals/objectives/report',
3988 nelberth 354
        'planning-objectives-and-goals/objectives/reportall',
4041 nelberth 355
        'planning-objectives-and-goals/objectives/matriz',
2331 nelberth 356
        'planning-objectives-and-goals/objectives/goals',
2379 nelberth 357
        'planning-objectives-and-goals/objectives/goals/add',
358
        'planning-objectives-and-goals/objectives/goals/edit',
359
        'planning-objectives-and-goals/objectives/goals/delete',
2517 nelberth 360
        'planning-objectives-and-goals/objectives/goals/task',
361
        'planning-objectives-and-goals/objectives/goals/task/add',
362
        'planning-objectives-and-goals/objectives/goals/task/edit',
363
        'planning-objectives-and-goals/objectives/goals/task/delete',
2822 nelberth 364
        'planning-objectives-and-goals/objectives/goals/task/view',
2228 nelberth 365
        'planning-objectives-and-goals/objectives/add',
366
        'planning-objectives-and-goals/objectives/delete',
367
        'planning-objectives-and-goals/objectives/edit',
4589 nelberth 368
 
4535 nelberth 369
        'high-performance-teams',
7222 nelberth 370
        'high-performance-teams/groups',
7228 nelberth 371
        'high-performance-teams/groups/add',
372
        'high-performance-teams/groups/edit',
373
        'high-performance-teams/groups/delete',
7233 nelberth 374
        'high-performance-teams/groups/view',
11902 nelberth 375
        'high-performance-teams/groups/view/feeds',
376
        'high-performance-teams/groups/view/feeds/timeline',
377
        'high-performance-teams/groups/view/feeds/onefeed',
378
        'high-performance-teams/groups/view/feeds/delete',
379
        'high-performance-teams/groups/view/feeds/comments',
380
        'high-performance-teams/groups/view/feeds/comments/delete',
381
        'high-performance-teams/groups/view/feeds/comments/answer',
382
        'high-performance-teams/groups/view/feeds/add',
7484 nelberth 383
        'high-performance-teams/groups/view/topic',
384
        'high-performance-teams/groups/view/topic/add',
385
        'high-performance-teams/groups/view/topic/edit',
386
        'high-performance-teams/groups/view/topic/delete',
7637 nelberth 387
        'high-performance-teams/groups/view/topic/view',
8687 nelberth 388
        'high-performance-teams/groups/view/urgent',
9096 nelberth 389
        'high-performance-teams/groups/view/calendar',
9923 nelberth 390
        'high-performance-teams/groups/view/calendar/view',
10143 nelberth 391
        'high-performance-teams/groups/view/foro',
392
        'high-performance-teams/groups/view/foro/view',
9619 nelberth 393
        'high-performance-teams/groups/view/foro/categories',
9635 nelberth 394
        'high-performance-teams/groups/view/foro/categories/add',
395
        'high-performance-teams/groups/view/foro/categories/delete',
396
        'high-performance-teams/groups/view/foro/categories/edit',
397
        'high-performance-teams/groups/view/foro/categories/view',
9760 nelberth 398
        'high-performance-teams/groups/view/foro/categories/articles',
9845 nelberth 399
        'high-performance-teams/groups/view/foro/categories/articles/add',
400
        'high-performance-teams/groups/view/foro/categories/articles/edit',
401
        'high-performance-teams/groups/view/foro/categories/articles/delete',
402
        'high-performance-teams/groups/view/foro/categories/articles/view',
12407 nelberth 403
        'high-performance-teams/groups/view/objectives',
404
        'high-performance-teams/groups/view/objectives/report',
405
        'high-performance-teams/groups/view/objectives/reportall',
406
        'high-performance-teams/groups/view/objectives/matriz',
407
        'high-performance-teams/groups/view/objectives/goals',
408
        'high-performance-teams/groups/view/objectives/goals/add',
409
        'high-performance-teams/groups/view/objectives/goals/edit',
410
        'high-performance-teams/groups/view/objectives/goals/delete',
411
        'high-performance-teams/groups/view/objectives/goals/task',
412
        'high-performance-teams/groups/view/objectives/goals/task/add',
413
        'high-performance-teams/groups/view/objectives/goals/task/edit',
414
        'high-performance-teams/groups/view/objectives/goals/task/delete',
415
        'high-performance-teams/groups/view/objectives/goals/task/view',
416
        'high-performance-teams/groups/view/objectives/add',
417
        'high-performance-teams/groups/view/objectives/delete',
418
        'high-performance-teams/groups/view/objectives/edit',
9424 nelberth 419
 
8633 nelberth 420
 
11342 nelberth 421
 
7812 nelberth 422
        'high-performance-teams/groups/view/members',
8012 nelberth 423
        'high-performance-teams/groups/view/members/invite',
7813 nelberth 424
        'high-performance-teams/groups/view/members/delete',
10289 nelberth 425
        'high-performance-teams/groups/view/members/edit',
11430 nelberth 426
 
11342 nelberth 427
        'chat',
428
        'chat/heart-beat',
429
        'chat/create-group',
430
        'chat/add-user-to-group',
431
        'chat/mark-seen',
432
        'chat/mark-received',
433
        'chat/remove-user-from-group',
434
        'chat/get-all-messages',
435
        'chat/send',
436
        'chat/get-contacts-availables-for-group',
437
        'chat/get-contact-group-list',
438
        'chat/leave-group',
439
        'chat/delete-group',
440
        'chat/close',
441
        'chat/clear',
14692 efrain 442
        'chat/open',
11342 nelberth 443
        'chat/upload',
11430 nelberth 444
        'csrf',
7481 nelberth 445
 
7255 nelberth 446
 
4588 nelberth 447
 
448
 
1333 efrain 449
        'development-and-training',
13353 eleazar 450
 
451
        'development-and-content',
15028 efrain 452
        'development-and-content/listing',
13353 eleazar 453
        'development-and-content/feed',
454
        'development-and-content/comments',
455
        'development-and-content/comments/delete',
15175 efrain 456
        'development-and-content/comments/answer',
13353 eleazar 457
        'development-and-content/category',
458
        'development-and-content/category/add',
459
        'development-and-content/category/edit',
460
        'development-and-content/category/delete',
14743 kerby 461
        'development-and-content/add',
462
        'development-and-content/delete',
463
        'development-and-content/aproved',
464
        'development-and-content/edit',
465
        'development-and-content/categories',
15175 efrain 466
 
467
 
1333 efrain 468
        'induction',
13524 nelberth 469
 
1333 efrain 470
        'culture',
13524 nelberth 471
 
472
        'inmail',
473
        'inmail/search-people',
14989 efrain 474
        'inmail/view',
13553 nelberth 475
        'inmail/view/message',
14989 efrain 476
        'inmail/view/message/send',
13771 nelberth 477
        'inmail/sendall',
14989 efrain 478
 
13553 nelberth 479
 
13778 nelberth 480
        'inmail/company',
481
        'inmail/company/message',
482
        'inmail/company/message/send',
483
 
1333 efrain 484
        'communication',
13675 nelberth 485
        'communication/inbox',
13731 nelberth 486
        'communication/inbox/sendall',
13675 nelberth 487
        'communication/inbox/search-people',
488
        'communication/inbox/view/message',
489
        'communication/inbox/view',
490
        'communication/inbox/view/message/send',
13525 nelberth 491
 
492
 
1333 efrain 493
        'career-development',
494
        'building-my-future',
4410 nelberth 495
 
4391 nelberth 496
        'my-trainer',
8462 eleazar 497
        'my-trainer/category',
498
        'my-trainer/category/add',
499
        'my-trainer/category/edit',
500
        'my-trainer/category/delete',
501
        'my-trainer/question',
502
        'my-trainer/question/add',
503
        'my-trainer/question/edit',
504
        'my-trainer/question/delete',
11168 eleazar 505
        'my-trainer/question/view',
11842 eleazar 506
        'my-trainer/question/answer',
507
        'my-trainer/question/answer/add',
508
        'my-trainer/question/answer/edit',
509
        'my-trainer/question/answer/delete',
11873 eleazar 510
        'my-trainer/question/answer/feed',
11921 eleazar 511
        'my-trainer/question/answer/timeline',
11842 eleazar 512
        'my-trainer/question/answer/comments',
513
        'my-trainer/question/answer/comments/delete',
514
        'my-trainer/question/answer/comments/answer',
15387 efrain 515
 
516
        'reports',
517
        'reports/users-blocked',
518
        'reports/users-blocked/excel',
519
 
1 www 520
    ];
521
}
522
 
15336 efrain 523
 
524
 
525
 
779 geraldo 526
function getAclRolesCompany() {
1 www 527
    return [
1336 efrain 528
 
15088 efrain 529
 
530
 
4 efrain 531
        'company-creator' => [
532
            'home',
533
            'signin-admin',
534
            'signin-company',
535
            'dashboard',
536
            'signout',
537
            'storage',
538
            'profile',
539
            'profile/extended',
540
            'profile/cover',
779 geraldo 541
            'profile/header',
542
            'profile/footer',
4 efrain 543
            'profile/image',
544
            'profile/website',
545
            'profile/foundation_year',
546
            'profile/location',
547
            'profile/social-network',
548
            'profile/company-size',
549
            'profile/industry',
550
            'profile/delete',
551
            'users',
552
            'users/change-password',
553
            'users/unblock',
554
            'users/invite',
555
            'users/accept',
556
            'users/cancel',
557
            'users/reject',
558
            'users/edit',
559
            'users/upload',
15387 efrain 560
 
4 efrain 561
            'feeds',
15175 efrain 562
            'feeds/timeline',
563
            'feeds/onefeed',
564
            'feeds/delete',
565
            'feeds/comments',
566
            'feeds/comments/delete',
567
            'feeds/comments/answer',
15364 efrain 568
            'feeds/add',
15175 efrain 569
 
4 efrain 570
            'followers',
571
            'followers/delete',
572
            'jobs',
573
            'jobs/add',
574
            'jobs/delete',
575
            'jobs/users-who-applied',
576
            'jobs/edit',
15088 efrain 577
            'jobs/edit/title',
578
            'jobs/edit/status',
4 efrain 579
            'jobs/edit/last-date-of-application',
580
            'jobs/edit/employment-type',
581
            'jobs/edit/experience',
582
            'jobs/edit/job-category',
583
            'jobs/edit/extended',
584
            'jobs/edit/location',
585
            'jobs/edit/salary',
586
            'jobs/edit/languages',
587
            'jobs/edit/degrees',
588
            'jobs/edit/skills',
589
            'jobs/edit/how-apply',
15336 efrain 590
 
15387 efrain 591
            'reports',
592
            'reports/users-blocked',
593
            'reports/users-blocked/excel',
1953 nelberth 594
 
14692 efrain 595
 
15387 efrain 596
 
4 efrain 597
        ],
1 www 598
        'company-admin' => [
599
            'home',
600
            'signin-admin',
601
            'signin-company',
602
            'dashboard',
603
            'signout',
604
            'storage',
605
            'profile',
606
            'profile/extended',
607
            'profile/cover',
608
            'profile/image',
779 geraldo 609
            'profile/header',
610
            'profile/footer',
1 www 611
            'profile/website',
612
            'profile/foundation_year',
613
            'profile/location',
614
            'profile/social-network',
615
            'profile/company-size',
616
            'profile/industry',
617
            'profile/delete',
618
            'users',
619
            'users/change-password',
620
            'users/unblock',
621
            'users/invite',
622
            'users/accept',
623
            'users/cancel',
624
            'users/reject',
625
            'users/edit',
626
            'users/upload',
627
            'feeds',
15175 efrain 628
            'feeds/timeline',
629
            'feeds/onefeed',
630
            'feeds/delete',
631
            'feeds/comments',
632
            'feeds/comments/delete',
633
            'feeds/comments/answer',
15364 efrain 634
            'feeds/add',
15175 efrain 635
 
1 www 636
            'followers',
637
            'followers/delete',
638
            'jobs',
639
            'jobs/add',
640
            'jobs/delete',
641
            'jobs/users-who-applied',
642
            'jobs/edit',
15088 efrain 643
            'jobs/edit/title',
644
            'jobs/edit/status',
1 www 645
            'jobs/edit/last-date-of-application',
646
            'jobs/edit/employment-type',
647
            'jobs/edit/experience',
648
            'jobs/edit/job-category',
649
            'jobs/edit/extended',
650
            'jobs/edit/location',
651
            'jobs/edit/salary',
652
            'jobs/edit/languages',
653
            'jobs/edit/degrees',
654
            'jobs/edit/skills',
655
            'jobs/edit/how-apply',
15387 efrain 656
 
657
            'reports',
658
            'reports/users-blocked',
659
            'reports/users-blocked/excel',
1 www 660
        ],
661
        'company-password-unblock' => [
662
            'home',
663
            'signin-admin',
664
            'signin-company',
665
            'dashboard',
666
            'signout',
667
            'storage',
668
            'users',
669
            'users/change-password',
670
            'users/unblock',
15088 efrain 671
 
15387 efrain 672
            'reports',
673
            'reports/users-blocked',
674
            'reports/users-blocked/excel',
675
 
676
 
1 www 677
        ],
678
        'microlearning-admin' => [
679
            'home',
680
            'signin-admin',
681
            'signin-company',
682
            'dashboard',
683
            'signout',
684
            'storage',
685
            'microlearning',
686
            'microlearning/overview',
187 efrain 687
            'microlearning/reports',
688
            'microlearning/reports/progress',
14610 efrain 689
            'microlearning/reports/progress-for-capsule',
15386 efrain 690
            'microlearning/reports/progress-for-capsule/excel',
691
            'microlearning/reports/progress-for-topic',
692
            'microlearning/reports/progress-for-topic/excel',
693
            'microlearning/reports/progress-for-student',
694
            'microlearning/reports/progress-for-student/excel',
187 efrain 695
            'microlearning/reports/devices',
696
            'microlearning/reports/comments-for-capsule',
1 www 697
            'microlearning/content',
698
            'microlearning/content/topics',
699
            'microlearning/content/topics/add',
700
            'microlearning/content/topics/edit',
701
            'microlearning/content/topics/delete',
702
            'microlearning/content/capsules',
703
            'microlearning/content/capsules/add',
704
            'microlearning/content/capsules/edit',
705
            'microlearning/content/capsules/delete',
706
            'microlearning/content/capsules/users',
707
            'microlearning/content/slides',
708
            'microlearning/content/slides/add',
709
            'microlearning/content/slides/edit',
710
            'microlearning/content/slides/delete',
711
            'microlearning/content/slides/text',
712
            'microlearning/students',
713
            'microlearning/students/edit',
714
            'microlearning/students/timeline',
715
            'microlearning/access-for-students',
716
            'microlearning/access-for-students/revoke',
717
            'microlearning/access-for-students/unlimit',
718
            'microlearning/access-for-students/cancel',
719
            'microlearning/access-for-students/reactive',
720
            'microlearning/access-for-students/upload',
721
            'microlearning/access-for-students/notification',
722
            'microlearning/settings',
723
            'microlearning/settings/student-types',
724
            'microlearning/settings/student-types/add',
725
            'microlearning/settings/student-types/edit',
726
            'microlearning/settings/student-types/delete',
727
            'microlearning/settings/functions',
728
            'microlearning/settings/functions/add',
729
            'microlearning/settings/functions/edit',
730
            'microlearning/settings/functions/delete',
731
            'microlearning/settings/sectors',
732
            'microlearning/settings/sectors/add',
733
            'microlearning/settings/sectors/edit',
734
            'microlearning/settings/sectors/delete',
735
            'microlearning/settings/programs',
736
            'microlearning/settings/programs/add',
737
            'microlearning/settings/programs/edit',
738
            'microlearning/settings/programs/delete',
739
            'microlearning/settings/groups',
740
            'microlearning/settings/groups/add',
741
            'microlearning/settings/groups/edit',
742
            'microlearning/settings/groups/delete',
743
            'microlearning/settings/companies',
744
            'microlearning/settings/companies/add',
745
            'microlearning/settings/companies/edit',
746
            'microlearning/settings/companies/delete',
747
            'microlearning/settings/partners',
748
            'microlearning/settings/partners/add',
749
            'microlearning/settings/partners/edit',
750
            'microlearning/settings/partners/delete',
751
            'microlearning/settings/institutions',
752
            'microlearning/settings/institutions/add',
753
            'microlearning/settings/institutions/edit',
754
            'microlearning/settings/institutions/delete',
755
        ],
756
        'microlearning-editor' => [
757
            'home',
758
            'signin-admin',
759
            'signin-company',
760
            'dashboard',
761
            'signout',
762
            'storage',
763
            'microlearning',
764
            'microlearning/content',
765
            'microlearning/content/topics',
766
            'microlearning/content/topics/add',
767
            'microlearning/content/topics/edit',
768
            'microlearning/content/topics/delete',
769
            'microlearning/content/capsules',
770
            'microlearning/content/capsules/add',
771
            'microlearning/content/capsules/edit',
772
            'microlearning/content/capsules/delete',
773
            'microlearning/content/capsules/users',
774
            'microlearning/content/slides',
775
            'microlearning/content/slides/add',
776
            'microlearning/content/slides/edit',
777
            'microlearning/content/slides/delete',
778
            'microlearning/content/slides/text',
779
            'microlearning/access-for-students',
780
            'microlearning/access-for-students/revoke',
781
            'microlearning/access-for-students/unlimit',
782
            'microlearning/access-for-students/cancel',
783
            'microlearning/access-for-students/reactive',
784
            'microlearning/access-for-students/upload',
785
            'microlearning/access-for-students/notification',
786
        ],
787
        'microlearning-students-password-unblock' => [
788
            'home',
789
            'signin-admin',
790
            'signin-company',
791
            'dashboard',
792
            'signout',
793
            'storage',
794
            'microlearning',
795
            'microlearning/students',
796
            'microlearning/students/change-password',
797
            'microlearning/students/unblock',
798
        ],
799
        'self-evaluation-admin' => [
114 efrain 800
            'self-evaluation',
801
            'self-evaluation/forms',
802
            'self-evaluation/forms/add',
803
            'self-evaluation/forms/edit',
804
            'self-evaluation/forms/delete',
115 efrain 805
            'self-evaluation/users',
806
            'self-evaluation/users/add',
807
            'self-evaluation/users/delete',
114 efrain 808
            'self-evaluation/reviews',
115 efrain 809
            'self-evaluation/reviews/edit',
470 geraldo 810
            'self-evaluation/reviews/report',
1 www 811
        ],
15088 efrain 812
        'self-evaluation-reviews' => [
813
            'self-evaluation',
814
            'self-evaluation/reviews',
815
            'self-evaluation/reviews/edit',
816
            'self-evaluation/reviews/report',
817
        ],
975 geraldo 818
        'performance-evaluation-admin' => [
15088 efrain 819
            'settings',
820
            'settings/positions',
821
            'settings/positions/add',
822
            'settings/positions/edit',
823
            'settings/positions/delete',
824
            'settings/positions/subordinates',
825
 
826
            'settings/behaviors',
827
            'settings/behaviors/add',
828
            'settings/behaviors/edit',
829
            'settings/behaviors/delete',
830
            'settings/behaviors/import',
15371 efrain 831
 
15088 efrain 832
            'settings/competencies',
833
            'settings/competencies/add',
834
            'settings/competencies/edit',
835
            'settings/competencies/delete',
836
            'settings/competencies/import',
837
 
838
            'settings/competency-types',
839
            'settings/competency-types/add',
840
            'settings/competency-types/edit',
841
            'settings/competency-types/delete',
842
            'settings/competency-types/import',
843
 
844
            'settings/jobs-description',
845
            'settings/jobs-description/add',
846
            'settings/jobs-description/edit',
847
            'settings/jobs-description/delete',
848
            'settings/jobs-description/report',
849
            'settings/jobs-description/import',
850
 
975 geraldo 851
            'performance-evaluation',
852
            'performance-evaluation/forms',
853
            'performance-evaluation/forms/add',
854
            'performance-evaluation/forms/edit',
855
            'performance-evaluation/forms/delete',
15079 efrain 856
            'performance-evaluation/forms/job-decription',
1263 geraldo 857
            'performance-evaluation/forms/report',
1320 efrain 858
            'performance-evaluation/reviews',
859
            'performance-evaluation/reviews/pdf',
1383 efrain 860
            'performance-evaluation/evaluations',
861
            'performance-evaluation/evaluations/add',
7870 eleazar 862
            'performance-evaluation/evaluations/self',
863
            'performance-evaluation/evaluations/both',
864
            'performance-evaluation/evaluations/superviser',
15088 efrain 865
            'performance-evaluation/evaluations/user-by-email',
1383 efrain 866
            'performance-evaluation/evaluations/delete',
8220 eleazar 867
            'performance-evaluation/evaluations/report-self',
868
            'performance-evaluation/evaluations/report-both',
15088 efrain 869
            'performance-evaluation/evaluations/report-superviser',
1383 efrain 870
            'performance-evaluation/evaluations/users',
871
            'performance-evaluation/evaluations/users/add',
872
            'performance-evaluation/evaluations/users/delete',
15088 efrain 873
        ],
874
 
875
 
876
        'performance-evaluation-editor' => [
877
            'performance-evaluation',
878
            'performance-evaluation/forms',
879
            'performance-evaluation/forms/add',
880
            'performance-evaluation/forms/edit',
881
            'performance-evaluation/forms/delete',
882
            'performance-evaluation/forms/job-decription',
883
            'performance-evaluation/forms/report',
884
            'performance-evaluation/reviews',
885
            'performance-evaluation/reviews/pdf',
886
            'performance-evaluation/evaluations',
887
            'performance-evaluation/evaluations/add',
888
            'performance-evaluation/evaluations/self',
889
            'performance-evaluation/evaluations/both',
890
            'performance-evaluation/evaluations/superviser',
891
            'performance-evaluation/evaluations/delete',
892
            'performance-evaluation/evaluations/report-self',
893
            'performance-evaluation/evaluations/report-both',
894
            'performance-evaluation/evaluations/report-superviser',
895
            'performance-evaluation/evaluations/users',
896
            'performance-evaluation/evaluations/users/add',
897
            'performance-evaluation/evaluations/users/delete',
1383 efrain 898
 
975 geraldo 899
        ],
15088 efrain 900
        'recruitment-and-selection-admin' => [
901
            'settings',
902
            'settings/positions',
903
            'settings/positions/add',
904
            'settings/positions/edit',
905
            'settings/positions/delete',
906
            'settings/positions/subordinates',
907
 
908
            'settings/behaviors',
909
            'settings/behaviors/add',
910
            'settings/behaviors/edit',
911
            'settings/behaviors/delete',
912
            'settings/behaviors/import',
15371 efrain 913
 
15088 efrain 914
            'settings/competencies',
915
            'settings/competencies/add',
916
            'settings/competencies/edit',
917
            'settings/competencies/delete',
918
            'settings/competencies/import',
919
 
920
            'settings/competency-types',
921
            'settings/competency-types/add',
922
            'settings/competency-types/edit',
923
            'settings/competency-types/delete',
924
            'settings/competency-types/import',
925
 
926
            'settings/jobs-description',
927
            'settings/jobs-description/add',
928
            'settings/jobs-description/edit',
929
            'settings/jobs-description/delete',
930
            'settings/jobs-description/report',
931
            'settings/jobs-description/import',
932
 
933
            'recruitment-and-selection',
934
            'recruitment-and-selection/vacancies',
935
            'recruitment-and-selection/vacancies/add',
936
            'recruitment-and-selection/vacancies/edit',
937
            'recruitment-and-selection/vacancies/delete',
938
            'recruitment-and-selection/candidates',
939
            'recruitment-and-selection/candidates/add',
940
            'recruitment-and-selection/candidates/edit',
941
            'recruitment-and-selection/candidates/delete',
942
            'recruitment-and-selection/user-by-email',
943
            'recruitment-and-selection/interview',
944
            'recruitment-and-selection/interview/form',
945
            'recruitment-and-selection/interview/form/add',
946
            'recruitment-and-selection/interview/form/edit',
947
            'recruitment-and-selection/interview/form/delete',
948
            'recruitment-and-selection/interview/report',
949
            'recruitment-and-selection/interview/vacancy',
950
            'recruitment-and-selection/interview/type',
951
            'recruitment-and-selection/interview/file',
952
            'recruitment-and-selection/interview/file/add',
953
            'recruitment-and-selection/interview/file/edit',
954
            'recruitment-and-selection/interview/file/delete',
955
        ],
956
 
957
        'recruitment-and-selection-editor' => [
958
            'recruitment-and-selection',
959
            'recruitment-and-selection/vacancies',
960
            'recruitment-and-selection/vacancies/add',
961
            'recruitment-and-selection/vacancies/edit',
962
            'recruitment-and-selection/vacancies/delete',
963
            'recruitment-and-selection/candidates',
964
            'recruitment-and-selection/candidates/add',
965
            'recruitment-and-selection/candidates/edit',
966
            'recruitment-and-selection/candidates/delete',
967
            'recruitment-and-selection/user-by-email',
968
            'recruitment-and-selection/interview',
969
            'recruitment-and-selection/interview/form',
970
            'recruitment-and-selection/interview/form/add',
971
            'recruitment-and-selection/interview/form/edit',
972
            'recruitment-and-selection/interview/form/delete',
973
            'recruitment-and-selection/interview/report',
974
            'recruitment-and-selection/interview/vacancy',
975
            'recruitment-and-selection/interview/type',
976
            'recruitment-and-selection/interview/file',
977
            'recruitment-and-selection/interview/file/add',
978
            'recruitment-and-selection/interview/file/edit',
979
            'recruitment-and-selection/interview/file/delete',
980
        ],
15149 efrain 981
        'survey-admin' => [
982
            'survey',
983
            'survey/add',
984
            'survey/edit',
985
            'survey/delete',
986
            'survey/form',
987
            'survey/form/add',
988
            'survey/form/edit',
989
            'survey/form/delete',
990
            'survey/test',
991
            'survey/test/add',
992
            'survey/test/report',
993
            'survey/test/delete',
994
            'survey/report',
995
            'survey/report/overview',
996
            'survey/report/all',
997
            'survey/report/excel',
998
        ],
999
        'survey-test' => [
1000
            'survey/test',
1001
            'survey/test/add',
1002
            'survey/test/report',
1003
            'survey/test/delete',
1004
        ],
1005
        'survey-report' => [
1006
            'survey/report',
1007
            'survey/report/overview',
1008
            'survey/report/all',
1009
            'survey/report/excel',
1010
        ],
15175 efrain 1011
        'organizational-climate-admin' => [
1012
            'organizational-climate',
1013
            'organizational-climate/add',
1014
            'organizational-climate/edit',
1015
            'organizational-climate/delete',
1016
            'organizational-climate/form',
1017
            'organizational-climate/form/add',
1018
            'organizational-climate/form/edit',
1019
            'organizational-climate/form/delete',
1020
            'organizational-climate/test',
1021
            'organizational-climate/test/add',
1022
            'organizational-climate/test/report',
1023
            'organizational-climate/test/delete',
1024
            'organizational-climate/report',
1025
            'organizational-climate/report/overview',
1026
            'organizational-climate/report/all',
1027
            'organizational-climate/report/excel',
1028
        ],
1029
        'organizational-climate-test' => [
1030
            'organizational-climate/test',
1031
            'organizational-climate/test/add',
1032
            'organizational-climate/test/report',
1033
            'organizational-climate/test/delete',
1034
        ],
1035
        'organizational-climate-report' => [
1036
            'organizational-climate/report',
1037
            'organizational-climate/report/overview',
1038
            'organizational-climate/report/all',
1039
            'organizational-climate/report/excel',
15386 efrain 1040
        ],
1041
        'planning-objectives-and-goals-admin' => [
1042
            'planning-objectives-and-goals',
1043
            'planning-objectives-and-goals/objectives',
1044
            'planning-objectives-and-goals/objectives/report',
1045
            'planning-objectives-and-goals/objectives/reportall',
1046
            'planning-objectives-and-goals/objectives/matriz',
1047
            'planning-objectives-and-goals/objectives/goals',
1048
            'planning-objectives-and-goals/objectives/goals/add',
1049
            'planning-objectives-and-goals/objectives/goals/edit',
1050
            'planning-objectives-and-goals/objectives/goals/delete',
1051
            'planning-objectives-and-goals/objectives/goals/task',
1052
            'planning-objectives-and-goals/objectives/goals/task/add',
1053
            'planning-objectives-and-goals/objectives/goals/task/edit',
1054
            'planning-objectives-and-goals/objectives/goals/task/delete',
1055
            'planning-objectives-and-goals/objectives/goals/task/view',
1056
            'planning-objectives-and-goals/objectives/add',
1057
            'planning-objectives-and-goals/objectives/delete',
1058
            'planning-objectives-and-goals/objectives/edit',
1059
        ],
779 geraldo 1060
    ];
1 www 1061
}
1062
 
15355 efrain 1063
function getAclPermissionPushTemplatesForCustomApps()
1064
{
1065
    return [
1066
        'settings',
1067
        'settings/push-templates',
1068
        'settings/push-templates/edit',
1069
        'settings/push-templates/import',
1070
    ];
1071
}
1072
 
15336 efrain 1073
function getAclPermissionSuperAdmin()
1074
{
1 www 1075
    return [
15336 efrain 1076
        'settings',
1077
        'settings/private-networks',
1078
        'settings/private-networks/add',
1079
        'settings/private-networks/edit',
1080
        'settings/private-networks/delete',
15355 efrain 1081
 
1082
        'settings/push-templates',
1083
        'settings/push-templates/edit',
15336 efrain 1084
    ];
1085
}
1086
 
1087
function  getAclPermissionAdminForDefaultNetwork()
1088
{
1089
    return [
1090
        'settings',
1091
        'settings/company-sizes',
1092
        'settings/company-sizes/add',
1093
        'settings/company-sizes/edit',
1094
        'settings/company-sizes/delete',
1095
        'settings/competency-types',
1096
        'settings/competency-types/add',
1097
        'settings/competency-types/edit',
1098
        'settings/competency-types/delete',
1099
        'settings/behaviors',
1100
        'settings/behaviors/add',
1101
        'settings/behaviors/edit',
1102
        'settings/competencies',
1103
        'settings/competencies/add',
1104
        'settings/competencies/edit',
1105
        'settings/competencies/delete',
1106
        'settings/degrees',
1107
        'settings/degrees/add',
1108
        'settings/degrees/edit',
1109
        'settings/degrees/delete',
1110
        'settings/email-templates',
1111
        'settings/email-templates/edit',
1112
        'settings/push-templates',
1113
        'settings/push-templates/edit',
1114
        'settings/group-types',
1115
        'settings/group-types/add',
1116
        'settings/group-types/edit',
1117
        'settings/group-types/delete',
1118
        'settings/industries',
1119
        'settings/industries/add',
1120
        'settings/industries/edit',
1121
        'settings/industries/delete',
1122
        'settings/job-categories',
1123
        'settings/job-categories/add',
1124
        'settings/job-categories/edit',
1125
        'settings/job-categories/delete',
1126
        'settings/jobs-description',
1127
        'settings/jobs-description/add',
1128
        'settings/jobs-description/edit',
1129
        'settings/jobs-description/delete',
1130
        'settings/skills',
1131
        'settings/skills/add',
1132
        'settings/skills/edit',
1133
        'settings/skills/delete',
1134
        'settings/aptitudes',
1135
        'settings/aptitudes/add',
1136
        'settings/aptitudes/edit',
1137
        'settings/aptitudes/delete',
1138
 
1139
        'settings/hobbies-and-interests',
1140
        'settings/hobbies-and-interests/add',
1141
        'settings/hobbies-and-interests/edit',
1142
        'settings/hobbies-and-interests/delete',
1143
 
1144
        'settings/email-templates',
1145
        'settings/email-templates/edit',
1146
        'settings/push-templates',
1147
        'settings/push-templates/edit',
1148
 
1149
 
1150
        'settings/my-private-network',
1151
        'settings/my-private-network/intro',
1152
        'settings/my-private-network/navbar',
1153
        'settings/my-private-network/favicon',
1154
        'settings/my-private-network/logo',
1155
        'settings/my-private-network/styles-and-colors',
1156
 
1157
        'companies',
1158
        'companies/edit',
1159
        'companies/services',
1160
        'companies/roles',
15387 efrain 1161
 
1162
        'reports',
1163
        'reports/users-blocked',
1164
        'reports/users-blocked/excel',
15336 efrain 1165
    ];
1166
}
1167
 
1168
function  getAclPermissionAdminForNonDefaultNetwork()
1169
{
1170
    return [
1171
        'settings',
1172
        'settings/email-templates',
1173
        'settings/email-templates/edit',
1174
 
1175
 
1176
        'settings/my-private-network',
1177
        'settings/my-private-network/intro',
1178
        'settings/my-private-network/navbar',
1179
        'settings/my-private-network/favicon',
1180
        'settings/my-private-network/logo',
1181
        'settings/my-private-network/styles-and-colors',
1182
 
15387 efrain 1183
        'reports',
1184
        'reports/users-blocked',
1185
        'reports/users-blocked/excel',
15336 efrain 1186
 
15387 efrain 1187
 
15336 efrain 1188
    ];
1189
}
1190
 
1191
 
1192
 
1193
function getAclRolesForUsertype() {
1194
    return [
1 www 1195
        UserType::ADMIN => [
1196
            'home',
1197
            'signin-admin',
1198
            'signin-company',
1199
            'dashboard',
1200
            'signout',
1201
            'storage',
1202
            'settings',
15336 efrain 1203
 
1204
 
1205
            'settings/my-private-network',
1206
            'settings/my-private-network/navbar',
1207
            'settings/my-private-network/favicon',
1208
            'settings/my-private-network/logo',
1209
            'settings/my-private-network/styles-and-colors',
1210
 
1 www 1211
            'publications',
1212
            'publications/posts',
1213
            'publications/posts/add',
1214
            'publications/posts/edit',
1215
            'publications/posts/delete',
1216
            'publications/pages',
1217
            'publications/pages/add',
1218
            'publications/pages/edit',
1219
            'publications/pages/delete',
14610 efrain 1220
 
1 www 1221
            'users',
1222
            'users/change-password',
1223
            'users/unblock',
129 efrain 1224
            'users/email-verify',
15387 efrain 1225
            'users/upload',
14587 efrain 1226
 
1227
            'chat/heart-beat',
1228
            'chat/create-group',
1229
            'chat/add-user-to-group',
1230
            'chat/mark-seen',
1231
            'chat/mark-received',
1232
            'chat/remove-user-from-group',
1233
            'chat/get-all-messages',
1234
            'chat/send',
1235
            'chat/get-contacts-availables-for-group',
1236
            'chat/get-contact-group-list',
1237
            'chat/leave-group',
1238
            'chat/delete-group',
1239
            'chat/close',
1240
            'chat/clear',
14692 efrain 1241
            'chat/open',
14587 efrain 1242
            'chat/upload',
14691 efrain 1243
            'csrf',
14587 efrain 1244
 
15387 efrain 1245
            'reports',
1246
            'reports/users-blocked',
1247
 
1 www 1248
        ],
15336 efrain 1249
 
1 www 1250
        UserType::USER => [
1251
            'home',
1252
            'signin-admin',
1253
            'signin-company',
1254
            'dashboard',
1255
            'signout',
1256
            'storage',
15336 efrain 1257
            'storage-network',
14610 efrain 1258
 
15088 efrain 1259
            'home',
1260
            'signin-admin',
1261
            'signin-company',
1262
            'dashboard',
1263
            'signout',
1264
            'storage',
1265
 
14587 efrain 1266
            'chat',
1267
            'chat/heart-beat',
1268
            'chat/create-group',
1269
            'chat/add-user-to-group',
1270
            'chat/mark-seen',
1271
            'chat/mark-received',
1272
            'chat/remove-user-from-group',
1273
            'chat/get-all-messages',
1274
            'chat/send',
1275
            'chat/get-contacts-availables-for-group',
1276
            'chat/get-contact-group-list',
1277
            'chat/leave-group',
1278
            'chat/delete-group',
1279
            'chat/close',
1280
            'chat/clear',
14692 efrain 1281
            'chat/open',
14588 efrain 1282
            'chat/upload',
14691 efrain 1283
            'csrf',
14610 efrain 1284
 
1285
 
1 www 1286
        ],
1287
        UserType::GUEST => [
1288
            'home',
1289
            'signin-admin',
1290
            'signin-company',
1291
            'signout',
15336 efrain 1292
            'storage-network',
1916 nelberth 1293
 
8536 efrain 1294
 
1 www 1295
        ],
1296
    ];
1297
}
1298
 
779 geraldo 1299
function getAclMenuSystem() {
1 www 1300
    return [
1301
        [
1302
            'label' => 'LABEL_HOME',
1303
            'route' => 'dashboard',
1304
            'class' => 'fa fa-home'
1305
        ],
15336 efrain 1306
 
1 www 1307
        [
15336 efrain 1308
            'label' => 'LABEL_PRIVATE_NETWORKS',
1309
            'route' => 'settings/private-networks',
1310
            'class' => 'fa fa-building',
1311
        ],
1312
 
1313
 
1314
        [
1315
            'label' => 'LABEL_MY_PRIVATE_NETWORK',
1316
            'route' => 'settings/my-private-network',
1317
            'class' => 'fa fa-building',
1318
            'pages' => [
1319
                [
1320
                    'label' => 'LABEL_MY_PRIVATE_NETWORK_INTRO',
1321
                    'route' => 'settings/my-private-network/intro',
1322
                ],
1323
                [
1324
                    'label' => 'LABEL_MY_PRIVATE_NETWORK_NAVBAR',
1325
                    'route' => 'settings/my-private-network/navbar',
1326
                ],
1327
                [
1328
                    'label' => 'LABEL_MY_PRIVATE_NETWORK_FAVICO',
1329
                    'route' => 'settings/my-private-network/favicon',
1330
                ],
1331
                [
1332
                    'label' => 'LABEL_MY_PRIVATE_NETWORK_LOGO',
1333
                    'route' => 'settings/my-private-network/logo',
1334
                ],
1335
                [
1336
                    'label' => 'LABEL_MY_PRIVATE_NETWORK_STYLES_AND_COLORS',
1337
                    'route' => 'settings/my-private-network/styles-and-colors',
1338
                ],
1339
 
1340
 
1341
            ],
1342
        ],
1343
 
1344
 
1345
        [
1 www 1346
            'label' => 'LABEL_COMPANIES',
1347
            'route' => 'companies',
1348
            'class' => 'fa fa-building',
1349
        ],
1350
        [
1351
            'label' => 'LABEL_SETTINGS',
1352
            'route' => 'settings',
1353
            'class' => 'fa fa-cog',
1354
            'pages' => [
1355
                [
1356
                    'label' => 'LABEL_JOB_CATEGORIES',
1357
                    'route' => 'settings/job-categories',
1358
                ],
1359
                [
1360
                    'label' => 'LABEL_COMPETENCIES',
1361
                    'route' => 'settings/competencies',
1362
                ],
1363
                [
14875 efrain 1364
                    'label' => 'LABEL_BEHAVIORS',
1365
                    'route' => 'settings/behaviors',
1366
                ],
1367
                [
1 www 1368
                    'label' => 'LABEL_EMAIL_TEMPLATES',
1369
                    'route' => 'settings/email-templates',
1370
                ],
1371
                [
1372
                    'label' => 'LABEL_PUSH_TEMPLATES',
1373
                    'route' => 'settings/push-templates',
1374
                ],
1375
                [
1376
                    'label' => 'LABEL_DEGREES',
1377
                    'route' => 'settings/degrees',
1378
                ],
1379
                [
1380
                    'label' => 'LABEL_SKILLS',
1381
                    'route' => 'settings/skills',
1382
                ],
1383
                [
1384
                    'label' => 'LABEL_INDUSTRIES',
1385
                    'route' => 'settings/industries',
1386
                ],
1387
                [
837 geraldo 1388
                    'label' => 'LABEL_JOBS_DESCRIPTION',
836 geraldo 1389
                    'route' => 'settings/jobs-description',
1390
                ],
1391
                [
1 www 1392
                    'label' => 'LABEL_COMPANY_SIZES',
1393
                    'route' => 'settings/company-sizes',
1394
                ],
1395
                [
1396
                    'label' => 'LABEL_COMPETENCY_TYPES',
1397
                    'route' => 'settings/competency-types',
1398
                ],
1399
                [
1400
                    'label' => 'LABEL_GROUP_TYPES',
1401
                    'route' => 'settings/group-types',
1402
                ],
1403
            ]
1404
        ],
1405
        [
1406
            'label' => 'LABEL_PUBLICATIONS',
1407
            'route' => 'publications',
1408
            'class' => 'fa fa-book',
1409
            'pages' => [
1410
                [
1411
                    'label' => 'LABEL_PAGES',
1412
                    'route' => 'publications/pages',
1413
                ],
1414
                [
1415
                    'label' => 'LABEL_POSTS',
1416
                    'route' => 'publications/posts',
1417
                ],
1418
            ]
1419
        ],
1420
        [
1421
            'label' => 'LABEL_USERS',
1422
            'route' => 'users',
1423
            'class' => 'fa fa-users',
779 geraldo 1424
        /* 'pages' => [
1425
          [
1426
          'label' => 'LABEL_PAGES',
1427
          'route' => 'publications/pages',
1428
          ],
1429
 
1430
          ] */
1 www 1431
        ],
1333 efrain 1432
 
15387 efrain 1433
        [
1434
            'label' => 'LABEL_REPORTS',
1435
            'route' => 'settings',
1436
            'class' => 'fa fa-print',
1437
            'pages' => [
1438
                [
1439
                    'label' => 'LABEL_REPORTS_USERS_BLOCKED',
1440
                    'route' => 'reports/users-blocked',
1441
                ],
1442
            ]
1443
        ],
1333 efrain 1444
 
1445
 
1446
        [
1 www 1447
            'label' => 'LABEL_LOGOUT',
1448
            'route' => 'signout',
1449
            'class' => 'fa fa-sign-out',
1450
        ]
779 geraldo 1451
    ];
1 www 1452
}
1453
 
779 geraldo 1454
function getAclMenuCompany() {
1455
 
1 www 1456
    return [
1457
        [
1458
            'label' => 'LABEL_HOME',
1459
            'route' => 'dashboard',
1460
            'class' => 'fa fa-home'
1461
        ],
1462
        [
1463
            'label' => 'LABEL_JOBS',
1464
            'route' => 'jobs',
1465
            'class' => 'fa fa-briefcase'
1466
        ],
1467
        [
1468
            'label' => 'LABEL_FEEDS',
1469
            'route' => 'feeds',
1470
            'class' => 'fa fa-rss'
1471
        ],
114 efrain 1472
        [
13672 nelberth 1473
            'label' => 'LABEL_INMAIL',
13524 nelberth 1474
            'route' => 'inmail',
13487 nelberth 1475
            'class' => 'fa fa-envelope-o'
1476
        ],
1477
 
1478
        [
114 efrain 1479
            'label' => 'LABEL_SELF_EVALUATION',
1480
            'route' => 'self-evaluation',
1481
            'class' => 'fa fa-book',
1482
            'pages' => [
1483
                [
1484
                    'label' => 'LABEL_FORMS',
1485
                    'route' => 'self-evaluation/forms',
1486
                ],
115 efrain 1487
                [
1488
                    'label' => 'LABEL_USERS',
1489
                    'route' => 'self-evaluation/users',
246 geraldo 1490
                ],
1491
                [
1492
                    'label' => 'LABEL_REVIEWS',
1493
                    'route' => 'self-evaluation/reviews',
245 geraldo 1494
                ]
779 geraldo 1495
            ],
1496
        ],
1 www 1497
        [
1498
            'label' => 'LABEL_MICRO_LEARNING',
1499
            'route' => 'microlearning',
1500
            'class' => 'fa fa-book',
1501
            'pages' => [
1502
                [
1503
                    'label' => 'LABEL_OVERVIEW',
1504
                    'route' => 'microlearning/overview',
1505
                ],
1506
                [
1507
                    'label' => 'LABEL_REPORTS',
1508
                    'route' => 'microlearning/reports',
2 efrain 1509
                    'pages' => [
1510
                        [
1511
                            'label' => 'LABEL_DEVICES',
1512
                            'route' => 'microlearning/reports/devices',
1513
                        ],
14626 efrain 1514
/*
2 efrain 1515
                        [
1516
                            'label' => 'LABEL_PROGRESS',
1517
                            'route' => 'microlearning/reports/progress',
1518
                        ],
14626 efrain 1519
*/
14610 efrain 1520
                        [
15386 efrain 1521
                            'label' => 'LABEL_PROGRESS_FOR_TOPIC',
1522
                            'route' => 'microlearning/reports/progress-for-topic',
1523
                        ],
1524
                        [
14610 efrain 1525
                            'label' => 'LABEL_PROGRESS_FOR_CAPSULE',
1526
                            'route' => 'microlearning/reports/progress-for-capsule',
1527
                        ],
15386 efrain 1528
                        [
1529
                            'label' => 'LABEL_PROGRESS_FOR_STUDENT',
1530
                            'route' => 'microlearning/reports/progress-for-student',
1531
                        ],
779 geraldo 1532
                    ],
1 www 1533
                ],
1534
                [
1535
                    'label' => 'LABEL_CONTENT',
1536
                    'route' => 'microlearning/content',
1537
                    'pages' => [
1538
                        [
66 efrain 1539
                            'label' => 'LABEL_QUIZZES',
1540
                            'route' => 'microlearning/content/quizzes',
1541
                        ],
1542
                        [
1 www 1543
                            'label' => 'LABEL_TOPICS',
1544
                            'route' => 'microlearning/content/topics',
1545
                        ],
1546
                        [
1547
                            'label' => 'LABEL_CAPSULES',
1548
                            'route' => 'microlearning/content/capsules',
1549
                        ],
1550
                        [
1551
                            'label' => 'LABEL_SLIDES',
1552
                            'route' => 'microlearning/content/slides',
1553
                        ],
1554
                    ]
1555
                ],
1556
                [
1557
                    'label' => 'LABEL_ACCESS_FOR_STUDENTS',
1558
                    'route' => 'microlearning/access-for-students',
1559
                ],
1560
                [
1561
                    'label' => 'LABEL_STUDENTS',
1562
                    'route' => 'microlearning/students',
1563
                ],
1564
                [
1565
                    'label' => 'LABEL_FILTERS',
1566
                    'route' => 'microlearning/settings',
1567
                    'pages' => [
1568
                        [
1569
                            'label' => 'LABEL_COMPANIES',
1570
                            'route' => 'microlearning/settings/companies',
1571
                        ],
1572
                        [
1573
                            'label' => 'LABEL_FUNCTIONS',
1574
                            'route' => 'microlearning/settings/functions',
1575
                        ],
1576
                        [
1577
                            'label' => 'LABEL_GROUPS',
1578
                            'route' => 'microlearning/settings/groups',
1579
                        ],
1580
                        [
1581
                            'label' => 'LABEL_INSTITUTIONS',
1582
                            'route' => 'microlearning/settings/institutions',
1583
                        ],
1584
                        [
1585
                            'label' => 'LABEL_PROGRAMS',
1586
                            'route' => 'microlearning/settings/programs',
1587
                        ],
1588
                        [
1589
                            'label' => 'LABEL_PARTNERS',
1590
                            'route' => 'microlearning/settings/partners',
1591
                        ],
1592
                        [
1593
                            'label' => 'LABEL_SECTORS',
1594
                            'route' => 'microlearning/settings/sectors',
1595
                        ],
1596
                        [
1597
                            'label' => 'LABEL_STUDENT_TYPES',
1598
                            'route' => 'microlearning/settings/student-types',
1599
                        ],
779 geraldo 1600
                    ],
1 www 1601
                ]
1602
            ]
1603
        ],
1604
        [
560 geraldo 1605
            'label' => 'LABEL_JOB_POSITION',
28 efrain 1606
            'route' => 'settings',
1607
            'class' => 'fa fa-book',
1608
            'pages' => [
1609
                [
66 efrain 1610
                    'label' => 'LABEL_JOBS_DESCRIPTION',
1611
                    'route' => 'settings/jobs-description',
28 efrain 1612
                ],
1613
                [
1614
                    'label' => 'LABEL_COMPETENCIES',
1615
                    'route' => 'settings/competencies',
1616
                ],
66 efrain 1617
                [
1618
                    'label' => 'LABEL_COMPETENCY_TYPES',
1619
                    'route' => 'settings/competency-types',
1620
                ],
67 efrain 1621
                [
14875 efrain 1622
                    'label' => 'LABEL_BEHAVIORS',
1623
                    'route' => 'settings/behaviors',
1624
                ],
1625
                [
67 efrain 1626
                    'label' => 'LABEL_POSITIONS',
1627
                    'route' => 'settings/positions',
1628
                ],
28 efrain 1629
            ]
779 geraldo 1630
        ],
22 steven 1631
        [
1090 geraldo 1632
            'label' => 'LABEL_PERFORMANCE_EVALUATION_MENU',
976 geraldo 1633
            'route' => 'performance-evaluation',
1634
            'class' => 'fa fa-book',
1635
            'pages' => [
1636
                [
1637
                    'label' => 'LABEL_FORMS',
1638
                    'route' => 'performance-evaluation/forms',
1639
                ],
1383 efrain 1640
 
976 geraldo 1641
                [
1383 efrain 1642
                    'label' => 'LABEL_TESTS',
1643
                    'route' => 'performance-evaluation/evaluations',
1644
                ]
976 geraldo 1645
            ],
946 geraldo 1646
        ],
1321 eleazar 1647
        [
1 www 1648
            'label' => 'LABEL_PROFILE',
1649
            'route' => 'profile',
1650
            'class' => 'fa fa-picture-o'
1651
        ],
1652
        [
1653
            'label' => 'LABEL_FOLLOWERS',
1654
            'route' => 'followers',
1655
            'class' => 'fa fa-heart'
1656
        ],
1657
        [
1658
            'label' => 'LABEL_USERS',
1659
            'route' => 'users',
1660
            'class' => 'fa fa-users',
1661
        ],
1334 efrain 1662
 
1 www 1663
        [
1334 efrain 1664
            'label' => 'LABEL_OWN_PROFESSIONAL_NETWORK',
1665
            'route' => 'own-professional-network',
1666
            'class' => 'fa fa-book',
1667
        ],
1668
 
1669
        [
1670
            'label' => 'LABEL_ORGANIZATIONAL_DESIGN',
1671
            'route' =>  'organizational-design',
1672
            'class' => 'fa fa-book',
1673
        ],
1674
 
8187 nelberth 1675
 
1334 efrain 1676
        [
8187 nelberth 1677
            'label' => 'LABEL_HIGH_PERFORMANCE_TEAMS',
12397 nelberth 1678
            'route' =>  'high-performance-teams/groups',
1689 nelberth 1679
            'class' => 'fa fa-street-view',
12397 nelberth 1680
 
1334 efrain 1681
        ],
1682
        [
12397 nelberth 1683
            'label' => 'LABEL_PLANNING_OBJECTIVES_AND_GOALS',
1684
            'route' => 'planning-objectives-and-goals/objectives',
1685
            'class' => 'fa fa-book',
1686
        ],
1687
        [
1334 efrain 1688
            'label' => 'LABEL_DEVELOPMENT_AND_TRAINING',
1689
            'route' => 'development-and-training',
1690
            'class' => 'fa fa-book',
1691
        ],
1692
 
13353 eleazar 1693
        [
1694
            'label' => 'LABEL_DEVELOPMENT_AND_CONTENT',
1695
            'route' => 'development-and-content',
1696
            'class' => 'fa fa-book',
1697
            'pages' => [
1698
                [
1699
                    'label' => 'LABEL_CATEGORIES',
1700
                    'route' =>  'development-and-content/category',
1701
                ],
15028 efrain 1702
 
13353 eleazar 1703
                [
13464 eleazar 1704
                    'label' => 'LABEL_CONTENT',
15028 efrain 1705
                    'route' =>  'development-and-content/listing',
13464 eleazar 1706
                ]
13353 eleazar 1707
 
1708
            ]
1709
        ],
1334 efrain 1710
 
1711
        [
1712
            'label' => 'LABEL_RECRUITMENT_AND_SELECTION',
1477 efrain 1713
            'route' => 'recruitment-and-selection',
1334 efrain 1714
            'class' => 'fa fa-book',
1342 eleazar 1715
            'pages' => [
1716
                [
1463 eleazar 1717
                    'label' => 'LABEL_VACANCIES',
1478 eleazar 1718
                    'route' => 'recruitment-and-selection/vacancies',
1342 eleazar 1719
                ],
1459 eleazar 1720
 
1721
                [
4241 eleazar 1722
                    'label' => 'LABEL_PRE_SELECTION',
1478 eleazar 1723
                    'route' => 'recruitment-and-selection/candidates',
1709 eleazar 1724
                ],
1725
                [
1726
                    'label' => 'LABEL_INTERVIEW',
4047 eleazar 1727
                    'route' => 'recruitment-and-selection/interview/form',
1728
 
1463 eleazar 1729
                ]
1342 eleazar 1730
             ],
1334 efrain 1731
        ],
1732
 
1733
        [
1734
            'label' => 'LABEL_INDUCTION',
1735
            'route' => 'induction',
1736
            'class' => 'fa fa-book',
1737
        ],
1738
 
1739
 
1740
        [
1741
            'label' => 'LABEL_ORGANIZATIONAL_CLIMATE',
1742
            'route' => 'organizational-climate',
1743
            'class' => 'fa fa-book',
7218 eleazar 1744
            'pages' => [
1745
                [
1746
                    'label' => 'LABEL_FORMS',
1747
                    'route' => 'organizational-climate/form',
1748
                ],
1749
                [
1750
                    'label' => 'LABEL_SURVEY',
1751
                    'route' => 'organizational-climate',
1752
                ],
1753
                [
1754
                    'label' => 'LABEL_SURVEY_TEST',
1755
                    'route' => 'organizational-climate/test',
1756
                ],
1757
                [
1758
                    'label' => 'LABEL_SURVEY_REPORT',
1759
                    'route' => 'organizational-climate/report',
1760
                ],
1761
            ]
1334 efrain 1762
        ],
1763
 
1764
        [
1765
            'label' => 'LABEL_CULTURE',
1766
            'route' =>  'culture',
1767
            'class' => 'fa fa-book',
1768
        ],
1769
 
1770
        [
1771
            'label' => 'LABEL_COMMUNICATION',
13969 nelberth 1772
            'route' =>  'communication/inbox',
13012 nelberth 1773
            'class' => 'fa fa-envelope',
13770 nelberth 1774
 
1775
 
1334 efrain 1776
        ],
1777
 
1778
        [
1779
            'label' => 'LABEL_CAREER_DEVELOPMENT',
1780
            'route' =>  'career-development',
1781
            'class' => 'fa fa-book',
1782
        ],
1783
 
1784
        [
1785
            'label' => 'LABEL_SURVEYS',
4375 eleazar 1786
            'route' =>  'survey',
1334 efrain 1787
            'class' => 'fa fa-book',
4374 eleazar 1788
            'pages' => [
1789
                [
1790
                    'label' => 'LABEL_FORMS',
4375 eleazar 1791
                    'route' => 'survey/form',
4374 eleazar 1792
                ],
4579 eleazar 1793
                [
1794
                    'label' => 'LABEL_SURVEY',
1795
                    'route' => 'survey',
1796
                ],
5287 eleazar 1797
                [
1798
                    'label' => 'LABEL_SURVEY_TEST',
1799
                    'route' => 'survey/test',
1800
                ],
5823 eleazar 1801
                [
1802
                    'label' => 'LABEL_SURVEY_REPORT',
1803
                    'route' => 'survey/report',
1804
                ],
4374 eleazar 1805
            ]
1334 efrain 1806
        ],
1807
 
1808
        [
1809
            'label' => 'LABEL_BUILDING_MY_FUTURE',
1810
            'route' =>  'building-my-future',
1811
            'class' => 'fa fa-book',
1812
        ],
1813
 
1814
 
4379 nelberth 1815
 
1334 efrain 1816
        [
1817
            'label' => 'LABEL_MY_TRAINER',
1818
            'route' => 'my-trainer',
1819
            'class' => 'fa fa-book',
8462 eleazar 1820
            'pages' => [
1821
                [
8465 eleazar 1822
                    'label' => 'LABEL_CATEGORIES',
8462 eleazar 1823
                    'route' =>  'my-trainer/category',
1824
                ],
1825
                [
8464 eleazar 1826
                    'label' => 'LABEL_QUESTIONS',
8462 eleazar 1827
                    'route' => 'my-trainer/question',
1828
                ],
10778 eleazar 1829
 
8462 eleazar 1830
            ]
1334 efrain 1831
        ],
1832
 
15355 efrain 1833
        [
1834
            'label' => 'LABEL_SETTINGS',
1835
            'route' => 'settings',
1836
            'class' => 'fa fa-cog',
1837
            'pages' => [
1838
                [
1839
                    'label' => 'LABEL_PUSH_TEMPLATES',
1840
                    'route' => 'settings/push-templates',
1841
                ],
1842
            ]
1843
        ],
1334 efrain 1844
 
15387 efrain 1845
        [
1846
            'label' => 'LABEL_REPORTS',
1847
            'route' => 'settings',
1848
            'class' => 'fa fa-print',
1849
            'pages' => [
1850
                [
1851
                    'label' => 'LABEL_REPORTS_USERS_BLOCKED',
1852
                    'route' => 'reports/users-blocked',
1853
                ],
1854
            ]
1855
        ],
1336 efrain 1856
 
1334 efrain 1857
        [
1 www 1858
            'label' => 'LABEL_LOGOUT',
1859
            'route' => 'signout',
1860
            'class' => 'fa fa-sign-out',
1861
        ]
1862
    ];
1863
}