Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 1346 | Rev 1395 | 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
 
779 geraldo 5
function getAclResources() {
1 www 6
    return [
7
        'home',
8
        'signin-admin',
9
        'signin-company',
10
        'dashboard',
11
        'signout',
12
        'storage',
13
        'settings',
14
        'settings/company-sizes',
15
        'settings/company-sizes/add',
16
        'settings/company-sizes/edit',
17
        'settings/company-sizes/delete',
18
        'settings/competency-types',
19
        'settings/competency-types/add',
20
        'settings/competency-types/edit',
21
        'settings/competency-types/delete',
1102 geraldo 22
        'settings/behaviors',
23
        'settings/behaviors/add',
1138 geraldo 24
        'settings/behaviors/edit',
28 efrain 25
        'settings/competency-types/import',
1 www 26
        'settings/competencies',
27
        'settings/competencies/add',
28
        'settings/competencies/edit',
29
        'settings/competencies/delete',
28 efrain 30
        'settings/competencies/import',
1 www 31
        'settings/degrees',
32
        'settings/degrees/add',
33
        'settings/degrees/edit',
34
        'settings/degrees/delete',
35
        'settings/email-templates',
36
        'settings/email-templates/edit',
37
        'settings/push-templates',
38
        'settings/push-templates/edit',
39
        'settings/group-types',
40
        'settings/group-types/add',
41
        'settings/group-types/edit',
42
        'settings/group-types/delete',
43
        'settings/industries',
44
        'settings/industries/add',
45
        'settings/industries/edit',
46
        'settings/industries/delete',
1328 eleazar 47
        //'settings/jobs-interview',
48
        //'settings/jobs-interview/form',
49
        //'settings/jobs-interview/form/add',
50
        //'settings/jobs-interview/form/delete',
51
        //'settings/jobs-interview/form/edit',
1 www 52
        'settings/job-categories',
53
        'settings/job-categories/add',
54
        'settings/job-categories/edit',
55
        'settings/job-categories/delete',
28 efrain 56
        'settings/jobs-description',
57
        'settings/jobs-description/add',
58
        'settings/jobs-description/edit',
59
        'settings/jobs-description/delete',
561 geraldo 60
        'settings/jobs-description/report',
846 geraldo 61
        'settings/jobs-description/import',
67 efrain 62
        'settings/positions',
63
        'settings/positions/add',
64
        'settings/positions/edit',
65
        'settings/positions/delete',
1320 efrain 66
        'settings/positions/subordinates',
1 www 67
        'settings/skills',
68
        'settings/skills/add',
69
        'settings/skills/edit',
70
        'settings/skills/delete',
71
        'publications',
72
        'publications/posts',
73
        'publications/posts/add',
74
        'publications/posts/edit',
75
        'publications/posts/delete',
76
        'publications/pages',
77
        'publications/pages/add',
78
        'publications/pages/edit',
79
        'publications/pages/delete',
80
        'users',
81
        'users/change-password',
82
        'users/unblock',
83
        'users/invite',
84
        'users/accept',
85
        'users/cancel',
86
        'users/reject',
87
        'users/edit',
88
        'users/upload',
129 efrain 89
        'users/email-verify',
1 www 90
        'companies',
91
        'companies/edit',
92
        'companies/services',
93
        'companies/roles',
94
        //Company
95
        'profile',
96
        'profile/extended',
97
        'profile/cover',
98
        'profile/image',
779 geraldo 99
        'profile/header',
100
        'profile/footer',
1 www 101
        'profile/website',
102
        'profile/foundation_year',
103
        'profile/location',
104
        'profile/social-network',
105
        'profile/company-size',
106
        'profile/industry',
107
        'profile/delete',
108
        'feeds',
109
        'feeds/timeline',
110
        'feeds/delete',
111
        'feeds/comments',
112
        'feeds/comments/delete',
113
        'feeds/add',
114
        'followers',
115
        'followers/delete',
114 efrain 116
        'self-evaluation',
117
        'self-evaluation/forms',
118
        'self-evaluation/forms/add',
119
        'self-evaluation/forms/edit',
120
        'self-evaluation/forms/delete',
115 efrain 121
        'self-evaluation/users',
122
        'self-evaluation/users/add',
123
        'self-evaluation/users/delete',
114 efrain 124
        'self-evaluation/reviews',
115 efrain 125
        'self-evaluation/reviews/edit',
470 geraldo 126
        'self-evaluation/reviews/report',
946 geraldo 127
        'performance-evaluation',
128
        'performance-evaluation/forms',
129
        'performance-evaluation/forms/add',
130
        'performance-evaluation/forms/edit',
131
        'performance-evaluation/forms/delete',
1383 efrain 132
        'performance-evaluation/evaluations',
133
        'performance-evaluation/evaluations/add',
134
        'performance-evaluation/evaluations/edit',
135
        'performance-evaluation/evaluations/delete',
136
        'performance-evaluation/evaluations/users',
137
        'performance-evaluation/evaluations/users/add',
138
        'performance-evaluation/evaluations/users/delete',
139
 
1263 geraldo 140
        'performance-evaluation/forms/report',
1320 efrain 141
        'performance-evaluation/reviews',
142
        'performance-evaluation/reviews/pdf',
1343 eleazar 143
        'recruitment-and-selection',
144
        'recruitment-and-selection/forms',
145
        'recruitment-and-selection/forms/add',
146
        'recruitment-and-selection/forms/edit',
147
        'recruitment-and-selection/forms/delete',
1 www 148
        'jobs',
149
        'jobs/add',
150
        'jobs/delete',
151
        'jobs/users-who-applied',
152
        'jobs/edit',
153
        'jobs/edit/title',
154
        'jobs/edit/status',
155
        'jobs/edit/last-date-of-application',
156
        'jobs/edit/employment-type',
157
        'jobs/edit/experience',
158
        'jobs/edit/job-category',
159
        'jobs/edit/extended',
160
        'jobs/edit/location',
161
        'jobs/edit/salary',
162
        'jobs/edit/languages',
163
        'jobs/edit/degrees',
164
        'jobs/edit/skills',
165
        'jobs/edit/how-apply',
166
        'microlearning',
167
        'microlearning/overview',
168
        'microlearning/reports',
2 efrain 169
        'microlearning/reports/progress',
170
        'microlearning/reports/devices',
187 efrain 171
        'microlearning/reports/comments-for-capsule',
1 www 172
        'microlearning/content',
173
        'microlearning/content/topics',
174
        'microlearning/content/topics/add',
175
        'microlearning/content/topics/edit',
176
        'microlearning/content/topics/delete',
177
        'microlearning/content/capsules',
178
        'microlearning/content/capsules/add',
179
        'microlearning/content/capsules/edit',
180
        'microlearning/content/capsules/delete',
181
        'microlearning/content/capsules/users',
182
        'microlearning/content/slides',
183
        'microlearning/content/slides/add',
184
        'microlearning/content/slides/edit',
185
        'microlearning/content/slides/delete',
186
        'microlearning/content/slides/text',
66 efrain 187
        'microlearning/content/quizzes',
188
        'microlearning/content/quizzes/add',
189
        'microlearning/content/quizzes/edit',
190
        'microlearning/content/quizzes/delete',
191
        'microlearning/content/quizzes/check',
192
        'microlearning/content/quizzes/publish',
193
        'microlearning/content/quizzes/copy',
194
        'microlearning/content/quizzes/questions',
195
        'microlearning/content/quizzes/questions/add',
196
        'microlearning/content/quizzes/questions/edit',
197
        'microlearning/content/quizzes/questions/delete',
198
        'microlearning/content/quizzes/questions/answers',
199
        'microlearning/content/quizzes/questions/answers/add',
200
        'microlearning/content/quizzes/questions/answers/edit',
201
        'microlearning/content/quizzes/questions/answers/delete',
1 www 202
        'microlearning/access-for-students',
203
        'microlearning/access-for-students/revoke',
204
        'microlearning/access-for-students/unlimit',
205
        'microlearning/access-for-students/cancel',
206
        'microlearning/access-for-students/reactive',
207
        'microlearning/access-for-students/upload',
208
        'microlearning/access-for-students/notification',
209
        'microlearning/students',
210
        'microlearning/students/edit',
211
        'microlearning/students/timeline',
212
        'microlearning/students/change-password',
213
        'microlearning/students/unblock',
214
        'microlearning/settings',
215
        'microlearning/settings/student-types',
216
        'microlearning/settings/student-types/add',
217
        'microlearning/settings/student-types/edit',
218
        'microlearning/settings/student-types/delete',
219
        'microlearning/settings/functions',
220
        'microlearning/settings/functions/add',
221
        'microlearning/settings/functions/edit',
222
        'microlearning/settings/functions/delete',
223
        'microlearning/settings/sectors',
224
        'microlearning/settings/sectors/add',
225
        'microlearning/settings/sectors/edit',
226
        'microlearning/settings/sectors/delete',
227
        'microlearning/settings/programs',
228
        'microlearning/settings/programs/add',
229
        'microlearning/settings/programs/edit',
230
        'microlearning/settings/programs/delete',
231
        'microlearning/settings/groups',
232
        'microlearning/settings/groups/add',
233
        'microlearning/settings/groups/edit',
234
        'microlearning/settings/groups/delete',
235
        'microlearning/settings/companies',
236
        'microlearning/settings/companies/add',
237
        'microlearning/settings/companies/edit',
238
        'microlearning/settings/companies/delete',
239
        'microlearning/settings/partners',
240
        'microlearning/settings/partners/add',
241
        'microlearning/settings/partners/edit',
242
        'microlearning/settings/partners/delete',
243
        'microlearning/settings/institutions',
244
        'microlearning/settings/institutions/add',
245
        'microlearning/settings/institutions/edit',
246
        'microlearning/settings/institutions/delete',
247
        //'microlearning/devices',
248
        //'microlearning/devices/notification',
1320 efrain 249
        //'test',
250
        //'test/method-one',
251
        //'test/method-two',
252
        //'test/method-three',
253
        //'test/method-four',
1333 efrain 254
 
1336 efrain 255
 
1333 efrain 256
        'own-professional-network',
257
        'organizational-design',
258
        'planning-objectives-and-goals',
259
        'development-and-training',
260
        'induction',
261
        'organizational-climate',
262
        'culture',
263
        'communication',
264
        'career-development',
265
        'surveys',
266
        'building-my-future',
267
        'high-performance-teams',
268
        'my-trainer',
1 www 269
    ];
270
}
271
 
779 geraldo 272
function getAclRolesCompany() {
1 www 273
    return [
274
        'creator' => [
275
            'home',
276
            'signin-admin',
277
            'signin-company',
278
            'dashboard',
279
            'signout',
280
            'storage',
281
            'profile',
282
            'profile/extended',
283
            'profile/cover',
284
            'profile/image',
779 geraldo 285
            'profile/header',
286
            'profile/footer',
1 www 287
            'profile/website',
288
            'profile/foundation_year',
289
            'profile/location',
290
            'profile/social-network',
291
            'profile/company-size',
292
            'profile/industry',
293
            'profile/delete',
294
            'users',
295
            'users/change-password',
296
            'users/unblock',
297
            'users/invite',
298
            'users/accept',
299
            'users/cancel',
300
            'users/reject',
301
            'users/edit',
302
            'users/upload',
303
            'feeds',
304
            'feeds/timeline',
305
            'feeds/delete',
306
            'feeds/comments',
307
            'feeds/comments/delete',
308
            'feeds/add',
309
            'followers',
310
            'followers/delete',
311
            'jobs',
312
            'jobs/add',
313
            'jobs/delete',
314
            'jobs/users-who-applied',
315
            'jobs/edit',
316
            'jobs/edit/title',
317
            'jobs/edit/status',
318
            'jobs/edit/last-date-of-application',
319
            'jobs/edit/employment-type',
320
            'jobs/edit/experience',
321
            'jobs/edit/job-category',
322
            'jobs/edit/extended',
323
            'jobs/edit/location',
324
            'jobs/edit/salary',
325
            'jobs/edit/languages',
326
            'jobs/edit/degrees',
327
            'jobs/edit/skills',
328
            'jobs/edit/how-apply',
26 efrain 329
            'settings',
28 efrain 330
            'settings/competency-types',
331
            'settings/competency-types/add',
332
            'settings/competency-types/edit',
333
            'settings/competency-types/delete',
334
            'settings/competency-types/import',
1102 geraldo 335
            'settings/behaviors',
336
            'settings/behaviors/add',
1138 geraldo 337
            'settings/behaviors/edit',
26 efrain 338
            'settings/competencies',
27 efrain 339
            'settings/competencies/add',
340
            'settings/competencies/edit',
341
            'settings/competencies/delete',
28 efrain 342
            'settings/competencies/import',
343
            'settings/jobs-description',
344
            'settings/jobs-description/add',
345
            'settings/jobs-description/edit',
346
            'settings/jobs-description/delete',
561 geraldo 347
            'settings/jobs-description/report',
846 geraldo 348
            'settings/jobs-description/import',
67 efrain 349
            'settings/positions',
350
            'settings/positions/add',
351
            'settings/positions/edit',
352
            'settings/positions/delete',
1320 efrain 353
            'settings/positions/subordinates',
354
            //'test',
355
            //'test/method-one',
356
            //'test/method-two',
357
            //'test/method-three',
358
            //'test/method-four',
1336 efrain 359
 
1333 efrain 360
 
361
            'own-professional-network',
362
            'organizational-design',
363
            'planning-objectives-and-goals',
364
            'development-and-training',
365
            'recruitment-and-selection',
1346 eleazar 366
            'recruitment-and-selection/forms',
367
            'recruitment-and-selection/forms/add',
368
            'recruitment-and-selection/forms/edit',
369
            'recruitment-and-selection/forms/delete',
1333 efrain 370
            'induction',
371
            'organizational-climate',
372
            'culture',
373
            'communication',
374
            'career-development',
375
            'surveys',
376
            'building-my-future',
377
            'high-performance-teams',
378
            'my-trainer',
779 geraldo 379
        ],
380
        'creator-self-evaluation' => [
114 efrain 381
            'self-evaluation',
382
            'self-evaluation/forms',
383
            'self-evaluation/forms/add',
384
            'self-evaluation/forms/edit',
385
            'self-evaluation/forms/delete',
115 efrain 386
            'self-evaluation/users',
387
            'self-evaluation/users/add',
388
            'self-evaluation/users/delete',
114 efrain 389
            'self-evaluation/reviews',
115 efrain 390
            'self-evaluation/reviews/edit',
470 geraldo 391
            'self-evaluation/reviews/report',
1 www 392
        ],
974 geraldo 393
        'creator-performance-evaluation' => [
394
            'performance-evaluation',
395
            'performance-evaluation/forms',
396
            'performance-evaluation/forms/add',
397
            'performance-evaluation/forms/edit',
398
            'performance-evaluation/forms/delete',
1263 geraldo 399
            'performance-evaluation/forms/report',
1320 efrain 400
            'performance-evaluation/reviews',
401
            'performance-evaluation/reviews/pdf',
1383 efrain 402
 
403
            'performance-evaluation/evaluations',
404
            'performance-evaluation/evaluations/add',
405
            'performance-evaluation/evaluations/edit',
406
            'performance-evaluation/evaluations/delete',
407
            'performance-evaluation/evaluations/users',
408
            'performance-evaluation/evaluations/users/add',
409
            'performance-evaluation/evaluations/users/delete',
974 geraldo 410
        ],
1 www 411
        'creator-microlearning' => [
412
            'microlearning',
413
            'microlearning/overview',
414
            'microlearning/reports',
2 efrain 415
            'microlearning/reports/progress',
416
            'microlearning/reports/devices',
187 efrain 417
            'microlearning/reports/comments-for-capsule',
1 www 418
            'microlearning/content',
419
            'microlearning/content/topics',
420
            'microlearning/content/topics/add',
421
            'microlearning/content/topics/edit',
422
            'microlearning/content/topics/delete',
423
            'microlearning/content/capsules',
424
            'microlearning/content/capsules/add',
425
            'microlearning/content/capsules/edit',
426
            'microlearning/content/capsules/delete',
427
            'microlearning/content/capsules/users',
428
            'microlearning/content/slides',
429
            'microlearning/content/slides/add',
430
            'microlearning/content/slides/edit',
431
            'microlearning/content/slides/delete',
432
            'microlearning/content/slides/text',
66 efrain 433
            'microlearning/content/quizzes',
434
            'microlearning/content/quizzes/add',
435
            'microlearning/content/quizzes/edit',
436
            'microlearning/content/quizzes/delete',
437
            'microlearning/content/quizzes/check',
438
            'microlearning/content/quizzes/publish',
439
            'microlearning/content/quizzes/copy',
440
            'microlearning/content/quizzes/questions',
441
            'microlearning/content/quizzes/questions/add',
442
            'microlearning/content/quizzes/questions/edit',
443
            'microlearning/content/quizzes/questions/delete',
444
            'microlearning/content/quizzes/questions/answers',
445
            'microlearning/content/quizzes/questions/answers/add',
446
            'microlearning/content/quizzes/questions/answers/edit',
447
            'microlearning/content/quizzes/questions/answers/delete',
1 www 448
            'microlearning/students',
449
            'microlearning/students/edit',
450
            'microlearning/students/timeline',
451
            'microlearning/students/change-password',
452
            'microlearning/students/unblock',
453
            'microlearning/access-for-students',
454
            'microlearning/access-for-students/revoke',
455
            'microlearning/access-for-students/unlimit',
456
            'microlearning/access-for-students/cancel',
457
            'microlearning/access-for-students/reactive',
458
            'microlearning/access-for-students/upload',
459
            'microlearning/access-for-students/notification',
460
            'microlearning/settings',
461
            'microlearning/settings/student-types',
462
            'microlearning/settings/student-types/add',
463
            'microlearning/settings/student-types/edit',
464
            'microlearning/settings/student-types/delete',
465
            'microlearning/settings/functions',
466
            'microlearning/settings/functions/add',
467
            'microlearning/settings/functions/edit',
468
            'microlearning/settings/functions/delete',
469
            'microlearning/settings/sectors',
470
            'microlearning/settings/sectors/add',
471
            'microlearning/settings/sectors/edit',
472
            'microlearning/settings/sectors/delete',
473
            'microlearning/settings/programs',
474
            'microlearning/settings/programs/add',
475
            'microlearning/settings/programs/edit',
476
            'microlearning/settings/programs/delete',
477
            'microlearning/settings/groups',
478
            'microlearning/settings/groups/add',
479
            'microlearning/settings/groups/edit',
480
            'microlearning/settings/groups/delete',
481
            'microlearning/settings/companies',
482
            'microlearning/settings/companies/add',
483
            'microlearning/settings/companies/edit',
484
            'microlearning/settings/companies/delete',
485
            'microlearning/settings/partners',
486
            'microlearning/settings/partners/add',
487
            'microlearning/settings/partners/edit',
488
            'microlearning/settings/partners/delete',
489
            'microlearning/settings/institutions',
490
            'microlearning/settings/institutions/add',
491
            'microlearning/settings/institutions/edit',
492
            'microlearning/settings/institutions/delete',
493
        ],
4 efrain 494
        'company-creator' => [
495
            'home',
496
            'signin-admin',
497
            'signin-company',
498
            'dashboard',
499
            'signout',
500
            'storage',
501
            'profile',
502
            'profile/extended',
503
            'profile/cover',
779 geraldo 504
            'profile/header',
505
            'profile/footer',
4 efrain 506
            'profile/image',
507
            'profile/website',
508
            'profile/foundation_year',
509
            'profile/location',
510
            'profile/social-network',
511
            'profile/company-size',
512
            'profile/industry',
513
            'profile/delete',
514
            'users',
515
            'users/change-password',
516
            'users/unblock',
517
            'users/invite',
518
            'users/accept',
519
            'users/cancel',
520
            'users/reject',
521
            'users/edit',
522
            'users/upload',
523
            'feeds',
524
            'followers',
525
            'followers/delete',
526
            'jobs',
527
            'jobs/add',
528
            'jobs/delete',
529
            'jobs/users-who-applied',
530
            'jobs/status',
531
            'jobs/edit',
532
            'jobs/edit/last-date-of-application',
533
            'jobs/edit/employment-type',
534
            'jobs/edit/experience',
535
            'jobs/edit/job-category',
536
            'jobs/edit/extended',
537
            'jobs/edit/location',
538
            'jobs/edit/salary',
539
            'jobs/edit/languages',
540
            'jobs/edit/degrees',
541
            'jobs/edit/skills',
542
            'jobs/edit/how-apply',
25 efrain 543
            'settings',
28 efrain 544
            'settings/competency-types',
545
            'settings/competency-types/add',
546
            'settings/competency-types/edit',
547
            'settings/competency-types/delete',
548
            'settings/competency-types/import',
1102 geraldo 549
            'settings/behaviors',
550
            'settings/behaviors/add',
1138 geraldo 551
            'settings/behaviors/edit',
25 efrain 552
            'settings/competencies',
28 efrain 553
            'settings/competencies/add',
554
            'settings/competencies/edit',
555
            'settings/competencies/delete',
556
            'settings/competencies/import',
557
            'settings/jobs-description',
558
            'settings/jobs-description/add',
559
            'settings/jobs-description/edit',
560
            'settings/jobs-description/delete',
561 geraldo 561
            'settings/jobs-description/report',
846 geraldo 562
            'settings/jobs-description/import',
67 efrain 563
            'settings/positions',
564
            'settings/positions/add',
565
            'settings/positions/edit',
566
            'settings/positions/delete',
1320 efrain 567
            'settings/positions/subordinates',
568
            //'test',
569
            //'test/method-one',
570
            //'test/method-two',
571
            //'test/method-three',
572
            //'test/method-four',
4 efrain 573
        ],
1 www 574
        'company-admin' => [
575
            'home',
576
            'signin-admin',
577
            'signin-company',
578
            'dashboard',
579
            'signout',
580
            'storage',
581
            'profile',
582
            'profile/extended',
583
            'profile/cover',
584
            'profile/image',
779 geraldo 585
            'profile/header',
586
            'profile/footer',
1 www 587
            'profile/website',
588
            'profile/foundation_year',
589
            'profile/location',
590
            'profile/social-network',
591
            'profile/company-size',
592
            'profile/industry',
593
            'profile/delete',
594
            'users',
595
            'users/change-password',
596
            'users/unblock',
597
            'users/invite',
598
            'users/accept',
599
            'users/cancel',
600
            'users/reject',
601
            'users/edit',
602
            'users/upload',
603
            'feeds',
604
            'followers',
605
            'followers/delete',
606
            'jobs',
607
            'jobs/add',
608
            'jobs/delete',
609
            'jobs/users-who-applied',
610
            'jobs/status',
611
            'jobs/edit',
612
            'jobs/edit/last-date-of-application',
613
            'jobs/edit/employment-type',
614
            'jobs/edit/experience',
615
            'jobs/edit/job-category',
616
            'jobs/edit/extended',
617
            'jobs/edit/location',
618
            'jobs/edit/salary',
619
            'jobs/edit/languages',
620
            'jobs/edit/degrees',
621
            'jobs/edit/skills',
622
            'jobs/edit/how-apply',
28 efrain 623
            'settings',
624
            'settings/competency-types',
625
            'settings/competency-types/add',
626
            'settings/competency-types/edit',
627
            'settings/competency-types/delete',
628
            'settings/competency-types/import',
1102 geraldo 629
            'settings/behaviors',
630
            'settings/behaviors/add',
1138 geraldo 631
            'settings/behaviors/edit',
28 efrain 632
            'settings/competencies',
633
            'settings/competencies/add',
634
            'settings/competencies/edit',
635
            'settings/competencies/delete',
636
            'settings/competencies/import',
637
            'settings/jobs-description',
638
            'settings/jobs-description/add',
639
            'settings/jobs-description/edit',
640
            'settings/jobs-description/delete',
561 geraldo 641
            'settings/jobs-description/report',
846 geraldo 642
            'settings/jobs-description/import',
67 efrain 643
            'settings/positions',
644
            'settings/positions/add',
645
            'settings/positions/edit',
646
            'settings/positions/delete',
1320 efrain 647
            'settings/positions/subordinate',
648
            //'test',
649
            //'test/method-one',
650
            //'test/method-two',
651
            //'test/method-three',
652
            //'test/method-four',
1 www 653
        ],
654
        'company-password-unblock' => [
655
            'home',
656
            'signin-admin',
657
            'signin-company',
658
            'dashboard',
659
            'signout',
660
            'storage',
661
            'users',
662
            'users/change-password',
663
            'users/unblock',
664
        ],
665
        'microlearning-admin' => [
666
            'home',
667
            'signin-admin',
668
            'signin-company',
669
            'dashboard',
670
            'signout',
671
            'storage',
672
            'microlearning',
673
            'microlearning/overview',
187 efrain 674
            'microlearning/reports',
675
            'microlearning/reports/progress',
676
            'microlearning/reports/devices',
677
            'microlearning/reports/comments-for-capsule',
1 www 678
            'microlearning/content',
679
            'microlearning/content/topics',
680
            'microlearning/content/topics/add',
681
            'microlearning/content/topics/edit',
682
            'microlearning/content/topics/delete',
683
            'microlearning/content/capsules',
684
            'microlearning/content/capsules/add',
685
            'microlearning/content/capsules/edit',
686
            'microlearning/content/capsules/delete',
687
            'microlearning/content/capsules/users',
688
            'microlearning/content/slides',
689
            'microlearning/content/slides/add',
690
            'microlearning/content/slides/edit',
691
            'microlearning/content/slides/delete',
692
            'microlearning/content/slides/text',
693
            'microlearning/students',
694
            'microlearning/students/edit',
695
            'microlearning/students/timeline',
696
            'microlearning/access-for-students',
697
            'microlearning/access-for-students/revoke',
698
            'microlearning/access-for-students/unlimit',
699
            'microlearning/access-for-students/cancel',
700
            'microlearning/access-for-students/reactive',
701
            'microlearning/access-for-students/upload',
702
            'microlearning/access-for-students/notification',
703
            'microlearning/settings',
704
            'microlearning/settings/student-types',
705
            'microlearning/settings/student-types/add',
706
            'microlearning/settings/student-types/edit',
707
            'microlearning/settings/student-types/delete',
708
            'microlearning/settings/functions',
709
            'microlearning/settings/functions/add',
710
            'microlearning/settings/functions/edit',
711
            'microlearning/settings/functions/delete',
712
            'microlearning/settings/sectors',
713
            'microlearning/settings/sectors/add',
714
            'microlearning/settings/sectors/edit',
715
            'microlearning/settings/sectors/delete',
716
            'microlearning/settings/programs',
717
            'microlearning/settings/programs/add',
718
            'microlearning/settings/programs/edit',
719
            'microlearning/settings/programs/delete',
720
            'microlearning/settings/groups',
721
            'microlearning/settings/groups/add',
722
            'microlearning/settings/groups/edit',
723
            'microlearning/settings/groups/delete',
724
            'microlearning/settings/companies',
725
            'microlearning/settings/companies/add',
726
            'microlearning/settings/companies/edit',
727
            'microlearning/settings/companies/delete',
728
            'microlearning/settings/partners',
729
            'microlearning/settings/partners/add',
730
            'microlearning/settings/partners/edit',
731
            'microlearning/settings/partners/delete',
732
            'microlearning/settings/institutions',
733
            'microlearning/settings/institutions/add',
734
            'microlearning/settings/institutions/edit',
735
            'microlearning/settings/institutions/delete',
736
        ],
737
        'microlearning-editor' => [
738
            'home',
739
            'signin-admin',
740
            'signin-company',
741
            'dashboard',
742
            'signout',
743
            'storage',
744
            'microlearning',
745
            'microlearning/content',
746
            'microlearning/content/topics',
747
            'microlearning/content/topics/add',
748
            'microlearning/content/topics/edit',
749
            'microlearning/content/topics/delete',
750
            'microlearning/content/capsules',
751
            'microlearning/content/capsules/add',
752
            'microlearning/content/capsules/edit',
753
            'microlearning/content/capsules/delete',
754
            'microlearning/content/capsules/users',
755
            'microlearning/content/slides',
756
            'microlearning/content/slides/add',
757
            'microlearning/content/slides/edit',
758
            'microlearning/content/slides/delete',
759
            'microlearning/content/slides/text',
760
            'microlearning/access-for-students',
761
            'microlearning/access-for-students/revoke',
762
            'microlearning/access-for-students/unlimit',
763
            'microlearning/access-for-students/cancel',
764
            'microlearning/access-for-students/reactive',
765
            'microlearning/access-for-students/upload',
766
            'microlearning/access-for-students/notification',
767
        ],
768
        'microlearning-students-password-unblock' => [
769
            'home',
770
            'signin-admin',
771
            'signin-company',
772
            'dashboard',
773
            'signout',
774
            'storage',
775
            'microlearning',
776
            'microlearning/students',
777
            'microlearning/students/change-password',
778
            'microlearning/students/unblock',
779
        ],
780
        'self-evaluation-admin' => [
114 efrain 781
            'self-evaluation',
782
            'self-evaluation/forms',
783
            'self-evaluation/forms/add',
784
            'self-evaluation/forms/edit',
785
            'self-evaluation/forms/delete',
115 efrain 786
            'self-evaluation/users',
787
            'self-evaluation/users/add',
788
            'self-evaluation/users/delete',
114 efrain 789
            'self-evaluation/reviews',
115 efrain 790
            'self-evaluation/reviews/edit',
470 geraldo 791
            'self-evaluation/reviews/report',
1 www 792
        ],
975 geraldo 793
        'performance-evaluation-admin' => [
794
            'performance-evaluation',
795
            'performance-evaluation/forms',
796
            'performance-evaluation/forms/add',
797
            'performance-evaluation/forms/edit',
798
            'performance-evaluation/forms/delete',
1263 geraldo 799
            'performance-evaluation/forms/report',
1320 efrain 800
            'performance-evaluation/reviews',
801
            'performance-evaluation/reviews/pdf',
1383 efrain 802
 
803
            'performance-evaluation/evaluations',
804
            'performance-evaluation/evaluations/add',
805
            'performance-evaluation/evaluations/edit',
806
            'performance-evaluation/evaluations/delete',
807
            'performance-evaluation/evaluations/users',
808
            'performance-evaluation/evaluations/users/add',
809
            'performance-evaluation/evaluations/users/delete',
810
 
975 geraldo 811
        ],
779 geraldo 812
    ];
1 www 813
}
814
 
779 geraldo 815
function getAclUsertype() {
1 www 816
    return [
817
        UserType::ADMIN => [
818
            'home',
819
            'signin-admin',
820
            'signin-company',
821
            'dashboard',
822
            'signout',
823
            'storage',
824
            'settings',
825
            'settings/company-sizes',
826
            'settings/company-sizes/add',
827
            'settings/company-sizes/edit',
828
            'settings/company-sizes/delete',
829
            'settings/competency-types',
830
            'settings/competency-types/add',
831
            'settings/competency-types/edit',
832
            'settings/competency-types/delete',
1102 geraldo 833
            'settings/behaviors',
834
            'settings/behaviors/add',
1138 geraldo 835
            'settings/behaviors/edit',
1 www 836
            'settings/competencies',
837
            'settings/competencies/add',
838
            'settings/competencies/edit',
839
            'settings/competencies/delete',
840
            'settings/degrees',
841
            'settings/degrees/add',
842
            'settings/degrees/edit',
843
            'settings/degrees/delete',
844
            'settings/email-templates',
845
            'settings/email-templates/edit',
846
            'settings/push-templates',
847
            'settings/push-templates/edit',
848
            'settings/group-types',
849
            'settings/group-types/add',
850
            'settings/group-types/edit',
851
            'settings/group-types/delete',
852
            'settings/industries',
853
            'settings/industries/add',
854
            'settings/industries/edit',
855
            'settings/industries/delete',
856
            'settings/job-categories',
857
            'settings/job-categories/add',
858
            'settings/job-categories/edit',
859
            'settings/job-categories/delete',
838 geraldo 860
            'settings/jobs-description',
861
            'settings/jobs-description/add',
862
            'settings/jobs-description/edit',
863
            'settings/jobs-description/delete',
1 www 864
            'settings/skills',
865
            'settings/skills/add',
866
            'settings/skills/edit',
867
            'settings/skills/delete',
868
            'publications',
869
            'publications/posts',
870
            'publications/posts/add',
871
            'publications/posts/edit',
872
            'publications/posts/delete',
873
            'publications/pages',
874
            'publications/pages/add',
875
            'publications/pages/edit',
876
            'publications/pages/delete',
877
            'companies',
878
            'companies/edit',
879
            'companies/services',
880
            'companies/roles',
881
            'users',
882
            'users/change-password',
883
            'users/unblock',
129 efrain 884
            'users/email-verify',
1 www 885
        ],
886
        UserType::USER => [
887
            'home',
888
            'signin-admin',
889
            'signin-company',
890
            'dashboard',
891
            'signout',
892
            'storage',
893
        ],
894
        UserType::GUEST => [
895
            'home',
896
            'signin-admin',
897
            'signin-company',
898
            'signout',
899
        ],
900
    ];
901
}
902
 
779 geraldo 903
function getAclMenuSystem() {
1 www 904
    return [
905
        [
906
            'label' => 'LABEL_HOME',
907
            'route' => 'dashboard',
908
            'class' => 'fa fa-home'
909
        ],
910
        [
911
            'label' => 'LABEL_COMPANIES',
912
            'route' => 'companies',
913
            'class' => 'fa fa-building',
914
        ],
915
        [
916
            'label' => 'LABEL_SETTINGS',
917
            'route' => 'settings',
918
            'class' => 'fa fa-cog',
919
            'pages' => [
920
                [
921
                    'label' => 'LABEL_JOB_CATEGORIES',
922
                    'route' => 'settings/job-categories',
923
                ],
924
                [
925
                    'label' => 'LABEL_COMPETENCIES',
926
                    'route' => 'settings/competencies',
927
                ],
928
                [
929
                    'label' => 'LABEL_EMAIL_TEMPLATES',
930
                    'route' => 'settings/email-templates',
931
                ],
932
                [
933
                    'label' => 'LABEL_PUSH_TEMPLATES',
934
                    'route' => 'settings/push-templates',
935
                ],
936
                [
937
                    'label' => 'LABEL_DEGREES',
938
                    'route' => 'settings/degrees',
939
                ],
940
                [
941
                    'label' => 'LABEL_SKILLS',
942
                    'route' => 'settings/skills',
943
                ],
944
                [
945
                    'label' => 'LABEL_INDUSTRIES',
946
                    'route' => 'settings/industries',
947
                ],
948
                [
837 geraldo 949
                    'label' => 'LABEL_JOBS_DESCRIPTION',
836 geraldo 950
                    'route' => 'settings/jobs-description',
951
                ],
952
                [
1 www 953
                    'label' => 'LABEL_COMPANY_SIZES',
954
                    'route' => 'settings/company-sizes',
955
                ],
956
                [
957
                    'label' => 'LABEL_COMPETENCY_TYPES',
958
                    'route' => 'settings/competency-types',
959
                ],
960
                [
961
                    'label' => 'LABEL_GROUP_TYPES',
962
                    'route' => 'settings/group-types',
963
                ],
964
            ]
965
        ],
966
        [
967
            'label' => 'LABEL_PUBLICATIONS',
968
            'route' => 'publications',
969
            'class' => 'fa fa-book',
970
            'pages' => [
971
                [
972
                    'label' => 'LABEL_PAGES',
973
                    'route' => 'publications/pages',
974
                ],
975
                [
976
                    'label' => 'LABEL_POSTS',
977
                    'route' => 'publications/posts',
978
                ],
979
            ]
980
        ],
981
        [
982
            'label' => 'LABEL_USERS',
983
            'route' => 'users',
984
            'class' => 'fa fa-users',
779 geraldo 985
        /* 'pages' => [
986
          [
987
          'label' => 'LABEL_PAGES',
988
          'route' => 'publications/pages',
989
          ],
990
 
991
          ] */
1 www 992
        ],
1333 efrain 993
 
994
 
995
 
996
 
997
        [
1 www 998
            'label' => 'LABEL_LOGOUT',
999
            'route' => 'signout',
1000
            'class' => 'fa fa-sign-out',
1001
        ]
779 geraldo 1002
    ];
1 www 1003
}
1004
 
779 geraldo 1005
function getAclMenuCompany() {
1006
 
1 www 1007
    return [
1008
        [
1009
            'label' => 'LABEL_HOME',
1010
            'route' => 'dashboard',
1011
            'class' => 'fa fa-home'
1012
        ],
1013
        [
1014
            'label' => 'LABEL_JOBS',
1015
            'route' => 'jobs',
1016
            'class' => 'fa fa-briefcase'
1017
        ],
1018
        [
1019
            'label' => 'LABEL_FEEDS',
1020
            'route' => 'feeds',
1021
            'class' => 'fa fa-rss'
1022
        ],
114 efrain 1023
        [
1024
            'label' => 'LABEL_SELF_EVALUATION',
1025
            'route' => 'self-evaluation',
1026
            'class' => 'fa fa-book',
1027
            'pages' => [
1028
                [
1029
                    'label' => 'LABEL_FORMS',
1030
                    'route' => 'self-evaluation/forms',
1031
                ],
115 efrain 1032
                [
1033
                    'label' => 'LABEL_USERS',
1034
                    'route' => 'self-evaluation/users',
246 geraldo 1035
                ],
1036
                [
1037
                    'label' => 'LABEL_REVIEWS',
1038
                    'route' => 'self-evaluation/reviews',
245 geraldo 1039
                ]
779 geraldo 1040
            ],
1041
        ],
1 www 1042
        [
1043
            'label' => 'LABEL_MICRO_LEARNING',
1044
            'route' => 'microlearning',
1045
            'class' => 'fa fa-book',
1046
            'pages' => [
1047
                [
1048
                    'label' => 'LABEL_OVERVIEW',
1049
                    'route' => 'microlearning/overview',
1050
                ],
1051
                [
1052
                    'label' => 'LABEL_REPORTS',
1053
                    'route' => 'microlearning/reports',
2 efrain 1054
                    'pages' => [
1055
                        [
1056
                            'label' => 'LABEL_DEVICES',
1057
                            'route' => 'microlearning/reports/devices',
1058
                        ],
1059
                        [
1060
                            'label' => 'LABEL_PROGRESS',
1061
                            'route' => 'microlearning/reports/progress',
1062
                        ],
779 geraldo 1063
                    ],
1 www 1064
                ],
1065
                [
1066
                    'label' => 'LABEL_CONTENT',
1067
                    'route' => 'microlearning/content',
1068
                    'pages' => [
1069
                        [
66 efrain 1070
                            'label' => 'LABEL_QUIZZES',
1071
                            'route' => 'microlearning/content/quizzes',
1072
                        ],
1073
                        [
1 www 1074
                            'label' => 'LABEL_TOPICS',
1075
                            'route' => 'microlearning/content/topics',
1076
                        ],
1077
                        [
1078
                            'label' => 'LABEL_CAPSULES',
1079
                            'route' => 'microlearning/content/capsules',
1080
                        ],
1081
                        [
1082
                            'label' => 'LABEL_SLIDES',
1083
                            'route' => 'microlearning/content/slides',
1084
                        ],
1085
                    ]
1086
                ],
1087
                [
1088
                    'label' => 'LABEL_ACCESS_FOR_STUDENTS',
1089
                    'route' => 'microlearning/access-for-students',
1090
                ],
1091
                [
1092
                    'label' => 'LABEL_STUDENTS',
1093
                    'route' => 'microlearning/students',
1094
                ],
1095
                [
1096
                    'label' => 'LABEL_FILTERS',
1097
                    'route' => 'microlearning/settings',
1098
                    'pages' => [
1099
                        [
1100
                            'label' => 'LABEL_COMPANIES',
1101
                            'route' => 'microlearning/settings/companies',
1102
                        ],
1103
                        [
1104
                            'label' => 'LABEL_FUNCTIONS',
1105
                            'route' => 'microlearning/settings/functions',
1106
                        ],
1107
                        [
1108
                            'label' => 'LABEL_GROUPS',
1109
                            'route' => 'microlearning/settings/groups',
1110
                        ],
1111
                        [
1112
                            'label' => 'LABEL_INSTITUTIONS',
1113
                            'route' => 'microlearning/settings/institutions',
1114
                        ],
1115
                        [
1116
                            'label' => 'LABEL_PROGRAMS',
1117
                            'route' => 'microlearning/settings/programs',
1118
                        ],
1119
                        [
1120
                            'label' => 'LABEL_PARTNERS',
1121
                            'route' => 'microlearning/settings/partners',
1122
                        ],
1123
                        [
1124
                            'label' => 'LABEL_SECTORS',
1125
                            'route' => 'microlearning/settings/sectors',
1126
                        ],
1127
                        [
1128
                            'label' => 'LABEL_STUDENT_TYPES',
1129
                            'route' => 'microlearning/settings/student-types',
1130
                        ],
779 geraldo 1131
                    ],
1 www 1132
                ]
1133
            ]
1134
        ],
1135
        [
560 geraldo 1136
            'label' => 'LABEL_JOB_POSITION',
28 efrain 1137
            'route' => 'settings',
1138
            'class' => 'fa fa-book',
1139
            'pages' => [
1140
                [
66 efrain 1141
                    'label' => 'LABEL_JOBS_DESCRIPTION',
1142
                    'route' => 'settings/jobs-description',
28 efrain 1143
                ],
1144
                [
1145
                    'label' => 'LABEL_COMPETENCIES',
1146
                    'route' => 'settings/competencies',
1147
                ],
66 efrain 1148
                [
1149
                    'label' => 'LABEL_COMPETENCY_TYPES',
1150
                    'route' => 'settings/competency-types',
1151
                ],
67 efrain 1152
                [
1153
                    'label' => 'LABEL_POSITIONS',
1154
                    'route' => 'settings/positions',
1155
                ],
28 efrain 1156
            ]
779 geraldo 1157
        ],
22 steven 1158
        [
1090 geraldo 1159
            'label' => 'LABEL_PERFORMANCE_EVALUATION_MENU',
976 geraldo 1160
            'route' => 'performance-evaluation',
1161
            'class' => 'fa fa-book',
1162
            'pages' => [
1163
                [
1164
                    'label' => 'LABEL_FORMS',
1165
                    'route' => 'performance-evaluation/forms',
1166
                ],
1383 efrain 1167
 
976 geraldo 1168
                [
1383 efrain 1169
                    'label' => 'LABEL_TESTS',
1170
                    'route' => 'performance-evaluation/evaluations',
1171
                ]
976 geraldo 1172
            ],
946 geraldo 1173
        ],
1332 eleazar 1174
       /* [
1321 eleazar 1175
            'label' => 'LABEL_JOB_INTERVIEW_MENU',
1176
            'route' => 'JobInterview',
1177
            'class' => 'fa fa-book',
1178
            'pages' => [
1179
                [
1180
                    'label' => 'LABEL_FORMS',
1181
                    'route' => 'JobInterview/forms',
1182
                ],
1183
                [
1184
                    'label' => 'LABEL_REVIEWS',
1185
                    'route' => 'JobInterview/reviews',
1186
                ]
1187
            ],
1332 eleazar 1188
        ],*/
1321 eleazar 1189
        [
1 www 1190
            'label' => 'LABEL_PROFILE',
1191
            'route' => 'profile',
1192
            'class' => 'fa fa-picture-o'
1193
        ],
1194
        [
1195
            'label' => 'LABEL_FOLLOWERS',
1196
            'route' => 'followers',
1197
            'class' => 'fa fa-heart'
1198
        ],
1199
        [
1200
            'label' => 'LABEL_USERS',
1201
            'route' => 'users',
1202
            'class' => 'fa fa-users',
1203
        ],
1334 efrain 1204
 
1 www 1205
        [
1334 efrain 1206
            'label' => 'LABEL_OWN_PROFESSIONAL_NETWORK',
1207
            'route' => 'own-professional-network',
1208
            'class' => 'fa fa-book',
1209
        ],
1210
 
1211
        [
1212
            'label' => 'LABEL_ORGANIZATIONAL_DESIGN',
1213
            'route' =>  'organizational-design',
1214
            'class' => 'fa fa-book',
1215
        ],
1216
 
1217
        [
1218
            'label' => 'LABEL_PLANNING_OBJECTIVES_AND_GOALS',
1219
            'route' => 'planning-objectives-and-goals',
1220
            'class' => 'fa fa-book',
1221
        ],
1222
 
1223
 
1224
        [
1225
            'label' => 'LABEL_DEVELOPMENT_AND_TRAINING',
1226
            'route' => 'development-and-training',
1227
            'class' => 'fa fa-book',
1228
        ],
1229
 
1230
 
1231
        [
1232
            'label' => 'LABEL_RECRUITMENT_AND_SELECTION',
1233
            'route' => 'recruitment-and-selection',
1234
            'class' => 'fa fa-book',
1342 eleazar 1235
            'pages' => [
1236
                [
1237
                    'label' => 'LABEL_FORMS',
1238
                    'route' => 'recruitment-and-selection/forms',
1239
                ],
1240
             ],
1334 efrain 1241
        ],
1242
 
1243
        [
1244
            'label' => 'LABEL_INDUCTION',
1245
            'route' => 'induction',
1246
            'class' => 'fa fa-book',
1247
        ],
1248
 
1249
 
1250
        [
1251
            'label' => 'LABEL_ORGANIZATIONAL_CLIMATE',
1252
            'route' => 'organizational-climate',
1253
            'class' => 'fa fa-book',
1254
        ],
1255
 
1256
        [
1257
            'label' => 'LABEL_CULTURE',
1258
            'route' =>  'culture',
1259
            'class' => 'fa fa-book',
1260
        ],
1261
 
1262
        [
1263
            'label' => 'LABEL_COMMUNICATION',
1264
            'route' =>  'communication',
1265
            'class' => 'fa fa-book',
1266
        ],
1267
 
1268
        [
1269
            'label' => 'LABEL_CAREER_DEVELOPMENT',
1270
            'route' =>  'career-development',
1271
            'class' => 'fa fa-book',
1272
        ],
1273
 
1274
        [
1275
            'label' => 'LABEL_SURVEYS',
1276
            'route' =>  'surveys',
1277
            'class' => 'fa fa-book',
1278
        ],
1279
 
1280
        [
1281
            'label' => 'LABEL_BUILDING_MY_FUTURE',
1282
            'route' =>  'building-my-future',
1283
            'class' => 'fa fa-book',
1284
        ],
1285
 
1286
        [
1287
            'label' => 'LABEL_HIGH_PERFORMANCE_TEAMS',
1288
            'route' =>  'high-performance-teams',
1289
            'class' => 'fa fa-book',
1290
        ],
1291
 
1292
        [
1293
            'label' => 'LABEL_MY_TRAINER',
1294
            'route' => 'my-trainer',
1295
            'class' => 'fa fa-book',
1296
        ],
1297
 
1298
 
1336 efrain 1299
 
1334 efrain 1300
        [
1 www 1301
            'label' => 'LABEL_LOGOUT',
1302
            'route' => 'signout',
1303
            'class' => 'fa fa-sign-out',
1304
        ]
1305
    ];
1306
}