Proyectos de Subversion LeadersLinked - Backend

Rev

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