sf-i-events 1.0.825 → 1.0.827
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.
- package/dev/index.html +17 -3
- package/package.json +1 -1
- package/sf-i-events.js +256 -227
- package/src/sf-i-events.ts +253 -377
package/sf-i-events.js
CHANGED
|
@@ -2717,6 +2717,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2717
2717
|
return html;
|
|
2718
2718
|
};
|
|
2719
2719
|
this.renderEvents = (_firstDay, _endDay, iInit, iLast, showGraph, index, month, period, firstDate = null, parametersTitle, showBackgroundButton) => {
|
|
2720
|
+
var _a, _b, _c, _f;
|
|
2720
2721
|
var total = 0, notStarted = 0, approved = 0, pendingApproval = 0, rejected = 0, inTime = 0, pastDueDate = 0, lateExecuted = 0, lateApproved = 0, lateReported = 0, scheduled = 0, partiallyComplied = 0, notComplied = 0, complied = 0, compliedWithGaps = 0, reportedNonCompliance = 0;
|
|
2721
2722
|
var html = '';
|
|
2722
2723
|
this.selectedItemIds = [];
|
|
@@ -2735,7 +2736,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2735
2736
|
html += this.renderCalendarContainerDivStart(index);
|
|
2736
2737
|
html += this.renderCalendarEventSummary();
|
|
2737
2738
|
// csvCols += 'Period,Status,Id,ObligationTitle,Obligation,Duedate'
|
|
2738
|
-
csvCols += 'Id,Country,State,Jurisdiction,Category,Subcategory,Statute,Reference,Applicability,ObligationType,ObligationTitle,Obligation,Firstlineofdefence,Secondlineofdefence,Thirdlineofdefence,Internalcontrols,Penalty,Form,AdditionalUrl,Definition,Authority,RiskSeverity,RiskAreas,Frequency,SubFrequency,DueDate,Status,ReportParameter';
|
|
2739
|
+
csvCols += 'Id,Country,Entity,Location,Function,Reporter,Approver,Functionhead,State,Jurisdiction,Category,Subcategory,Statute,Reference,Applicability,ObligationType,ObligationTitle,Obligation,Firstlineofdefence,Secondlineofdefence,Thirdlineofdefence,Internalcontrols,Penalty,Form,AdditionalUrl,Definition,Authority,RiskSeverity,RiskAreas,Frequency,SubFrequency,DueDate,Status,ReportParameter';
|
|
2739
2740
|
htmlCols += '<tr><th class="td-thin">Id</th><th class="td-thin">Country</th><th class="td-thin">State</th><th class="td-thin">Jurisdiction</th><th class="td-thin">Category</th><th class="td-thin">Subcategory</th><th class="td-wide">Statute</th><th class="td-thin">Reference</th><th class="td-thin">Applicability</th><th class="td-thin">ObligationType</th><th class="td-wide">ObligationTitle</th><th class="td-wide">Obligation</th><th class="td-thin">Firstlineofdefence</th><th class="td-thin">Secondlineofdefence</th><th class="td-thin">Thirdlineofdefence</th><th>InternalControls</th><th class="td-wide">Penalty</th><th class="td-thin">Form</th><th class="td-thin">Additional URL</th><th class="td-thin">Definition</th><th class="td-thin">Authority</th><th class="td-thin">RiskSeverity</th><th class="td-wide">RiskAreas</th><th class="td-thin">Frequency</th><th class="td-thin">SubFrequency</th><th class="td-thin">DueDate</th><th class="td-wide">Status</th><th class="td-wide">ReportParameter</th></tr>';
|
|
2740
2741
|
htmlSummaryCols += '<tr><th class="td-thin">Id</th><th class="td-wide">ObligationTitle</th><th class="td-wide">Obligation</th><th class="td-wide">Status</th><th class="td-wide">Documents</th></tr>';
|
|
2741
2742
|
for (var i = iInit; i <= iLast; i++) {
|
|
@@ -2805,8 +2806,15 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
2805
2806
|
this.events[mmdd][j][this.FLOW_GRAPH_COMPLIANCE] = complianceStatus;
|
|
2806
2807
|
this.updateStats(this.events[mmdd][j], partStatus, lateStatus, complianceStatus);
|
|
2807
2808
|
if (this.events[mmdd][j]["documents"] != null) {
|
|
2809
|
+
//Id,Country,Entity,Location,Function,Reporter,Approver,Functionhead,State
|
|
2808
2810
|
csvValues += ('"' + (this.events[mmdd][j]["id"] + '",'));
|
|
2809
|
-
csvValues += ('"' + (this.events[mmdd][j]["
|
|
2811
|
+
csvValues += ('"' + ((this.events[mmdd][j]["countryname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
2812
|
+
csvValues += ('"' + ((this.events[mmdd][j]["entityname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
2813
|
+
csvValues += ('"' + ((this.events[mmdd][j]["locationname"] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
2814
|
+
csvValues += ('"' + ((((_a = this.events[mmdd][j]["functions"][0]) !== null && _a !== void 0 ? _a : "").split(';')[0] + "").replace(/\((.*?)\)/g, "") + '",'));
|
|
2815
|
+
csvValues += ('"' + ((((_b = this.events[mmdd][j]["reporters"][0]) !== null && _b !== void 0 ? _b : "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
2816
|
+
csvValues += ('"' + ((((_c = this.events[mmdd][j]["approvers"][0]) !== null && _c !== void 0 ? _c : "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
2817
|
+
csvValues += ('"' + ((((_f = this.events[mmdd][j]["functionheads"][0]) !== null && _f !== void 0 ? _f : "").split(';')[0] + "").replace(/"/g, "") + '",'));
|
|
2810
2818
|
csvValues += ('"' + (this.events[mmdd][j]["state"] + '",'));
|
|
2811
2819
|
csvValues += ('"' + (this.events[mmdd][j]["jurisdiction"] + '",'));
|
|
2812
2820
|
csvValues += ('"' + (this.events[mmdd][j]["category"] + '",'));
|
|
@@ -8938,6 +8946,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
8938
8946
|
console.log('jsonRespose notice details', jsonRespose);
|
|
8939
8947
|
}
|
|
8940
8948
|
else {
|
|
8949
|
+
if (xhr.status == 401) {
|
|
8950
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
8951
|
+
this.dispatchEvent(changeEvent);
|
|
8952
|
+
}
|
|
8941
8953
|
if (xhr.status === 404) {
|
|
8942
8954
|
this.showChosenProject();
|
|
8943
8955
|
this._SfTitleChosenProject.innerHTML = this._SfProject[0].querySelector('#sf-i-project').selectedTexts()[0];
|
|
@@ -9671,6 +9683,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
9671
9683
|
}
|
|
9672
9684
|
}
|
|
9673
9685
|
else {
|
|
9686
|
+
if (xhr.status == 401) {
|
|
9687
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
9688
|
+
this.dispatchEvent(changeEvent);
|
|
9689
|
+
}
|
|
9674
9690
|
if (xhr.status === 404) {
|
|
9675
9691
|
this.showChosenProject();
|
|
9676
9692
|
this._SfTitleChosenProject.innerHTML = this._SfProject[0].querySelector('#sf-i-project').selectedTexts()[0];
|
|
@@ -16765,6 +16781,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16765
16781
|
this._SfLoader.innerHTML = '';
|
|
16766
16782
|
}
|
|
16767
16783
|
else {
|
|
16784
|
+
if (xhr.status == 401) {
|
|
16785
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
16786
|
+
this.dispatchEvent(changeEvent);
|
|
16787
|
+
}
|
|
16768
16788
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16769
16789
|
this.setError(jsonRespose.error);
|
|
16770
16790
|
setTimeout(() => {
|
|
@@ -16801,6 +16821,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16801
16821
|
this._SfLoader.innerHTML = '';
|
|
16802
16822
|
}
|
|
16803
16823
|
else {
|
|
16824
|
+
if (xhr.status == 401) {
|
|
16825
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
16826
|
+
this.dispatchEvent(changeEvent);
|
|
16827
|
+
}
|
|
16804
16828
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16805
16829
|
this.setError(jsonRespose.error);
|
|
16806
16830
|
setTimeout(() => {
|
|
@@ -16845,6 +16869,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16845
16869
|
this._SfLoader.innerHTML = '';
|
|
16846
16870
|
}
|
|
16847
16871
|
else {
|
|
16872
|
+
if (xhr.status == 401) {
|
|
16873
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
16874
|
+
this.dispatchEvent(changeEvent);
|
|
16875
|
+
}
|
|
16848
16876
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16849
16877
|
this.setError(jsonRespose.error);
|
|
16850
16878
|
setTimeout(() => {
|
|
@@ -16868,6 +16896,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16868
16896
|
}, 3000);
|
|
16869
16897
|
}
|
|
16870
16898
|
else {
|
|
16899
|
+
if (xhr.status == 401) {
|
|
16900
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
16901
|
+
this.dispatchEvent(changeEvent);
|
|
16902
|
+
}
|
|
16871
16903
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16872
16904
|
this.setError(jsonRespose.error);
|
|
16873
16905
|
setTimeout(() => {
|
|
@@ -16902,6 +16934,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16902
16934
|
}, 5000);
|
|
16903
16935
|
}
|
|
16904
16936
|
else {
|
|
16937
|
+
if (xhr.status == 401) {
|
|
16938
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
16939
|
+
this.dispatchEvent(changeEvent);
|
|
16940
|
+
}
|
|
16905
16941
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16906
16942
|
this.setError(jsonRespose.error);
|
|
16907
16943
|
setTimeout(() => {
|
|
@@ -16928,6 +16964,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16928
16964
|
}, 3000);
|
|
16929
16965
|
}
|
|
16930
16966
|
else {
|
|
16967
|
+
if (xhr.status == 401) {
|
|
16968
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
16969
|
+
this.dispatchEvent(changeEvent);
|
|
16970
|
+
}
|
|
16931
16971
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16932
16972
|
this.setError(jsonRespose.error);
|
|
16933
16973
|
setTimeout(() => {
|
|
@@ -16970,6 +17010,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16970
17010
|
}, 2000);
|
|
16971
17011
|
}
|
|
16972
17012
|
else {
|
|
17013
|
+
if (xhr.status == 401) {
|
|
17014
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17015
|
+
this.dispatchEvent(changeEvent);
|
|
17016
|
+
}
|
|
16973
17017
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16974
17018
|
this.setError(jsonRespose.error);
|
|
16975
17019
|
retValue = false;
|
|
@@ -16988,6 +17032,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
16988
17032
|
}, 10000);
|
|
16989
17033
|
}
|
|
16990
17034
|
else {
|
|
17035
|
+
if (xhr.status == 401) {
|
|
17036
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17037
|
+
this.dispatchEvent(changeEvent);
|
|
17038
|
+
}
|
|
16991
17039
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
16992
17040
|
this.setError(jsonRespose.error);
|
|
16993
17041
|
}
|
|
@@ -17028,6 +17076,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17028
17076
|
}, 2000);
|
|
17029
17077
|
}
|
|
17030
17078
|
else {
|
|
17079
|
+
if (xhr.status == 401) {
|
|
17080
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17081
|
+
this.dispatchEvent(changeEvent);
|
|
17082
|
+
}
|
|
17031
17083
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17032
17084
|
this.setError(jsonRespose.error);
|
|
17033
17085
|
setTimeout(() => {
|
|
@@ -17049,6 +17101,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17049
17101
|
}, 10000);
|
|
17050
17102
|
}
|
|
17051
17103
|
else {
|
|
17104
|
+
if (xhr.status == 401) {
|
|
17105
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17106
|
+
this.dispatchEvent(changeEvent);
|
|
17107
|
+
}
|
|
17052
17108
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17053
17109
|
this.setError(jsonRespose.error);
|
|
17054
17110
|
setTimeout(() => {
|
|
@@ -17068,6 +17124,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17068
17124
|
}, 10000);
|
|
17069
17125
|
}
|
|
17070
17126
|
else {
|
|
17127
|
+
if (xhr.status == 401) {
|
|
17128
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17129
|
+
this.dispatchEvent(changeEvent);
|
|
17130
|
+
}
|
|
17071
17131
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17072
17132
|
this.setError(jsonRespose.error);
|
|
17073
17133
|
setTimeout(() => {
|
|
@@ -17119,6 +17179,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17119
17179
|
}, 2000);
|
|
17120
17180
|
}
|
|
17121
17181
|
else {
|
|
17182
|
+
if (xhr.status == 401) {
|
|
17183
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17184
|
+
this.dispatchEvent(changeEvent);
|
|
17185
|
+
}
|
|
17122
17186
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17123
17187
|
console.log();
|
|
17124
17188
|
this.setError(jsonRespose.error);
|
|
@@ -17145,6 +17209,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17145
17209
|
}
|
|
17146
17210
|
}
|
|
17147
17211
|
else {
|
|
17212
|
+
if (xhr.status == 401) {
|
|
17213
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17214
|
+
this.dispatchEvent(changeEvent);
|
|
17215
|
+
}
|
|
17148
17216
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17149
17217
|
this.setError(jsonRespose.error);
|
|
17150
17218
|
setTimeout(() => {
|
|
@@ -17180,6 +17248,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17180
17248
|
}, 2000);
|
|
17181
17249
|
}
|
|
17182
17250
|
else {
|
|
17251
|
+
if (xhr.status == 401) {
|
|
17252
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17253
|
+
this.dispatchEvent(changeEvent);
|
|
17254
|
+
}
|
|
17183
17255
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17184
17256
|
this.setError(jsonRespose.error);
|
|
17185
17257
|
}
|
|
@@ -17199,6 +17271,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17199
17271
|
this.renderMappingTabs(this.TAB_REPORTER);
|
|
17200
17272
|
}
|
|
17201
17273
|
else {
|
|
17274
|
+
if (xhr.status == 401) {
|
|
17275
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17276
|
+
this.dispatchEvent(changeEvent);
|
|
17277
|
+
}
|
|
17202
17278
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17203
17279
|
this.setError(jsonRespose.error);
|
|
17204
17280
|
}
|
|
@@ -17214,6 +17290,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17214
17290
|
//console.log('jsonResponse sync', jsonRespose);
|
|
17215
17291
|
}
|
|
17216
17292
|
else {
|
|
17293
|
+
if (xhr.status == 401) {
|
|
17294
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17295
|
+
this.dispatchEvent(changeEvent);
|
|
17296
|
+
}
|
|
17217
17297
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17218
17298
|
this.setError(jsonRespose.error);
|
|
17219
17299
|
}
|
|
@@ -17310,6 +17390,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17310
17390
|
return jsonRespose;
|
|
17311
17391
|
}
|
|
17312
17392
|
else {
|
|
17393
|
+
if (xhr.status == 401) {
|
|
17394
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17395
|
+
this.dispatchEvent(changeEvent);
|
|
17396
|
+
}
|
|
17313
17397
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17314
17398
|
this.setError(jsonRespose.error);
|
|
17315
17399
|
}
|
|
@@ -17325,6 +17409,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17325
17409
|
return jsonRespose;
|
|
17326
17410
|
}
|
|
17327
17411
|
else {
|
|
17412
|
+
if (xhr.status == 401) {
|
|
17413
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17414
|
+
this.dispatchEvent(changeEvent);
|
|
17415
|
+
}
|
|
17328
17416
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17329
17417
|
this.setError(jsonRespose.error);
|
|
17330
17418
|
}
|
|
@@ -17340,6 +17428,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17340
17428
|
return jsonRespose;
|
|
17341
17429
|
}
|
|
17342
17430
|
else {
|
|
17431
|
+
if (xhr.status == 401) {
|
|
17432
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17433
|
+
this.dispatchEvent(changeEvent);
|
|
17434
|
+
}
|
|
17343
17435
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17344
17436
|
this.setError(jsonRespose.error);
|
|
17345
17437
|
}
|
|
@@ -17376,6 +17468,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17376
17468
|
return jsonRespose;
|
|
17377
17469
|
}
|
|
17378
17470
|
else {
|
|
17471
|
+
if (xhr.status == 401) {
|
|
17472
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17473
|
+
this.dispatchEvent(changeEvent);
|
|
17474
|
+
}
|
|
17379
17475
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17380
17476
|
this.setError(jsonRespose.error);
|
|
17381
17477
|
}
|
|
@@ -17391,6 +17487,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17391
17487
|
return jsonRespose;
|
|
17392
17488
|
}
|
|
17393
17489
|
else {
|
|
17490
|
+
if (xhr.status == 401) {
|
|
17491
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17492
|
+
this.dispatchEvent(changeEvent);
|
|
17493
|
+
}
|
|
17394
17494
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17395
17495
|
this.setError(jsonRespose.error);
|
|
17396
17496
|
}
|
|
@@ -17406,6 +17506,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17406
17506
|
return jsonRespose;
|
|
17407
17507
|
}
|
|
17408
17508
|
else {
|
|
17509
|
+
if (xhr.status == 401) {
|
|
17510
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17511
|
+
this.dispatchEvent(changeEvent);
|
|
17512
|
+
}
|
|
17409
17513
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17410
17514
|
this.setError(jsonRespose.error);
|
|
17411
17515
|
}
|
|
@@ -17479,6 +17583,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17479
17583
|
return jsonRespose;
|
|
17480
17584
|
}
|
|
17481
17585
|
else {
|
|
17586
|
+
if (xhr.status == 401) {
|
|
17587
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17588
|
+
this.dispatchEvent(changeEvent);
|
|
17589
|
+
}
|
|
17482
17590
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17483
17591
|
this.setError(jsonRespose.error);
|
|
17484
17592
|
}
|
|
@@ -17554,6 +17662,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17554
17662
|
return jsonRespose;
|
|
17555
17663
|
}
|
|
17556
17664
|
else {
|
|
17665
|
+
if (xhr.status == 401) {
|
|
17666
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17667
|
+
this.dispatchEvent(changeEvent);
|
|
17668
|
+
}
|
|
17557
17669
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17558
17670
|
this.setError(jsonRespose.error);
|
|
17559
17671
|
}
|
|
@@ -17592,6 +17704,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17592
17704
|
return jsonRespose;
|
|
17593
17705
|
}
|
|
17594
17706
|
else {
|
|
17707
|
+
if (xhr.status == 401) {
|
|
17708
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17709
|
+
this.dispatchEvent(changeEvent);
|
|
17710
|
+
}
|
|
17595
17711
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17596
17712
|
this.setError(jsonRespose.error);
|
|
17597
17713
|
}
|
|
@@ -17628,6 +17744,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17628
17744
|
return jsonRespose;
|
|
17629
17745
|
}
|
|
17630
17746
|
else {
|
|
17747
|
+
if (xhr.status == 401) {
|
|
17748
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17749
|
+
this.dispatchEvent(changeEvent);
|
|
17750
|
+
}
|
|
17631
17751
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17632
17752
|
this.setError(jsonRespose.error);
|
|
17633
17753
|
}
|
|
@@ -17643,6 +17763,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17643
17763
|
return jsonRespose;
|
|
17644
17764
|
}
|
|
17645
17765
|
else {
|
|
17766
|
+
if (xhr.status == 401) {
|
|
17767
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17768
|
+
this.dispatchEvent(changeEvent);
|
|
17769
|
+
}
|
|
17646
17770
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17647
17771
|
this.setError(jsonRespose.error);
|
|
17648
17772
|
}
|
|
@@ -17658,6 +17782,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17658
17782
|
return jsonRespose;
|
|
17659
17783
|
}
|
|
17660
17784
|
else {
|
|
17785
|
+
if (xhr.status == 401) {
|
|
17786
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17787
|
+
this.dispatchEvent(changeEvent);
|
|
17788
|
+
}
|
|
17661
17789
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17662
17790
|
this.setError(jsonRespose.error);
|
|
17663
17791
|
}
|
|
@@ -17673,6 +17801,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17673
17801
|
return jsonRespose;
|
|
17674
17802
|
}
|
|
17675
17803
|
else {
|
|
17804
|
+
if (xhr.status == 401) {
|
|
17805
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17806
|
+
this.dispatchEvent(changeEvent);
|
|
17807
|
+
}
|
|
17676
17808
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17677
17809
|
this.setError(jsonRespose.error);
|
|
17678
17810
|
}
|
|
@@ -17688,6 +17820,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17688
17820
|
return jsonRespose;
|
|
17689
17821
|
}
|
|
17690
17822
|
else {
|
|
17823
|
+
if (xhr.status == 401) {
|
|
17824
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17825
|
+
this.dispatchEvent(changeEvent);
|
|
17826
|
+
}
|
|
17691
17827
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17692
17828
|
this.setError(jsonRespose.error);
|
|
17693
17829
|
}
|
|
@@ -17710,6 +17846,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17710
17846
|
// return jsonRespose;
|
|
17711
17847
|
}
|
|
17712
17848
|
else {
|
|
17849
|
+
if (xhr.status == 401) {
|
|
17850
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17851
|
+
this.dispatchEvent(changeEvent);
|
|
17852
|
+
}
|
|
17713
17853
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17714
17854
|
this.setError(jsonRespose.error);
|
|
17715
17855
|
}
|
|
@@ -17834,6 +17974,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17834
17974
|
// }
|
|
17835
17975
|
}
|
|
17836
17976
|
else {
|
|
17977
|
+
if (xhr.status == 401) {
|
|
17978
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
17979
|
+
this.dispatchEvent(changeEvent);
|
|
17980
|
+
}
|
|
17837
17981
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17838
17982
|
this.setError(jsonRespose.error);
|
|
17839
17983
|
}
|
|
@@ -17866,6 +18010,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17866
18010
|
}
|
|
17867
18011
|
}
|
|
17868
18012
|
else {
|
|
18013
|
+
if (xhr.status == 401) {
|
|
18014
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18015
|
+
this.dispatchEvent(changeEvent);
|
|
18016
|
+
}
|
|
17869
18017
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17870
18018
|
this.setError(jsonRespose.error);
|
|
17871
18019
|
}
|
|
@@ -17952,6 +18100,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17952
18100
|
return resultPresigned;
|
|
17953
18101
|
}
|
|
17954
18102
|
else {
|
|
18103
|
+
if (xhr.status == 401) {
|
|
18104
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18105
|
+
this.dispatchEvent(changeEvent);
|
|
18106
|
+
}
|
|
17955
18107
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17956
18108
|
this.setError(jsonRespose.error);
|
|
17957
18109
|
}
|
|
@@ -17967,6 +18119,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17967
18119
|
return jsonRespose;
|
|
17968
18120
|
}
|
|
17969
18121
|
else {
|
|
18122
|
+
if (xhr.status == 401) {
|
|
18123
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18124
|
+
this.dispatchEvent(changeEvent);
|
|
18125
|
+
}
|
|
17970
18126
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17971
18127
|
this.setError(jsonRespose.error);
|
|
17972
18128
|
}
|
|
@@ -17982,6 +18138,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
17982
18138
|
return jsonRespose;
|
|
17983
18139
|
}
|
|
17984
18140
|
else {
|
|
18141
|
+
if (xhr.status == 401) {
|
|
18142
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18143
|
+
this.dispatchEvent(changeEvent);
|
|
18144
|
+
}
|
|
17985
18145
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
17986
18146
|
this.setError(jsonRespose.error);
|
|
17987
18147
|
}
|
|
@@ -18002,6 +18162,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18002
18162
|
return jsonRespose;
|
|
18003
18163
|
}
|
|
18004
18164
|
else {
|
|
18165
|
+
if (xhr.status == 401) {
|
|
18166
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18167
|
+
this.dispatchEvent(changeEvent);
|
|
18168
|
+
}
|
|
18005
18169
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18006
18170
|
this.setError(jsonRespose.error);
|
|
18007
18171
|
}
|
|
@@ -18017,6 +18181,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18017
18181
|
return jsonRespose;
|
|
18018
18182
|
}
|
|
18019
18183
|
else {
|
|
18184
|
+
if (xhr.status == 401) {
|
|
18185
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18186
|
+
this.dispatchEvent(changeEvent);
|
|
18187
|
+
}
|
|
18020
18188
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18021
18189
|
this.setError(jsonRespose.error);
|
|
18022
18190
|
}
|
|
@@ -18032,234 +18200,14 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18032
18200
|
return jsonRespose;
|
|
18033
18201
|
}
|
|
18034
18202
|
else {
|
|
18203
|
+
if (xhr.status == 401) {
|
|
18204
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18205
|
+
this.dispatchEvent(changeEvent);
|
|
18206
|
+
}
|
|
18035
18207
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18036
18208
|
this.setError(jsonRespose.error);
|
|
18037
18209
|
}
|
|
18038
18210
|
};
|
|
18039
|
-
// fetchInternalControlsJobs = async () => {
|
|
18040
|
-
// let url = "https://"+this.apiId+"/getinternalcontrolsjobs";
|
|
18041
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18042
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18043
|
-
// this._SfLoader.innerHTML = '';
|
|
18044
|
-
// if(xhr.status == 200) {
|
|
18045
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18046
|
-
// //console.log(jsonRespose);
|
|
18047
|
-
// return jsonRespose;
|
|
18048
|
-
// } else {
|
|
18049
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18050
|
-
// this.setError(jsonRespose.error);
|
|
18051
|
-
// }
|
|
18052
|
-
// }
|
|
18053
|
-
// fetchExtensionsJobs = async () => {
|
|
18054
|
-
// let url = "https://"+this.apiId+"/getalertschedulesjobs";
|
|
18055
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18056
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18057
|
-
// this._SfLoader.innerHTML = '';
|
|
18058
|
-
// if(xhr.status == 200) {
|
|
18059
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18060
|
-
// //console.log(jsonRespose);
|
|
18061
|
-
// return jsonRespose;
|
|
18062
|
-
// } else {
|
|
18063
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18064
|
-
// this.setError(jsonRespose.error);
|
|
18065
|
-
// }
|
|
18066
|
-
// }
|
|
18067
|
-
// fetchAlertSchedulesJobs = async () => {
|
|
18068
|
-
// let url = "https://"+this.apiId+"/getalertschedulesjobs";
|
|
18069
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18070
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18071
|
-
// this._SfLoader.innerHTML = '';
|
|
18072
|
-
// if(xhr.status == 200) {
|
|
18073
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18074
|
-
// //console.log(jsonRespose);
|
|
18075
|
-
// return jsonRespose;
|
|
18076
|
-
// } else {
|
|
18077
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18078
|
-
// this.setError(jsonRespose.error);
|
|
18079
|
-
// }
|
|
18080
|
-
// }
|
|
18081
|
-
// fetchDueDatesJobs = async () => {
|
|
18082
|
-
// let url = "https://"+this.apiId+"/getduedatesjobs";
|
|
18083
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18084
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18085
|
-
// this._SfLoader.innerHTML = '';
|
|
18086
|
-
// if(xhr.status == 200) {
|
|
18087
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18088
|
-
// //console.log(jsonRespose);
|
|
18089
|
-
// return jsonRespose;
|
|
18090
|
-
// } else {
|
|
18091
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18092
|
-
// this.setError(jsonRespose.error);
|
|
18093
|
-
// }
|
|
18094
|
-
// }
|
|
18095
|
-
// fetchApproversJobs = async () => {
|
|
18096
|
-
// let url = "https://"+this.apiId+"/getapproversjobs";
|
|
18097
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18098
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18099
|
-
// this._SfLoader.innerHTML = '';
|
|
18100
|
-
// if(xhr.status == 200) {
|
|
18101
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18102
|
-
// //console.log(jsonRespose);
|
|
18103
|
-
// return jsonRespose;
|
|
18104
|
-
// } else {
|
|
18105
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18106
|
-
// this.setError(jsonRespose.error);
|
|
18107
|
-
// }
|
|
18108
|
-
// }
|
|
18109
|
-
// fetchFunctionHeadsJobs = async () => {
|
|
18110
|
-
// let url = "https://"+this.apiId+"/getfunctionheadsjobs";
|
|
18111
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18112
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18113
|
-
// this._SfLoader.innerHTML = '';
|
|
18114
|
-
// if(xhr.status == 200) {
|
|
18115
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18116
|
-
// //console.log(jsonRespose);
|
|
18117
|
-
// return jsonRespose;
|
|
18118
|
-
// } else {
|
|
18119
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18120
|
-
// this.setError(jsonRespose.error);
|
|
18121
|
-
// }
|
|
18122
|
-
// }
|
|
18123
|
-
// fetchMakerCheckersJobs = async () => {
|
|
18124
|
-
// let url = "https://"+this.apiId+"/getmakercheckersjobs";
|
|
18125
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18126
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18127
|
-
// this._SfLoader.innerHTML = '';
|
|
18128
|
-
// if(xhr.status == 200) {
|
|
18129
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18130
|
-
// //console.log(jsonRespose);
|
|
18131
|
-
// return jsonRespose;
|
|
18132
|
-
// } else {
|
|
18133
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18134
|
-
// this.setError(jsonRespose.error);
|
|
18135
|
-
// }
|
|
18136
|
-
// }
|
|
18137
|
-
// fetchDocsJobs = async () => {
|
|
18138
|
-
// let url = "https://"+this.apiId+"/getdocsjobs";
|
|
18139
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18140
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18141
|
-
// this._SfLoader.innerHTML = '';
|
|
18142
|
-
// if(xhr.status == 200) {
|
|
18143
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18144
|
-
// //console.log(jsonRespose);
|
|
18145
|
-
// return jsonRespose;
|
|
18146
|
-
// } else {
|
|
18147
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18148
|
-
// this.setError(jsonRespose.error);
|
|
18149
|
-
// }
|
|
18150
|
-
// }
|
|
18151
|
-
// fetchAuditorsJobs = async () => {
|
|
18152
|
-
// let url = "https://"+this.apiId+"/getauditorsjobs";
|
|
18153
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18154
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18155
|
-
// this._SfLoader.innerHTML = '';
|
|
18156
|
-
// if(xhr.status == 200) {
|
|
18157
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18158
|
-
// //console.log(jsonRespose);
|
|
18159
|
-
// return jsonRespose;
|
|
18160
|
-
// } else {
|
|
18161
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18162
|
-
// this.setError(jsonRespose.error);
|
|
18163
|
-
// }
|
|
18164
|
-
// }
|
|
18165
|
-
// fetchViewersJobs = async () => {
|
|
18166
|
-
// let url = "https://"+this.apiId+"/getviewersjobs";
|
|
18167
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18168
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18169
|
-
// this._SfLoader.innerHTML = '';
|
|
18170
|
-
// if(xhr.status == 200) {
|
|
18171
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18172
|
-
// //console.log(jsonRespose);
|
|
18173
|
-
// return jsonRespose;
|
|
18174
|
-
// } else {
|
|
18175
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18176
|
-
// this.setError(jsonRespose.error);
|
|
18177
|
-
// }
|
|
18178
|
-
// }
|
|
18179
|
-
// fetchReportersJobs = async () => {
|
|
18180
|
-
// let url = "https://"+this.apiId+"/getreportersjobs";
|
|
18181
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18182
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18183
|
-
// this._SfLoader.innerHTML = '';
|
|
18184
|
-
// if(xhr.status == 200) {
|
|
18185
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18186
|
-
// //console.log(jsonRespose);
|
|
18187
|
-
// return jsonRespose;
|
|
18188
|
-
// } else {
|
|
18189
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18190
|
-
// this.setError(jsonRespose.error);
|
|
18191
|
-
// }
|
|
18192
|
-
// }
|
|
18193
|
-
// fetchTagsJobs = async () => {
|
|
18194
|
-
// let url = "https://"+this.apiId+"/gettagsjobs";
|
|
18195
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18196
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18197
|
-
// this._SfLoader.innerHTML = '';
|
|
18198
|
-
// if(xhr.status == 200) {
|
|
18199
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18200
|
-
// //console.log(jsonRespose);
|
|
18201
|
-
// return jsonRespose;
|
|
18202
|
-
// } else {
|
|
18203
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18204
|
-
// this.setError(jsonRespose.error);
|
|
18205
|
-
// }
|
|
18206
|
-
// }
|
|
18207
|
-
// fetchLocationsJobs = async () => {
|
|
18208
|
-
// let url = "https://"+this.apiId+"/getlocationsjobs";
|
|
18209
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18210
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18211
|
-
// this._SfLoader.innerHTML = '';
|
|
18212
|
-
// if(xhr.status == 200) {
|
|
18213
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18214
|
-
// //console.log(jsonRespose);
|
|
18215
|
-
// return jsonRespose;
|
|
18216
|
-
// } else {
|
|
18217
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18218
|
-
// this.setError(jsonRespose.error);
|
|
18219
|
-
// }
|
|
18220
|
-
// }
|
|
18221
|
-
// fetchCountriesJobs = async () => {
|
|
18222
|
-
// let url = "https://"+this.apiId+"/getcountriesjobs";
|
|
18223
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18224
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18225
|
-
// this._SfLoader.innerHTML = '';
|
|
18226
|
-
// if(xhr.status == 200) {
|
|
18227
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18228
|
-
// //console.log(jsonRespose);
|
|
18229
|
-
// return jsonRespose;
|
|
18230
|
-
// } else {
|
|
18231
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18232
|
-
// this.setError(jsonRespose.error);
|
|
18233
|
-
// }
|
|
18234
|
-
// }
|
|
18235
|
-
// fetchEntitiesJobs = async () => {
|
|
18236
|
-
// let url = "https://"+this.apiId+"/getentitiesjobs";
|
|
18237
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18238
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18239
|
-
// this._SfLoader.innerHTML = '';
|
|
18240
|
-
// if(xhr.status == 200) {
|
|
18241
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18242
|
-
// //console.log(jsonRespose);
|
|
18243
|
-
// return jsonRespose;
|
|
18244
|
-
// } else {
|
|
18245
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18246
|
-
// this.setError(jsonRespose.error);
|
|
18247
|
-
// }
|
|
18248
|
-
// }
|
|
18249
|
-
// fetchFunctionJobs = async () => {
|
|
18250
|
-
// let url = "https://"+this.apiId+"/getfunctionsjobs";
|
|
18251
|
-
// const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
18252
|
-
// const xhr : any = (await this.prepareXhr({"projectid": this.projectId}, url, this._SfLoader, authorization)) as any;
|
|
18253
|
-
// this._SfLoader.innerHTML = '';
|
|
18254
|
-
// if(xhr.status == 200) {
|
|
18255
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18256
|
-
// //console.log(jsonRespose);
|
|
18257
|
-
// return jsonRespose;
|
|
18258
|
-
// } else {
|
|
18259
|
-
// const jsonRespose = JSON.parse(xhr.responseText);
|
|
18260
|
-
// this.setError(jsonRespose.error);
|
|
18261
|
-
// }
|
|
18262
|
-
// }
|
|
18263
18211
|
this.fetchCalendarJobs = async () => {
|
|
18264
18212
|
let url = "https://" + this.apiId + "/getcalendarjobs";
|
|
18265
18213
|
const authorization = btoa(Util.readCookie('email') + ":" + Util.readCookie('accessToken'));
|
|
@@ -18271,6 +18219,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18271
18219
|
return jsonRespose;
|
|
18272
18220
|
}
|
|
18273
18221
|
else {
|
|
18222
|
+
if (xhr.status == 401) {
|
|
18223
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18224
|
+
this.dispatchEvent(changeEvent);
|
|
18225
|
+
}
|
|
18274
18226
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18275
18227
|
this.setError(jsonRespose.error);
|
|
18276
18228
|
}
|
|
@@ -18291,6 +18243,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18291
18243
|
this.processEvent(jsonRespose.data.value);
|
|
18292
18244
|
}
|
|
18293
18245
|
else {
|
|
18246
|
+
if (xhr.status == 401) {
|
|
18247
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18248
|
+
this.dispatchEvent(changeEvent);
|
|
18249
|
+
}
|
|
18294
18250
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18295
18251
|
this.setError(jsonRespose.error);
|
|
18296
18252
|
}
|
|
@@ -18310,6 +18266,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18310
18266
|
return jsonRespose;
|
|
18311
18267
|
}
|
|
18312
18268
|
else {
|
|
18269
|
+
if (xhr.status == 401) {
|
|
18270
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18271
|
+
this.dispatchEvent(changeEvent);
|
|
18272
|
+
}
|
|
18313
18273
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18314
18274
|
return jsonRespose;
|
|
18315
18275
|
}
|
|
@@ -18366,6 +18326,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18366
18326
|
//console.log(jsonRespose);
|
|
18367
18327
|
return registers;
|
|
18368
18328
|
}
|
|
18329
|
+
else if (xhr.status == 401) {
|
|
18330
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18331
|
+
this.dispatchEvent(changeEvent);
|
|
18332
|
+
}
|
|
18369
18333
|
};
|
|
18370
18334
|
this.renderWithFeatures = async (startDate = "", endDate = "", searchString = "", list = "yes", month = "00") => {
|
|
18371
18335
|
this.events = [];
|
|
@@ -18468,6 +18432,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18468
18432
|
// } while(1)
|
|
18469
18433
|
}
|
|
18470
18434
|
else {
|
|
18435
|
+
if (xhr.status == 401) {
|
|
18436
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18437
|
+
this.dispatchEvent(changeEvent);
|
|
18438
|
+
}
|
|
18471
18439
|
if (xhr.status === 404) {
|
|
18472
18440
|
this.showChosenProject();
|
|
18473
18441
|
this._SfTitleChosenProject.innerHTML = this._SfProject[0].querySelector('#sf-i-project').selectedTexts()[0];
|
|
@@ -18533,6 +18501,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18533
18501
|
console.log('notices', notices, tempEvents);
|
|
18534
18502
|
}
|
|
18535
18503
|
else {
|
|
18504
|
+
if (xhr.status == 401) {
|
|
18505
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18506
|
+
this.dispatchEvent(changeEvent);
|
|
18507
|
+
}
|
|
18536
18508
|
if (xhr.status === 404) {
|
|
18537
18509
|
this.showChosenProject();
|
|
18538
18510
|
this._SfTitleChosenProject.innerHTML = this._SfProject[0].querySelector('#sf-i-project').selectedTexts()[0];
|
|
@@ -18605,6 +18577,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18605
18577
|
return jsonRespose.meta;
|
|
18606
18578
|
}
|
|
18607
18579
|
else {
|
|
18580
|
+
if (xhr.status == 401) {
|
|
18581
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18582
|
+
this.dispatchEvent(changeEvent);
|
|
18583
|
+
}
|
|
18608
18584
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18609
18585
|
this.setError(jsonRespose.error);
|
|
18610
18586
|
}
|
|
@@ -18663,6 +18639,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18663
18639
|
}
|
|
18664
18640
|
}
|
|
18665
18641
|
}
|
|
18642
|
+
else if (xhr.status == 401) {
|
|
18643
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18644
|
+
this.dispatchEvent(changeEvent);
|
|
18645
|
+
}
|
|
18666
18646
|
};
|
|
18667
18647
|
this.fetchUserCalendar = async () => {
|
|
18668
18648
|
let url = "https://" + this.apiId + "/getuserevents";
|
|
@@ -18681,6 +18661,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18681
18661
|
// this.renderChosenProject(events);
|
|
18682
18662
|
}
|
|
18683
18663
|
else {
|
|
18664
|
+
if (xhr.status == 401) {
|
|
18665
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18666
|
+
this.dispatchEvent(changeEvent);
|
|
18667
|
+
}
|
|
18684
18668
|
if (xhr.status === 404) {
|
|
18685
18669
|
this.showChosenProject();
|
|
18686
18670
|
this._SfTitleChosenProject.innerHTML = this._SfProject[0].querySelector('#sf-i-project').selectedTexts()[0];
|
|
@@ -18711,6 +18695,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18711
18695
|
// this.renderChosenProject(events);
|
|
18712
18696
|
}
|
|
18713
18697
|
else {
|
|
18698
|
+
if (xhr.status == 401) {
|
|
18699
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18700
|
+
this.dispatchEvent(changeEvent);
|
|
18701
|
+
}
|
|
18714
18702
|
if (xhr.status === 404) {
|
|
18715
18703
|
this.showChosenProject();
|
|
18716
18704
|
this._SfTitleChosenProject.innerHTML = this._SfProject[0].querySelector('#sf-i-project').selectedTexts()[0];
|
|
@@ -18732,6 +18720,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18732
18720
|
//console.log(jsonRespose);
|
|
18733
18721
|
}
|
|
18734
18722
|
else {
|
|
18723
|
+
if (xhr.status == 401) {
|
|
18724
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18725
|
+
this.dispatchEvent(changeEvent);
|
|
18726
|
+
}
|
|
18735
18727
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18736
18728
|
this.setError(jsonRespose.error);
|
|
18737
18729
|
this.fetchList();
|
|
@@ -18766,6 +18758,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18766
18758
|
return jsonRespose;
|
|
18767
18759
|
}
|
|
18768
18760
|
else {
|
|
18761
|
+
if (xhr.status == 401) {
|
|
18762
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18763
|
+
this.dispatchEvent(changeEvent);
|
|
18764
|
+
}
|
|
18769
18765
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18770
18766
|
this.setError(jsonRespose.error);
|
|
18771
18767
|
this.fetchList();
|
|
@@ -18799,6 +18795,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18799
18795
|
}
|
|
18800
18796
|
}
|
|
18801
18797
|
else {
|
|
18798
|
+
if (xhr.status == 401) {
|
|
18799
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18800
|
+
this.dispatchEvent(changeEvent);
|
|
18801
|
+
}
|
|
18802
18802
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18803
18803
|
this.setError(jsonRespose.error);
|
|
18804
18804
|
this.fetchList();
|
|
@@ -18833,6 +18833,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
18833
18833
|
//await this.fetchAdhoc(true);
|
|
18834
18834
|
}
|
|
18835
18835
|
else {
|
|
18836
|
+
if (xhr.status == 401) {
|
|
18837
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
18838
|
+
this.dispatchEvent(changeEvent);
|
|
18839
|
+
}
|
|
18836
18840
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
18837
18841
|
this.setError(jsonRespose.error);
|
|
18838
18842
|
}
|
|
@@ -19047,6 +19051,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19047
19051
|
}, 2000);
|
|
19048
19052
|
}
|
|
19049
19053
|
else {
|
|
19054
|
+
if (xhr.status == 401) {
|
|
19055
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
19056
|
+
this.dispatchEvent(changeEvent);
|
|
19057
|
+
}
|
|
19050
19058
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
19051
19059
|
this.setError(jsonRespose.error);
|
|
19052
19060
|
setTimeout(() => {
|
|
@@ -19092,6 +19100,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19092
19100
|
this.renderNextEvents(jsonRespose.data, page, role);
|
|
19093
19101
|
}
|
|
19094
19102
|
else {
|
|
19103
|
+
if (xhr.status == 401) {
|
|
19104
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
19105
|
+
this.dispatchEvent(changeEvent);
|
|
19106
|
+
}
|
|
19095
19107
|
if (xhr.status === 404) {
|
|
19096
19108
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
19097
19109
|
this.setError(jsonRespose.error);
|
|
@@ -19509,6 +19521,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19509
19521
|
this.renderReports(arrReports);
|
|
19510
19522
|
}
|
|
19511
19523
|
else {
|
|
19524
|
+
if (xhr.status == 401) {
|
|
19525
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
19526
|
+
this.dispatchEvent(changeEvent);
|
|
19527
|
+
}
|
|
19512
19528
|
if (xhr.status === 404) {
|
|
19513
19529
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
19514
19530
|
this.setError(jsonRespose.error);
|
|
@@ -19661,6 +19677,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19661
19677
|
// this.renderReportsComplainces(arrCompliances, sortid);
|
|
19662
19678
|
}
|
|
19663
19679
|
else {
|
|
19680
|
+
if (xhr.status == 401) {
|
|
19681
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
19682
|
+
this.dispatchEvent(changeEvent);
|
|
19683
|
+
}
|
|
19664
19684
|
if (xhr.status === 404) {
|
|
19665
19685
|
this.showChosenProject();
|
|
19666
19686
|
this._SfTitleChosenProject.innerHTML = this._SfProject[0].querySelector('#sf-i-project').selectedTexts()[0];
|
|
@@ -19737,6 +19757,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19737
19757
|
this.renderReportsComplainces(arrCompliances, sortid);
|
|
19738
19758
|
}
|
|
19739
19759
|
else {
|
|
19760
|
+
if (xhr.status == 401) {
|
|
19761
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
19762
|
+
this.dispatchEvent(changeEvent);
|
|
19763
|
+
}
|
|
19740
19764
|
if (xhr.status === 404) {
|
|
19741
19765
|
this.showChosenProject();
|
|
19742
19766
|
this._SfTitleChosenProject.innerHTML = this._SfProject[0].querySelector('#sf-i-project').selectedTexts()[0];
|
|
@@ -19870,6 +19894,10 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
19870
19894
|
}, 3000);
|
|
19871
19895
|
}
|
|
19872
19896
|
else {
|
|
19897
|
+
if (xhr.status == 401) {
|
|
19898
|
+
let changeEvent = new CustomEvent('tokenExpired', { bubbles: true });
|
|
19899
|
+
this.dispatchEvent(changeEvent);
|
|
19900
|
+
}
|
|
19873
19901
|
if (xhr.status === 404) {
|
|
19874
19902
|
const jsonRespose = JSON.parse(xhr.responseText);
|
|
19875
19903
|
this.setError(jsonRespose.error);
|
|
@@ -20295,7 +20323,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
20295
20323
|
`;
|
|
20296
20324
|
}
|
|
20297
20325
|
else if (this.mode == "downloader") {
|
|
20298
|
-
|
|
20326
|
+
/* eslint-disable lit/no-unknown-attribute */
|
|
20299
20327
|
return html `
|
|
20300
20328
|
|
|
20301
20329
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
|
@@ -20345,6 +20373,7 @@ let SfIEvents = class SfIEvents extends LitElement {
|
|
|
20345
20373
|
</div>
|
|
20346
20374
|
|
|
20347
20375
|
`;
|
|
20376
|
+
/* eslint-disable lit/no-unknown-attribute */
|
|
20348
20377
|
}
|
|
20349
20378
|
else if (this.mode == "next") {
|
|
20350
20379
|
return html `
|