vcomply-workflow-engine 2.9.54 → 2.9.55

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.
@@ -2786,53 +2786,76 @@ class ResponsibilityService {
2786
2786
  getResponsibilityCenterList(params) {
2787
2787
  var _a;
2788
2788
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2789
- return this.http.get(((_a = this.env) === null || _a === void 0 ? void 0 : _a.complianceGet) + 'responsibilityCenterTree', {
2790
- params, headers
2791
- }).pipe(retry(2));
2789
+ return this.http
2790
+ .get(((_a = this.env) === null || _a === void 0 ? void 0 : _a.complianceGet) + 'responsibilityCenterTree', {
2791
+ params,
2792
+ headers,
2793
+ })
2794
+ .pipe(retry(2));
2792
2795
  }
2793
2796
  getOrganizationGroups(params) {
2794
2797
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2795
- return this.http.get(this.env.organizationGet + 'groupsList&status=1&type=compliance', {
2796
- params, headers,
2797
- }).pipe(retry(2));
2798
+ return this.http
2799
+ .get(this.env.organizationGet + 'groupsList&status=1&type=compliance', {
2800
+ params,
2801
+ headers,
2802
+ })
2803
+ .pipe(retry(2));
2798
2804
  }
2799
2805
  getOrganizationPolicyGroups(params) {
2800
2806
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2801
- return this.http.get(this.env.organizationGet + 'groupsList&permType=managePolicies&fetch_all=true', {
2802
- params, headers,
2803
- }).pipe(retry(2));
2807
+ return this.http
2808
+ .get(this.env.organizationGet +
2809
+ 'groupsList&permType=managePolicies&fetch_all=true', {
2810
+ params,
2811
+ headers,
2812
+ })
2813
+ .pipe(retry(2));
2804
2814
  }
2805
2815
  getOrganizationOverseersGroups(params) {
2806
2816
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2807
- return this.http.get(this.env.organizationGet + 'groupsList&fetch_all=true', {
2808
- params, headers,
2809
- }).pipe(retry(2));
2817
+ return this.http
2818
+ .get(this.env.organizationGet + 'groupsList&fetch_all=true', {
2819
+ params,
2820
+ headers,
2821
+ })
2822
+ .pipe(retry(2));
2810
2823
  }
2811
2824
  getOrganizationUsers() {
2812
2825
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2813
- return this.http.get(this.env.organizationGet + 'organizationUsers', {
2826
+ return this.http
2827
+ .get(this.env.organizationGet + 'organizationUsers', {
2814
2828
  headers,
2815
- }).pipe(retry(2));
2829
+ })
2830
+ .pipe(retry(2));
2816
2831
  }
2817
2832
  getOrganizationPeople(params) {
2818
2833
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2819
- return this.http.get(this.env.organizationGet + 'people', {
2820
- params, headers
2821
- }).pipe(retry(2));
2834
+ return this.http
2835
+ .get(this.env.organizationGet + 'people', {
2836
+ params,
2837
+ headers,
2838
+ })
2839
+ .pipe(retry(2));
2822
2840
  }
2823
2841
  getAssignorsList(params) {
2824
2842
  var _a;
2825
2843
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2826
- return this.http.get(((_a = this.env) === null || _a === void 0 ? void 0 : _a.organizationGet) + 'organizationUsers&isOnBehalf=1', {
2827
- params, headers
2828
- }).pipe(retry(2));
2844
+ return this.http
2845
+ .get(((_a = this.env) === null || _a === void 0 ? void 0 : _a.organizationGet) + 'organizationUsers&isOnBehalf=1', {
2846
+ params,
2847
+ headers,
2848
+ })
2849
+ .pipe(retry(2));
2829
2850
  }
2830
2851
  getCategoriesList() {
2831
2852
  var _a;
2832
2853
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2833
- return this.http.get(((_a = this.env) === null || _a === void 0 ? void 0 : _a.complianceGet) + 'complianceCategory/CategoryListTree', {
2854
+ return this.http
2855
+ .get(((_a = this.env) === null || _a === void 0 ? void 0 : _a.complianceGet) + 'complianceCategory/CategoryListTree', {
2834
2856
  headers,
2835
- }).pipe(retry(2));
2857
+ })
2858
+ .pipe(retry(2));
2836
2859
  }
2837
2860
  getProgramsList(params, ids) {
2838
2861
  var _a;
@@ -2840,39 +2863,58 @@ class ResponsibilityService {
2840
2863
  const programId = { programId: ids };
2841
2864
  if (ids === null || ids === void 0 ? void 0 : ids.length) {
2842
2865
  headers = headers.append('payload-object', JSON.stringify(programId));
2843
- return this.http.post(((_a = this.env) === null || _a === void 0 ? void 0 : _a.compliancePost) + 'complianceCategory/programList', programId, { params, headers }).pipe(retry(2));
2866
+ return this.http
2867
+ .post(((_a = this.env) === null || _a === void 0 ? void 0 : _a.compliancePost) + 'complianceCategory/programList', programId, { params, headers })
2868
+ .pipe(retry(2));
2844
2869
  }
2845
- return this.http.get(this.env.complianceGet + 'complianceCategory/programList', {
2846
- params, headers
2847
- }).pipe(retry(2));
2870
+ return this.http
2871
+ .get(this.env.complianceGet + 'complianceCategory/programList', {
2872
+ params,
2873
+ headers,
2874
+ })
2875
+ .pipe(retry(2));
2848
2876
  }
2849
2877
  getProgramsListCount(params, ids) {
2850
2878
  let headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2851
- return this.http.get(this.env.complianceGet + 'complianceCategory/programListCount', {
2852
- params, headers
2853
- }).pipe(retry(2));
2879
+ return this.http
2880
+ .get(this.env.complianceGet + 'complianceCategory/programListCount', {
2881
+ params,
2882
+ headers,
2883
+ })
2884
+ .pipe(retry(2));
2854
2885
  }
2855
2886
  getCategoriesUnderProgram(params) {
2856
2887
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2857
- return this.http.get(this.env.complianceGet + 'complianceCategory/CategoryListTree', {
2858
- params, headers
2859
- }).pipe(retry(2));
2888
+ return this.http
2889
+ .get(this.env.complianceGet + 'complianceCategory/CategoryListTree', {
2890
+ params,
2891
+ headers,
2892
+ })
2893
+ .pipe(retry(2));
2860
2894
  }
2861
2895
  getAssurance() {
2862
2896
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2863
- return this.http.get(this.env.assuranceGet + 'category/list&id=1', {
2897
+ return this.http
2898
+ .get(this.env.assuranceGet + 'category/list&id=1', {
2864
2899
  headers,
2865
- }).pipe(retry(2));
2900
+ })
2901
+ .pipe(retry(2));
2866
2902
  }
2867
2903
  getAssuranceForRequiresAudit() {
2868
2904
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2869
- return this.http.get(this.env.assuranceApi + 'Audit/Category/List/?mode=entrust_module', {
2905
+ return this.http
2906
+ .get(this.env.assuranceApi + 'Audit/Category/List/?mode=entrust_module', {
2870
2907
  headers,
2871
- }).pipe(retry(2));
2908
+ })
2909
+ .pipe(retry(2));
2872
2910
  }
2873
2911
  getRCDetailsOfFramework(rc_id, category_id) {
2874
2912
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2875
- return this.http.get(this.env.complianceGet + 'complianceCategory/CategoryRCTreeById&id=' + category_id + '&rc_id=' + rc_id, { headers });
2913
+ return this.http.get(this.env.complianceGet +
2914
+ 'complianceCategory/CategoryRCTreeById&id=' +
2915
+ category_id +
2916
+ '&rc_id=' +
2917
+ rc_id, { headers });
2876
2918
  }
2877
2919
  submitEntrust(entrust_body) {
2878
2920
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
@@ -2880,15 +2922,20 @@ class ResponsibilityService {
2880
2922
  }
2881
2923
  updateEntrust(entrust_body, object_id, isDelegate) {
2882
2924
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2883
- return this.http.post(this.env.compliancePost + 'createReport&reportId=' + object_id + '&isDelegate=0', entrust_body, { headers });
2925
+ return this.http.post(this.env.compliancePost +
2926
+ 'createReport&reportId=' +
2927
+ object_id +
2928
+ '&isDelegate=0', entrust_body, { headers });
2884
2929
  }
2885
2930
  editResponsibility(objectId) {
2886
2931
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2887
- return this.http.get(this.env.complianceGet + 'complianceReport/reportById&id=' + objectId, { headers }).pipe(retry(2));
2932
+ return this.http
2933
+ .get(this.env.complianceGet + 'complianceReport/reportById&id=' + objectId, { headers })
2934
+ .pipe(retry(2));
2888
2935
  }
2889
- addBulkResponsibility(entrust_body, query = "default") {
2936
+ addBulkResponsibility(entrust_body) {
2890
2937
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2891
- return this.http.post(this.env.compliancePost + 'import/create&query=' + query, entrust_body, { headers });
2938
+ return this.http.post(this.env.compliancePost + 'import/create', entrust_body, { headers });
2892
2939
  }
2893
2940
  uploadToNode(payload, des) {
2894
2941
  // const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
@@ -2897,7 +2944,9 @@ class ResponsibilityService {
2897
2944
  }
2898
2945
  getCategoryDetailsById(id) {
2899
2946
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2900
- return this.http.get(this.env.complianceGet + 'complianceCategory/CategoryTreeById&id=' + id, { headers, }).pipe(retry(2));
2947
+ return this.http
2948
+ .get(this.env.complianceGet + 'complianceCategory/CategoryTreeById&id=' + id, { headers })
2949
+ .pipe(retry(2));
2901
2950
  }
2902
2951
  getFrameWorkCount(params) {
2903
2952
  let httpOptions = {};
@@ -2905,7 +2954,9 @@ class ResponsibilityService {
2905
2954
  if (params) {
2906
2955
  httpOptions.params = params;
2907
2956
  }
2908
- return this.http.get(this.env.programEndpoint + '/frameworkcount', httpOptions).pipe(retry(2));
2957
+ return this.http
2958
+ .get(this.env.programEndpoint + '/frameworkcount', httpOptions)
2959
+ .pipe(retry(2));
2909
2960
  }
2910
2961
  getFrameWorkList(params) {
2911
2962
  let httpOptions = {};
@@ -2913,7 +2964,9 @@ class ResponsibilityService {
2913
2964
  if (params) {
2914
2965
  httpOptions.params = params;
2915
2966
  }
2916
- return this.http.get(this.env.programEndpoint + '/framework', httpOptions).pipe(retry(2));
2967
+ return this.http
2968
+ .get(this.env.programEndpoint + '/framework', httpOptions)
2969
+ .pipe(retry(2));
2917
2970
  }
2918
2971
  getFrameworkSubCategories(id, params) {
2919
2972
  let httpOptions = {};
@@ -2921,7 +2974,9 @@ class ResponsibilityService {
2921
2974
  if (params) {
2922
2975
  httpOptions.params = params;
2923
2976
  }
2924
- return this.http.get(this.env.programEndpoint + '/framework/' + id, httpOptions).pipe(retry(2));
2977
+ return this.http
2978
+ .get(this.env.programEndpoint + '/framework/' + id, httpOptions)
2979
+ .pipe(retry(2));
2925
2980
  }
2926
2981
  getFrameworkControls(id, params) {
2927
2982
  let httpOptions = {};
@@ -2929,23 +2984,38 @@ class ResponsibilityService {
2929
2984
  if (params) {
2930
2985
  httpOptions.params = params;
2931
2986
  }
2932
- return this.http.get(this.env.programEndpoint + '/controls/' + id, httpOptions).pipe(retry(2));
2987
+ return this.http
2988
+ .get(this.env.programEndpoint + '/controls/' + id, httpOptions)
2989
+ .pipe(retry(2));
2933
2990
  }
2934
2991
  fileUpload(file) {
2935
2992
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2936
- return this.http.post(this.env.compliancePost + 'file/upload', file, { headers });
2993
+ return this.http
2994
+ .post(this.env.compliancePost + 'file/upload', file, { headers })
2995
+ .pipe(retry(2));
2937
2996
  }
2938
2997
  getAssessmentCategory(payload, program_ids) {
2939
2998
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2940
- return this.http.post(this.env.assessmentEnpoint + 'category/list&isCreateResponsibility=true' + (program_ids ? '&program_ids=' + program_ids : ''), payload, { headers }).pipe(retry(2));
2999
+ return this.http
3000
+ .post(this.env.assessmentEnpoint +
3001
+ 'category/list&isCreateResponsibility=true' +
3002
+ (program_ids ? '&program_ids=' + program_ids : ''), payload, { headers })
3003
+ .pipe(retry(2));
2941
3004
  }
2942
3005
  getAssessmentList(payload, id, program_ids) {
2943
3006
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2944
- return this.http.post(this.env.assessmentEnpoint + 'assessment/selectAssessment&isCreateResponsibility=true&catid=' + id + (program_ids ? '&program_ids=' + program_ids : ''), payload, { headers }).pipe(retry(2));
3007
+ return this.http
3008
+ .post(this.env.assessmentEnpoint +
3009
+ 'assessment/selectAssessment&isCreateResponsibility=true&catid=' +
3010
+ id +
3011
+ (program_ids ? '&program_ids=' + program_ids : ''), payload, { headers })
3012
+ .pipe(retry(2));
2945
3013
  }
2946
3014
  getAssessmentDetailsByID(id) {
2947
3015
  const headers = new HttpHeaders().set('token', this.authService.getAuthorizationToken());
2948
- return this.http.post(this.env.assessmentEnpoint + 'assessment/getAssessmentById&id=' + id, {}, { headers }).pipe(retry(2));
3016
+ return this.http
3017
+ .post(this.env.assessmentEnpoint + 'assessment/getAssessmentById&id=' + id, {}, { headers })
3018
+ .pipe(retry(2));
2949
3019
  }
2950
3020
  }
2951
3021
  ResponsibilityService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ResponsibilityService_Factory() { return new ResponsibilityService(i0.ɵɵinject(i1.HttpClient), i0.ɵɵinject(AuthService), i0.ɵɵinject(Configurations, 8)); }, token: ResponsibilityService, providedIn: "root" });
@@ -13538,7 +13608,7 @@ class AddMultipleResponsibilityComponent {
13538
13608
  payload.push(obj);
13539
13609
  }
13540
13610
  });
13541
- this.responsibilityService.addBulkResponsibility(payload, 'single').subscribe((res) => {
13611
+ this.responsibilityService.addBulkResponsibility(payload).subscribe((res) => {
13542
13612
  this.loader = false;
13543
13613
  this.showExcel = false;
13544
13614
  this.showSmiley = true;
@@ -32180,7 +32250,7 @@ class AddMultipleResponsibilityWithTabComponent {
32180
32250
  }
32181
32251
  });
32182
32252
  // console.log("payloadpayload",payload, "responsibilityBulkUpload ==>", responsibilityBulkUpload )
32183
- this.responsibilityService.addBulkResponsibility(payload, 'multiple').subscribe((res) => {
32253
+ this.responsibilityService.addBulkResponsibility(payload).subscribe((res) => {
32184
32254
  this.loader = false;
32185
32255
  this.showExcel = false;
32186
32256
  this.showSmiley = true;