Proyectos de Subversion LeadersLinked - Backend

Rev

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