Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 15390 | Rev 15394 | Ir a la última revisión | | Comparar con el anterior | Ultima modificación | Ver Log |

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