Proyectos de Subversion LeadersLinked - Backend

Rev

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