arco-support-request 0.0.67 → 0.0.68

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.
@@ -2230,6 +2230,37 @@
2230
2230
  { name: 'ti-rss-alt' },
2231
2231
  ];
2232
2232
  }
2233
+ GlobalService.prototype.getUrls = function () {
2234
+ var url = {
2235
+ "Test": {
2236
+ "ERPUrl": "https://test.arco.sa/",
2237
+ "ProducivityUrl": "https://test.arco.sa/productivity/",
2238
+ "ManpowerUrl": "https://manpowertest.azurewebsites.net/",
2239
+ "BusinessUrl": "https://test.arco.sa:220/",
2240
+ "FinanceApiUrl": "https://test.arco.sa:520/"
2241
+ },
2242
+ "Live": {
2243
+ "ERPUrl": "https://erp.arco.sa/",
2244
+ "ProducivityUrl": "https://erp.arco.sa/productivity/",
2245
+ "ManpowerUrl": "https://arco-dotnet-core-cicd.azurewebsites.net/",
2246
+ "BusinessUrl": "https://erp.arco.sa:220/",
2247
+ "FinanceApiUrl": "https://erp.arco.sa:520/"
2248
+ }
2249
+ };
2250
+ return url;
2251
+ };
2252
+ GlobalService.prototype.getSystemConfig = function (type) {
2253
+ this.SystemConfigs = this.getUrls();
2254
+ if (type == "Live") {
2255
+ this.SystemConfigs = this.getUrls().Live;
2256
+ }
2257
+ else if (type == "Test") {
2258
+ this.SystemConfigs = this.getUrls().Test;
2259
+ }
2260
+ else {
2261
+ this.SystemConfigs = this.getUrls().Test;
2262
+ }
2263
+ };
2233
2264
  GlobalService.prototype.SetValue = function (value) {
2234
2265
  this.globalScope.isLogedIn = value;
2235
2266
  };
@@ -2925,7 +2956,6 @@
2925
2956
  var criteria = null;
2926
2957
  parameters.forEach(function (element) {
2927
2958
  if (element.IsCriteriaField && element.Type != 'SearchValue') {
2928
- debugger;
2929
2959
  if (searchCriteria && searchCriteria.Where) {
2930
2960
  var filterobj = {
2931
2961
  Field: element.Name,
@@ -3382,7 +3412,6 @@
3382
3412
  //----------------------myAssigned Cases------------------------------//
3383
3413
  ///////Dynmaic Apis /////
3384
3414
  EntityTypeSetupService.prototype.getDynamicAll = function (criteriastr, entityTypeRecId, processStageId, CustomerId) {
3385
- debugger;
3386
3415
  var url = dynamic.getDynamicAll(entityTypeRecId, processStageId);
3387
3416
  if (CustomerId) {
3388
3417
  url += '&CustomerId=' + CustomerId;
@@ -4177,10 +4206,12 @@
4177
4206
  var url = environment.ServerUrl + 'subgroupassingnment?SubGroupId=' + subGroupId;
4178
4207
  return this.http.get(url);
4179
4208
  };
4180
- SupportRequestService.prototype.getStatusListCount = function (Usertype, UserFieldId) {
4209
+ SupportRequestService.prototype.getStatusListCount = function (Usertype, UserFieldId, issuType) {
4181
4210
  var url = environment.ServerUrl +
4182
4211
  'entitytype/supportrequestbyrequestertypecount?Usertype=' +
4183
4212
  Usertype + "&UserFieldId=" + UserFieldId;
4213
+ if (issuType)
4214
+ url = url + "&IssueType=" + issuType;
4184
4215
  return this.http.get(url);
4185
4216
  };
4186
4217
  SupportRequestService.prototype.getsupportRequestData = function (criteriastr, Usertype) {
@@ -6092,6 +6123,7 @@
6092
6123
  this.getPageCount();
6093
6124
  this.getategoryrequestertype();
6094
6125
  }
6126
+ this.globalService.getSystemConfig(this.Host);
6095
6127
  };
6096
6128
  RequestFlowComponent.prototype.toggleTheme = function (e) {
6097
6129
  if (this.globalService.CurrentLanguage == 'Eng') {
@@ -6403,7 +6435,7 @@
6403
6435
  var _this = this;
6404
6436
  // let SupportRequestId = localStorage.getItem("RequesterTypeId");
6405
6437
  this.supportService
6406
- .getStatusListCount(this.RequesterTypeId, this.RequesterId)
6438
+ .getStatusListCount(this.RequesterTypeId, this.RequesterId, this.issuType)
6407
6439
  .subscribe(function (res) {
6408
6440
  _this.StatusList = res;
6409
6441
  if (_this.StatusList != null && _this.StatusList.length > 0) {
@@ -6642,6 +6674,7 @@
6642
6674
  RequesterField: [{ type: i0.Input }],
6643
6675
  Language: [{ type: i0.Input }],
6644
6676
  HostUrl: [{ type: i0.Input }],
6677
+ Host: [{ type: i0.Input }],
6645
6678
  Source: [{ type: i0.Input }],
6646
6679
  Channel: [{ type: i0.Input }],
6647
6680
  ChannelEn: [{ type: i0.Input }],
@@ -7619,6 +7652,7 @@
7619
7652
  data = {};
7620
7653
  data.Local = localStorage;
7621
7654
  data.Cookies = this.Cookies;
7655
+ data.System = this.globalService.SystemConfigs;
7622
7656
  if (_code && data) {
7623
7657
  var template = handlebars.compile(_code);
7624
7658
  var result = template(data);
@@ -8282,6 +8316,10 @@
8282
8316
  columns.push.apply(columns, __spread(_col));
8283
8317
  _this.dropDownColumn$[field.Description] = columns;
8284
8318
  /* #endregion */
8319
+ var _handleData_1 = {};
8320
+ if (_this.ParameterData) {
8321
+ _handleData_1.params = _this.ParameterData;
8322
+ }
8285
8323
  restData_1.QueryStrings.forEach(function (query) {
8286
8324
  if (query.Type == 'FieldValue') {
8287
8325
  if (!_formvalue_1[query.Value] && query.IsNullable != true) {
@@ -8294,17 +8332,19 @@
8294
8332
  }
8295
8333
  }
8296
8334
  else {
8297
- var _handleData = {};
8298
- if (_this.ParameterData) {
8299
- _handleData.params = _this.ParameterData;
8300
- }
8301
- query.Value = _this.hanbleBarData(query.Value, _handleData);
8335
+ query.Value = _this.hanbleBarData(query.Value, _handleData_1);
8302
8336
  }
8303
8337
  });
8338
+ restData_1.Headers = restData_1.Headers.map(function (x) {
8339
+ x.Value = _this.hanbleBarData(x.Value, _handleData_1);
8340
+ return x;
8341
+ });
8342
+ restData_1.URL = _this.hanbleBarData(restData_1.URL, _handleData_1);
8343
+ restData_1.Body = _this.hanbleBarData(restData_1.Body, _handleData_1);
8304
8344
  if (!isDepandancyvalue_1) {
8305
8345
  return;
8306
8346
  }
8307
- _this.entityTypeSetup.dynamicAPi(jsonItem.rest, _formvalue_1, searchCriteria, SearchText, restData_1.Havecriteria)
8347
+ _this.entityTypeSetup.dynamicAPi(restData_1, _formvalue_1, searchCriteria, SearchText, restData_1.Havecriteria)
8308
8348
  .subscribe(function (ress) {
8309
8349
  var res = ress;
8310
8350
  if (restData_1.ResponseView) {
@@ -8626,6 +8666,10 @@
8626
8666
  var isDepandancyvalue_2 = true;
8627
8667
  var _formvalue_2 = _this.pageForm.form.value;
8628
8668
  var restData_2 = jsonItem.rest;
8669
+ var _handleData_2 = {};
8670
+ if (_this.ParameterData) {
8671
+ _handleData_2.params = _this.ParameterData;
8672
+ }
8629
8673
  restData_2.QueryStrings.forEach(function (query) {
8630
8674
  if (query.Type == 'FieldValue') {
8631
8675
  if (!_formvalue_2[query.Value]) {
@@ -8638,10 +8682,16 @@
8638
8682
  }
8639
8683
  }
8640
8684
  });
8685
+ restData_2.Headers = restData_2.Headers.map(function (x) {
8686
+ x.Value = _this.hanbleBarData(x.Value, _handleData_2);
8687
+ return x;
8688
+ });
8689
+ restData_2.URL = _this.hanbleBarData(restData_2.URL, _handleData_2);
8690
+ restData_2.Body = _this.hanbleBarData(restData_2.Body, _handleData_2);
8641
8691
  if (!isDepandancyvalue_2) {
8642
8692
  return;
8643
8693
  }
8644
- _this.entityTypeSetup.dynamicAPi(jsonItem.rest, _formvalue_2)
8694
+ _this.entityTypeSetup.dynamicAPi(restData_2, _formvalue_2)
8645
8695
  .subscribe(function (ress) {
8646
8696
  var res = ress;
8647
8697
  if (restData_2.ResponseView) {
@@ -8880,6 +8930,7 @@
8880
8930
  data.CurrentData = this;
8881
8931
  data.Local = localStorage;
8882
8932
  data.Cookies = this.Cookies;
8933
+ data.System = this.globalService.SystemConfigs;
8883
8934
  if (_code && data) {
8884
8935
  var template = handlebars.compile(_code);
8885
8936
  var result = template(data);
@@ -9574,7 +9625,6 @@
9574
9625
  };
9575
9626
  SelfServiceFlowComponent.prototype.getIssueGroupRequesterMappingByRequesterType = function () {
9576
9627
  var _this = this;
9577
- debugger;
9578
9628
  this.IssueAllList = [];
9579
9629
  this.supportService.getIssueGroupRequesterMappingByRequesterType(this.RequesterTypeId).subscribe(function (res) {
9580
9630
  _this.IssueAllList = res.filter(function (x) { return x.IssueType == _this.IssueType; });
@@ -9593,7 +9643,6 @@
9593
9643
  });
9594
9644
  };
9595
9645
  SelfServiceFlowComponent.prototype.selectCase = function (item) {
9596
- debugger;
9597
9646
  this.selectedCaseItem = item;
9598
9647
  };
9599
9648
  SelfServiceFlowComponent.prototype.backtoCard = function () {
@@ -9729,13 +9778,11 @@
9729
9778
  return;
9730
9779
  _this.selfServiceRequestData.forEach(function (x) {
9731
9780
  _this.entityTypeSetup.urlGetWfStageAction(x.EntityTypeId, x.ProcessStage).subscribe(function (res) {
9732
- debugger;
9733
9781
  // res =[{ActionDescription:'asim'}]
9734
9782
  x.wfActionData = res;
9735
9783
  // this.wfActionData = res;
9736
9784
  console.log('wfact', res);
9737
9785
  }, function (error) {
9738
- debugger;
9739
9786
  error.error;
9740
9787
  });
9741
9788
  });
@@ -9747,7 +9794,6 @@
9747
9794
  });
9748
9795
  };
9749
9796
  CaseListComponent.prototype.loadGrid = function (data, TotalRecord) {
9750
- debugger;
9751
9797
  if (data) {
9752
9798
  if (data.length > 0)
9753
9799
  this.gridServiceService.onGridRefresh.next({
@@ -9782,9 +9828,7 @@
9782
9828
  CaseListComponent.prototype.getStatusField = function (data) {
9783
9829
  var _this = this;
9784
9830
  this.action = data.ActionRecId;
9785
- debugger;
9786
9831
  this.entityTypeSetup.urlGetStatusField(data.ActionRecId).subscribe(function (res) {
9787
- debugger;
9788
9832
  _this.wfStatusFields = res.Data;
9789
9833
  _this.entityTypeSetup.onshowWorkflowPopup.next({
9790
9834
  showWorkflowPopup: true,
@@ -9793,7 +9837,6 @@
9793
9837
  // this.showWorkflowPopup = true;
9794
9838
  console.log(res);
9795
9839
  }, function (error) {
9796
- debugger;
9797
9840
  error.error;
9798
9841
  });
9799
9842
  };
@@ -9804,11 +9847,9 @@
9804
9847
  };
9805
9848
  CaseListComponent.prototype.getEntityTypeDetails = function () {
9806
9849
  var _this = this;
9807
- debugger;
9808
9850
  this.entityTypeSetup
9809
9851
  .getSingleEntityTypeSetupById(this.EntityTypeId)
9810
9852
  .subscribe(function (res) {
9811
- debugger;
9812
9853
  _this.EntityTypeDetail = res;
9813
9854
  if (_this.globalService.CurrentLanguage == 'Ar') {
9814
9855
  _this.pageTitle = _this.EntityTypeDetail.DescriptionAr;
@@ -9817,19 +9858,15 @@
9817
9858
  _this.pageTitle = _this.EntityTypeDetail.Description;
9818
9859
  }
9819
9860
  }, function (error) {
9820
- debugger;
9821
9861
  console.log(error);
9822
9862
  });
9823
9863
  };
9824
9864
  CaseListComponent.prototype.getActiveEntityForm = function () {
9825
9865
  var _this = this;
9826
- debugger;
9827
9866
  this.entityTypeSetup.getActiveEntityFormByList(this.EntityTypeId).subscribe(function (res) {
9828
- debugger;
9829
9867
  _this.ActiveEntityTypeForm = res;
9830
9868
  _this.getFormList();
9831
9869
  }, function (error) {
9832
- debugger;
9833
9870
  console.log(error);
9834
9871
  });
9835
9872
  };
@@ -9863,7 +9900,6 @@
9863
9900
  }
9864
9901
  };
9865
9902
  CaseListComponent.prototype.openPopupCreatePage = function () {
9866
- debugger;
9867
9903
  this.CreateItemId = this.EntityTypeId;
9868
9904
  this.isShowCreateRequest = true;
9869
9905
  this.supportService.IsShowBackBtn = true;
@@ -9886,7 +9922,6 @@
9886
9922
  this.pageCount = Math.ceil(this.totalRecordCount / this.pageSize);
9887
9923
  };
9888
9924
  CaseListComponent.prototype.openDetailsPopup = function (data) {
9889
- debugger;
9890
9925
  this.isDetails = true;
9891
9926
  this.CaseId = data.CaseId;
9892
9927
  this.detailsRecId = data.RecId; // RefRecId is the main recid
@@ -9938,7 +9973,6 @@
9938
9973
  this.entityTypeSetup
9939
9974
  .getAllWfStage(this.Searchcriteria, this.EntityTypeId, true)
9940
9975
  .subscribe(function (res) {
9941
- debugger;
9942
9976
  _this.StatusAndStageList = res.Data.sort(function (a, b) {
9943
9977
  if (a.StageId < b.StageId)
9944
9978
  return -1;
@@ -9955,13 +9989,11 @@
9955
9989
  console.log(res.Data);
9956
9990
  }, function (error) {
9957
9991
  var _a;
9958
- debugger;
9959
9992
  console.log(error);
9960
9993
  Swal__default['default'].fire(_this.translatePipe.transform((_a = error.error) === null || _a === void 0 ? void 0 : _a.ExceptionMessage), _this.translatePipe.transform(error === null || error === void 0 ? void 0 : error.message), 'error');
9961
9994
  });
9962
9995
  };
9963
9996
  CaseListComponent.prototype.selectStage = function (item) {
9964
- debugger;
9965
9997
  this.totalRecordCount = 0;
9966
9998
  this.selectedStage = item.RecId;
9967
9999
  if (item.StageId != null) {
@@ -9976,11 +10008,9 @@
9976
10008
  CaseListComponent.prototype.getWfStageAction = function (EntityTypeId, StageId) {
9977
10009
  var _this = this;
9978
10010
  this.entityTypeSetup.urlGetWfStageAction(EntityTypeId, StageId).subscribe(function (res) {
9979
- debugger;
9980
10011
  _this.wfActionData = res;
9981
10012
  console.log(res);
9982
10013
  }, function (error) {
9983
- debugger;
9984
10014
  error.error;
9985
10015
  });
9986
10016
  };
@@ -10045,7 +10075,6 @@
10045
10075
  this.entityTypeService.onshowWorkflowPopup.subscribe(function (resData) {
10046
10076
  try {
10047
10077
  // alert("ss")
10048
- debugger;
10049
10078
  _this.isFileAttach = false;
10050
10079
  _this.MenuRecId = 0;
10051
10080
  _this.GridRecId = 0;
@@ -10115,7 +10144,6 @@
10115
10144
  Swal__default['default'].fire('Mandatory file must be upload before submitting ', 'warning');
10116
10145
  return;
10117
10146
  }
10118
- debugger;
10119
10147
  if (this.dynamicFormGroup.valid)
10120
10148
  this.getWorkflowActionComments.emit({
10121
10149
  comments: this.workflowComments,
@@ -10186,14 +10214,12 @@
10186
10214
  if (jsonItem.options &&
10187
10215
  Array.isArray(jsonItem.options) &&
10188
10216
  jsonItem.options.length > 0) {
10189
- debugger;
10190
10217
  if (_this.ActionCondition == 'hidecustomer') {
10191
10218
  jsonItem.options = jsonItem.options.filter(function (x) {
10192
10219
  if (x.value != '1')
10193
10220
  return x;
10194
10221
  });
10195
10222
  }
10196
- debugger;
10197
10223
  obx.next(jsonItem.options.map(function (x) { return Object.assign({
10198
10224
  Id: x.value,
10199
10225
  Description: x.text,
@@ -10222,7 +10248,6 @@
10222
10248
  }
10223
10249
  };
10224
10250
  WorkflowDynamicPopupComponent.prototype.uploadFile = function (event) {
10225
- debugger;
10226
10251
  if (event.target && event.target.files && event.target.files.length > 0) {
10227
10252
  var file = event.target.files[0];
10228
10253
  try {
@@ -10240,7 +10265,6 @@
10240
10265
  }
10241
10266
  };
10242
10267
  WorkflowDynamicPopupComponent.prototype.changeFile = function (files, item) {
10243
- debugger;
10244
10268
  this.DocumentItem = item;
10245
10269
  this.SelectedFiles = files.item(0);
10246
10270
  };
@@ -10258,14 +10282,12 @@
10258
10282
  };
10259
10283
  WorkflowDynamicPopupComponent.prototype.getShortCodeCannedResponse = function (event) {
10260
10284
  var _this = this;
10261
- debugger;
10262
10285
  // columns.push(...short);
10263
10286
  event = '';
10264
10287
  if (this.showshortcode && (!this.shortcode || this.shortcode.length < 1)) {
10265
10288
  this.entityTypeService
10266
10289
  .getShortKeyCannedResponse(event)
10267
10290
  .subscribe(function (res) {
10268
- debugger;
10269
10291
  _this.shortcode = res;
10270
10292
  _this.shortcutkey = res;
10271
10293
  });
@@ -10275,8 +10297,6 @@
10275
10297
  this.closeShortCanned = false;
10276
10298
  };
10277
10299
  WorkflowDynamicPopupComponent.prototype.selectShortKey = function (item) {
10278
- debugger;
10279
- debugger;
10280
10300
  if (this.activeInputId)
10281
10301
  this.typeInTextarea($('#' + this.activeInputId), item.Message);
10282
10302
  return false;