Proyectos de Subversion LeadersLinked - Backend

Rev

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