Proyectos de Subversion LeadersLinked - Backend

Rev

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