visorus-erp-core 12.0.0 → 12.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.
@@ -1810,6 +1810,27 @@
1810
1810
  this.url_host = config.url;
1811
1811
  return this.httpClient.get(this.url_host + '/usuario/obtieneUsuarioActual', httpOptions);
1812
1812
  };
1813
+ AuthService.prototype.obtieneUsuarioConfiguracion = function () {
1814
+ var usuario;
1815
+ var token_type = '';
1816
+ var access_token = '';
1817
+ usuario = JSON.parse(localStorage.getItem("usuario"));
1818
+ if (usuario) {
1819
+ token_type = usuario.token_type,
1820
+ access_token = usuario.access_token;
1821
+ }
1822
+ var httpOptions = {
1823
+ headers: new i1.HttpHeaders({
1824
+ 'Accept-type': 'application/json',
1825
+ 'Authorization': token_type + ' ' + access_token
1826
+ })
1827
+ };
1828
+ var config = JSON.parse(localStorage.getItem("config"));
1829
+ if (config)
1830
+ if (config.url)
1831
+ this.url_host = config.url;
1832
+ return this.httpClient.get(this.url_host + '/usuario/obtieneUsuarioConfiguracion', httpOptions);
1833
+ };
1813
1834
  return AuthService;
1814
1835
  }());
1815
1836
  /** @nocollapse */ AuthService.ɵfac = function AuthService_Factory(t) { return new (t || AuthService)(i0__namespace.ɵɵinject(i1__namespace.HttpClient)); };