keevo-api-services-hcm 0.0.3 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (117) hide show
  1. package/esm2022/keevo-api-services-hcm.mjs +2 -2
  2. package/esm2022/lib/models/filtro/filtrocpfcnpj.mjs +1 -1
  3. package/esm2022/lib/models/filtro/filtrolistaanalistas.model.mjs +1 -1
  4. package/esm2022/lib/models/filtro/filtrolistahcm.model.mjs +1 -1
  5. package/esm2022/lib/models/filtro/filtrolistalider.model.mjs +1 -1
  6. package/esm2022/lib/models/filtro/filtrolistaregistro.model.mjs +1 -1
  7. package/esm2022/lib/models/filtro/filtrolistarelacionamentolotacao.model.mjs +1 -1
  8. package/esm2022/lib/models/filtro/filtrolistausuario.model.mjs +1 -1
  9. package/esm2022/lib/models/hcm/cargo/cargoresumo.model.mjs +1 -1
  10. package/esm2022/lib/models/hcm/departamento/departamentoresumo.model.mjs +1 -1
  11. package/esm2022/lib/models/hcm/equipe/equipe.model.mjs +1 -1
  12. package/esm2022/lib/models/hcm/equipe/equipemembro.model.mjs +1 -1
  13. package/esm2022/lib/models/hcm/equipe/equipemembroresumo.model.mjs +1 -1
  14. package/esm2022/lib/models/hcm/equipe/equiperesumo.model.mjs +1 -1
  15. package/esm2022/lib/models/hcm/hierarquiaorganizacional/hierarquiaorganizacional.model.mjs +2 -0
  16. package/esm2022/lib/models/hcm/tipoestado/tipoestado.model.mjs +1 -1
  17. package/esm2022/lib/models/hcm/tipoestado/tipoestadoresumo.model.mjs +1 -1
  18. package/esm2022/lib/models/hcm/unidadehierarquica/unidadehierarquica.model.mjs +1 -1
  19. package/esm2022/lib/models/hcm/unidadehierarquica/unidadehierarquicaresumo.model.mjs +1 -1
  20. package/esm2022/lib/models/passaporte/master/master-combo-model.mjs +2 -0
  21. package/esm2022/lib/models/passaporte/master/master-model.mjs +2 -0
  22. package/esm2022/lib/models/passaporte/master/master-servidor.mjs +2 -0
  23. package/esm2022/lib/models/pessoa/analista/analistapessoa.model.mjs +1 -1
  24. package/esm2022/lib/models/pessoa/colaborador/colaborador.model.mjs +2 -0
  25. package/esm2022/lib/models/pessoa/lider/lider.model.mjs +1 -1
  26. package/esm2022/lib/models/pessoa/lider/lidersubstituto.model.mjs +1 -1
  27. package/esm2022/lib/models/pessoa/lider/periododevigencia.model.mjs +1 -1
  28. package/esm2022/lib/models/pessoa/pessoa/atualizaflag.model.mjs +1 -1
  29. package/esm2022/lib/models/pessoa/pessoa/atualizaflagpessoa.model.mjs +1 -1
  30. package/esm2022/lib/models/pessoa/pessoa/pessoafoto.model.mjs +2 -0
  31. package/esm2022/lib/models/pessoa/registro/registrofotomodel.model.mjs +1 -1
  32. package/esm2022/lib/services/hcm/cargo.service.mjs +10 -11
  33. package/esm2022/lib/services/hcm/centro-custo.service.mjs +12 -13
  34. package/esm2022/lib/services/hcm/centro-resultado.service.mjs +11 -12
  35. package/esm2022/lib/services/hcm/departamento.service.mjs +11 -12
  36. package/esm2022/lib/services/hcm/equipe-membro.service.mjs +16 -17
  37. package/esm2022/lib/services/hcm/equipe.service.mjs +14 -15
  38. package/esm2022/lib/services/hcm/hierarquiaorganizacional.service.mjs +42 -0
  39. package/esm2022/lib/services/hcm/relacionamento-lotacao.service.mjs +16 -17
  40. package/esm2022/lib/services/hcm/sub-tipo-ocorrencia.service.mjs +11 -12
  41. package/esm2022/lib/services/hcm/tipo-estado.service.mjs +13 -14
  42. package/esm2022/lib/services/hcm/tipo-ocorrencia.service.mjs +13 -14
  43. package/esm2022/lib/services/hcm/unidade-administrativa.service.mjs +11 -12
  44. package/esm2022/lib/services/hcm/unidade-hierarquica.service.mjs +18 -19
  45. package/esm2022/lib/services/passaporte/empresa-banner.service.mjs +11 -12
  46. package/esm2022/lib/services/passaporte/empresa-parametros.service.mjs +12 -13
  47. package/esm2022/lib/services/passaporte/empresa.service.mjs +11 -12
  48. package/esm2022/lib/services/pessoa/analista-pessoa.service.mjs +14 -15
  49. package/esm2022/lib/services/pessoa/colaborador.service.mjs +44 -0
  50. package/esm2022/lib/services/pessoa/keex.service.mjs +16 -17
  51. package/esm2022/lib/services/pessoa/lider.service.mjs +23 -24
  52. package/esm2022/lib/services/pessoa/registro.service.mjs +24 -21
  53. package/esm2022/lib/services/pessoa/tomador.service.mjs +12 -13
  54. package/esm2022/lib/services/utilitarios/dadosrelacionamento.service.mjs +3 -3
  55. package/esm2022/lib/services/utilitarios/validators.service.mjs +158 -0
  56. package/esm2022/public-api.mjs +13 -6
  57. package/fesm2022/keevo-api-services-hcm.mjs +470 -276
  58. package/fesm2022/keevo-api-services-hcm.mjs.map +1 -1
  59. package/index.d.ts +4 -0
  60. package/lib/models/filtro/filtrocpfcnpj.d.ts +2 -2
  61. package/lib/models/filtro/filtrolistaanalistas.model.d.ts +1 -1
  62. package/lib/models/filtro/filtrolistahcm.model.d.ts +2 -4
  63. package/lib/models/filtro/filtrolistalider.model.d.ts +1 -1
  64. package/lib/models/filtro/filtrolistaregistro.model.d.ts +2 -1
  65. package/lib/models/filtro/filtrolistarelacionamentolotacao.model.d.ts +1 -1
  66. package/lib/models/filtro/filtrolistausuario.model.d.ts +2 -1
  67. package/lib/models/hcm/cargo/cargoresumo.model.d.ts +1 -1
  68. package/lib/models/hcm/departamento/departamentoresumo.model.d.ts +1 -1
  69. package/lib/models/hcm/equipe/equipe.model.d.ts +3 -3
  70. package/lib/models/hcm/equipe/equipemembro.model.d.ts +1 -1
  71. package/lib/models/hcm/equipe/equipemembroresumo.model.d.ts +1 -1
  72. package/lib/models/hcm/equipe/equiperesumo.model.d.ts +2 -2
  73. package/lib/models/hcm/hierarquiaorganizacional/hierarquiaorganizacional.model.d.ts +9 -0
  74. package/lib/models/hcm/tipoestado/tipoestado.model.d.ts +1 -1
  75. package/lib/models/hcm/tipoestado/tipoestadoresumo.model.d.ts +1 -1
  76. package/lib/models/hcm/unidadehierarquica/unidadehierarquica.model.d.ts +1 -1
  77. package/lib/models/hcm/unidadehierarquica/unidadehierarquicaresumo.model.d.ts +1 -1
  78. package/lib/models/passaporte/master/master-combo-model.d.ts +5 -0
  79. package/lib/models/passaporte/master/master-model.d.ts +12 -0
  80. package/lib/models/passaporte/master/master-servidor.d.ts +6 -0
  81. package/lib/models/pessoa/analista/analistapessoa.model.d.ts +1 -1
  82. package/lib/models/pessoa/colaborador/colaborador.model.d.ts +26 -0
  83. package/lib/models/pessoa/lider/lider.model.d.ts +4 -4
  84. package/lib/models/pessoa/lider/lidersubstituto.model.d.ts +1 -1
  85. package/lib/models/pessoa/lider/periododevigencia.model.d.ts +1 -1
  86. package/lib/models/pessoa/pessoa/atualizaflag.model.d.ts +1 -1
  87. package/lib/models/pessoa/pessoa/atualizaflagpessoa.model.d.ts +1 -1
  88. package/lib/models/pessoa/pessoa/pessoafoto.model.d.ts +8 -0
  89. package/lib/models/pessoa/registro/registrofotomodel.model.d.ts +4 -4
  90. package/lib/services/hcm/cargo.service.d.ts +4 -4
  91. package/lib/services/hcm/centro-custo.service.d.ts +4 -4
  92. package/lib/services/hcm/centro-resultado.service.d.ts +4 -4
  93. package/lib/services/hcm/departamento.service.d.ts +4 -4
  94. package/lib/services/hcm/equipe-membro.service.d.ts +9 -9
  95. package/lib/services/hcm/equipe.service.d.ts +6 -6
  96. package/lib/services/hcm/hierarquiaorganizacional.service.d.ts +22 -0
  97. package/lib/services/hcm/relacionamento-lotacao.service.d.ts +4 -4
  98. package/lib/services/hcm/sub-tipo-ocorrencia.service.d.ts +4 -4
  99. package/lib/services/hcm/tipo-estado.service.d.ts +5 -5
  100. package/lib/services/hcm/tipo-ocorrencia.service.d.ts +4 -4
  101. package/lib/services/hcm/unidade-administrativa.service.d.ts +3 -3
  102. package/lib/services/hcm/unidade-hierarquica.service.d.ts +5 -5
  103. package/lib/services/passaporte/empresa-banner.service.d.ts +3 -3
  104. package/lib/services/passaporte/empresa-parametros.service.d.ts +3 -3
  105. package/lib/services/passaporte/empresa.service.d.ts +3 -3
  106. package/lib/services/pessoa/analista-pessoa.service.d.ts +4 -4
  107. package/lib/services/pessoa/colaborador.service.d.ts +23 -0
  108. package/lib/services/pessoa/keex.service.d.ts +5 -5
  109. package/lib/services/pessoa/lider.service.d.ts +7 -7
  110. package/lib/services/pessoa/registro.service.d.ts +12 -10
  111. package/lib/services/pessoa/tomador.service.d.ts +5 -5
  112. package/lib/services/utilitarios/validators.service.d.ts +23 -0
  113. package/package.json +2 -2
  114. package/public-api.d.ts +12 -5
  115. package/esm2022/index.mjs +0 -2
  116. package/esm2022/lib/modules/api-services-hcm.module.mjs +0 -45
  117. package/lib/modules/api-services-hcm.module.d.ts +0 -10
@@ -1,124 +1,161 @@
1
+ import { BaseApiService } from 'keevo-api-services';
1
2
  import * as i1 from '@angular/common/http';
2
3
  import { HttpHeaders } from '@angular/common/http';
3
4
  import * as i0 from '@angular/core';
4
- import { Injectable, Inject, NgModule } from '@angular/core';
5
- import * as i2 from 'keevo-api-services';
6
- import { BaseApiService } from 'keevo-api-services';
7
- import { CommonModule } from '@angular/common';
5
+ import { Injectable, Inject } from '@angular/core';
8
6
 
9
7
  class CargoService extends BaseApiService {
10
- constructor(httpClient, configHcm) {
8
+ constructor(httpClient, hostEnv) {
11
9
  super(httpClient);
12
10
  this.httpClient = httpClient;
13
- this.configHcm = configHcm;
11
+ this.hostEnv = hostEnv;
14
12
  this.rotaListarTodos = 'hcm/api/v1/cargo/listartodos';
15
13
  }
16
14
  Listar(filtro) {
17
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
15
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
18
16
  }
19
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CargoService, deps: [{ token: i1.HttpClient }, { token: 'configHcm' }], target: i0.ɵɵFactoryTarget.Injectable }); }
20
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CargoService, providedIn: 'root' }); }
17
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: CargoService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
18
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: CargoService, providedIn: 'root' }); }
21
19
  }
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CargoService, decorators: [{
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: CargoService, decorators: [{
23
21
  type: Injectable,
24
22
  args: [{
25
23
  providedIn: 'root'
26
24
  }]
27
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.Configurations, decorators: [{
25
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
28
26
  type: Inject,
29
- args: ['configHcm']
27
+ args: ['hostEnv']
30
28
  }] }] });
31
29
 
32
30
  class CentroCustoService extends BaseApiService {
33
- constructor(httpClient, configHcm) {
31
+ constructor(httpClient, hostEnv) {
34
32
  super(httpClient);
35
33
  this.httpClient = httpClient;
36
- this.configHcm = configHcm;
34
+ this.hostEnv = hostEnv;
37
35
  this.rotaListar = 'hcm/api/v1/centrocusto/listar';
38
36
  this.rotaListarTodos = 'hcm/api/v1/centrocusto/listartodos';
39
37
  this.rotaSelecionar = 'hcm/api/v1/centrocusto/selecionar';
40
38
  }
41
39
  Listar(filtro) {
42
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
40
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
43
41
  }
44
42
  ListarTodos(filtro) {
45
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
43
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
46
44
  }
47
45
  Selecionar(idcentrocusto) {
48
- return this.get(this.configHcm.apiUrl, `${this.rotaSelecionar}/${idcentrocusto}`);
46
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idcentrocusto}`);
49
47
  }
50
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CentroCustoService, deps: [{ token: i1.HttpClient }, { token: 'configHcm' }], target: i0.ɵɵFactoryTarget.Injectable }); }
51
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CentroCustoService, providedIn: 'root' }); }
48
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: CentroCustoService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
49
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: CentroCustoService, providedIn: 'root' }); }
52
50
  }
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CentroCustoService, decorators: [{
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: CentroCustoService, decorators: [{
54
52
  type: Injectable,
55
53
  args: [{
56
54
  providedIn: 'root'
57
55
  }]
58
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.Configurations, decorators: [{
56
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
59
57
  type: Inject,
60
- args: ['configHcm']
58
+ args: ['hostEnv']
61
59
  }] }] });
62
60
 
63
61
  class CentroResultadoService extends BaseApiService {
64
- constructor(httpClient, configHcm) {
62
+ constructor(httpClient, hostEnv) {
65
63
  super(httpClient);
66
64
  this.httpClient = httpClient;
67
- this.configHcm = configHcm;
65
+ this.hostEnv = hostEnv;
68
66
  this.rotaListarTodos = 'hcm/api/v1/centroresultado/listartodos';
69
67
  this.rotaSelecionar = 'hcm/api/v1/centroresultado/selecionar';
70
68
  }
71
69
  ListarTodos(filtro) {
72
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
70
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
73
71
  }
74
72
  Selecionar(idcentroresultado) {
75
- return this.get(this.configHcm.apiUrl, `${this.rotaSelecionar}/${idcentroresultado}`);
73
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idcentroresultado}`);
74
+ }
75
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: CentroResultadoService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
76
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: CentroResultadoService, providedIn: 'root' }); }
77
+ }
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: CentroResultadoService, decorators: [{
79
+ type: Injectable,
80
+ args: [{
81
+ providedIn: 'root'
82
+ }]
83
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
84
+ type: Inject,
85
+ args: ['hostEnv']
86
+ }] }] });
87
+
88
+ class ColaboradorService extends BaseApiService {
89
+ constructor(httpClient, hostEnv) {
90
+ super(httpClient);
91
+ this.httpClient = httpClient;
92
+ this.hostEnv = hostEnv;
93
+ this.rotaListarTodos = 'hcm/api/v1/colaborador/Listar';
94
+ this.rotaSelecionar = 'hcm/api/v1/colaborador/selecionar';
95
+ this.rotaSelecionarPossivelColaborador = 'hcm/api/v1/colaborador/SelecionarPossivelColaborador';
96
+ this.rotaSalvar = 'hcm/api/v1/colaborador/salvar';
97
+ this.rotaSalvarLinha = 'hcm/api/v1/colaborador/salvarlinha';
98
+ }
99
+ Listar(filtro) {
100
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
101
+ }
102
+ Selecionar(idcolaborador) {
103
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idcolaborador}`);
104
+ }
105
+ SelecionarPossivelColaborador(filtro) {
106
+ return this.getHeaders(this.hostEnv.apiUrlHcm, `${this.rotaSelecionarPossivelColaborador}`, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
76
107
  }
77
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CentroResultadoService, deps: [{ token: i1.HttpClient }, { token: 'configHcm' }], target: i0.ɵɵFactoryTarget.Injectable }); }
78
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CentroResultadoService, providedIn: 'root' }); }
108
+ Salvar(colaborador) {
109
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, colaborador);
110
+ }
111
+ SalvarLinha(colaborador) {
112
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvarLinha, colaborador);
113
+ }
114
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ColaboradorService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
115
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ColaboradorService, providedIn: 'root' }); }
79
116
  }
80
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: CentroResultadoService, decorators: [{
117
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ColaboradorService, decorators: [{
81
118
  type: Injectable,
82
119
  args: [{
83
120
  providedIn: 'root'
84
121
  }]
85
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.Configurations, decorators: [{
122
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
86
123
  type: Inject,
87
- args: ['configHcm']
124
+ args: ['hostEnv']
88
125
  }] }] });
89
126
 
90
127
  class DepartamentoService extends BaseApiService {
91
- constructor(httpClient, configHcm) {
128
+ constructor(httpClient, hostEnv) {
92
129
  super(httpClient);
93
130
  this.httpClient = httpClient;
94
- this.configHcm = configHcm;
131
+ this.hostEnv = hostEnv;
95
132
  this.rotaListarTodos = 'hcm/api/v1/departamento/listartodos';
96
133
  this.rotaListarSelecionar = 'hcm/api/v1/departamento/selecionar';
97
134
  }
98
135
  ListarTodos(filtro) {
99
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
136
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
100
137
  }
101
138
  Selecionar(iddepartamento) {
102
- return this.get(this.configHcm.apiUrl, `${this.rotaListarSelecionar}/${iddepartamento}`);
139
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaListarSelecionar}/${iddepartamento}`);
103
140
  }
104
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DepartamentoService, deps: [{ token: i1.HttpClient }, { token: 'configHcm' }], target: i0.ɵɵFactoryTarget.Injectable }); }
105
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DepartamentoService, providedIn: 'root' }); }
141
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: DepartamentoService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
142
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: DepartamentoService, providedIn: 'root' }); }
106
143
  }
107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DepartamentoService, decorators: [{
144
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: DepartamentoService, decorators: [{
108
145
  type: Injectable,
109
146
  args: [{
110
147
  providedIn: 'root'
111
148
  }]
112
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.Configurations, decorators: [{
149
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
113
150
  type: Inject,
114
- args: ['configHcm']
151
+ args: ['hostEnv']
115
152
  }] }] });
116
153
 
117
154
  class EquipeMembroService extends BaseApiService {
118
- constructor(httpClient, configHcm) {
155
+ constructor(httpClient, hostEnv) {
119
156
  super(httpClient);
120
157
  this.httpClient = httpClient;
121
- this.configHcm = configHcm;
158
+ this.hostEnv = hostEnv;
122
159
  this.rotaExcluir = 'hcm/api/v1/equipemembro/excluir';
123
160
  this.rotaListar = 'hcm/api/v1/equipemembro/listar';
124
161
  this.rotaListarPorchave = 'hcm/api/v1/equipemembro/listarporchave';
@@ -128,44 +165,44 @@ class EquipeMembroService extends BaseApiService {
128
165
  this.rotaSelecionar = 'hcm/api/v1/equipemembro/selecionar';
129
166
  }
130
167
  Excluir(idanalista) {
131
- return this.delete(this.configHcm.apiUrl, `${this.rotaExcluir}/${idanalista}`);
168
+ return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${idanalista}`);
132
169
  }
133
170
  Listar(filtro) {
134
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
171
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
135
172
  }
136
173
  ListarPorChave(filtro) {
137
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListarPorchave, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
174
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPorchave, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
138
175
  }
139
176
  ListarPossiveisMembros(filtro) {
140
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListarPossiveisMembros, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
177
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPossiveisMembros, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
141
178
  }
142
179
  Salvar(data) {
143
- return this.post(this.configHcm.apiUrl, this.rotaSalvar, data);
180
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, data);
144
181
  }
145
182
  SalvarEmLote(data) {
146
- return this.post(this.configHcm.apiUrl, this.rotaSalvarEmLote, data);
183
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvarEmLote, data);
147
184
  }
148
185
  Selecionar(idanalista) {
149
- return this.get(this.configHcm.apiUrl, `${this.rotaSelecionar}/${idanalista}`);
186
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idanalista}`);
150
187
  }
151
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: EquipeMembroService, deps: [{ token: i1.HttpClient }, { token: 'configHcm' }], target: i0.ɵɵFactoryTarget.Injectable }); }
152
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: EquipeMembroService, providedIn: 'root' }); }
188
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: EquipeMembroService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
189
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: EquipeMembroService, providedIn: 'root' }); }
153
190
  }
154
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: EquipeMembroService, decorators: [{
191
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: EquipeMembroService, decorators: [{
155
192
  type: Injectable,
156
193
  args: [{
157
194
  providedIn: 'root'
158
195
  }]
159
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.Configurations, decorators: [{
196
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
160
197
  type: Inject,
161
- args: ['configHcm']
198
+ args: ['hostEnv']
162
199
  }] }] });
163
200
 
164
201
  class EquipeService extends BaseApiService {
165
- constructor(httpClient, configHcm) {
202
+ constructor(httpClient, hostEnv) {
166
203
  super(httpClient);
167
204
  this.httpClient = httpClient;
168
- this.configHcm = configHcm;
205
+ this.hostEnv = hostEnv;
169
206
  this.rotaExcluir = 'hcm/api/v1/equipe/excluir';
170
207
  this.rotaListar = 'hcm/api/v1/equipe/listar';
171
208
  this.rotaListarPorchave = 'hcm/api/v1/equipe/listarporchave';
@@ -173,38 +210,76 @@ class EquipeService extends BaseApiService {
173
210
  this.rotaSelecionar = 'hcm/api/v1/equipe/selecionar';
174
211
  }
175
212
  Excluir(idequipe) {
176
- return this.delete(this.configHcm.apiUrl, `${this.rotaExcluir}/${idequipe}`);
213
+ return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${idequipe}`);
177
214
  }
178
215
  Listar(filtro) {
179
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
216
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
180
217
  }
181
218
  ListarPorChave(filtro) {
182
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListarPorchave, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
219
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPorchave, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
183
220
  }
184
221
  Salvar(data) {
185
- return this.post(this.configHcm.apiUrl, this.rotaSalvar, data);
222
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, data);
186
223
  }
187
224
  Selecionar(idanalista) {
188
- return this.get(this.configHcm.apiUrl, `${this.rotaSelecionar}/${idanalista}`);
225
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idanalista}`);
226
+ }
227
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: EquipeService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
228
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: EquipeService, providedIn: 'root' }); }
229
+ }
230
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: EquipeService, decorators: [{
231
+ type: Injectable,
232
+ args: [{
233
+ providedIn: 'root'
234
+ }]
235
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
236
+ type: Inject,
237
+ args: ['hostEnv']
238
+ }] }] });
239
+
240
+ class HierarquiaOrganizacionalService extends BaseApiService {
241
+ constructor(httpClient, hostEnv) {
242
+ super(httpClient);
243
+ this.hostEnv = hostEnv;
244
+ this.rotaExcluir = 'hcm/api/v1/hierarquiaorganizacional/excluir';
245
+ this.rotaListar = 'hcm/api/v1/hierarquiaorganizacional/listar';
246
+ this.rotaListartodos = 'hcm/api/v1/hierarquiaorganizacional/listartodos';
247
+ this.rotaSalvar = 'hcm/api/v1/hierarquiaorganizacional/salvar';
248
+ this.rotaSelecionar = 'hcm/api/v1/hierarquiaorganizacional/selecionar';
249
+ }
250
+ Excluir(id) {
251
+ return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${id}`);
252
+ }
253
+ Listar(filtro) {
254
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaListar, filtro);
189
255
  }
190
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: EquipeService, deps: [{ token: i1.HttpClient }, { token: 'configHcm' }], target: i0.ɵɵFactoryTarget.Injectable }); }
191
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: EquipeService, providedIn: 'root' }); }
256
+ ListarTodos(filtro) {
257
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaListartodos, filtro);
258
+ }
259
+ Salvar(dados) {
260
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, dados);
261
+ }
262
+ Selecionar(id) {
263
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${id}`);
264
+ }
265
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: HierarquiaOrganizacionalService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
266
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: HierarquiaOrganizacionalService, providedIn: 'root' }); }
192
267
  }
193
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: EquipeService, decorators: [{
268
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: HierarquiaOrganizacionalService, decorators: [{
194
269
  type: Injectable,
195
270
  args: [{
196
271
  providedIn: 'root'
197
272
  }]
198
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.Configurations, decorators: [{
273
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
199
274
  type: Inject,
200
- args: ['configHcm']
275
+ args: ['hostEnv']
201
276
  }] }] });
202
277
 
203
278
  class RelacionamentoLotacaoService extends BaseApiService {
204
- constructor(httpClient, configHcm) {
279
+ constructor(httpClient, hostEnv) {
205
280
  super(httpClient);
206
281
  this.httpClient = httpClient;
207
- this.configHcm = configHcm;
282
+ this.hostEnv = hostEnv;
208
283
  this.rotaExcluir = 'hcm/api/v1/relacionamentolotacao/excluir';
209
284
  this.rotaExisteEmpresa = 'hcm/api/v1/relacionamentolotacao/existeempresa';
210
285
  this.rotaListar = 'hcm/api/v1/relacionamentolotacao/listar';
@@ -214,168 +289,168 @@ class RelacionamentoLotacaoService extends BaseApiService {
214
289
  this.rotaSelecionar = 'hcm/api/v1/relacionamentolotacao/selecionar';
215
290
  }
216
291
  Excluir(idanalista) {
217
- return this.delete(this.configHcm.apiUrl, `${this.rotaExcluir}/${idanalista}`);
292
+ return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${idanalista}`);
218
293
  }
219
294
  ExisteEmpresa(idmaster, idempresaevocenter) {
220
- return this.get(this.configHcm.apiUrl, `${this.rotaExisteEmpresa}/${idmaster}/${idempresaevocenter}`);
295
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaExisteEmpresa}/${idmaster}/${idempresaevocenter}`);
221
296
  }
222
297
  Listar(filtro) {
223
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
298
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
224
299
  }
225
300
  ListarTodos(filtro) {
226
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
301
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
227
302
  }
228
303
  ListarPossiveisAnalistas(filtro) {
229
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListarPossiveisAnalistas, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
304
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPossiveisAnalistas, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
230
305
  }
231
306
  Salvar(data) {
232
- return this.post(this.configHcm.apiUrl, this.rotaSalvar, data);
307
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, data);
233
308
  }
234
309
  Selecionar(idrelacionamentolotacao) {
235
- return this.get(this.configHcm.apiUrl, `${this.rotaSelecionar}/${idrelacionamentolotacao}`);
310
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idrelacionamentolotacao}`);
236
311
  }
237
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: RelacionamentoLotacaoService, deps: [{ token: i1.HttpClient }, { token: 'configHcm' }], target: i0.ɵɵFactoryTarget.Injectable }); }
238
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: RelacionamentoLotacaoService, providedIn: 'root' }); }
312
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: RelacionamentoLotacaoService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
313
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: RelacionamentoLotacaoService, providedIn: 'root' }); }
239
314
  }
240
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: RelacionamentoLotacaoService, decorators: [{
315
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: RelacionamentoLotacaoService, decorators: [{
241
316
  type: Injectable,
242
317
  args: [{
243
318
  providedIn: 'root'
244
319
  }]
245
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.Configurations, decorators: [{
320
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
246
321
  type: Inject,
247
- args: ['configHcm']
322
+ args: ['hostEnv']
248
323
  }] }] });
249
324
 
250
325
  class SubTipoOcorrenciaService extends BaseApiService {
251
- constructor(httpClient, configHcm) {
326
+ constructor(httpClient, hostEnv) {
252
327
  super(httpClient);
253
328
  this.httpClient = httpClient;
254
- this.configHcm = configHcm;
329
+ this.hostEnv = hostEnv;
255
330
  this.rotaListar = 'hcm/api/v1/subtipoocorrencia/listar';
256
331
  this.rotaSalvar = 'hcm/api/v1/subtipoocorrencia/salvar';
257
332
  }
258
333
  Listar(filtro) {
259
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
334
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
260
335
  }
261
336
  Salvar(data) {
262
- return this.post(this.configHcm.apiUrl, this.rotaSalvar, data);
337
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, data);
263
338
  }
264
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SubTipoOcorrenciaService, deps: [{ token: i1.HttpClient }, { token: 'configHcm' }], target: i0.ɵɵFactoryTarget.Injectable }); }
265
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SubTipoOcorrenciaService, providedIn: 'root' }); }
339
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: SubTipoOcorrenciaService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
340
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: SubTipoOcorrenciaService, providedIn: 'root' }); }
266
341
  }
267
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: SubTipoOcorrenciaService, decorators: [{
342
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: SubTipoOcorrenciaService, decorators: [{
268
343
  type: Injectable,
269
344
  args: [{
270
345
  providedIn: 'root'
271
346
  }]
272
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.Configurations, decorators: [{
347
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
273
348
  type: Inject,
274
- args: ['configHcm']
349
+ args: ['hostEnv']
275
350
  }] }] });
276
351
 
277
352
  class TipoEstadoService extends BaseApiService {
278
- constructor(httpClient, configHcm) {
353
+ constructor(httpClient, hostEnv) {
279
354
  super(httpClient);
280
355
  this.httpClient = httpClient;
281
- this.configHcm = configHcm;
356
+ this.hostEnv = hostEnv;
282
357
  this.rotaExcluir = 'hcm/api/v1/tipoestado/excluir';
283
358
  this.rotaListar = 'hcm/api/v1/tipoestado/listar';
284
359
  this.rotaSalvar = 'hcm/api/v1/tipoestado/salvar';
285
360
  this.rotaSelecionar = 'hcm/api/v1/tipoestado/selecionar';
286
361
  }
287
362
  Excluir(id) {
288
- return this.delete(this.configHcm.apiUrl, `${this.rotaExcluir}/${id}`);
363
+ return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${id}`);
289
364
  }
290
365
  Listar(filtro) {
291
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
366
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
292
367
  }
293
368
  Salvar(estado) {
294
- return this.post(this.configHcm.apiUrl, this.rotaSalvar, estado);
369
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, estado);
295
370
  }
296
371
  Selecionar(id) {
297
- return this.get(this.configHcm.apiUrl, `${this.rotaSelecionar}/${id}`);
372
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${id}`);
298
373
  }
299
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TipoEstadoService, deps: [{ token: i1.HttpClient }, { token: 'configHcm' }], target: i0.ɵɵFactoryTarget.Injectable }); }
300
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TipoEstadoService, providedIn: 'root' }); }
374
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: TipoEstadoService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
375
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: TipoEstadoService, providedIn: 'root' }); }
301
376
  }
302
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TipoEstadoService, decorators: [{
377
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: TipoEstadoService, decorators: [{
303
378
  type: Injectable,
304
379
  args: [{
305
380
  providedIn: 'root'
306
381
  }]
307
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.Configurations, decorators: [{
382
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
308
383
  type: Inject,
309
- args: ['configHcm']
384
+ args: ['hostEnv']
310
385
  }] }] });
311
386
 
312
387
  class TipoOcorrenciaService extends BaseApiService {
313
- constructor(httpClient, configHcm) {
388
+ constructor(httpClient, hostEnv) {
314
389
  super(httpClient);
315
390
  this.httpClient = httpClient;
316
- this.configHcm = configHcm;
391
+ this.hostEnv = hostEnv;
317
392
  this.rotaExcluir = 'hcm/api/v1/tipoocorrencia/excluir';
318
393
  this.rotaListar = 'hcm/api/v1/tipoocorrencia/listar';
319
394
  this.rotaSalvar = 'hcm/api/v1/tipoocorrencia/salvar';
320
395
  this.rotaSelecionar = 'hcm/api/v1/tipoocorrencia/selecionar';
321
396
  }
322
397
  Excluir(idtipoocorrencia) {
323
- return this.delete(this.configHcm.apiUrl, `${this.rotaExcluir}/${idtipoocorrencia}`);
398
+ return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${idtipoocorrencia}`);
324
399
  }
325
400
  Listar(filtro) {
326
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
401
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
327
402
  }
328
403
  Salvar(data) {
329
- return this.post(this.configHcm.apiUrl, this.rotaSalvar, data);
404
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, data);
330
405
  }
331
406
  Selecionar(idtipoocorrencia) {
332
- return this.get(this.configHcm.apiUrl, `${this.rotaSelecionar}/${idtipoocorrencia}`);
407
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idtipoocorrencia}`);
333
408
  }
334
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TipoOcorrenciaService, deps: [{ token: i1.HttpClient }, { token: 'configHcm' }], target: i0.ɵɵFactoryTarget.Injectable }); }
335
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TipoOcorrenciaService, providedIn: 'root' }); }
409
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: TipoOcorrenciaService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
410
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: TipoOcorrenciaService, providedIn: 'root' }); }
336
411
  }
337
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TipoOcorrenciaService, decorators: [{
412
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: TipoOcorrenciaService, decorators: [{
338
413
  type: Injectable,
339
414
  args: [{
340
415
  providedIn: 'root'
341
416
  }]
342
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.Configurations, decorators: [{
417
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
343
418
  type: Inject,
344
- args: ['configHcm']
419
+ args: ['hostEnv']
345
420
  }] }] });
346
421
 
347
422
  class UnidadeAdministrativaService extends BaseApiService {
348
- constructor(httpClient, configHcm) {
423
+ constructor(httpClient, hostEnv) {
349
424
  super(httpClient);
350
425
  this.httpClient = httpClient;
351
- this.configHcm = configHcm;
426
+ this.hostEnv = hostEnv;
352
427
  this.rotaListarTodos = 'hcm/api/v1/unidadeadministrativa/listartodos';
353
428
  this.rotaSelecionar = 'hcm/api/v1/unidadeadministrativa/selecionar';
354
429
  }
355
430
  ListarTodos(filtro) {
356
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
431
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
357
432
  }
358
433
  Selecionar(idunidadeadministrativa) {
359
- return this.get(this.configHcm.apiUrl, `${this.rotaSelecionar}/${idunidadeadministrativa}`);
434
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idunidadeadministrativa}`);
360
435
  }
361
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: UnidadeAdministrativaService, deps: [{ token: i1.HttpClient }, { token: 'configHcm' }], target: i0.ɵɵFactoryTarget.Injectable }); }
362
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: UnidadeAdministrativaService, providedIn: 'root' }); }
436
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: UnidadeAdministrativaService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
437
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: UnidadeAdministrativaService, providedIn: 'root' }); }
363
438
  }
364
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: UnidadeAdministrativaService, decorators: [{
439
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: UnidadeAdministrativaService, decorators: [{
365
440
  type: Injectable,
366
441
  args: [{
367
442
  providedIn: 'root'
368
443
  }]
369
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.Configurations, decorators: [{
444
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
370
445
  type: Inject,
371
- args: ['configHcm']
446
+ args: ['hostEnv']
372
447
  }] }] });
373
448
 
374
449
  class UnidadehierarquicaService extends BaseApiService {
375
- constructor(httpClient, configHcm) {
450
+ constructor(httpClient, hostEnv) {
376
451
  super(httpClient);
377
452
  this.httpClient = httpClient;
378
- this.configHcm = configHcm;
453
+ this.hostEnv = hostEnv;
379
454
  this.rotaExcluir = 'hcm/api/v1/unidadehierarquica/excluir';
380
455
  this.rotaExisteEmpresa = 'hcm/api/v1/unidadehierarquica/existeempresa';
381
456
  this.rotaListar = 'hcm/api/v1/unidadehierarquica/listar';
@@ -387,135 +462,135 @@ class UnidadehierarquicaService extends BaseApiService {
387
462
  this.rotaSelecionar = 'hcm/api/v1/unidadehierarquica/selecionar';
388
463
  }
389
464
  Excluir(idunidadehierarquica) {
390
- return this.delete(this.configHcm.apiUrl, `${this.rotaExcluir}/${idunidadehierarquica}`);
465
+ return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${idunidadehierarquica}`);
391
466
  }
392
467
  ExisteEmpresa(idmaster, idempresaevocenter) {
393
- return this.get(this.configHcm.apiUrl, `${this.rotaExisteEmpresa}/${idmaster}/${idempresaevocenter}`);
468
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaExisteEmpresa}/${idmaster}/${idempresaevocenter}`);
394
469
  }
395
470
  Listar(filtro) {
396
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
471
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
397
472
  }
398
473
  ListarPorChave(filtro) {
399
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListarPorChave, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
474
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPorChave, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
400
475
  }
401
476
  ListarPossiveisUnidadesSuperiores(filtro) {
402
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListarPossiveisUnidadesSuperiores, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
477
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPossiveisUnidadesSuperiores, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
403
478
  }
404
479
  ListarTodos(filtro) {
405
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
480
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
406
481
  }
407
482
  Salvar(data) {
408
- return this.post(this.configHcm.apiUrl, this.rotaSalvar, data);
483
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, data);
409
484
  }
410
485
  Selecionar(idunidadehierarquica) {
411
- return this.get(this.configHcm.apiUrl, `${this.rotaSelecionar}/${idunidadehierarquica}`);
486
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idunidadehierarquica}`);
412
487
  }
413
488
  SelecionarRaizPorChave(filtro) {
414
- return this.getHeaders(this.configHcm.apiUrl, this.rotaSelecionarRaizPorChave, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
489
+ return this.getHeaders(this.hostEnv.apiUrlHcm, this.rotaSelecionarRaizPorChave, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
415
490
  }
416
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: UnidadehierarquicaService, deps: [{ token: i1.HttpClient }, { token: 'configHcm' }], target: i0.ɵɵFactoryTarget.Injectable }); }
417
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: UnidadehierarquicaService, providedIn: 'root' }); }
491
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: UnidadehierarquicaService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
492
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: UnidadehierarquicaService, providedIn: 'root' }); }
418
493
  }
419
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: UnidadehierarquicaService, decorators: [{
494
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: UnidadehierarquicaService, decorators: [{
420
495
  type: Injectable,
421
496
  args: [{
422
497
  providedIn: 'root'
423
498
  }]
424
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.Configurations, decorators: [{
499
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
425
500
  type: Inject,
426
- args: ['configHcm']
501
+ args: ['hostEnv']
427
502
  }] }] });
428
503
 
429
504
  class EmpresaBannerService extends BaseApiService {
430
- constructor(httpClient, configHcm) {
505
+ constructor(httpClient, hostEnv) {
431
506
  super(httpClient);
432
507
  this.httpClient = httpClient;
433
- this.configHcm = configHcm;
508
+ this.hostEnv = hostEnv;
434
509
  this.rotaSalvar = 'hcm/api/v1/empresabanner/salvar';
435
510
  this.rotaSelecionar = 'hcm/api/v1/empresabanner/selecionar';
436
511
  }
437
512
  Salvar(data) {
438
- return this.post(this.configHcm.apiUrl, this.rotaSalvar, data);
513
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, data);
439
514
  }
440
515
  Selecionar(idmaster, idempresaevocenter, ordem) {
441
- return this.get(this.configHcm.apiUrl, `${this.rotaSelecionar}/${idmaster}/${idempresaevocenter}/${ordem}`);
516
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idmaster}/${idempresaevocenter}/${ordem}`);
442
517
  }
443
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: EmpresaBannerService, deps: [{ token: i1.HttpClient }, { token: 'configHcm' }], target: i0.ɵɵFactoryTarget.Injectable }); }
444
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: EmpresaBannerService, providedIn: 'root' }); }
518
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: EmpresaBannerService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
519
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: EmpresaBannerService, providedIn: 'root' }); }
445
520
  }
446
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: EmpresaBannerService, decorators: [{
521
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: EmpresaBannerService, decorators: [{
447
522
  type: Injectable,
448
523
  args: [{
449
524
  providedIn: 'root'
450
525
  }]
451
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.Configurations, decorators: [{
526
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
452
527
  type: Inject,
453
- args: ['configHcm']
528
+ args: ['hostEnv']
454
529
  }] }] });
455
530
 
456
531
  class EmpresaParametrosService extends BaseApiService {
457
- constructor(httpClient, configHcm) {
532
+ constructor(httpClient, hostEnv) {
458
533
  super(httpClient);
459
534
  this.httpClient = httpClient;
460
- this.configHcm = configHcm;
535
+ this.hostEnv = hostEnv;
461
536
  this.rotaSalvar = 'hcm/api/v1/empresaparametros/salvar';
462
537
  this.rotaSalvarEkeep = 'hcm/api/v1/empresaparametros/salvarekeep';
463
538
  this.rotaSelecionar = 'hcm/api/v1/empresaparametros/selecionar';
464
539
  }
465
540
  Selecionar(idempresaevocenter) {
466
- return this.get(this.configHcm.apiUrl, `${this.rotaSelecionar}/${idempresaevocenter}`);
541
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idempresaevocenter}`);
467
542
  }
468
543
  Salvar(data) {
469
- return this.post(this.configHcm.apiUrl, this.rotaSalvar, data);
544
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, data);
470
545
  }
471
546
  SalvarEkeep(data) {
472
- return this.post(this.configHcm.apiUrl, this.rotaSalvarEkeep, data);
547
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvarEkeep, data);
473
548
  }
474
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: EmpresaParametrosService, deps: [{ token: i1.HttpClient }, { token: 'configHcm' }], target: i0.ɵɵFactoryTarget.Injectable }); }
475
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: EmpresaParametrosService, providedIn: 'root' }); }
549
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: EmpresaParametrosService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
550
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: EmpresaParametrosService, providedIn: 'root' }); }
476
551
  }
477
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: EmpresaParametrosService, decorators: [{
552
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: EmpresaParametrosService, decorators: [{
478
553
  type: Injectable,
479
554
  args: [{
480
555
  providedIn: 'root'
481
556
  }]
482
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.Configurations, decorators: [{
557
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
483
558
  type: Inject,
484
- args: ['configHcm']
559
+ args: ['hostEnv']
485
560
  }] }] });
486
561
 
487
562
  class EmpresaService extends BaseApiService {
488
- constructor(httpClient, configHcm) {
563
+ constructor(httpClient, hostEnv) {
489
564
  super(httpClient);
490
565
  this.httpClient = httpClient;
491
- this.configHcm = configHcm;
566
+ this.hostEnv = hostEnv;
492
567
  this.rotaListarEmpresas = 'hcm/api/v1/empresa/listarempresas';
493
568
  this.rotaListarEmpresaseFiliais = 'hcm/api/v1/empresa/listarempresaefiliais';
494
569
  }
495
570
  ListarEmpresas(idmaster) {
496
- return this.getAll(this.configHcm.apiUrl, `${this.rotaListarEmpresas}/${idmaster}`);
571
+ return this.getAll(this.hostEnv.apiUrlHcm, `${this.rotaListarEmpresas}/${idmaster}`);
497
572
  }
498
573
  ListarEmpresaEFiliais(idmaster, idempresaevocenter) {
499
- return this.getAll(this.configHcm.apiUrl, `${this.rotaListarEmpresaseFiliais}/${idmaster}/${idempresaevocenter}`);
574
+ return this.getAll(this.hostEnv.apiUrlHcm, `${this.rotaListarEmpresaseFiliais}/${idmaster}/${idempresaevocenter}`);
500
575
  }
501
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: EmpresaService, deps: [{ token: i1.HttpClient }, { token: 'configHcm' }], target: i0.ɵɵFactoryTarget.Injectable }); }
502
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: EmpresaService, providedIn: 'root' }); }
576
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: EmpresaService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
577
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: EmpresaService, providedIn: 'root' }); }
503
578
  }
504
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: EmpresaService, decorators: [{
579
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: EmpresaService, decorators: [{
505
580
  type: Injectable,
506
581
  args: [{
507
582
  providedIn: 'root'
508
583
  }]
509
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.Configurations, decorators: [{
584
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
510
585
  type: Inject,
511
- args: ['configHcm']
586
+ args: ['hostEnv']
512
587
  }] }] });
513
588
 
514
589
  class AnalistaPessoaService extends BaseApiService {
515
- constructor(httpClient, configHcm) {
590
+ constructor(httpClient, hostEnv) {
516
591
  super(httpClient);
517
592
  this.httpClient = httpClient;
518
- this.configHcm = configHcm;
593
+ this.hostEnv = hostEnv;
519
594
  this.rotaExcluir = 'hcm/api/v1/analistapessoa/excluir';
520
595
  this.rotaListar = 'hcm/api/v1/analistapessoa/listar';
521
596
  this.rotaListarPossiveisAnalistas = 'hcm/api/v1/analistapessoa/listarpossiveisanalistas';
@@ -523,38 +598,38 @@ class AnalistaPessoaService extends BaseApiService {
523
598
  this.rotaSelecionar = 'hcm/api/v1/analistapessoa/selecionar';
524
599
  }
525
600
  Excluir(idanalista) {
526
- return this.delete(this.configHcm.apiUrl, `${this.rotaExcluir}/${idanalista}`);
601
+ return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${idanalista}`);
527
602
  }
528
603
  Listar(filtro) {
529
- return this.post(this.configHcm.apiUrl, this.rotaListar, filtro);
604
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaListar, filtro);
530
605
  }
531
606
  ListarPossiveisAnalistas(filtro) {
532
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListarPossiveisAnalistas, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
607
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPossiveisAnalistas, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
533
608
  }
534
609
  Salvar(data) {
535
- return this.post(this.configHcm.apiUrl, this.rotaSalvar, data);
610
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, data);
536
611
  }
537
612
  Selecionar(idanalista) {
538
- return this.get(this.configHcm.apiUrl, `${this.rotaSelecionar}/${idanalista}`);
613
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idanalista}`);
539
614
  }
540
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: AnalistaPessoaService, deps: [{ token: i1.HttpClient }, { token: 'configHcm' }], target: i0.ɵɵFactoryTarget.Injectable }); }
541
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: AnalistaPessoaService, providedIn: 'root' }); }
615
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: AnalistaPessoaService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
616
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: AnalistaPessoaService, providedIn: 'root' }); }
542
617
  }
543
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: AnalistaPessoaService, decorators: [{
618
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: AnalistaPessoaService, decorators: [{
544
619
  type: Injectable,
545
620
  args: [{
546
621
  providedIn: 'root'
547
622
  }]
548
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.Configurations, decorators: [{
623
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
549
624
  type: Inject,
550
- args: ['configHcm']
625
+ args: ['hostEnv']
551
626
  }] }] });
552
627
 
553
628
  class KeexService extends BaseApiService {
554
- constructor(httpClient, configHcm) {
629
+ constructor(httpClient, hostEnv) {
555
630
  super(httpClient);
556
631
  this.httpClient = httpClient;
557
- this.configHcm = configHcm;
632
+ this.hostEnv = hostEnv;
558
633
  this.rotaListarUsuarios = 'hcm/api/v1/keex/listarusuarios';
559
634
  this.rotaPesquisarUsuario = 'hcm/api/v1/keex/pesquisarusuario';
560
635
  this.rotaTotalFuncionariosAcessoKeex = 'hcm/api/v1/keex/totalfuncionariosacessokeex`';
@@ -563,41 +638,41 @@ class KeexService extends BaseApiService {
563
638
  this.rotaEnviaConvite = 'hcm/api/v1/keex/enviaconvite';
564
639
  }
565
640
  ListarUsuarios(filtro) {
566
- return this.post(this.configHcm.apiUrl, this.rotaListarUsuarios, filtro);
641
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaListarUsuarios, filtro);
567
642
  }
568
643
  PesquisarUsuario(filtro) {
569
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaPesquisarUsuario, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
644
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaPesquisarUsuario, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
570
645
  }
571
646
  TotalFuncionariosAcessokeex(filtro) {
572
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaTotalFuncionariosAcessoKeex, new HttpHeaders().set('filtro', JSON.stringify(filtro)));
647
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaTotalFuncionariosAcessoKeex, new HttpHeaders().set('filtro', JSON.stringify(filtro)));
573
648
  }
574
649
  AlteraAcessoAoKeex(parametros) {
575
- return this.post(this.configHcm.apiUrl, this.rotaAlteracoesKeex, parametros);
650
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaAlteracoesKeex, parametros);
576
651
  }
577
652
  AlteraAcessoAoKeexEmpresa(parametros) {
578
- return this.post(this.configHcm.apiUrl, this.rotaAlteracoesKeexEmpresa, parametros);
653
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaAlteracoesKeexEmpresa, parametros);
579
654
  }
580
655
  EnviarConvite(usuarios) {
581
- return this.post(this.configHcm.apiUrl, this.rotaEnviaConvite, usuarios);
656
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaEnviaConvite, usuarios);
582
657
  }
583
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: KeexService, deps: [{ token: i1.HttpClient }, { token: 'configHcm' }], target: i0.ɵɵFactoryTarget.Injectable }); }
584
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: KeexService, providedIn: 'root' }); }
658
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: KeexService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
659
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: KeexService, providedIn: 'root' }); }
585
660
  }
586
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: KeexService, decorators: [{
661
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: KeexService, decorators: [{
587
662
  type: Injectable,
588
663
  args: [{
589
664
  providedIn: 'root',
590
665
  }]
591
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.Configurations, decorators: [{
666
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
592
667
  type: Inject,
593
- args: ['configHcm']
668
+ args: ['hostEnv']
594
669
  }] }] });
595
670
 
596
671
  class LiderService extends BaseApiService {
597
- constructor(httpClient, configHcm) {
672
+ constructor(httpClient, hostEnv) {
598
673
  super(httpClient);
599
674
  this.httpClient = httpClient;
600
- this.configHcm = configHcm;
675
+ this.hostEnv = hostEnv;
601
676
  this.rotaAtualizaEstadoAtivo = 'hcm/api/v1/lider/atualizaestadoativo';
602
677
  this.rotaListarPossiveisLideres = 'hcm/api/v1/lider/listarpossiveislideres';
603
678
  this.rotaListarPosiveisLideresSubstituto = 'hcm/api/v1/lider/listarposiveislideressubstituto';
@@ -613,68 +688,69 @@ class LiderService extends BaseApiService {
613
688
  this.rotaExisteIDRegistro = 'hcm/api/v1/lider/existeidregistro';
614
689
  }
615
690
  AtualizaEstadoAtivo(model) {
616
- return this.post(this.configHcm.apiUrl, this.rotaAtualizaEstadoAtivo, model);
691
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaAtualizaEstadoAtivo, model);
617
692
  }
618
693
  ListarPossiveisLideres(filtro) {
619
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListarPossiveisLideres, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
694
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPossiveisLideres, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
620
695
  }
621
696
  ListarPossiveisLideresSubstituto(filtro) {
622
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListarPosiveisLideresSubstituto, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
697
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPosiveisLideresSubstituto, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
623
698
  }
624
699
  Listar(filtro) {
625
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
700
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
626
701
  }
627
702
  ListarTodos(idmaster, idempresaevocenter) {
628
- return this.getAll(this.configHcm.apiUrl, `${this.rotaListar}/${idmaster}/${idempresaevocenter}`);
703
+ return this.getAll(this.hostEnv.apiUrlHcm, `${this.rotaListar}/${idmaster}/${idempresaevocenter}`);
629
704
  }
630
705
  ListarPorChave(filtro) {
631
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListarPorChave, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
706
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPorChave, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
632
707
  }
633
708
  Selecionar(idlider) {
634
- return this.get(this.configHcm.apiUrl, `${this.rotaSelecionar}/${idlider}`);
709
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idlider}`);
635
710
  }
636
711
  SelecionarDadosPessoa(idmaster, cpf) {
637
- return this.get(this.configHcm.apiUrl, `${this.rotaSelecionarDadosPesssoa}/${idmaster}/${cpf}`);
712
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionarDadosPesssoa}/${idmaster}/${cpf}`);
638
713
  }
639
714
  Salvar(lider) {
640
- return this.post(this.configHcm.apiUrl, this.rotaSalvar, lider);
715
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, lider);
641
716
  }
642
717
  Excluir(idlider) {
643
- return this.delete(this.configHcm.apiUrl, `${this.rotaExcluir}/${idlider}`);
718
+ return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${idlider}`);
644
719
  }
645
720
  VerificaLiderAtivo(idlider) {
646
- return this.get(this.configHcm.apiUrl, `${this.rotaVerificaLiderAtivo}/${idlider}`);
721
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaVerificaLiderAtivo}/${idlider}`);
647
722
  }
648
723
  ExisteLiderPrincipal(idmaster, idempresaevocenter) {
649
- return this.get(this.configHcm.apiUrl, `${this.rotaExisteLiderPrincipal}/${idmaster}/${idempresaevocenter}`);
724
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaExisteLiderPrincipal}/${idmaster}/${idempresaevocenter}`);
650
725
  }
651
726
  ExisteCpf(idmaster, idempresaevocenter, cpf) {
652
- return this.get(this.configHcm.apiUrl, `${this.rotaExisteCpf}/${idmaster}/${idempresaevocenter}/${cpf}`);
727
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaExisteCpf}/${idmaster}/${idempresaevocenter}/${cpf}`);
653
728
  }
654
729
  ExisteIDRegistro(idmaster, idempresaevocenter, idregistro) {
655
- return this.get(this.configHcm.apiUrl, `${this.rotaExisteIDRegistro}/${idmaster}/${idempresaevocenter}/${idregistro}`);
730
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaExisteIDRegistro}/${idmaster}/${idempresaevocenter}/${idregistro}`);
656
731
  }
657
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: LiderService, deps: [{ token: i1.HttpClient }, { token: 'configHcm' }], target: i0.ɵɵFactoryTarget.Injectable }); }
658
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: LiderService, providedIn: 'root' }); }
732
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: LiderService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
733
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: LiderService, providedIn: 'root' }); }
659
734
  }
660
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: LiderService, decorators: [{
735
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: LiderService, decorators: [{
661
736
  type: Injectable,
662
737
  args: [{
663
738
  providedIn: 'root'
664
739
  }]
665
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.Configurations, decorators: [{
740
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
666
741
  type: Inject,
667
- args: ['configHcm']
742
+ args: ['hostEnv']
668
743
  }] }] });
669
744
 
670
745
  class RegistroService extends BaseApiService {
671
- constructor(httpClient, configHcm) {
746
+ constructor(httpClient, hostEnv) {
672
747
  super(httpClient);
673
748
  this.httpClient = httpClient;
674
- this.configHcm = configHcm;
749
+ this.hostEnv = hostEnv;
675
750
  this.rotaExcluir = 'hcm/api/v1/registro/excluir';
676
751
  this.rotaExisteCpf = 'hcm/api/v1/registro/existecpf';
677
752
  this.rotaListar = 'hcm/api/v1/registro/listar';
753
+ this.rotaListarPerfil = 'hcm/api/v1/registro/ListarPerfil';
678
754
  this.rotaListarFuncionariosSemLotacao = 'hcm/api/v1/registro/ListarFuncionariosSemLotacao';
679
755
  this.rotaPesquisar = 'hcm/api/v1/registro/pesquisar';
680
756
  this.rotaListarAniversariantes = 'hcm/api/v1/registro/listaraniversariantes/?periodicidade=';
@@ -684,76 +760,79 @@ class RegistroService extends BaseApiService {
684
760
  this.rotaAtualizarFoto = 'hcm/api/v1/registro/AtualizarFoto';
685
761
  }
686
762
  Excluir(id) {
687
- return this.delete(this.configHcm.apiUrl, `${this.rotaExcluir}/${id}`);
763
+ return this.delete(this.hostEnv.apiUrlHcm, `${this.rotaExcluir}/${id}`);
688
764
  }
689
765
  ExisteCpf(idmaster, idempresaevocenter, cpf) {
690
- return this.get(this.configHcm.apiUrl, `${this.rotaExisteCpf}/${idmaster}/${idempresaevocenter}/${cpf}`);
766
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaExisteCpf}/${idmaster}/${idempresaevocenter}/${cpf}`);
691
767
  }
692
768
  Listar(filtro) {
693
- return this.post(this.configHcm.apiUrl, this.rotaListar, filtro);
769
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaListar, filtro);
770
+ }
771
+ ListarPerfil(filtro) {
772
+ return this.getHeaders(this.hostEnv.apiUrlHcm, this.rotaListarPerfil, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
694
773
  }
695
774
  ListarFuncionariosSemLotacao(filtro) {
696
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListarFuncionariosSemLotacao, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
775
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarFuncionariosSemLotacao, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
697
776
  }
698
777
  Pesquisar(filtro) {
699
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaPesquisar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
778
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaPesquisar, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
700
779
  }
701
780
  ListarAniversariantes(filtro, periodicidade) {
702
- return this.getAllHeaders(this.configHcm.apiUrl, `${this.rotaListarAniversariantes}${periodicidade}`, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
781
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, `${this.rotaListarAniversariantes}${periodicidade}`, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
703
782
  }
704
783
  SelecionarPerfil(filtro) {
705
- return this.getHeaders(this.configHcm.apiUrl, this.rotaSelecionarPerfil, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
784
+ return this.getHeaders(this.hostEnv.apiUrlHcm, this.rotaSelecionarPerfil, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
706
785
  }
707
786
  Salvar(data) {
708
- return this.post(this.configHcm.apiUrl, this.rotaSalvar, data);
787
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaSalvar, data);
709
788
  }
710
789
  Selecionar(id) {
711
- return this.get(this.configHcm.apiUrl, `${this.rotaSelecionar}/${id}`);
790
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${id}`);
712
791
  }
713
792
  SelecionarResumo(id) {
714
- return this.get(this.configHcm.apiUrl, `${this.rotaSelecionar}/${id}`);
793
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${id}`);
715
794
  }
716
795
  AtualizarFoto(model) {
717
- return this.post(this.configHcm.apiUrl, this.rotaAtualizarFoto, model);
796
+ return this.post(this.hostEnv.apiUrlHcm, this.rotaAtualizarFoto, model);
718
797
  }
719
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: RegistroService, deps: [{ token: i1.HttpClient }, { token: 'configHcm' }], target: i0.ɵɵFactoryTarget.Injectable }); }
720
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: RegistroService, providedIn: 'root' }); }
798
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: RegistroService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
799
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: RegistroService, providedIn: 'root' }); }
721
800
  }
722
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: RegistroService, decorators: [{
801
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: RegistroService, decorators: [{
723
802
  type: Injectable,
724
803
  args: [{
725
804
  providedIn: 'root'
726
805
  }]
727
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.Configurations, decorators: [{
806
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
728
807
  type: Inject,
729
- args: ['configHcm']
808
+ args: ['hostEnv']
730
809
  }] }] });
731
810
 
732
811
  class TomadorService extends BaseApiService {
733
- constructor(httpClient, configHcm) {
812
+ constructor(httpClient, hostEnv) {
734
813
  super(httpClient);
735
814
  this.httpClient = httpClient;
736
- this.configHcm = configHcm;
815
+ this.hostEnv = hostEnv;
737
816
  this.rotaListarTodos = 'hcm/api/v1/tomador/listartodos';
738
817
  this.rotaSelecionar = 'hcm/api/v1/tomador/selecionar';
739
818
  }
740
819
  ListarTodos(filtro) {
741
- return this.getAllHeaders(this.configHcm.apiUrl, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
820
+ return this.getAllHeaders(this.hostEnv.apiUrlHcm, this.rotaListarTodos, new HttpHeaders().set("filtro", JSON.stringify(filtro)));
742
821
  }
743
822
  Selecionar(idtomador) {
744
- return this.get(this.configHcm.apiUrl, `${this.rotaSelecionar}/${idtomador}`);
823
+ return this.get(this.hostEnv.apiUrlHcm, `${this.rotaSelecionar}/${idtomador}`);
745
824
  }
746
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TomadorService, deps: [{ token: i1.HttpClient }, { token: 'configHcm' }], target: i0.ɵɵFactoryTarget.Injectable }); }
747
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TomadorService, providedIn: 'root' }); }
825
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: TomadorService, deps: [{ token: i1.HttpClient }, { token: 'hostEnv' }], target: i0.ɵɵFactoryTarget.Injectable }); }
826
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: TomadorService, providedIn: 'root' }); }
748
827
  }
749
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: TomadorService, decorators: [{
828
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: TomadorService, decorators: [{
750
829
  type: Injectable,
751
830
  args: [{
752
831
  providedIn: 'root'
753
832
  }]
754
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: i2.Configurations, decorators: [{
833
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
755
834
  type: Inject,
756
- args: ['configHcm']
835
+ args: ['hostEnv']
757
836
  }] }] });
758
837
 
759
838
  class DadosConfiguracoesService {
@@ -773,56 +852,171 @@ class DadosConfiguracoesService {
773
852
  getIndicativosLotacaoDominio() {
774
853
  return this.indicativosLotacaoDominio;
775
854
  }
776
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DadosConfiguracoesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
777
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DadosConfiguracoesService, providedIn: 'root' }); }
855
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: DadosConfiguracoesService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
856
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: DadosConfiguracoesService, providedIn: 'root' }); }
778
857
  }
779
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: DadosConfiguracoesService, decorators: [{
858
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: DadosConfiguracoesService, decorators: [{
780
859
  type: Injectable,
781
860
  args: [{
782
861
  providedIn: 'root'
783
862
  }]
784
863
  }] });
785
864
 
786
- class ApiServicesHcmModule {
787
- static forRoot(configHcm) {
788
- return {
789
- ngModule: ApiServicesHcmModule,
790
- providers: [
791
- AnalistaPessoaService, { provide: 'configHcm', useValue: configHcm },
792
- CargoService, { provide: 'configHcm', useValue: configHcm },
793
- CentroCustoService, { provide: 'configHcm', useValue: configHcm },
794
- CentroResultadoService, { provide: 'configHcm', useValue: configHcm },
795
- DepartamentoService, { provide: 'configHcm', useValue: configHcm },
796
- EmpresaBannerService, { provide: 'configHcm', useValue: configHcm },
797
- EmpresaParametrosService, { provide: 'configHcm', useValue: configHcm },
798
- EmpresaService, { provide: 'configHcm', useValue: configHcm },
799
- EquipeMembroService, { provide: 'configHcm', useValue: configHcm },
800
- EquipeService, { provide: 'configHcm', useValue: configHcm },
801
- KeexService, { provide: 'configHcm', useValue: configHcm },
802
- LiderService, { provide: 'configHcm', useValue: configHcm },
803
- RegistroService, { provide: 'configHcm', useValue: configHcm },
804
- RelacionamentoLotacaoService, { provide: 'configHcm', useValue: configHcm },
805
- SubTipoOcorrenciaService, { provide: 'configHcm', useValue: configHcm },
806
- TipoEstadoService, { provide: 'configHcm', useValue: configHcm },
807
- TipoOcorrenciaService, { provide: 'configHcm', useValue: configHcm },
808
- TomadorService, { provide: 'configHcm', useValue: configHcm },
809
- UnidadeAdministrativaService, { provide: 'configHcm', useValue: configHcm },
810
- UnidadehierarquicaService, { provide: 'configHcm', useValue: configHcm },
811
- ]
865
+ class ValidatorsService {
866
+ constructor() { }
867
+ datainicio(control, mensagem) {
868
+ if (control.value === null ||
869
+ control.value === undefined ||
870
+ control.value === '') {
871
+ return { erroMessage: "Campo obrigatório" }; // Retorna erro de required se o campo estiver vazio
872
+ }
873
+ const dataInicio = new Date(new Date(control.value).setHours(0, 0, 0, 0));
874
+ const dataAtual = new Date();
875
+ dataAtual.setHours(0, 0, 0, 0);
876
+ if (dataInicio >= dataAtual) {
877
+ return null; // Retorna null se a data de início for maior ou igual à data atual
878
+ }
879
+ else {
880
+ return { erroMessage: mensagem }; // Retorna erro se a data de início for menor que a data atual
881
+ }
882
+ }
883
+ datafim(control, nomechave, mensagem) {
884
+ if (control.value === null ||
885
+ control.value === undefined ||
886
+ control.value === '') {
887
+ return { erroMessage: "Campo obrigatório" };
888
+ }
889
+ const dataFim = new Date(control.value); // Obter a data e hora do controle
890
+ const formGroup = control.parent;
891
+ const dataInicio = formGroup?.get(nomechave)?.value;
892
+ if (!dataInicio) {
893
+ return null; // Se a data de início não estiver definida, não há como comparar, então retornamos null
894
+ }
895
+ const dataInicioSemHoras = new Date(new Date(dataInicio).setHours(0, 0, 0, 0)); // Remover as horas da data de início
896
+ const dataFimSemHoras = new Date(new Date(dataFim).setHours(0, 0, 0, 0)); // Remover as horas da data de fim
897
+ if (dataFimSemHoras > dataInicioSemHoras || dataFim > dataInicio) {
898
+ return null; // Se a data de fim (com ou sem horas) for maior que a data de início (com ou sem horas), então está tudo certo
899
+ }
900
+ else {
901
+ return { erroMessage: mensagem };
902
+ }
903
+ }
904
+ datainIcioFlag(control, mensagem, flag) {
905
+ const formGroup = control.parent;
906
+ const controlFlag = formGroup?.get(flag)?.value;
907
+ if (controlFlag) {
908
+ if (control.value === null ||
909
+ control.value === undefined ||
910
+ control.value === '') {
911
+ return { erroMessage: "Campo obrigatório" };
912
+ }
913
+ else {
914
+ const dataInicio = new Date(control.value);
915
+ const dataAtual = new Date();
916
+ // Ajuste para comparar apenas ano, mês e dia
917
+ const inicioSemHoras = new Date(dataInicio.getFullYear(), dataInicio.getMonth(), dataInicio.getDate());
918
+ const atualSemHoras = new Date(dataAtual.getFullYear(), dataAtual.getMonth(), dataAtual.getDate());
919
+ if (inicioSemHoras >= atualSemHoras) {
920
+ return null;
921
+ }
922
+ else {
923
+ return { erroMessage: mensagem };
924
+ }
925
+ }
926
+ }
927
+ else {
928
+ return null;
929
+ }
930
+ }
931
+ dataFimFlag(control, nomechave, mensagem, flag) {
932
+ const formGroup = control.parent;
933
+ const controlFlag = formGroup?.get(flag)?.value;
934
+ if (controlFlag) {
935
+ if (control.value === null ||
936
+ control.value === undefined ||
937
+ control.value === '') {
938
+ return { erroMessage: "Campo obrigatório" };
939
+ }
940
+ else {
941
+ const dataFim = new Date(control.value);
942
+ const dataInicio = formGroup?.get(nomechave)?.value;
943
+ if (dataFim && dataFim.getTime() > dataInicio.getTime()) {
944
+ return null;
945
+ }
946
+ else {
947
+ return { erroMessage: mensagem };
948
+ }
949
+ }
950
+ }
951
+ else {
952
+ return null;
953
+ }
954
+ }
955
+ requiredCustomMessage(control, mensagem) {
956
+ if (control.value === null ||
957
+ control.value === undefined ||
958
+ control.value === '') {
959
+ return { erroMessage: mensagem };
960
+ }
961
+ let valorcampo = control.value;
962
+ if (valorcampo) {
963
+ return null;
964
+ }
965
+ else {
966
+ return { erroMessage: mensagem };
967
+ }
968
+ }
969
+ requiredDefautMessage(control) {
970
+ if (control.value === null ||
971
+ control.value === undefined ||
972
+ control.value === '') {
973
+ return { erroMessage: "Campo obrigatório" };
974
+ }
975
+ let valorcampo = control.value;
976
+ if (valorcampo) {
977
+ return null;
978
+ }
979
+ else {
980
+ return { erroMessage: "Campo obrigatório" };
981
+ }
982
+ }
983
+ minlenght(valorminimo, mensagem) {
984
+ return (control) => {
985
+ if (control.value === null || control.value === undefined || control.value === '') {
986
+ return { erroMessage: 'Campo obrigatório' };
987
+ }
988
+ const valorcampo = control.value;
989
+ if (valorcampo.length >= valorminimo) {
990
+ return null;
991
+ }
992
+ else {
993
+ return { erroMessage: mensagem };
994
+ }
812
995
  };
813
996
  }
814
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: ApiServicesHcmModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
815
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.3", ngImport: i0, type: ApiServicesHcmModule, imports: [CommonModule] }); }
816
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: ApiServicesHcmModule, imports: [CommonModule] }); }
997
+ maxlenght(valormaximo, mensagem) {
998
+ return (control) => {
999
+ if (control.value === null || control.value === undefined || control.value === '') {
1000
+ return { erroMessage: 'Campo obrigatório' };
1001
+ }
1002
+ const valorcampo = control.value;
1003
+ if (valorcampo.length <= valormaximo) {
1004
+ return null;
1005
+ }
1006
+ else {
1007
+ return { erroMessage: mensagem };
1008
+ }
1009
+ };
1010
+ }
1011
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ValidatorsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1012
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ValidatorsService, providedIn: 'root' }); }
817
1013
  }
818
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImport: i0, type: ApiServicesHcmModule, decorators: [{
819
- type: NgModule,
1014
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.4", ngImport: i0, type: ValidatorsService, decorators: [{
1015
+ type: Injectable,
820
1016
  args: [{
821
- declarations: [],
822
- imports: [CommonModule],
823
- exports: []
1017
+ providedIn: 'root',
824
1018
  }]
825
- }] });
1019
+ }], ctorParameters: () => [] });
826
1020
 
827
1021
  /*
828
1022
  * Public API Surface of keevo-api-services-hcm
@@ -835,5 +1029,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.3", ngImpor
835
1029
  * Generated bundle index. Do not edit.
836
1030
  */
837
1031
 
838
- export { AnalistaPessoaService, ApiServicesHcmModule, CargoService, CentroCustoService, CentroResultadoService, DadosConfiguracoesService, DepartamentoService, EmpresaBannerService, EmpresaParametrosService, EmpresaService, EquipeMembroService, EquipeService, KeexService, LiderService, RegistroService, RelacionamentoLotacaoService, SubTipoOcorrenciaService, TipoEstadoService, TipoOcorrenciaService, TomadorService, UnidadeAdministrativaService, UnidadehierarquicaService };
1032
+ export { AnalistaPessoaService, CargoService, CentroCustoService, CentroResultadoService, ColaboradorService, DadosConfiguracoesService, DepartamentoService, EmpresaBannerService, EmpresaParametrosService, EmpresaService, EquipeMembroService, EquipeService, HierarquiaOrganizacionalService, KeexService, LiderService, RegistroService, RelacionamentoLotacaoService, SubTipoOcorrenciaService, TipoEstadoService, TipoOcorrenciaService, TomadorService, UnidadeAdministrativaService, UnidadehierarquicaService, ValidatorsService };
839
1033
  //# sourceMappingURL=keevo-api-services-hcm.mjs.map