arco-support-request 0.1.18 → 0.1.19

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.
@@ -1950,7 +1950,7 @@ class GlobalService {
1950
1950
  ];
1951
1951
  }
1952
1952
  getUrls() {
1953
- let url = {
1953
+ let configJson = {
1954
1954
  "Test": {
1955
1955
  "ERPUrl": "https://test.arco.sa/",
1956
1956
  "ProducivityUrl": "https://test.arco.sa/productivity/",
@@ -1966,7 +1966,17 @@ class GlobalService {
1966
1966
  "FinanceApiUrl": "https://erp.arco.sa:520/"
1967
1967
  }
1968
1968
  };
1969
- return url;
1969
+ let path = `${this.HostUrl}/arco-support-request_Library/assets/json/systemConfig.json`;
1970
+ let fileUrl = path.replace(/([^:]\/)\/+/g, "$1");
1971
+ ;
1972
+ this.http.get(fileUrl).subscribe((response) => {
1973
+ configJson = response;
1974
+ return configJson;
1975
+ }, (error) => {
1976
+ console.log("Error downloading the systemConfig.json file :- ", error);
1977
+ return configJson;
1978
+ });
1979
+ return configJson;
1970
1980
  }
1971
1981
  getSystemConfig() {
1972
1982
  let type = "test";
@@ -2658,6 +2668,7 @@ class EntityTypeSetupService {
2658
2668
  let headers = this.setHeaders(restData.Headers, FormValues);
2659
2669
  let parameter = this.getArraycolumn(params);
2660
2670
  let _url = restData.URL + parameter;
2671
+ _url = _url.replace(/([^:]\/)\/+/g, "$1");
2661
2672
  // searchCriteria = this.setCriteriaField(restData.QueryStrings,FormValues,searchCriteria)
2662
2673
  let _responseType = restData.ResponseType ? restData.ResponseType : 'json';
2663
2674
  switch (restData.Method) {