arco-support-request 0.1.17 → 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,23 +1950,33 @@ 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/",
1957
- "ManpowerUrl": "https://manpowertest.azurewebsites.net/",
1957
+ "ManpowerUrl": "https://test.arco.sa/ManpowerApp/",
1958
1958
  "BusinessUrl": "https://test.arco.sa:220/",
1959
1959
  "FinanceApiUrl": "https://test.arco.sa:520/"
1960
1960
  },
1961
1961
  "Live": {
1962
1962
  "ERPUrl": "https://erp.arco.sa/",
1963
1963
  "ProducivityUrl": "https://erp.arco.sa/productivity/",
1964
- "ManpowerUrl": "https://arco-dotnet-core-cicd.azurewebsites.net/",
1964
+ "ManpowerUrl": "https://erp.arco.sa/ManpowerApp/",
1965
1965
  "BusinessUrl": "https://erp.arco.sa:220/",
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";
@@ -2657,6 +2667,7 @@ class EntityTypeSetupService {
2657
2667
  let headers = this.setHeaders(restData.Headers, FormValues);
2658
2668
  let parameter = this.getArraycolumn(params);
2659
2669
  let _url = restData.URL + parameter;
2670
+ _url = _url.replace(/([^:]\/)\/+/g, "$1");
2660
2671
  // searchCriteria = this.setCriteriaField(restData.QueryStrings,FormValues,searchCriteria)
2661
2672
  let _responseType = restData.ResponseType ? restData.ResponseType : 'json';
2662
2673
  switch (restData.Method) {