visorus-erp-core 11.0.0 → 11.0.1

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.
@@ -1752,6 +1752,27 @@
1752
1752
  this.url_host = config.url;
1753
1753
  return this.httpClient.get(this.url_host + '/usuario/obtieneUsuarioActual', httpOptions);
1754
1754
  };
1755
+ AuthService.prototype.obtieneUsuarioConfiguracion = function () {
1756
+ var usuario;
1757
+ var token_type = '';
1758
+ var access_token = '';
1759
+ usuario = JSON.parse(localStorage.getItem("usuario"));
1760
+ if (usuario) {
1761
+ token_type = usuario.token_type,
1762
+ access_token = usuario.access_token;
1763
+ }
1764
+ var httpOptions = {
1765
+ headers: new i1.HttpHeaders({
1766
+ 'Accept-type': 'application/json',
1767
+ 'Authorization': token_type + ' ' + access_token
1768
+ })
1769
+ };
1770
+ var config = JSON.parse(localStorage.getItem("config"));
1771
+ if (config)
1772
+ if (config.url)
1773
+ this.url_host = config.url;
1774
+ return this.httpClient.get(this.url_host + '/usuario/obtieneUsuarioConfiguracion', httpOptions);
1775
+ };
1755
1776
  return AuthService;
1756
1777
  }());
1757
1778
  /** @nocollapse */ AuthService.ɵfac = function AuthService_Factory(t) { return new (t || AuthService)(i0.ɵɵinject(i1.HttpClient)); };