@itentialopensource/adapter-zscaler 0.10.0 → 0.10.2
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/CHANGELOG.md +16 -0
- package/TAB2.md +2 -2
- package/adapter.js +235 -2378
- package/metadata.json +5 -0
- package/package.json +1 -1
- package/refs?service=git-upload-pack +0 -0
- package/report/adapterInfo.json +3 -3
package/adapter.js
CHANGED
|
@@ -4485,7 +4485,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
4485
4485
|
const reqObj = {
|
|
4486
4486
|
payload: bodyVars,
|
|
4487
4487
|
uriPathVars: pathVars,
|
|
4488
|
-
uriQuery: queryParams
|
|
4488
|
+
uriQuery: queryParams,
|
|
4489
|
+
authData: this.getObfuscatedKey()
|
|
4489
4490
|
};
|
|
4490
4491
|
|
|
4491
4492
|
try {
|
|
@@ -4567,7 +4568,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
4567
4568
|
const reqObj = {
|
|
4568
4569
|
payload: bodyVars,
|
|
4569
4570
|
uriPathVars: pathVars,
|
|
4570
|
-
uriQuery: queryParams
|
|
4571
|
+
uriQuery: queryParams,
|
|
4572
|
+
authData: this.getObfuscatedKey()
|
|
4571
4573
|
};
|
|
4572
4574
|
|
|
4573
4575
|
try {
|
|
@@ -4646,7 +4648,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
4646
4648
|
const reqObj = {
|
|
4647
4649
|
payload: bodyVars,
|
|
4648
4650
|
uriPathVars: pathVars,
|
|
4649
|
-
uriQuery: queryParams
|
|
4651
|
+
uriQuery: queryParams,
|
|
4652
|
+
authData: this.getObfuscatedKey()
|
|
4650
4653
|
};
|
|
4651
4654
|
|
|
4652
4655
|
try {
|
|
@@ -4728,7 +4731,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
4728
4731
|
const reqObj = {
|
|
4729
4732
|
payload: bodyVars,
|
|
4730
4733
|
uriPathVars: pathVars,
|
|
4731
|
-
uriQuery: queryParams
|
|
4734
|
+
uriQuery: queryParams,
|
|
4735
|
+
authData: this.getObfuscatedKey()
|
|
4732
4736
|
};
|
|
4733
4737
|
|
|
4734
4738
|
try {
|
|
@@ -4812,7 +4816,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
4812
4816
|
const reqObj = {
|
|
4813
4817
|
payload: bodyVars,
|
|
4814
4818
|
uriPathVars: pathVars,
|
|
4815
|
-
uriQuery: queryParams
|
|
4819
|
+
uriQuery: queryParams,
|
|
4820
|
+
authData: this.getObfuscatedKey()
|
|
4816
4821
|
};
|
|
4817
4822
|
|
|
4818
4823
|
try {
|
|
@@ -4888,7 +4893,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
4888
4893
|
const reqObj = {
|
|
4889
4894
|
payload: bodyVars,
|
|
4890
4895
|
uriPathVars: pathVars,
|
|
4891
|
-
uriQuery: queryParams
|
|
4896
|
+
uriQuery: queryParams,
|
|
4897
|
+
authData: this.getObfuscatedKey()
|
|
4892
4898
|
};
|
|
4893
4899
|
|
|
4894
4900
|
try {
|
|
@@ -4970,7 +4976,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
4970
4976
|
const reqObj = {
|
|
4971
4977
|
payload: bodyVars,
|
|
4972
4978
|
uriPathVars: pathVars,
|
|
4973
|
-
uriQuery: queryParams
|
|
4979
|
+
uriQuery: queryParams,
|
|
4980
|
+
authData: this.getObfuscatedKey()
|
|
4974
4981
|
};
|
|
4975
4982
|
|
|
4976
4983
|
try {
|
|
@@ -5044,29 +5051,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
5044
5051
|
}
|
|
5045
5052
|
});
|
|
5046
5053
|
|
|
5047
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
5048
|
-
let thisHeaderData = null;
|
|
5049
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
5050
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
5051
|
-
try {
|
|
5052
|
-
// parse the additional headers object that was passed in
|
|
5053
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
5054
|
-
} catch (err) {
|
|
5055
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
5056
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5057
|
-
return callback(null, errorObj);
|
|
5058
|
-
}
|
|
5059
|
-
} else if (thisHeaderData === null) {
|
|
5060
|
-
thisHeaderData = { contentType: '' };
|
|
5061
|
-
}
|
|
5062
|
-
|
|
5063
5054
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
5064
5055
|
// see adapter code documentation for more information on the request object's fields
|
|
5065
5056
|
const reqObj = {
|
|
5066
5057
|
payload: bodyVars,
|
|
5067
5058
|
uriPathVars: pathVars,
|
|
5068
5059
|
uriQuery: queryParams,
|
|
5069
|
-
|
|
5060
|
+
authData: this.getObfuscatedKey()
|
|
5070
5061
|
};
|
|
5071
5062
|
|
|
5072
5063
|
try {
|
|
@@ -5142,29 +5133,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
5142
5133
|
}
|
|
5143
5134
|
});
|
|
5144
5135
|
|
|
5145
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
5146
|
-
let thisHeaderData = null;
|
|
5147
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
5148
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
5149
|
-
try {
|
|
5150
|
-
// parse the additional headers object that was passed in
|
|
5151
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
5152
|
-
} catch (err) {
|
|
5153
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
5154
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5155
|
-
return callback(null, errorObj);
|
|
5156
|
-
}
|
|
5157
|
-
} else if (thisHeaderData === null) {
|
|
5158
|
-
thisHeaderData = { contentType: '' };
|
|
5159
|
-
}
|
|
5160
|
-
|
|
5161
5136
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
5162
5137
|
// see adapter code documentation for more information on the request object's fields
|
|
5163
5138
|
const reqObj = {
|
|
5164
5139
|
payload: bodyVars,
|
|
5165
5140
|
uriPathVars: pathVars,
|
|
5166
5141
|
uriQuery: queryParams,
|
|
5167
|
-
|
|
5142
|
+
authData: this.getObfuscatedKey()
|
|
5168
5143
|
};
|
|
5169
5144
|
|
|
5170
5145
|
try {
|
|
@@ -5242,7 +5217,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
5242
5217
|
const reqObj = {
|
|
5243
5218
|
payload: bodyVars,
|
|
5244
5219
|
uriPathVars: pathVars,
|
|
5245
|
-
uriQuery: queryParams
|
|
5220
|
+
uriQuery: queryParams,
|
|
5221
|
+
authData: this.getObfuscatedKey()
|
|
5246
5222
|
};
|
|
5247
5223
|
|
|
5248
5224
|
try {
|
|
@@ -5319,29 +5295,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
5319
5295
|
}
|
|
5320
5296
|
});
|
|
5321
5297
|
|
|
5322
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
5323
|
-
let thisHeaderData = null;
|
|
5324
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
5325
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
5326
|
-
try {
|
|
5327
|
-
// parse the additional headers object that was passed in
|
|
5328
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
5329
|
-
} catch (err) {
|
|
5330
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
5331
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5332
|
-
return callback(null, errorObj);
|
|
5333
|
-
}
|
|
5334
|
-
} else if (thisHeaderData === null) {
|
|
5335
|
-
thisHeaderData = { contentType: '' };
|
|
5336
|
-
}
|
|
5337
|
-
|
|
5338
5298
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
5339
5299
|
// see adapter code documentation for more information on the request object's fields
|
|
5340
5300
|
const reqObj = {
|
|
5341
5301
|
payload: bodyVars,
|
|
5342
5302
|
uriPathVars: pathVars,
|
|
5343
5303
|
uriQuery: queryParams,
|
|
5344
|
-
|
|
5304
|
+
authData: this.getObfuscatedKey()
|
|
5345
5305
|
};
|
|
5346
5306
|
|
|
5347
5307
|
try {
|
|
@@ -5418,29 +5378,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
5418
5378
|
}
|
|
5419
5379
|
});
|
|
5420
5380
|
|
|
5421
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
5422
|
-
let thisHeaderData = null;
|
|
5423
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
5424
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
5425
|
-
try {
|
|
5426
|
-
// parse the additional headers object that was passed in
|
|
5427
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
5428
|
-
} catch (err) {
|
|
5429
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
5430
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5431
|
-
return callback(null, errorObj);
|
|
5432
|
-
}
|
|
5433
|
-
} else if (thisHeaderData === null) {
|
|
5434
|
-
thisHeaderData = { contentType: '' };
|
|
5435
|
-
}
|
|
5436
|
-
|
|
5437
5381
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
5438
5382
|
// see adapter code documentation for more information on the request object's fields
|
|
5439
5383
|
const reqObj = {
|
|
5440
5384
|
payload: bodyVars,
|
|
5441
5385
|
uriPathVars: pathVars,
|
|
5442
5386
|
uriQuery: queryParams,
|
|
5443
|
-
|
|
5387
|
+
authData: this.getObfuscatedKey()
|
|
5444
5388
|
};
|
|
5445
5389
|
|
|
5446
5390
|
try {
|
|
@@ -5523,7 +5467,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
5523
5467
|
const reqObj = {
|
|
5524
5468
|
payload: bodyVars,
|
|
5525
5469
|
uriPathVars: pathVars,
|
|
5526
|
-
uriQuery: queryParams
|
|
5470
|
+
uriQuery: queryParams,
|
|
5471
|
+
authData: this.getObfuscatedKey()
|
|
5527
5472
|
};
|
|
5528
5473
|
|
|
5529
5474
|
try {
|
|
@@ -5594,29 +5539,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
5594
5539
|
}
|
|
5595
5540
|
});
|
|
5596
5541
|
|
|
5597
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
5598
|
-
let thisHeaderData = null;
|
|
5599
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
5600
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
5601
|
-
try {
|
|
5602
|
-
// parse the additional headers object that was passed in
|
|
5603
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
5604
|
-
} catch (err) {
|
|
5605
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
5606
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5607
|
-
return callback(null, errorObj);
|
|
5608
|
-
}
|
|
5609
|
-
} else if (thisHeaderData === null) {
|
|
5610
|
-
thisHeaderData = { contentType: '' };
|
|
5611
|
-
}
|
|
5612
|
-
|
|
5613
5542
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
5614
5543
|
// see adapter code documentation for more information on the request object's fields
|
|
5615
5544
|
const reqObj = {
|
|
5616
5545
|
payload: bodyVars,
|
|
5617
5546
|
uriPathVars: pathVars,
|
|
5618
5547
|
uriQuery: queryParams,
|
|
5619
|
-
|
|
5548
|
+
authData: this.getObfuscatedKey()
|
|
5620
5549
|
};
|
|
5621
5550
|
|
|
5622
5551
|
try {
|
|
@@ -5688,29 +5617,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
5688
5617
|
}
|
|
5689
5618
|
});
|
|
5690
5619
|
|
|
5691
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
5692
|
-
let thisHeaderData = null;
|
|
5693
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
5694
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
5695
|
-
try {
|
|
5696
|
-
// parse the additional headers object that was passed in
|
|
5697
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
5698
|
-
} catch (err) {
|
|
5699
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
5700
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5701
|
-
return callback(null, errorObj);
|
|
5702
|
-
}
|
|
5703
|
-
} else if (thisHeaderData === null) {
|
|
5704
|
-
thisHeaderData = { contentType: '' };
|
|
5705
|
-
}
|
|
5706
|
-
|
|
5707
5620
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
5708
5621
|
// see adapter code documentation for more information on the request object's fields
|
|
5709
5622
|
const reqObj = {
|
|
5710
5623
|
payload: bodyVars,
|
|
5711
5624
|
uriPathVars: pathVars,
|
|
5712
5625
|
uriQuery: queryParams,
|
|
5713
|
-
|
|
5626
|
+
authData: this.getObfuscatedKey()
|
|
5714
5627
|
};
|
|
5715
5628
|
|
|
5716
5629
|
try {
|
|
@@ -5787,7 +5700,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
5787
5700
|
const reqObj = {
|
|
5788
5701
|
payload: bodyVars,
|
|
5789
5702
|
uriPathVars: pathVars,
|
|
5790
|
-
uriQuery: queryParams
|
|
5703
|
+
uriQuery: queryParams,
|
|
5704
|
+
authData: this.getObfuscatedKey()
|
|
5791
5705
|
};
|
|
5792
5706
|
|
|
5793
5707
|
try {
|
|
@@ -5858,29 +5772,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
5858
5772
|
}
|
|
5859
5773
|
});
|
|
5860
5774
|
|
|
5861
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
5862
|
-
let thisHeaderData = null;
|
|
5863
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
5864
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
5865
|
-
try {
|
|
5866
|
-
// parse the additional headers object that was passed in
|
|
5867
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
5868
|
-
} catch (err) {
|
|
5869
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
5870
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5871
|
-
return callback(null, errorObj);
|
|
5872
|
-
}
|
|
5873
|
-
} else if (thisHeaderData === null) {
|
|
5874
|
-
thisHeaderData = { contentType: '' };
|
|
5875
|
-
}
|
|
5876
|
-
|
|
5877
5775
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
5878
5776
|
// see adapter code documentation for more information on the request object's fields
|
|
5879
5777
|
const reqObj = {
|
|
5880
5778
|
payload: bodyVars,
|
|
5881
5779
|
uriPathVars: pathVars,
|
|
5882
5780
|
uriQuery: queryParams,
|
|
5883
|
-
|
|
5781
|
+
authData: this.getObfuscatedKey()
|
|
5884
5782
|
};
|
|
5885
5783
|
|
|
5886
5784
|
try {
|
|
@@ -5957,29 +5855,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
5957
5855
|
}
|
|
5958
5856
|
});
|
|
5959
5857
|
|
|
5960
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
5961
|
-
let thisHeaderData = null;
|
|
5962
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
5963
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
5964
|
-
try {
|
|
5965
|
-
// parse the additional headers object that was passed in
|
|
5966
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
5967
|
-
} catch (err) {
|
|
5968
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
5969
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5970
|
-
return callback(null, errorObj);
|
|
5971
|
-
}
|
|
5972
|
-
} else if (thisHeaderData === null) {
|
|
5973
|
-
thisHeaderData = { contentType: '' };
|
|
5974
|
-
}
|
|
5975
|
-
|
|
5976
5858
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
5977
5859
|
// see adapter code documentation for more information on the request object's fields
|
|
5978
5860
|
const reqObj = {
|
|
5979
5861
|
payload: bodyVars,
|
|
5980
5862
|
uriPathVars: pathVars,
|
|
5981
5863
|
uriQuery: queryParams,
|
|
5982
|
-
|
|
5864
|
+
authData: this.getObfuscatedKey()
|
|
5983
5865
|
};
|
|
5984
5866
|
|
|
5985
5867
|
try {
|
|
@@ -6062,7 +5944,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
6062
5944
|
const reqObj = {
|
|
6063
5945
|
payload: bodyVars,
|
|
6064
5946
|
uriPathVars: pathVars,
|
|
6065
|
-
uriQuery: queryParams
|
|
5947
|
+
uriQuery: queryParams,
|
|
5948
|
+
authData: this.getObfuscatedKey()
|
|
6066
5949
|
};
|
|
6067
5950
|
|
|
6068
5951
|
try {
|
|
@@ -6139,29 +6022,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
6139
6022
|
}
|
|
6140
6023
|
});
|
|
6141
6024
|
|
|
6142
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
6143
|
-
let thisHeaderData = null;
|
|
6144
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
6145
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
6146
|
-
try {
|
|
6147
|
-
// parse the additional headers object that was passed in
|
|
6148
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
6149
|
-
} catch (err) {
|
|
6150
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
6151
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6152
|
-
return callback(null, errorObj);
|
|
6153
|
-
}
|
|
6154
|
-
} else if (thisHeaderData === null) {
|
|
6155
|
-
thisHeaderData = { contentType: '' };
|
|
6156
|
-
}
|
|
6157
|
-
|
|
6158
6025
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
6159
6026
|
// see adapter code documentation for more information on the request object's fields
|
|
6160
6027
|
const reqObj = {
|
|
6161
6028
|
payload: bodyVars,
|
|
6162
6029
|
uriPathVars: pathVars,
|
|
6163
6030
|
uriQuery: queryParams,
|
|
6164
|
-
|
|
6031
|
+
authData: this.getObfuscatedKey()
|
|
6165
6032
|
};
|
|
6166
6033
|
|
|
6167
6034
|
try {
|
|
@@ -6243,7 +6110,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
6243
6110
|
const reqObj = {
|
|
6244
6111
|
payload: bodyVars,
|
|
6245
6112
|
uriPathVars: pathVars,
|
|
6246
|
-
uriQuery: queryParams
|
|
6113
|
+
uriQuery: queryParams,
|
|
6114
|
+
authData: this.getObfuscatedKey()
|
|
6247
6115
|
};
|
|
6248
6116
|
|
|
6249
6117
|
try {
|
|
@@ -6314,29 +6182,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
6314
6182
|
}
|
|
6315
6183
|
});
|
|
6316
6184
|
|
|
6317
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
6318
|
-
let thisHeaderData = null;
|
|
6319
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
6320
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
6321
|
-
try {
|
|
6322
|
-
// parse the additional headers object that was passed in
|
|
6323
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
6324
|
-
} catch (err) {
|
|
6325
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
6326
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6327
|
-
return callback(null, errorObj);
|
|
6328
|
-
}
|
|
6329
|
-
} else if (thisHeaderData === null) {
|
|
6330
|
-
thisHeaderData = { contentType: '' };
|
|
6331
|
-
}
|
|
6332
|
-
|
|
6333
6185
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
6334
6186
|
// see adapter code documentation for more information on the request object's fields
|
|
6335
6187
|
const reqObj = {
|
|
6336
6188
|
payload: bodyVars,
|
|
6337
6189
|
uriPathVars: pathVars,
|
|
6338
6190
|
uriQuery: queryParams,
|
|
6339
|
-
|
|
6191
|
+
authData: this.getObfuscatedKey()
|
|
6340
6192
|
};
|
|
6341
6193
|
|
|
6342
6194
|
try {
|
|
@@ -6407,29 +6259,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
6407
6259
|
}
|
|
6408
6260
|
});
|
|
6409
6261
|
|
|
6410
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
6411
|
-
let thisHeaderData = null;
|
|
6412
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
6413
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
6414
|
-
try {
|
|
6415
|
-
// parse the additional headers object that was passed in
|
|
6416
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
6417
|
-
} catch (err) {
|
|
6418
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
6419
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6420
|
-
return callback(null, errorObj);
|
|
6421
|
-
}
|
|
6422
|
-
} else if (thisHeaderData === null) {
|
|
6423
|
-
thisHeaderData = { contentType: '' };
|
|
6424
|
-
}
|
|
6425
|
-
|
|
6426
6262
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
6427
6263
|
// see adapter code documentation for more information on the request object's fields
|
|
6428
6264
|
const reqObj = {
|
|
6429
6265
|
payload: bodyVars,
|
|
6430
6266
|
uriPathVars: pathVars,
|
|
6431
6267
|
uriQuery: queryParams,
|
|
6432
|
-
|
|
6268
|
+
authData: this.getObfuscatedKey()
|
|
6433
6269
|
};
|
|
6434
6270
|
|
|
6435
6271
|
try {
|
|
@@ -6506,7 +6342,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
6506
6342
|
const reqObj = {
|
|
6507
6343
|
payload: bodyVars,
|
|
6508
6344
|
uriPathVars: pathVars,
|
|
6509
|
-
uriQuery: queryParams
|
|
6345
|
+
uriQuery: queryParams,
|
|
6346
|
+
authData: this.getObfuscatedKey()
|
|
6510
6347
|
};
|
|
6511
6348
|
|
|
6512
6349
|
try {
|
|
@@ -6577,29 +6414,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
6577
6414
|
}
|
|
6578
6415
|
});
|
|
6579
6416
|
|
|
6580
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
6581
|
-
let thisHeaderData = null;
|
|
6582
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
6583
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
6584
|
-
try {
|
|
6585
|
-
// parse the additional headers object that was passed in
|
|
6586
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
6587
|
-
} catch (err) {
|
|
6588
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
6589
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6590
|
-
return callback(null, errorObj);
|
|
6591
|
-
}
|
|
6592
|
-
} else if (thisHeaderData === null) {
|
|
6593
|
-
thisHeaderData = { contentType: '' };
|
|
6594
|
-
}
|
|
6595
|
-
|
|
6596
6417
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
6597
6418
|
// see adapter code documentation for more information on the request object's fields
|
|
6598
6419
|
const reqObj = {
|
|
6599
6420
|
payload: bodyVars,
|
|
6600
6421
|
uriPathVars: pathVars,
|
|
6601
6422
|
uriQuery: queryParams,
|
|
6602
|
-
|
|
6423
|
+
authData: this.getObfuscatedKey()
|
|
6603
6424
|
};
|
|
6604
6425
|
|
|
6605
6426
|
try {
|
|
@@ -6676,7 +6497,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
6676
6497
|
const reqObj = {
|
|
6677
6498
|
payload: bodyVars,
|
|
6678
6499
|
uriPathVars: pathVars,
|
|
6679
|
-
uriQuery: queryParams
|
|
6500
|
+
uriQuery: queryParams,
|
|
6501
|
+
authData: this.getObfuscatedKey()
|
|
6680
6502
|
};
|
|
6681
6503
|
|
|
6682
6504
|
try {
|
|
@@ -6753,29 +6575,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
6753
6575
|
}
|
|
6754
6576
|
});
|
|
6755
6577
|
|
|
6756
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
6757
|
-
let thisHeaderData = null;
|
|
6758
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
6759
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
6760
|
-
try {
|
|
6761
|
-
// parse the additional headers object that was passed in
|
|
6762
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
6763
|
-
} catch (err) {
|
|
6764
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
6765
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6766
|
-
return callback(null, errorObj);
|
|
6767
|
-
}
|
|
6768
|
-
} else if (thisHeaderData === null) {
|
|
6769
|
-
thisHeaderData = { contentType: '' };
|
|
6770
|
-
}
|
|
6771
|
-
|
|
6772
6578
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
6773
6579
|
// see adapter code documentation for more information on the request object's fields
|
|
6774
6580
|
const reqObj = {
|
|
6775
6581
|
payload: bodyVars,
|
|
6776
6582
|
uriPathVars: pathVars,
|
|
6777
6583
|
uriQuery: queryParams,
|
|
6778
|
-
|
|
6584
|
+
authData: this.getObfuscatedKey()
|
|
6779
6585
|
};
|
|
6780
6586
|
|
|
6781
6587
|
try {
|
|
@@ -6858,7 +6664,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
6858
6664
|
const reqObj = {
|
|
6859
6665
|
payload: bodyVars,
|
|
6860
6666
|
uriPathVars: pathVars,
|
|
6861
|
-
uriQuery: queryParams
|
|
6667
|
+
uriQuery: queryParams,
|
|
6668
|
+
authData: this.getObfuscatedKey()
|
|
6862
6669
|
};
|
|
6863
6670
|
|
|
6864
6671
|
try {
|
|
@@ -6935,29 +6742,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
6935
6742
|
}
|
|
6936
6743
|
});
|
|
6937
6744
|
|
|
6938
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
6939
|
-
let thisHeaderData = null;
|
|
6940
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
6941
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
6942
|
-
try {
|
|
6943
|
-
// parse the additional headers object that was passed in
|
|
6944
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
6945
|
-
} catch (err) {
|
|
6946
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
6947
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6948
|
-
return callback(null, errorObj);
|
|
6949
|
-
}
|
|
6950
|
-
} else if (thisHeaderData === null) {
|
|
6951
|
-
thisHeaderData = { contentType: '' };
|
|
6952
|
-
}
|
|
6953
|
-
|
|
6954
6745
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
6955
6746
|
// see adapter code documentation for more information on the request object's fields
|
|
6956
6747
|
const reqObj = {
|
|
6957
6748
|
payload: bodyVars,
|
|
6958
6749
|
uriPathVars: pathVars,
|
|
6959
6750
|
uriQuery: queryParams,
|
|
6960
|
-
|
|
6751
|
+
authData: this.getObfuscatedKey()
|
|
6961
6752
|
};
|
|
6962
6753
|
|
|
6963
6754
|
try {
|
|
@@ -7028,29 +6819,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
7028
6819
|
}
|
|
7029
6820
|
});
|
|
7030
6821
|
|
|
7031
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
7032
|
-
let thisHeaderData = null;
|
|
7033
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
7034
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
7035
|
-
try {
|
|
7036
|
-
// parse the additional headers object that was passed in
|
|
7037
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
7038
|
-
} catch (err) {
|
|
7039
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
7040
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7041
|
-
return callback(null, errorObj);
|
|
7042
|
-
}
|
|
7043
|
-
} else if (thisHeaderData === null) {
|
|
7044
|
-
thisHeaderData = { contentType: '' };
|
|
7045
|
-
}
|
|
7046
|
-
|
|
7047
6822
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
7048
6823
|
// see adapter code documentation for more information on the request object's fields
|
|
7049
6824
|
const reqObj = {
|
|
7050
6825
|
payload: bodyVars,
|
|
7051
6826
|
uriPathVars: pathVars,
|
|
7052
6827
|
uriQuery: queryParams,
|
|
7053
|
-
|
|
6828
|
+
authData: this.getObfuscatedKey()
|
|
7054
6829
|
};
|
|
7055
6830
|
|
|
7056
6831
|
try {
|
|
@@ -7124,29 +6899,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
7124
6899
|
}
|
|
7125
6900
|
});
|
|
7126
6901
|
|
|
7127
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
7128
|
-
let thisHeaderData = null;
|
|
7129
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
7130
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
7131
|
-
try {
|
|
7132
|
-
// parse the additional headers object that was passed in
|
|
7133
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
7134
|
-
} catch (err) {
|
|
7135
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
7136
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7137
|
-
return callback(null, errorObj);
|
|
7138
|
-
}
|
|
7139
|
-
} else if (thisHeaderData === null) {
|
|
7140
|
-
thisHeaderData = { contentType: '' };
|
|
7141
|
-
}
|
|
7142
|
-
|
|
7143
6902
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
7144
6903
|
// see adapter code documentation for more information on the request object's fields
|
|
7145
6904
|
const reqObj = {
|
|
7146
6905
|
payload: bodyVars,
|
|
7147
6906
|
uriPathVars: pathVars,
|
|
7148
6907
|
uriQuery: queryParams,
|
|
7149
|
-
|
|
6908
|
+
authData: this.getObfuscatedKey()
|
|
7150
6909
|
};
|
|
7151
6910
|
|
|
7152
6911
|
try {
|
|
@@ -7217,29 +6976,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
7217
6976
|
}
|
|
7218
6977
|
});
|
|
7219
6978
|
|
|
7220
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
7221
|
-
let thisHeaderData = null;
|
|
7222
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
7223
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
7224
|
-
try {
|
|
7225
|
-
// parse the additional headers object that was passed in
|
|
7226
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
7227
|
-
} catch (err) {
|
|
7228
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
7229
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7230
|
-
return callback(null, errorObj);
|
|
7231
|
-
}
|
|
7232
|
-
} else if (thisHeaderData === null) {
|
|
7233
|
-
thisHeaderData = { contentType: '' };
|
|
7234
|
-
}
|
|
7235
|
-
|
|
7236
6979
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
7237
6980
|
// see adapter code documentation for more information on the request object's fields
|
|
7238
6981
|
const reqObj = {
|
|
7239
6982
|
payload: bodyVars,
|
|
7240
6983
|
uriPathVars: pathVars,
|
|
7241
6984
|
uriQuery: queryParams,
|
|
7242
|
-
|
|
6985
|
+
authData: this.getObfuscatedKey()
|
|
7243
6986
|
};
|
|
7244
6987
|
|
|
7245
6988
|
try {
|
|
@@ -7310,29 +7053,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
7310
7053
|
}
|
|
7311
7054
|
});
|
|
7312
7055
|
|
|
7313
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
7314
|
-
let thisHeaderData = null;
|
|
7315
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
7316
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
7317
|
-
try {
|
|
7318
|
-
// parse the additional headers object that was passed in
|
|
7319
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
7320
|
-
} catch (err) {
|
|
7321
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
7322
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7323
|
-
return callback(null, errorObj);
|
|
7324
|
-
}
|
|
7325
|
-
} else if (thisHeaderData === null) {
|
|
7326
|
-
thisHeaderData = { contentType: '' };
|
|
7327
|
-
}
|
|
7328
|
-
|
|
7329
7056
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
7330
7057
|
// see adapter code documentation for more information on the request object's fields
|
|
7331
7058
|
const reqObj = {
|
|
7332
7059
|
payload: bodyVars,
|
|
7333
7060
|
uriPathVars: pathVars,
|
|
7334
7061
|
uriQuery: queryParams,
|
|
7335
|
-
|
|
7062
|
+
authData: this.getObfuscatedKey()
|
|
7336
7063
|
};
|
|
7337
7064
|
|
|
7338
7065
|
try {
|
|
@@ -7409,29 +7136,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
7409
7136
|
}
|
|
7410
7137
|
});
|
|
7411
7138
|
|
|
7412
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
7413
|
-
let thisHeaderData = null;
|
|
7414
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
7415
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
7416
|
-
try {
|
|
7417
|
-
// parse the additional headers object that was passed in
|
|
7418
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
7419
|
-
} catch (err) {
|
|
7420
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
7421
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7422
|
-
return callback(null, errorObj);
|
|
7423
|
-
}
|
|
7424
|
-
} else if (thisHeaderData === null) {
|
|
7425
|
-
thisHeaderData = { contentType: '' };
|
|
7426
|
-
}
|
|
7427
|
-
|
|
7428
7139
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
7429
7140
|
// see adapter code documentation for more information on the request object's fields
|
|
7430
7141
|
const reqObj = {
|
|
7431
7142
|
payload: bodyVars,
|
|
7432
7143
|
uriPathVars: pathVars,
|
|
7433
7144
|
uriQuery: queryParams,
|
|
7434
|
-
|
|
7145
|
+
authData: this.getObfuscatedKey()
|
|
7435
7146
|
};
|
|
7436
7147
|
|
|
7437
7148
|
try {
|
|
@@ -7508,29 +7219,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
7508
7219
|
}
|
|
7509
7220
|
});
|
|
7510
7221
|
|
|
7511
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
7512
|
-
let thisHeaderData = null;
|
|
7513
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
7514
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
7515
|
-
try {
|
|
7516
|
-
// parse the additional headers object that was passed in
|
|
7517
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
7518
|
-
} catch (err) {
|
|
7519
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
7520
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7521
|
-
return callback(null, errorObj);
|
|
7522
|
-
}
|
|
7523
|
-
} else if (thisHeaderData === null) {
|
|
7524
|
-
thisHeaderData = { contentType: '' };
|
|
7525
|
-
}
|
|
7526
|
-
|
|
7527
7222
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
7528
7223
|
// see adapter code documentation for more information on the request object's fields
|
|
7529
7224
|
const reqObj = {
|
|
7530
7225
|
payload: bodyVars,
|
|
7531
7226
|
uriPathVars: pathVars,
|
|
7532
7227
|
uriQuery: queryParams,
|
|
7533
|
-
|
|
7228
|
+
authData: this.getObfuscatedKey()
|
|
7534
7229
|
};
|
|
7535
7230
|
|
|
7536
7231
|
try {
|
|
@@ -7607,29 +7302,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
7607
7302
|
}
|
|
7608
7303
|
});
|
|
7609
7304
|
|
|
7610
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
7611
|
-
let thisHeaderData = null;
|
|
7612
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
7613
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
7614
|
-
try {
|
|
7615
|
-
// parse the additional headers object that was passed in
|
|
7616
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
7617
|
-
} catch (err) {
|
|
7618
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
7619
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7620
|
-
return callback(null, errorObj);
|
|
7621
|
-
}
|
|
7622
|
-
} else if (thisHeaderData === null) {
|
|
7623
|
-
thisHeaderData = { contentType: '' };
|
|
7624
|
-
}
|
|
7625
|
-
|
|
7626
7305
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
7627
7306
|
// see adapter code documentation for more information on the request object's fields
|
|
7628
7307
|
const reqObj = {
|
|
7629
7308
|
payload: bodyVars,
|
|
7630
7309
|
uriPathVars: pathVars,
|
|
7631
7310
|
uriQuery: queryParams,
|
|
7632
|
-
|
|
7311
|
+
authData: this.getObfuscatedKey()
|
|
7633
7312
|
};
|
|
7634
7313
|
|
|
7635
7314
|
try {
|
|
@@ -7700,29 +7379,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
7700
7379
|
}
|
|
7701
7380
|
});
|
|
7702
7381
|
|
|
7703
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
7704
|
-
let thisHeaderData = null;
|
|
7705
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
7706
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
7707
|
-
try {
|
|
7708
|
-
// parse the additional headers object that was passed in
|
|
7709
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
7710
|
-
} catch (err) {
|
|
7711
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
7712
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7713
|
-
return callback(null, errorObj);
|
|
7714
|
-
}
|
|
7715
|
-
} else if (thisHeaderData === null) {
|
|
7716
|
-
thisHeaderData = { contentType: '' };
|
|
7717
|
-
}
|
|
7718
|
-
|
|
7719
7382
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
7720
7383
|
// see adapter code documentation for more information on the request object's fields
|
|
7721
7384
|
const reqObj = {
|
|
7722
7385
|
payload: bodyVars,
|
|
7723
7386
|
uriPathVars: pathVars,
|
|
7724
7387
|
uriQuery: queryParams,
|
|
7725
|
-
|
|
7388
|
+
authData: this.getObfuscatedKey()
|
|
7726
7389
|
};
|
|
7727
7390
|
|
|
7728
7391
|
try {
|
|
@@ -7793,29 +7456,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
7793
7456
|
}
|
|
7794
7457
|
});
|
|
7795
7458
|
|
|
7796
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
7797
|
-
let thisHeaderData = null;
|
|
7798
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
7799
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
7800
|
-
try {
|
|
7801
|
-
// parse the additional headers object that was passed in
|
|
7802
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
7803
|
-
} catch (err) {
|
|
7804
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
7805
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7806
|
-
return callback(null, errorObj);
|
|
7807
|
-
}
|
|
7808
|
-
} else if (thisHeaderData === null) {
|
|
7809
|
-
thisHeaderData = { contentType: '' };
|
|
7810
|
-
}
|
|
7811
|
-
|
|
7812
7459
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
7813
7460
|
// see adapter code documentation for more information on the request object's fields
|
|
7814
7461
|
const reqObj = {
|
|
7815
7462
|
payload: bodyVars,
|
|
7816
7463
|
uriPathVars: pathVars,
|
|
7817
7464
|
uriQuery: queryParams,
|
|
7818
|
-
|
|
7465
|
+
authData: this.getObfuscatedKey()
|
|
7819
7466
|
};
|
|
7820
7467
|
|
|
7821
7468
|
try {
|
|
@@ -7892,29 +7539,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
7892
7539
|
}
|
|
7893
7540
|
});
|
|
7894
7541
|
|
|
7895
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
7896
|
-
let thisHeaderData = null;
|
|
7897
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
7898
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
7899
|
-
try {
|
|
7900
|
-
// parse the additional headers object that was passed in
|
|
7901
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
7902
|
-
} catch (err) {
|
|
7903
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
7904
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7905
|
-
return callback(null, errorObj);
|
|
7906
|
-
}
|
|
7907
|
-
} else if (thisHeaderData === null) {
|
|
7908
|
-
thisHeaderData = { contentType: '' };
|
|
7909
|
-
}
|
|
7910
|
-
|
|
7911
7542
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
7912
7543
|
// see adapter code documentation for more information on the request object's fields
|
|
7913
7544
|
const reqObj = {
|
|
7914
7545
|
payload: bodyVars,
|
|
7915
7546
|
uriPathVars: pathVars,
|
|
7916
7547
|
uriQuery: queryParams,
|
|
7917
|
-
|
|
7548
|
+
authData: this.getObfuscatedKey()
|
|
7918
7549
|
};
|
|
7919
7550
|
|
|
7920
7551
|
try {
|
|
@@ -7985,29 +7616,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
7985
7616
|
}
|
|
7986
7617
|
});
|
|
7987
7618
|
|
|
7988
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
7989
|
-
let thisHeaderData = null;
|
|
7990
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
7991
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
7992
|
-
try {
|
|
7993
|
-
// parse the additional headers object that was passed in
|
|
7994
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
7995
|
-
} catch (err) {
|
|
7996
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
7997
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7998
|
-
return callback(null, errorObj);
|
|
7999
|
-
}
|
|
8000
|
-
} else if (thisHeaderData === null) {
|
|
8001
|
-
thisHeaderData = { contentType: '' };
|
|
8002
|
-
}
|
|
8003
|
-
|
|
8004
7619
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
8005
7620
|
// see adapter code documentation for more information on the request object's fields
|
|
8006
7621
|
const reqObj = {
|
|
8007
7622
|
payload: bodyVars,
|
|
8008
7623
|
uriPathVars: pathVars,
|
|
8009
7624
|
uriQuery: queryParams,
|
|
8010
|
-
|
|
7625
|
+
authData: this.getObfuscatedKey()
|
|
8011
7626
|
};
|
|
8012
7627
|
|
|
8013
7628
|
try {
|
|
@@ -8079,29 +7694,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
8079
7694
|
}
|
|
8080
7695
|
});
|
|
8081
7696
|
|
|
8082
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
8083
|
-
let thisHeaderData = null;
|
|
8084
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
8085
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
8086
|
-
try {
|
|
8087
|
-
// parse the additional headers object that was passed in
|
|
8088
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
8089
|
-
} catch (err) {
|
|
8090
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
8091
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8092
|
-
return callback(null, errorObj);
|
|
8093
|
-
}
|
|
8094
|
-
} else if (thisHeaderData === null) {
|
|
8095
|
-
thisHeaderData = { contentType: '' };
|
|
8096
|
-
}
|
|
8097
|
-
|
|
8098
7697
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
8099
7698
|
// see adapter code documentation for more information on the request object's fields
|
|
8100
7699
|
const reqObj = {
|
|
8101
7700
|
payload: bodyVars,
|
|
8102
7701
|
uriPathVars: pathVars,
|
|
8103
7702
|
uriQuery: queryParams,
|
|
8104
|
-
|
|
7703
|
+
authData: this.getObfuscatedKey()
|
|
8105
7704
|
};
|
|
8106
7705
|
|
|
8107
7706
|
try {
|
|
@@ -8178,29 +7777,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
8178
7777
|
}
|
|
8179
7778
|
});
|
|
8180
7779
|
|
|
8181
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
8182
|
-
let thisHeaderData = null;
|
|
8183
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
8184
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
8185
|
-
try {
|
|
8186
|
-
// parse the additional headers object that was passed in
|
|
8187
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
8188
|
-
} catch (err) {
|
|
8189
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
8190
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8191
|
-
return callback(null, errorObj);
|
|
8192
|
-
}
|
|
8193
|
-
} else if (thisHeaderData === null) {
|
|
8194
|
-
thisHeaderData = { contentType: '' };
|
|
8195
|
-
}
|
|
8196
|
-
|
|
8197
7780
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
8198
7781
|
// see adapter code documentation for more information on the request object's fields
|
|
8199
7782
|
const reqObj = {
|
|
8200
7783
|
payload: bodyVars,
|
|
8201
7784
|
uriPathVars: pathVars,
|
|
8202
7785
|
uriQuery: queryParams,
|
|
8203
|
-
|
|
7786
|
+
authData: this.getObfuscatedKey()
|
|
8204
7787
|
};
|
|
8205
7788
|
|
|
8206
7789
|
try {
|
|
@@ -8271,29 +7854,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
8271
7854
|
}
|
|
8272
7855
|
});
|
|
8273
7856
|
|
|
8274
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
8275
|
-
let thisHeaderData = null;
|
|
8276
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
8277
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
8278
|
-
try {
|
|
8279
|
-
// parse the additional headers object that was passed in
|
|
8280
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
8281
|
-
} catch (err) {
|
|
8282
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
8283
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8284
|
-
return callback(null, errorObj);
|
|
8285
|
-
}
|
|
8286
|
-
} else if (thisHeaderData === null) {
|
|
8287
|
-
thisHeaderData = { contentType: '' };
|
|
8288
|
-
}
|
|
8289
|
-
|
|
8290
7857
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
8291
7858
|
// see adapter code documentation for more information on the request object's fields
|
|
8292
7859
|
const reqObj = {
|
|
8293
7860
|
payload: bodyVars,
|
|
8294
7861
|
uriPathVars: pathVars,
|
|
8295
7862
|
uriQuery: queryParams,
|
|
8296
|
-
|
|
7863
|
+
authData: this.getObfuscatedKey()
|
|
8297
7864
|
};
|
|
8298
7865
|
|
|
8299
7866
|
try {
|
|
@@ -8364,29 +7931,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
8364
7931
|
}
|
|
8365
7932
|
});
|
|
8366
7933
|
|
|
8367
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
8368
|
-
let thisHeaderData = null;
|
|
8369
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
8370
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
8371
|
-
try {
|
|
8372
|
-
// parse the additional headers object that was passed in
|
|
8373
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
8374
|
-
} catch (err) {
|
|
8375
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
8376
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8377
|
-
return callback(null, errorObj);
|
|
8378
|
-
}
|
|
8379
|
-
} else if (thisHeaderData === null) {
|
|
8380
|
-
thisHeaderData = { contentType: '' };
|
|
8381
|
-
}
|
|
8382
|
-
|
|
8383
7934
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
8384
7935
|
// see adapter code documentation for more information on the request object's fields
|
|
8385
7936
|
const reqObj = {
|
|
8386
7937
|
payload: bodyVars,
|
|
8387
7938
|
uriPathVars: pathVars,
|
|
8388
7939
|
uriQuery: queryParams,
|
|
8389
|
-
|
|
7940
|
+
authData: this.getObfuscatedKey()
|
|
8390
7941
|
};
|
|
8391
7942
|
|
|
8392
7943
|
try {
|
|
@@ -8463,29 +8014,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
8463
8014
|
}
|
|
8464
8015
|
});
|
|
8465
8016
|
|
|
8466
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
8467
|
-
let thisHeaderData = null;
|
|
8468
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
8469
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
8470
|
-
try {
|
|
8471
|
-
// parse the additional headers object that was passed in
|
|
8472
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
8473
|
-
} catch (err) {
|
|
8474
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
8475
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8476
|
-
return callback(null, errorObj);
|
|
8477
|
-
}
|
|
8478
|
-
} else if (thisHeaderData === null) {
|
|
8479
|
-
thisHeaderData = { contentType: '' };
|
|
8480
|
-
}
|
|
8481
|
-
|
|
8482
8017
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
8483
8018
|
// see adapter code documentation for more information on the request object's fields
|
|
8484
8019
|
const reqObj = {
|
|
8485
8020
|
payload: bodyVars,
|
|
8486
8021
|
uriPathVars: pathVars,
|
|
8487
8022
|
uriQuery: queryParams,
|
|
8488
|
-
|
|
8023
|
+
authData: this.getObfuscatedKey()
|
|
8489
8024
|
};
|
|
8490
8025
|
|
|
8491
8026
|
try {
|
|
@@ -8556,29 +8091,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
8556
8091
|
}
|
|
8557
8092
|
});
|
|
8558
8093
|
|
|
8559
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
8560
|
-
let thisHeaderData = null;
|
|
8561
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
8562
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
8563
|
-
try {
|
|
8564
|
-
// parse the additional headers object that was passed in
|
|
8565
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
8566
|
-
} catch (err) {
|
|
8567
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
8568
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8569
|
-
return callback(null, errorObj);
|
|
8570
|
-
}
|
|
8571
|
-
} else if (thisHeaderData === null) {
|
|
8572
|
-
thisHeaderData = { contentType: '' };
|
|
8573
|
-
}
|
|
8574
|
-
|
|
8575
8094
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
8576
8095
|
// see adapter code documentation for more information on the request object's fields
|
|
8577
8096
|
const reqObj = {
|
|
8578
8097
|
payload: bodyVars,
|
|
8579
8098
|
uriPathVars: pathVars,
|
|
8580
8099
|
uriQuery: queryParams,
|
|
8581
|
-
|
|
8100
|
+
authData: this.getObfuscatedKey()
|
|
8582
8101
|
};
|
|
8583
8102
|
|
|
8584
8103
|
try {
|
|
@@ -8655,7 +8174,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
8655
8174
|
const reqObj = {
|
|
8656
8175
|
payload: bodyVars,
|
|
8657
8176
|
uriPathVars: pathVars,
|
|
8658
|
-
uriQuery: queryParams
|
|
8177
|
+
uriQuery: queryParams,
|
|
8178
|
+
authData: this.getObfuscatedKey()
|
|
8659
8179
|
};
|
|
8660
8180
|
|
|
8661
8181
|
try {
|
|
@@ -8726,29 +8246,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
8726
8246
|
}
|
|
8727
8247
|
});
|
|
8728
8248
|
|
|
8729
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
8730
|
-
let thisHeaderData = null;
|
|
8731
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
8732
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
8733
|
-
try {
|
|
8734
|
-
// parse the additional headers object that was passed in
|
|
8735
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
8736
|
-
} catch (err) {
|
|
8737
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
8738
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8739
|
-
return callback(null, errorObj);
|
|
8740
|
-
}
|
|
8741
|
-
} else if (thisHeaderData === null) {
|
|
8742
|
-
thisHeaderData = { contentType: '' };
|
|
8743
|
-
}
|
|
8744
|
-
|
|
8745
8249
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
8746
8250
|
// see adapter code documentation for more information on the request object's fields
|
|
8747
8251
|
const reqObj = {
|
|
8748
8252
|
payload: bodyVars,
|
|
8749
8253
|
uriPathVars: pathVars,
|
|
8750
8254
|
uriQuery: queryParams,
|
|
8751
|
-
|
|
8255
|
+
authData: this.getObfuscatedKey()
|
|
8752
8256
|
};
|
|
8753
8257
|
|
|
8754
8258
|
try {
|
|
@@ -8825,29 +8329,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
8825
8329
|
}
|
|
8826
8330
|
});
|
|
8827
8331
|
|
|
8828
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
8829
|
-
let thisHeaderData = null;
|
|
8830
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
8831
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
8832
|
-
try {
|
|
8833
|
-
// parse the additional headers object that was passed in
|
|
8834
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
8835
|
-
} catch (err) {
|
|
8836
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
8837
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8838
|
-
return callback(null, errorObj);
|
|
8839
|
-
}
|
|
8840
|
-
} else if (thisHeaderData === null) {
|
|
8841
|
-
thisHeaderData = { contentType: '' };
|
|
8842
|
-
}
|
|
8843
|
-
|
|
8844
8332
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
8845
8333
|
// see adapter code documentation for more information on the request object's fields
|
|
8846
8334
|
const reqObj = {
|
|
8847
8335
|
payload: bodyVars,
|
|
8848
8336
|
uriPathVars: pathVars,
|
|
8849
8337
|
uriQuery: queryParams,
|
|
8850
|
-
|
|
8338
|
+
authData: this.getObfuscatedKey()
|
|
8851
8339
|
};
|
|
8852
8340
|
|
|
8853
8341
|
try {
|
|
@@ -8930,7 +8418,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
8930
8418
|
const reqObj = {
|
|
8931
8419
|
payload: bodyVars,
|
|
8932
8420
|
uriPathVars: pathVars,
|
|
8933
|
-
uriQuery: queryParams
|
|
8421
|
+
uriQuery: queryParams,
|
|
8422
|
+
authData: this.getObfuscatedKey()
|
|
8934
8423
|
};
|
|
8935
8424
|
|
|
8936
8425
|
try {
|
|
@@ -9007,29 +8496,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
9007
8496
|
}
|
|
9008
8497
|
});
|
|
9009
8498
|
|
|
9010
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
9011
|
-
let thisHeaderData = null;
|
|
9012
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
9013
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
9014
|
-
try {
|
|
9015
|
-
// parse the additional headers object that was passed in
|
|
9016
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
9017
|
-
} catch (err) {
|
|
9018
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
9019
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9020
|
-
return callback(null, errorObj);
|
|
9021
|
-
}
|
|
9022
|
-
} else if (thisHeaderData === null) {
|
|
9023
|
-
thisHeaderData = { contentType: '' };
|
|
9024
|
-
}
|
|
9025
|
-
|
|
9026
8499
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
9027
8500
|
// see adapter code documentation for more information on the request object's fields
|
|
9028
8501
|
const reqObj = {
|
|
9029
8502
|
payload: bodyVars,
|
|
9030
8503
|
uriPathVars: pathVars,
|
|
9031
8504
|
uriQuery: queryParams,
|
|
9032
|
-
|
|
8505
|
+
authData: this.getObfuscatedKey()
|
|
9033
8506
|
};
|
|
9034
8507
|
|
|
9035
8508
|
try {
|
|
@@ -9102,29 +8575,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
9102
8575
|
}
|
|
9103
8576
|
});
|
|
9104
8577
|
|
|
9105
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
9106
|
-
let thisHeaderData = null;
|
|
9107
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
9108
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
9109
|
-
try {
|
|
9110
|
-
// parse the additional headers object that was passed in
|
|
9111
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
9112
|
-
} catch (err) {
|
|
9113
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
9114
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9115
|
-
return callback(null, errorObj);
|
|
9116
|
-
}
|
|
9117
|
-
} else if (thisHeaderData === null) {
|
|
9118
|
-
thisHeaderData = { contentType: '' };
|
|
9119
|
-
}
|
|
9120
|
-
|
|
9121
8578
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
9122
8579
|
// see adapter code documentation for more information on the request object's fields
|
|
9123
8580
|
const reqObj = {
|
|
9124
8581
|
payload: bodyVars,
|
|
9125
8582
|
uriPathVars: pathVars,
|
|
9126
8583
|
uriQuery: queryParams,
|
|
9127
|
-
|
|
8584
|
+
authData: this.getObfuscatedKey()
|
|
9128
8585
|
};
|
|
9129
8586
|
|
|
9130
8587
|
try {
|
|
@@ -9206,29 +8663,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
9206
8663
|
}
|
|
9207
8664
|
});
|
|
9208
8665
|
|
|
9209
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
9210
|
-
let thisHeaderData = null;
|
|
9211
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
9212
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
9213
|
-
try {
|
|
9214
|
-
// parse the additional headers object that was passed in
|
|
9215
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
9216
|
-
} catch (err) {
|
|
9217
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
9218
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9219
|
-
return callback(null, errorObj);
|
|
9220
|
-
}
|
|
9221
|
-
} else if (thisHeaderData === null) {
|
|
9222
|
-
thisHeaderData = { contentType: '' };
|
|
9223
|
-
}
|
|
9224
|
-
|
|
9225
8666
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
9226
8667
|
// see adapter code documentation for more information on the request object's fields
|
|
9227
8668
|
const reqObj = {
|
|
9228
8669
|
payload: bodyVars,
|
|
9229
8670
|
uriPathVars: pathVars,
|
|
9230
8671
|
uriQuery: queryParams,
|
|
9231
|
-
|
|
8672
|
+
authData: this.getObfuscatedKey()
|
|
9232
8673
|
};
|
|
9233
8674
|
|
|
9234
8675
|
try {
|
|
@@ -9304,29 +8745,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
9304
8745
|
}
|
|
9305
8746
|
});
|
|
9306
8747
|
|
|
9307
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
9308
|
-
let thisHeaderData = null;
|
|
9309
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
9310
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
9311
|
-
try {
|
|
9312
|
-
// parse the additional headers object that was passed in
|
|
9313
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
9314
|
-
} catch (err) {
|
|
9315
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
9316
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9317
|
-
return callback(null, errorObj);
|
|
9318
|
-
}
|
|
9319
|
-
} else if (thisHeaderData === null) {
|
|
9320
|
-
thisHeaderData = { contentType: '' };
|
|
9321
|
-
}
|
|
9322
|
-
|
|
9323
8748
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
9324
8749
|
// see adapter code documentation for more information on the request object's fields
|
|
9325
8750
|
const reqObj = {
|
|
9326
8751
|
payload: bodyVars,
|
|
9327
8752
|
uriPathVars: pathVars,
|
|
9328
8753
|
uriQuery: queryParams,
|
|
9329
|
-
|
|
8754
|
+
authData: this.getObfuscatedKey()
|
|
9330
8755
|
};
|
|
9331
8756
|
|
|
9332
8757
|
try {
|
|
@@ -9397,29 +8822,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
9397
8822
|
}
|
|
9398
8823
|
});
|
|
9399
8824
|
|
|
9400
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
9401
|
-
let thisHeaderData = null;
|
|
9402
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
9403
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
9404
|
-
try {
|
|
9405
|
-
// parse the additional headers object that was passed in
|
|
9406
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
9407
|
-
} catch (err) {
|
|
9408
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
9409
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9410
|
-
return callback(null, errorObj);
|
|
9411
|
-
}
|
|
9412
|
-
} else if (thisHeaderData === null) {
|
|
9413
|
-
thisHeaderData = { contentType: '' };
|
|
9414
|
-
}
|
|
9415
|
-
|
|
9416
8825
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
9417
8826
|
// see adapter code documentation for more information on the request object's fields
|
|
9418
8827
|
const reqObj = {
|
|
9419
8828
|
payload: bodyVars,
|
|
9420
8829
|
uriPathVars: pathVars,
|
|
9421
8830
|
uriQuery: queryParams,
|
|
9422
|
-
|
|
8831
|
+
authData: this.getObfuscatedKey()
|
|
9423
8832
|
};
|
|
9424
8833
|
|
|
9425
8834
|
try {
|
|
@@ -9496,7 +8905,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
9496
8905
|
const reqObj = {
|
|
9497
8906
|
payload: bodyVars,
|
|
9498
8907
|
uriPathVars: pathVars,
|
|
9499
|
-
uriQuery: queryParams
|
|
8908
|
+
uriQuery: queryParams,
|
|
8909
|
+
authData: this.getObfuscatedKey()
|
|
9500
8910
|
};
|
|
9501
8911
|
|
|
9502
8912
|
try {
|
|
@@ -9567,29 +8977,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
9567
8977
|
}
|
|
9568
8978
|
});
|
|
9569
8979
|
|
|
9570
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
9571
|
-
let thisHeaderData = null;
|
|
9572
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
9573
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
9574
|
-
try {
|
|
9575
|
-
// parse the additional headers object that was passed in
|
|
9576
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
9577
|
-
} catch (err) {
|
|
9578
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
9579
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9580
|
-
return callback(null, errorObj);
|
|
9581
|
-
}
|
|
9582
|
-
} else if (thisHeaderData === null) {
|
|
9583
|
-
thisHeaderData = { contentType: '' };
|
|
9584
|
-
}
|
|
9585
|
-
|
|
9586
8980
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
9587
8981
|
// see adapter code documentation for more information on the request object's fields
|
|
9588
8982
|
const reqObj = {
|
|
9589
8983
|
payload: bodyVars,
|
|
9590
8984
|
uriPathVars: pathVars,
|
|
9591
8985
|
uriQuery: queryParams,
|
|
9592
|
-
|
|
8986
|
+
authData: this.getObfuscatedKey()
|
|
9593
8987
|
};
|
|
9594
8988
|
|
|
9595
8989
|
try {
|
|
@@ -9660,29 +9054,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
9660
9054
|
}
|
|
9661
9055
|
});
|
|
9662
9056
|
|
|
9663
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
9664
|
-
let thisHeaderData = null;
|
|
9665
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
9666
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
9667
|
-
try {
|
|
9668
|
-
// parse the additional headers object that was passed in
|
|
9669
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
9670
|
-
} catch (err) {
|
|
9671
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
9672
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9673
|
-
return callback(null, errorObj);
|
|
9674
|
-
}
|
|
9675
|
-
} else if (thisHeaderData === null) {
|
|
9676
|
-
thisHeaderData = { contentType: '' };
|
|
9677
|
-
}
|
|
9678
|
-
|
|
9679
9057
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
9680
9058
|
// see adapter code documentation for more information on the request object's fields
|
|
9681
9059
|
const reqObj = {
|
|
9682
9060
|
payload: bodyVars,
|
|
9683
9061
|
uriPathVars: pathVars,
|
|
9684
9062
|
uriQuery: queryParams,
|
|
9685
|
-
|
|
9063
|
+
authData: this.getObfuscatedKey()
|
|
9686
9064
|
};
|
|
9687
9065
|
|
|
9688
9066
|
try {
|
|
@@ -9753,29 +9131,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
9753
9131
|
}
|
|
9754
9132
|
});
|
|
9755
9133
|
|
|
9756
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
9757
|
-
let thisHeaderData = null;
|
|
9758
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
9759
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
9760
|
-
try {
|
|
9761
|
-
// parse the additional headers object that was passed in
|
|
9762
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
9763
|
-
} catch (err) {
|
|
9764
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
9765
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9766
|
-
return callback(null, errorObj);
|
|
9767
|
-
}
|
|
9768
|
-
} else if (thisHeaderData === null) {
|
|
9769
|
-
thisHeaderData = { contentType: '' };
|
|
9770
|
-
}
|
|
9771
|
-
|
|
9772
9134
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
9773
9135
|
// see adapter code documentation for more information on the request object's fields
|
|
9774
9136
|
const reqObj = {
|
|
9775
9137
|
payload: bodyVars,
|
|
9776
9138
|
uriPathVars: pathVars,
|
|
9777
9139
|
uriQuery: queryParams,
|
|
9778
|
-
|
|
9140
|
+
authData: this.getObfuscatedKey()
|
|
9779
9141
|
};
|
|
9780
9142
|
|
|
9781
9143
|
try {
|
|
@@ -9852,7 +9214,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
9852
9214
|
const reqObj = {
|
|
9853
9215
|
payload: bodyVars,
|
|
9854
9216
|
uriPathVars: pathVars,
|
|
9855
|
-
uriQuery: queryParams
|
|
9217
|
+
uriQuery: queryParams,
|
|
9218
|
+
authData: this.getObfuscatedKey()
|
|
9856
9219
|
};
|
|
9857
9220
|
|
|
9858
9221
|
try {
|
|
@@ -9929,29 +9292,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
9929
9292
|
}
|
|
9930
9293
|
});
|
|
9931
9294
|
|
|
9932
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
9933
|
-
let thisHeaderData = null;
|
|
9934
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
9935
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
9936
|
-
try {
|
|
9937
|
-
// parse the additional headers object that was passed in
|
|
9938
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
9939
|
-
} catch (err) {
|
|
9940
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
9941
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9942
|
-
return callback(null, errorObj);
|
|
9943
|
-
}
|
|
9944
|
-
} else if (thisHeaderData === null) {
|
|
9945
|
-
thisHeaderData = { contentType: '' };
|
|
9946
|
-
}
|
|
9947
|
-
|
|
9948
9295
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
9949
9296
|
// see adapter code documentation for more information on the request object's fields
|
|
9950
9297
|
const reqObj = {
|
|
9951
9298
|
payload: bodyVars,
|
|
9952
9299
|
uriPathVars: pathVars,
|
|
9953
9300
|
uriQuery: queryParams,
|
|
9954
|
-
|
|
9301
|
+
authData: this.getObfuscatedKey()
|
|
9955
9302
|
};
|
|
9956
9303
|
|
|
9957
9304
|
try {
|
|
@@ -10034,7 +9381,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
10034
9381
|
const reqObj = {
|
|
10035
9382
|
payload: bodyVars,
|
|
10036
9383
|
uriPathVars: pathVars,
|
|
10037
|
-
uriQuery: queryParams
|
|
9384
|
+
uriQuery: queryParams,
|
|
9385
|
+
authData: this.getObfuscatedKey()
|
|
10038
9386
|
};
|
|
10039
9387
|
|
|
10040
9388
|
try {
|
|
@@ -10111,29 +9459,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
10111
9459
|
}
|
|
10112
9460
|
});
|
|
10113
9461
|
|
|
10114
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
10115
|
-
let thisHeaderData = null;
|
|
10116
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
10117
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
10118
|
-
try {
|
|
10119
|
-
// parse the additional headers object that was passed in
|
|
10120
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
10121
|
-
} catch (err) {
|
|
10122
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
10123
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10124
|
-
return callback(null, errorObj);
|
|
10125
|
-
}
|
|
10126
|
-
} else if (thisHeaderData === null) {
|
|
10127
|
-
thisHeaderData = { contentType: '' };
|
|
10128
|
-
}
|
|
10129
|
-
|
|
10130
9462
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
10131
9463
|
// see adapter code documentation for more information on the request object's fields
|
|
10132
9464
|
const reqObj = {
|
|
10133
9465
|
payload: bodyVars,
|
|
10134
9466
|
uriPathVars: pathVars,
|
|
10135
9467
|
uriQuery: queryParams,
|
|
10136
|
-
|
|
9468
|
+
authData: this.getObfuscatedKey()
|
|
10137
9469
|
};
|
|
10138
9470
|
|
|
10139
9471
|
try {
|
|
@@ -10205,29 +9537,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
10205
9537
|
}
|
|
10206
9538
|
});
|
|
10207
9539
|
|
|
10208
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
10209
|
-
let thisHeaderData = null;
|
|
10210
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
10211
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
10212
|
-
try {
|
|
10213
|
-
// parse the additional headers object that was passed in
|
|
10214
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
10215
|
-
} catch (err) {
|
|
10216
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
10217
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10218
|
-
return callback(null, errorObj);
|
|
10219
|
-
}
|
|
10220
|
-
} else if (thisHeaderData === null) {
|
|
10221
|
-
thisHeaderData = { contentType: '' };
|
|
10222
|
-
}
|
|
10223
|
-
|
|
10224
9540
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
10225
9541
|
// see adapter code documentation for more information on the request object's fields
|
|
10226
9542
|
const reqObj = {
|
|
10227
9543
|
payload: bodyVars,
|
|
10228
9544
|
uriPathVars: pathVars,
|
|
10229
9545
|
uriQuery: queryParams,
|
|
10230
|
-
|
|
9546
|
+
authData: this.getObfuscatedKey()
|
|
10231
9547
|
};
|
|
10232
9548
|
|
|
10233
9549
|
try {
|
|
@@ -10298,29 +9614,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
10298
9614
|
}
|
|
10299
9615
|
});
|
|
10300
9616
|
|
|
10301
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
10302
|
-
let thisHeaderData = null;
|
|
10303
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
10304
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
10305
|
-
try {
|
|
10306
|
-
// parse the additional headers object that was passed in
|
|
10307
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
10308
|
-
} catch (err) {
|
|
10309
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
10310
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10311
|
-
return callback(null, errorObj);
|
|
10312
|
-
}
|
|
10313
|
-
} else if (thisHeaderData === null) {
|
|
10314
|
-
thisHeaderData = { contentType: '' };
|
|
10315
|
-
}
|
|
10316
|
-
|
|
10317
9617
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
10318
9618
|
// see adapter code documentation for more information on the request object's fields
|
|
10319
9619
|
const reqObj = {
|
|
10320
9620
|
payload: bodyVars,
|
|
10321
9621
|
uriPathVars: pathVars,
|
|
10322
9622
|
uriQuery: queryParams,
|
|
10323
|
-
|
|
9623
|
+
authData: this.getObfuscatedKey()
|
|
10324
9624
|
};
|
|
10325
9625
|
|
|
10326
9626
|
try {
|
|
@@ -10392,29 +9692,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
10392
9692
|
}
|
|
10393
9693
|
});
|
|
10394
9694
|
|
|
10395
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
10396
|
-
let thisHeaderData = null;
|
|
10397
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
10398
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
10399
|
-
try {
|
|
10400
|
-
// parse the additional headers object that was passed in
|
|
10401
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
10402
|
-
} catch (err) {
|
|
10403
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
10404
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10405
|
-
return callback(null, errorObj);
|
|
10406
|
-
}
|
|
10407
|
-
} else if (thisHeaderData === null) {
|
|
10408
|
-
thisHeaderData = { contentType: '' };
|
|
10409
|
-
}
|
|
10410
|
-
|
|
10411
9695
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
10412
9696
|
// see adapter code documentation for more information on the request object's fields
|
|
10413
9697
|
const reqObj = {
|
|
10414
9698
|
payload: bodyVars,
|
|
10415
9699
|
uriPathVars: pathVars,
|
|
10416
9700
|
uriQuery: queryParams,
|
|
10417
|
-
|
|
9701
|
+
authData: this.getObfuscatedKey()
|
|
10418
9702
|
};
|
|
10419
9703
|
|
|
10420
9704
|
try {
|
|
@@ -10487,29 +9771,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
10487
9771
|
}
|
|
10488
9772
|
});
|
|
10489
9773
|
|
|
10490
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
10491
|
-
let thisHeaderData = null;
|
|
10492
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
10493
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
10494
|
-
try {
|
|
10495
|
-
// parse the additional headers object that was passed in
|
|
10496
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
10497
|
-
} catch (err) {
|
|
10498
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
10499
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10500
|
-
return callback(null, errorObj);
|
|
10501
|
-
}
|
|
10502
|
-
} else if (thisHeaderData === null) {
|
|
10503
|
-
thisHeaderData = { contentType: '' };
|
|
10504
|
-
}
|
|
10505
|
-
|
|
10506
9774
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
10507
9775
|
// see adapter code documentation for more information on the request object's fields
|
|
10508
9776
|
const reqObj = {
|
|
10509
9777
|
payload: bodyVars,
|
|
10510
9778
|
uriPathVars: pathVars,
|
|
10511
9779
|
uriQuery: queryParams,
|
|
10512
|
-
|
|
9780
|
+
authData: this.getObfuscatedKey()
|
|
10513
9781
|
};
|
|
10514
9782
|
|
|
10515
9783
|
try {
|
|
@@ -10582,29 +9850,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
10582
9850
|
}
|
|
10583
9851
|
});
|
|
10584
9852
|
|
|
10585
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
10586
|
-
let thisHeaderData = null;
|
|
10587
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
10588
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
10589
|
-
try {
|
|
10590
|
-
// parse the additional headers object that was passed in
|
|
10591
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
10592
|
-
} catch (err) {
|
|
10593
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
10594
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10595
|
-
return callback(null, errorObj);
|
|
10596
|
-
}
|
|
10597
|
-
} else if (thisHeaderData === null) {
|
|
10598
|
-
thisHeaderData = { contentType: '' };
|
|
10599
|
-
}
|
|
10600
|
-
|
|
10601
9853
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
10602
9854
|
// see adapter code documentation for more information on the request object's fields
|
|
10603
9855
|
const reqObj = {
|
|
10604
9856
|
payload: bodyVars,
|
|
10605
9857
|
uriPathVars: pathVars,
|
|
10606
9858
|
uriQuery: queryParams,
|
|
10607
|
-
|
|
9859
|
+
authData: this.getObfuscatedKey()
|
|
10608
9860
|
};
|
|
10609
9861
|
|
|
10610
9862
|
try {
|
|
@@ -10681,29 +9933,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
10681
9933
|
}
|
|
10682
9934
|
});
|
|
10683
9935
|
|
|
10684
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
10685
|
-
let thisHeaderData = null;
|
|
10686
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
10687
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
10688
|
-
try {
|
|
10689
|
-
// parse the additional headers object that was passed in
|
|
10690
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
10691
|
-
} catch (err) {
|
|
10692
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
10693
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10694
|
-
return callback(null, errorObj);
|
|
10695
|
-
}
|
|
10696
|
-
} else if (thisHeaderData === null) {
|
|
10697
|
-
thisHeaderData = { contentType: '' };
|
|
10698
|
-
}
|
|
10699
|
-
|
|
10700
9936
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
10701
9937
|
// see adapter code documentation for more information on the request object's fields
|
|
10702
9938
|
const reqObj = {
|
|
10703
9939
|
payload: bodyVars,
|
|
10704
9940
|
uriPathVars: pathVars,
|
|
10705
9941
|
uriQuery: queryParams,
|
|
10706
|
-
|
|
9942
|
+
authData: this.getObfuscatedKey()
|
|
10707
9943
|
};
|
|
10708
9944
|
|
|
10709
9945
|
try {
|
|
@@ -10780,29 +10016,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
10780
10016
|
}
|
|
10781
10017
|
});
|
|
10782
10018
|
|
|
10783
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
10784
|
-
let thisHeaderData = null;
|
|
10785
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
10786
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
10787
|
-
try {
|
|
10788
|
-
// parse the additional headers object that was passed in
|
|
10789
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
10790
|
-
} catch (err) {
|
|
10791
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
10792
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10793
|
-
return callback(null, errorObj);
|
|
10794
|
-
}
|
|
10795
|
-
} else if (thisHeaderData === null) {
|
|
10796
|
-
thisHeaderData = { contentType: '' };
|
|
10797
|
-
}
|
|
10798
|
-
|
|
10799
10019
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
10800
10020
|
// see adapter code documentation for more information on the request object's fields
|
|
10801
10021
|
const reqObj = {
|
|
10802
10022
|
payload: bodyVars,
|
|
10803
10023
|
uriPathVars: pathVars,
|
|
10804
10024
|
uriQuery: queryParams,
|
|
10805
|
-
|
|
10025
|
+
authData: this.getObfuscatedKey()
|
|
10806
10026
|
};
|
|
10807
10027
|
|
|
10808
10028
|
try {
|
|
@@ -10879,29 +10099,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
10879
10099
|
}
|
|
10880
10100
|
});
|
|
10881
10101
|
|
|
10882
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
10883
|
-
let thisHeaderData = null;
|
|
10884
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
10885
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
10886
|
-
try {
|
|
10887
|
-
// parse the additional headers object that was passed in
|
|
10888
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
10889
|
-
} catch (err) {
|
|
10890
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
10891
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10892
|
-
return callback(null, errorObj);
|
|
10893
|
-
}
|
|
10894
|
-
} else if (thisHeaderData === null) {
|
|
10895
|
-
thisHeaderData = { contentType: '' };
|
|
10896
|
-
}
|
|
10897
|
-
|
|
10898
10102
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
10899
10103
|
// see adapter code documentation for more information on the request object's fields
|
|
10900
10104
|
const reqObj = {
|
|
10901
10105
|
payload: bodyVars,
|
|
10902
10106
|
uriPathVars: pathVars,
|
|
10903
10107
|
uriQuery: queryParams,
|
|
10904
|
-
|
|
10108
|
+
authData: this.getObfuscatedKey()
|
|
10905
10109
|
};
|
|
10906
10110
|
|
|
10907
10111
|
try {
|
|
@@ -10973,29 +10177,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
10973
10177
|
}
|
|
10974
10178
|
});
|
|
10975
10179
|
|
|
10976
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
10977
|
-
let thisHeaderData = null;
|
|
10978
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
10979
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
10980
|
-
try {
|
|
10981
|
-
// parse the additional headers object that was passed in
|
|
10982
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
10983
|
-
} catch (err) {
|
|
10984
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
10985
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10986
|
-
return callback(null, errorObj);
|
|
10987
|
-
}
|
|
10988
|
-
} else if (thisHeaderData === null) {
|
|
10989
|
-
thisHeaderData = { contentType: '' };
|
|
10990
|
-
}
|
|
10991
|
-
|
|
10992
10180
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
10993
10181
|
// see adapter code documentation for more information on the request object's fields
|
|
10994
10182
|
const reqObj = {
|
|
10995
10183
|
payload: bodyVars,
|
|
10996
10184
|
uriPathVars: pathVars,
|
|
10997
10185
|
uriQuery: queryParams,
|
|
10998
|
-
|
|
10186
|
+
authData: this.getObfuscatedKey()
|
|
10999
10187
|
};
|
|
11000
10188
|
|
|
11001
10189
|
try {
|
|
@@ -11066,29 +10254,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
11066
10254
|
}
|
|
11067
10255
|
});
|
|
11068
10256
|
|
|
11069
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
11070
|
-
let thisHeaderData = null;
|
|
11071
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
11072
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
11073
|
-
try {
|
|
11074
|
-
// parse the additional headers object that was passed in
|
|
11075
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
11076
|
-
} catch (err) {
|
|
11077
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
11078
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11079
|
-
return callback(null, errorObj);
|
|
11080
|
-
}
|
|
11081
|
-
} else if (thisHeaderData === null) {
|
|
11082
|
-
thisHeaderData = { contentType: '' };
|
|
11083
|
-
}
|
|
11084
|
-
|
|
11085
10257
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
11086
10258
|
// see adapter code documentation for more information on the request object's fields
|
|
11087
10259
|
const reqObj = {
|
|
11088
10260
|
payload: bodyVars,
|
|
11089
10261
|
uriPathVars: pathVars,
|
|
11090
10262
|
uriQuery: queryParams,
|
|
11091
|
-
|
|
10263
|
+
authData: this.getObfuscatedKey()
|
|
11092
10264
|
};
|
|
11093
10265
|
|
|
11094
10266
|
try {
|
|
@@ -11159,29 +10331,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
11159
10331
|
}
|
|
11160
10332
|
});
|
|
11161
10333
|
|
|
11162
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
11163
|
-
let thisHeaderData = null;
|
|
11164
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
11165
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
11166
|
-
try {
|
|
11167
|
-
// parse the additional headers object that was passed in
|
|
11168
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
11169
|
-
} catch (err) {
|
|
11170
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
11171
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11172
|
-
return callback(null, errorObj);
|
|
11173
|
-
}
|
|
11174
|
-
} else if (thisHeaderData === null) {
|
|
11175
|
-
thisHeaderData = { contentType: '' };
|
|
11176
|
-
}
|
|
11177
|
-
|
|
11178
10334
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
11179
10335
|
// see adapter code documentation for more information on the request object's fields
|
|
11180
10336
|
const reqObj = {
|
|
11181
10337
|
payload: bodyVars,
|
|
11182
10338
|
uriPathVars: pathVars,
|
|
11183
10339
|
uriQuery: queryParams,
|
|
11184
|
-
|
|
10340
|
+
authData: this.getObfuscatedKey()
|
|
11185
10341
|
};
|
|
11186
10342
|
|
|
11187
10343
|
try {
|
|
@@ -11252,29 +10408,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
11252
10408
|
}
|
|
11253
10409
|
});
|
|
11254
10410
|
|
|
11255
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
11256
|
-
let thisHeaderData = null;
|
|
11257
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
11258
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
11259
|
-
try {
|
|
11260
|
-
// parse the additional headers object that was passed in
|
|
11261
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
11262
|
-
} catch (err) {
|
|
11263
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
11264
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11265
|
-
return callback(null, errorObj);
|
|
11266
|
-
}
|
|
11267
|
-
} else if (thisHeaderData === null) {
|
|
11268
|
-
thisHeaderData = { contentType: '' };
|
|
11269
|
-
}
|
|
11270
|
-
|
|
11271
10411
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
11272
10412
|
// see adapter code documentation for more information on the request object's fields
|
|
11273
10413
|
const reqObj = {
|
|
11274
10414
|
payload: bodyVars,
|
|
11275
10415
|
uriPathVars: pathVars,
|
|
11276
10416
|
uriQuery: queryParams,
|
|
11277
|
-
|
|
10417
|
+
authData: this.getObfuscatedKey()
|
|
11278
10418
|
};
|
|
11279
10419
|
|
|
11280
10420
|
try {
|
|
@@ -11345,29 +10485,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
11345
10485
|
}
|
|
11346
10486
|
});
|
|
11347
10487
|
|
|
11348
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
11349
|
-
let thisHeaderData = null;
|
|
11350
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
11351
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
11352
|
-
try {
|
|
11353
|
-
// parse the additional headers object that was passed in
|
|
11354
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
11355
|
-
} catch (err) {
|
|
11356
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
11357
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11358
|
-
return callback(null, errorObj);
|
|
11359
|
-
}
|
|
11360
|
-
} else if (thisHeaderData === null) {
|
|
11361
|
-
thisHeaderData = { contentType: '' };
|
|
11362
|
-
}
|
|
11363
|
-
|
|
11364
10488
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
11365
10489
|
// see adapter code documentation for more information on the request object's fields
|
|
11366
10490
|
const reqObj = {
|
|
11367
10491
|
payload: bodyVars,
|
|
11368
10492
|
uriPathVars: pathVars,
|
|
11369
10493
|
uriQuery: queryParams,
|
|
11370
|
-
|
|
10494
|
+
authData: this.getObfuscatedKey()
|
|
11371
10495
|
};
|
|
11372
10496
|
|
|
11373
10497
|
try {
|
|
@@ -11444,29 +10568,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
11444
10568
|
}
|
|
11445
10569
|
});
|
|
11446
10570
|
|
|
11447
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
11448
|
-
let thisHeaderData = null;
|
|
11449
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
11450
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
11451
|
-
try {
|
|
11452
|
-
// parse the additional headers object that was passed in
|
|
11453
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
11454
|
-
} catch (err) {
|
|
11455
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
11456
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11457
|
-
return callback(null, errorObj);
|
|
11458
|
-
}
|
|
11459
|
-
} else if (thisHeaderData === null) {
|
|
11460
|
-
thisHeaderData = { contentType: '' };
|
|
11461
|
-
}
|
|
11462
|
-
|
|
11463
10571
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
11464
10572
|
// see adapter code documentation for more information on the request object's fields
|
|
11465
10573
|
const reqObj = {
|
|
11466
10574
|
payload: bodyVars,
|
|
11467
10575
|
uriPathVars: pathVars,
|
|
11468
10576
|
uriQuery: queryParams,
|
|
11469
|
-
|
|
10577
|
+
authData: this.getObfuscatedKey()
|
|
11470
10578
|
};
|
|
11471
10579
|
|
|
11472
10580
|
try {
|
|
@@ -11543,29 +10651,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
11543
10651
|
}
|
|
11544
10652
|
});
|
|
11545
10653
|
|
|
11546
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
11547
|
-
let thisHeaderData = null;
|
|
11548
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
11549
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
11550
|
-
try {
|
|
11551
|
-
// parse the additional headers object that was passed in
|
|
11552
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
11553
|
-
} catch (err) {
|
|
11554
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
11555
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11556
|
-
return callback(null, errorObj);
|
|
11557
|
-
}
|
|
11558
|
-
} else if (thisHeaderData === null) {
|
|
11559
|
-
thisHeaderData = { contentType: '' };
|
|
11560
|
-
}
|
|
11561
|
-
|
|
11562
10654
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
11563
10655
|
// see adapter code documentation for more information on the request object's fields
|
|
11564
10656
|
const reqObj = {
|
|
11565
10657
|
payload: bodyVars,
|
|
11566
10658
|
uriPathVars: pathVars,
|
|
11567
10659
|
uriQuery: queryParams,
|
|
11568
|
-
|
|
10660
|
+
authData: this.getObfuscatedKey()
|
|
11569
10661
|
};
|
|
11570
10662
|
|
|
11571
10663
|
try {
|
|
@@ -11642,29 +10734,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
11642
10734
|
}
|
|
11643
10735
|
});
|
|
11644
10736
|
|
|
11645
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
11646
|
-
let thisHeaderData = null;
|
|
11647
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
11648
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
11649
|
-
try {
|
|
11650
|
-
// parse the additional headers object that was passed in
|
|
11651
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
11652
|
-
} catch (err) {
|
|
11653
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
11654
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11655
|
-
return callback(null, errorObj);
|
|
11656
|
-
}
|
|
11657
|
-
} else if (thisHeaderData === null) {
|
|
11658
|
-
thisHeaderData = { contentType: '' };
|
|
11659
|
-
}
|
|
11660
|
-
|
|
11661
10737
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
11662
10738
|
// see adapter code documentation for more information on the request object's fields
|
|
11663
10739
|
const reqObj = {
|
|
11664
10740
|
payload: bodyVars,
|
|
11665
10741
|
uriPathVars: pathVars,
|
|
11666
10742
|
uriQuery: queryParams,
|
|
11667
|
-
|
|
10743
|
+
authData: this.getObfuscatedKey()
|
|
11668
10744
|
};
|
|
11669
10745
|
|
|
11670
10746
|
try {
|
|
@@ -11736,29 +10812,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
11736
10812
|
}
|
|
11737
10813
|
});
|
|
11738
10814
|
|
|
11739
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
11740
|
-
let thisHeaderData = null;
|
|
11741
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
11742
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
11743
|
-
try {
|
|
11744
|
-
// parse the additional headers object that was passed in
|
|
11745
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
11746
|
-
} catch (err) {
|
|
11747
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
11748
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11749
|
-
return callback(null, errorObj);
|
|
11750
|
-
}
|
|
11751
|
-
} else if (thisHeaderData === null) {
|
|
11752
|
-
thisHeaderData = { contentType: '' };
|
|
11753
|
-
}
|
|
11754
|
-
|
|
11755
10815
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
11756
10816
|
// see adapter code documentation for more information on the request object's fields
|
|
11757
10817
|
const reqObj = {
|
|
11758
10818
|
payload: bodyVars,
|
|
11759
10819
|
uriPathVars: pathVars,
|
|
11760
10820
|
uriQuery: queryParams,
|
|
11761
|
-
|
|
10821
|
+
authData: this.getObfuscatedKey()
|
|
11762
10822
|
};
|
|
11763
10823
|
|
|
11764
10824
|
try {
|
|
@@ -11829,29 +10889,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
11829
10889
|
}
|
|
11830
10890
|
});
|
|
11831
10891
|
|
|
11832
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
11833
|
-
let thisHeaderData = null;
|
|
11834
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
11835
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
11836
|
-
try {
|
|
11837
|
-
// parse the additional headers object that was passed in
|
|
11838
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
11839
|
-
} catch (err) {
|
|
11840
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
11841
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11842
|
-
return callback(null, errorObj);
|
|
11843
|
-
}
|
|
11844
|
-
} else if (thisHeaderData === null) {
|
|
11845
|
-
thisHeaderData = { contentType: '' };
|
|
11846
|
-
}
|
|
11847
|
-
|
|
11848
10892
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
11849
10893
|
// see adapter code documentation for more information on the request object's fields
|
|
11850
10894
|
const reqObj = {
|
|
11851
10895
|
payload: bodyVars,
|
|
11852
10896
|
uriPathVars: pathVars,
|
|
11853
10897
|
uriQuery: queryParams,
|
|
11854
|
-
|
|
10898
|
+
authData: this.getObfuscatedKey()
|
|
11855
10899
|
};
|
|
11856
10900
|
|
|
11857
10901
|
try {
|
|
@@ -11922,29 +10966,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
11922
10966
|
}
|
|
11923
10967
|
});
|
|
11924
10968
|
|
|
11925
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
11926
|
-
let thisHeaderData = null;
|
|
11927
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
11928
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
11929
|
-
try {
|
|
11930
|
-
// parse the additional headers object that was passed in
|
|
11931
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
11932
|
-
} catch (err) {
|
|
11933
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
11934
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11935
|
-
return callback(null, errorObj);
|
|
11936
|
-
}
|
|
11937
|
-
} else if (thisHeaderData === null) {
|
|
11938
|
-
thisHeaderData = { contentType: '' };
|
|
11939
|
-
}
|
|
11940
|
-
|
|
11941
10969
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
11942
10970
|
// see adapter code documentation for more information on the request object's fields
|
|
11943
10971
|
const reqObj = {
|
|
11944
10972
|
payload: bodyVars,
|
|
11945
10973
|
uriPathVars: pathVars,
|
|
11946
10974
|
uriQuery: queryParams,
|
|
11947
|
-
|
|
10975
|
+
authData: this.getObfuscatedKey()
|
|
11948
10976
|
};
|
|
11949
10977
|
|
|
11950
10978
|
try {
|
|
@@ -12021,29 +11049,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
12021
11049
|
}
|
|
12022
11050
|
});
|
|
12023
11051
|
|
|
12024
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
12025
|
-
let thisHeaderData = null;
|
|
12026
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
12027
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
12028
|
-
try {
|
|
12029
|
-
// parse the additional headers object that was passed in
|
|
12030
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
12031
|
-
} catch (err) {
|
|
12032
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
12033
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
12034
|
-
return callback(null, errorObj);
|
|
12035
|
-
}
|
|
12036
|
-
} else if (thisHeaderData === null) {
|
|
12037
|
-
thisHeaderData = { contentType: '' };
|
|
12038
|
-
}
|
|
12039
|
-
|
|
12040
11052
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
12041
11053
|
// see adapter code documentation for more information on the request object's fields
|
|
12042
11054
|
const reqObj = {
|
|
12043
11055
|
payload: bodyVars,
|
|
12044
11056
|
uriPathVars: pathVars,
|
|
12045
11057
|
uriQuery: queryParams,
|
|
12046
|
-
|
|
11058
|
+
authData: this.getObfuscatedKey()
|
|
12047
11059
|
};
|
|
12048
11060
|
|
|
12049
11061
|
try {
|
|
@@ -12120,29 +11132,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
12120
11132
|
}
|
|
12121
11133
|
});
|
|
12122
11134
|
|
|
12123
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
12124
|
-
let thisHeaderData = null;
|
|
12125
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
12126
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
12127
|
-
try {
|
|
12128
|
-
// parse the additional headers object that was passed in
|
|
12129
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
12130
|
-
} catch (err) {
|
|
12131
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
12132
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
12133
|
-
return callback(null, errorObj);
|
|
12134
|
-
}
|
|
12135
|
-
} else if (thisHeaderData === null) {
|
|
12136
|
-
thisHeaderData = { contentType: '' };
|
|
12137
|
-
}
|
|
12138
|
-
|
|
12139
11135
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
12140
11136
|
// see adapter code documentation for more information on the request object's fields
|
|
12141
11137
|
const reqObj = {
|
|
12142
11138
|
payload: bodyVars,
|
|
12143
11139
|
uriPathVars: pathVars,
|
|
12144
11140
|
uriQuery: queryParams,
|
|
12145
|
-
|
|
11141
|
+
authData: this.getObfuscatedKey()
|
|
12146
11142
|
};
|
|
12147
11143
|
|
|
12148
11144
|
try {
|
|
@@ -12219,29 +11215,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
12219
11215
|
}
|
|
12220
11216
|
});
|
|
12221
11217
|
|
|
12222
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
12223
|
-
let thisHeaderData = null;
|
|
12224
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
12225
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
12226
|
-
try {
|
|
12227
|
-
// parse the additional headers object that was passed in
|
|
12228
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
12229
|
-
} catch (err) {
|
|
12230
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
12231
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
12232
|
-
return callback(null, errorObj);
|
|
12233
|
-
}
|
|
12234
|
-
} else if (thisHeaderData === null) {
|
|
12235
|
-
thisHeaderData = { contentType: '' };
|
|
12236
|
-
}
|
|
12237
|
-
|
|
12238
11218
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
12239
11219
|
// see adapter code documentation for more information on the request object's fields
|
|
12240
11220
|
const reqObj = {
|
|
12241
11221
|
payload: bodyVars,
|
|
12242
11222
|
uriPathVars: pathVars,
|
|
12243
11223
|
uriQuery: queryParams,
|
|
12244
|
-
|
|
11224
|
+
authData: this.getObfuscatedKey()
|
|
12245
11225
|
};
|
|
12246
11226
|
|
|
12247
11227
|
try {
|
|
@@ -12314,29 +11294,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
12314
11294
|
}
|
|
12315
11295
|
});
|
|
12316
11296
|
|
|
12317
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
12318
|
-
let thisHeaderData = null;
|
|
12319
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
12320
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
12321
|
-
try {
|
|
12322
|
-
// parse the additional headers object that was passed in
|
|
12323
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
12324
|
-
} catch (err) {
|
|
12325
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
12326
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
12327
|
-
return callback(null, errorObj);
|
|
12328
|
-
}
|
|
12329
|
-
} else if (thisHeaderData === null) {
|
|
12330
|
-
thisHeaderData = { contentType: '' };
|
|
12331
|
-
}
|
|
12332
|
-
|
|
12333
11297
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
12334
11298
|
// see adapter code documentation for more information on the request object's fields
|
|
12335
11299
|
const reqObj = {
|
|
12336
11300
|
payload: bodyVars,
|
|
12337
11301
|
uriPathVars: pathVars,
|
|
12338
11302
|
uriQuery: queryParams,
|
|
12339
|
-
|
|
11303
|
+
authData: this.getObfuscatedKey()
|
|
12340
11304
|
};
|
|
12341
11305
|
|
|
12342
11306
|
try {
|
|
@@ -12414,29 +11378,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
12414
11378
|
}
|
|
12415
11379
|
});
|
|
12416
11380
|
|
|
12417
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
12418
|
-
let thisHeaderData = null;
|
|
12419
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
12420
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
12421
|
-
try {
|
|
12422
|
-
// parse the additional headers object that was passed in
|
|
12423
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
12424
|
-
} catch (err) {
|
|
12425
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
12426
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
12427
|
-
return callback(null, errorObj);
|
|
12428
|
-
}
|
|
12429
|
-
} else if (thisHeaderData === null) {
|
|
12430
|
-
thisHeaderData = { contentType: '' };
|
|
12431
|
-
}
|
|
12432
|
-
|
|
12433
11381
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
12434
11382
|
// see adapter code documentation for more information on the request object's fields
|
|
12435
11383
|
const reqObj = {
|
|
12436
11384
|
payload: bodyVars,
|
|
12437
11385
|
uriPathVars: pathVars,
|
|
12438
11386
|
uriQuery: queryParams,
|
|
12439
|
-
|
|
11387
|
+
authData: this.getObfuscatedKey()
|
|
12440
11388
|
};
|
|
12441
11389
|
|
|
12442
11390
|
try {
|
|
@@ -12508,29 +11456,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
12508
11456
|
}
|
|
12509
11457
|
});
|
|
12510
11458
|
|
|
12511
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
12512
|
-
let thisHeaderData = null;
|
|
12513
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
12514
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
12515
|
-
try {
|
|
12516
|
-
// parse the additional headers object that was passed in
|
|
12517
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
12518
|
-
} catch (err) {
|
|
12519
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
12520
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
12521
|
-
return callback(null, errorObj);
|
|
12522
|
-
}
|
|
12523
|
-
} else if (thisHeaderData === null) {
|
|
12524
|
-
thisHeaderData = { contentType: '' };
|
|
12525
|
-
}
|
|
12526
|
-
|
|
12527
11459
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
12528
11460
|
// see adapter code documentation for more information on the request object's fields
|
|
12529
11461
|
const reqObj = {
|
|
12530
11462
|
payload: bodyVars,
|
|
12531
11463
|
uriPathVars: pathVars,
|
|
12532
11464
|
uriQuery: queryParams,
|
|
12533
|
-
|
|
11465
|
+
authData: this.getObfuscatedKey()
|
|
12534
11466
|
};
|
|
12535
11467
|
|
|
12536
11468
|
try {
|
|
@@ -12601,29 +11533,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
12601
11533
|
}
|
|
12602
11534
|
});
|
|
12603
11535
|
|
|
12604
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
12605
|
-
let thisHeaderData = null;
|
|
12606
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
12607
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
12608
|
-
try {
|
|
12609
|
-
// parse the additional headers object that was passed in
|
|
12610
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
12611
|
-
} catch (err) {
|
|
12612
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
12613
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
12614
|
-
return callback(null, errorObj);
|
|
12615
|
-
}
|
|
12616
|
-
} else if (thisHeaderData === null) {
|
|
12617
|
-
thisHeaderData = { contentType: '' };
|
|
12618
|
-
}
|
|
12619
|
-
|
|
12620
11536
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
12621
11537
|
// see adapter code documentation for more information on the request object's fields
|
|
12622
11538
|
const reqObj = {
|
|
12623
11539
|
payload: bodyVars,
|
|
12624
11540
|
uriPathVars: pathVars,
|
|
12625
11541
|
uriQuery: queryParams,
|
|
12626
|
-
|
|
11542
|
+
authData: this.getObfuscatedKey()
|
|
12627
11543
|
};
|
|
12628
11544
|
|
|
12629
11545
|
try {
|
|
@@ -12694,29 +11610,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
12694
11610
|
}
|
|
12695
11611
|
});
|
|
12696
11612
|
|
|
12697
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
12698
|
-
let thisHeaderData = null;
|
|
12699
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
12700
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
12701
|
-
try {
|
|
12702
|
-
// parse the additional headers object that was passed in
|
|
12703
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
12704
|
-
} catch (err) {
|
|
12705
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
12706
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
12707
|
-
return callback(null, errorObj);
|
|
12708
|
-
}
|
|
12709
|
-
} else if (thisHeaderData === null) {
|
|
12710
|
-
thisHeaderData = { contentType: '' };
|
|
12711
|
-
}
|
|
12712
|
-
|
|
12713
11613
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
12714
11614
|
// see adapter code documentation for more information on the request object's fields
|
|
12715
11615
|
const reqObj = {
|
|
12716
11616
|
payload: bodyVars,
|
|
12717
11617
|
uriPathVars: pathVars,
|
|
12718
11618
|
uriQuery: queryParams,
|
|
12719
|
-
|
|
11619
|
+
authData: this.getObfuscatedKey()
|
|
12720
11620
|
};
|
|
12721
11621
|
|
|
12722
11622
|
try {
|
|
@@ -12793,29 +11693,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
12793
11693
|
}
|
|
12794
11694
|
});
|
|
12795
11695
|
|
|
12796
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
12797
|
-
let thisHeaderData = null;
|
|
12798
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
12799
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
12800
|
-
try {
|
|
12801
|
-
// parse the additional headers object that was passed in
|
|
12802
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
12803
|
-
} catch (err) {
|
|
12804
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
12805
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
12806
|
-
return callback(null, errorObj);
|
|
12807
|
-
}
|
|
12808
|
-
} else if (thisHeaderData === null) {
|
|
12809
|
-
thisHeaderData = { contentType: '' };
|
|
12810
|
-
}
|
|
12811
|
-
|
|
12812
11696
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
12813
11697
|
// see adapter code documentation for more information on the request object's fields
|
|
12814
11698
|
const reqObj = {
|
|
12815
11699
|
payload: bodyVars,
|
|
12816
11700
|
uriPathVars: pathVars,
|
|
12817
11701
|
uriQuery: queryParams,
|
|
12818
|
-
|
|
11702
|
+
authData: this.getObfuscatedKey()
|
|
12819
11703
|
};
|
|
12820
11704
|
|
|
12821
11705
|
try {
|
|
@@ -12892,29 +11776,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
12892
11776
|
}
|
|
12893
11777
|
});
|
|
12894
11778
|
|
|
12895
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
12896
|
-
let thisHeaderData = null;
|
|
12897
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
12898
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
12899
|
-
try {
|
|
12900
|
-
// parse the additional headers object that was passed in
|
|
12901
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
12902
|
-
} catch (err) {
|
|
12903
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
12904
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
12905
|
-
return callback(null, errorObj);
|
|
12906
|
-
}
|
|
12907
|
-
} else if (thisHeaderData === null) {
|
|
12908
|
-
thisHeaderData = { contentType: '' };
|
|
12909
|
-
}
|
|
12910
|
-
|
|
12911
11779
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
12912
11780
|
// see adapter code documentation for more information on the request object's fields
|
|
12913
11781
|
const reqObj = {
|
|
12914
11782
|
payload: bodyVars,
|
|
12915
11783
|
uriPathVars: pathVars,
|
|
12916
11784
|
uriQuery: queryParams,
|
|
12917
|
-
|
|
11785
|
+
authData: this.getObfuscatedKey()
|
|
12918
11786
|
};
|
|
12919
11787
|
|
|
12920
11788
|
try {
|
|
@@ -12991,29 +11859,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
12991
11859
|
}
|
|
12992
11860
|
});
|
|
12993
11861
|
|
|
12994
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
12995
|
-
let thisHeaderData = null;
|
|
12996
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
12997
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
12998
|
-
try {
|
|
12999
|
-
// parse the additional headers object that was passed in
|
|
13000
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
13001
|
-
} catch (err) {
|
|
13002
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
13003
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
13004
|
-
return callback(null, errorObj);
|
|
13005
|
-
}
|
|
13006
|
-
} else if (thisHeaderData === null) {
|
|
13007
|
-
thisHeaderData = { contentType: '' };
|
|
13008
|
-
}
|
|
13009
|
-
|
|
13010
11862
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
13011
11863
|
// see adapter code documentation for more information on the request object's fields
|
|
13012
11864
|
const reqObj = {
|
|
13013
11865
|
payload: bodyVars,
|
|
13014
11866
|
uriPathVars: pathVars,
|
|
13015
11867
|
uriQuery: queryParams,
|
|
13016
|
-
|
|
11868
|
+
authData: this.getObfuscatedKey()
|
|
13017
11869
|
};
|
|
13018
11870
|
|
|
13019
11871
|
try {
|
|
@@ -13087,29 +11939,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
13087
11939
|
}
|
|
13088
11940
|
});
|
|
13089
11941
|
|
|
13090
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
13091
|
-
let thisHeaderData = null;
|
|
13092
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
13093
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
13094
|
-
try {
|
|
13095
|
-
// parse the additional headers object that was passed in
|
|
13096
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
13097
|
-
} catch (err) {
|
|
13098
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
13099
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
13100
|
-
return callback(null, errorObj);
|
|
13101
|
-
}
|
|
13102
|
-
} else if (thisHeaderData === null) {
|
|
13103
|
-
thisHeaderData = { contentType: '' };
|
|
13104
|
-
}
|
|
13105
|
-
|
|
13106
11942
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
13107
11943
|
// see adapter code documentation for more information on the request object's fields
|
|
13108
11944
|
const reqObj = {
|
|
13109
11945
|
payload: bodyVars,
|
|
13110
11946
|
uriPathVars: pathVars,
|
|
13111
11947
|
uriQuery: queryParams,
|
|
13112
|
-
|
|
11948
|
+
authData: this.getObfuscatedKey()
|
|
13113
11949
|
};
|
|
13114
11950
|
|
|
13115
11951
|
try {
|
|
@@ -13186,7 +12022,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
13186
12022
|
const reqObj = {
|
|
13187
12023
|
payload: bodyVars,
|
|
13188
12024
|
uriPathVars: pathVars,
|
|
13189
|
-
uriQuery: queryParams
|
|
12025
|
+
uriQuery: queryParams,
|
|
12026
|
+
authData: this.getObfuscatedKey()
|
|
13190
12027
|
};
|
|
13191
12028
|
|
|
13192
12029
|
try {
|
|
@@ -13258,29 +12095,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
13258
12095
|
}
|
|
13259
12096
|
});
|
|
13260
12097
|
|
|
13261
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
13262
|
-
let thisHeaderData = null;
|
|
13263
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
13264
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
13265
|
-
try {
|
|
13266
|
-
// parse the additional headers object that was passed in
|
|
13267
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
13268
|
-
} catch (err) {
|
|
13269
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
13270
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
13271
|
-
return callback(null, errorObj);
|
|
13272
|
-
}
|
|
13273
|
-
} else if (thisHeaderData === null) {
|
|
13274
|
-
thisHeaderData = { contentType: '' };
|
|
13275
|
-
}
|
|
13276
|
-
|
|
13277
12098
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
13278
12099
|
// see adapter code documentation for more information on the request object's fields
|
|
13279
12100
|
const reqObj = {
|
|
13280
12101
|
payload: bodyVars,
|
|
13281
12102
|
uriPathVars: pathVars,
|
|
13282
12103
|
uriQuery: queryParams,
|
|
13283
|
-
|
|
12104
|
+
authData: this.getObfuscatedKey()
|
|
13284
12105
|
};
|
|
13285
12106
|
|
|
13286
12107
|
try {
|
|
@@ -13358,29 +12179,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
13358
12179
|
}
|
|
13359
12180
|
});
|
|
13360
12181
|
|
|
13361
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
13362
|
-
let thisHeaderData = null;
|
|
13363
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
13364
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
13365
|
-
try {
|
|
13366
|
-
// parse the additional headers object that was passed in
|
|
13367
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
13368
|
-
} catch (err) {
|
|
13369
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
13370
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
13371
|
-
return callback(null, errorObj);
|
|
13372
|
-
}
|
|
13373
|
-
} else if (thisHeaderData === null) {
|
|
13374
|
-
thisHeaderData = { contentType: '' };
|
|
13375
|
-
}
|
|
13376
|
-
|
|
13377
12182
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
13378
12183
|
// see adapter code documentation for more information on the request object's fields
|
|
13379
12184
|
const reqObj = {
|
|
13380
12185
|
payload: bodyVars,
|
|
13381
12186
|
uriPathVars: pathVars,
|
|
13382
12187
|
uriQuery: queryParams,
|
|
13383
|
-
|
|
12188
|
+
authData: this.getObfuscatedKey()
|
|
13384
12189
|
};
|
|
13385
12190
|
|
|
13386
12191
|
try {
|
|
@@ -13457,29 +12262,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
13457
12262
|
}
|
|
13458
12263
|
});
|
|
13459
12264
|
|
|
13460
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
13461
|
-
let thisHeaderData = null;
|
|
13462
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
13463
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
13464
|
-
try {
|
|
13465
|
-
// parse the additional headers object that was passed in
|
|
13466
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
13467
|
-
} catch (err) {
|
|
13468
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
13469
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
13470
|
-
return callback(null, errorObj);
|
|
13471
|
-
}
|
|
13472
|
-
} else if (thisHeaderData === null) {
|
|
13473
|
-
thisHeaderData = { contentType: '' };
|
|
13474
|
-
}
|
|
13475
|
-
|
|
13476
12265
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
13477
12266
|
// see adapter code documentation for more information on the request object's fields
|
|
13478
12267
|
const reqObj = {
|
|
13479
12268
|
payload: bodyVars,
|
|
13480
12269
|
uriPathVars: pathVars,
|
|
13481
12270
|
uriQuery: queryParams,
|
|
13482
|
-
|
|
12271
|
+
authData: this.getObfuscatedKey()
|
|
13483
12272
|
};
|
|
13484
12273
|
|
|
13485
12274
|
try {
|
|
@@ -13556,29 +12345,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
13556
12345
|
}
|
|
13557
12346
|
});
|
|
13558
12347
|
|
|
13559
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
13560
|
-
let thisHeaderData = null;
|
|
13561
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
13562
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
13563
|
-
try {
|
|
13564
|
-
// parse the additional headers object that was passed in
|
|
13565
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
13566
|
-
} catch (err) {
|
|
13567
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
13568
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
13569
|
-
return callback(null, errorObj);
|
|
13570
|
-
}
|
|
13571
|
-
} else if (thisHeaderData === null) {
|
|
13572
|
-
thisHeaderData = { contentType: '' };
|
|
13573
|
-
}
|
|
13574
|
-
|
|
13575
12348
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
13576
12349
|
// see adapter code documentation for more information on the request object's fields
|
|
13577
12350
|
const reqObj = {
|
|
13578
12351
|
payload: bodyVars,
|
|
13579
12352
|
uriPathVars: pathVars,
|
|
13580
12353
|
uriQuery: queryParams,
|
|
13581
|
-
|
|
12354
|
+
authData: this.getObfuscatedKey()
|
|
13582
12355
|
};
|
|
13583
12356
|
|
|
13584
12357
|
try {
|
|
@@ -13649,29 +12422,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
13649
12422
|
}
|
|
13650
12423
|
});
|
|
13651
12424
|
|
|
13652
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
13653
|
-
let thisHeaderData = null;
|
|
13654
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
13655
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
13656
|
-
try {
|
|
13657
|
-
// parse the additional headers object that was passed in
|
|
13658
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
13659
|
-
} catch (err) {
|
|
13660
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
13661
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
13662
|
-
return callback(null, errorObj);
|
|
13663
|
-
}
|
|
13664
|
-
} else if (thisHeaderData === null) {
|
|
13665
|
-
thisHeaderData = { contentType: '' };
|
|
13666
|
-
}
|
|
13667
|
-
|
|
13668
12425
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
13669
12426
|
// see adapter code documentation for more information on the request object's fields
|
|
13670
12427
|
const reqObj = {
|
|
13671
12428
|
payload: bodyVars,
|
|
13672
12429
|
uriPathVars: pathVars,
|
|
13673
12430
|
uriQuery: queryParams,
|
|
13674
|
-
|
|
12431
|
+
authData: this.getObfuscatedKey()
|
|
13675
12432
|
};
|
|
13676
12433
|
|
|
13677
12434
|
try {
|
|
@@ -13742,29 +12499,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
13742
12499
|
}
|
|
13743
12500
|
});
|
|
13744
12501
|
|
|
13745
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
13746
|
-
let thisHeaderData = null;
|
|
13747
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
13748
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
13749
|
-
try {
|
|
13750
|
-
// parse the additional headers object that was passed in
|
|
13751
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
13752
|
-
} catch (err) {
|
|
13753
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
13754
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
13755
|
-
return callback(null, errorObj);
|
|
13756
|
-
}
|
|
13757
|
-
} else if (thisHeaderData === null) {
|
|
13758
|
-
thisHeaderData = { contentType: '' };
|
|
13759
|
-
}
|
|
13760
|
-
|
|
13761
12502
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
13762
12503
|
// see adapter code documentation for more information on the request object's fields
|
|
13763
12504
|
const reqObj = {
|
|
13764
12505
|
payload: bodyVars,
|
|
13765
12506
|
uriPathVars: pathVars,
|
|
13766
12507
|
uriQuery: queryParams,
|
|
13767
|
-
|
|
12508
|
+
authData: this.getObfuscatedKey()
|
|
13768
12509
|
};
|
|
13769
12510
|
|
|
13770
12511
|
try {
|
|
@@ -13835,29 +12576,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
13835
12576
|
}
|
|
13836
12577
|
});
|
|
13837
12578
|
|
|
13838
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
13839
|
-
let thisHeaderData = null;
|
|
13840
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
13841
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
13842
|
-
try {
|
|
13843
|
-
// parse the additional headers object that was passed in
|
|
13844
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
13845
|
-
} catch (err) {
|
|
13846
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
13847
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
13848
|
-
return callback(null, errorObj);
|
|
13849
|
-
}
|
|
13850
|
-
} else if (thisHeaderData === null) {
|
|
13851
|
-
thisHeaderData = { contentType: '' };
|
|
13852
|
-
}
|
|
13853
|
-
|
|
13854
12579
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
13855
12580
|
// see adapter code documentation for more information on the request object's fields
|
|
13856
12581
|
const reqObj = {
|
|
13857
12582
|
payload: bodyVars,
|
|
13858
12583
|
uriPathVars: pathVars,
|
|
13859
12584
|
uriQuery: queryParams,
|
|
13860
|
-
|
|
12585
|
+
authData: this.getObfuscatedKey()
|
|
13861
12586
|
};
|
|
13862
12587
|
|
|
13863
12588
|
try {
|
|
@@ -13934,7 +12659,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
13934
12659
|
const reqObj = {
|
|
13935
12660
|
payload: bodyVars,
|
|
13936
12661
|
uriPathVars: pathVars,
|
|
13937
|
-
uriQuery: queryParams
|
|
12662
|
+
uriQuery: queryParams,
|
|
12663
|
+
authData: this.getObfuscatedKey()
|
|
13938
12664
|
};
|
|
13939
12665
|
|
|
13940
12666
|
try {
|
|
@@ -14011,29 +12737,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
14011
12737
|
}
|
|
14012
12738
|
});
|
|
14013
12739
|
|
|
14014
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
14015
|
-
let thisHeaderData = null;
|
|
14016
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
14017
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
14018
|
-
try {
|
|
14019
|
-
// parse the additional headers object that was passed in
|
|
14020
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
14021
|
-
} catch (err) {
|
|
14022
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
14023
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
14024
|
-
return callback(null, errorObj);
|
|
14025
|
-
}
|
|
14026
|
-
} else if (thisHeaderData === null) {
|
|
14027
|
-
thisHeaderData = { contentType: '' };
|
|
14028
|
-
}
|
|
14029
|
-
|
|
14030
12740
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
14031
12741
|
// see adapter code documentation for more information on the request object's fields
|
|
14032
12742
|
const reqObj = {
|
|
14033
12743
|
payload: bodyVars,
|
|
14034
12744
|
uriPathVars: pathVars,
|
|
14035
12745
|
uriQuery: queryParams,
|
|
14036
|
-
|
|
12746
|
+
authData: this.getObfuscatedKey()
|
|
14037
12747
|
};
|
|
14038
12748
|
|
|
14039
12749
|
try {
|
|
@@ -14116,7 +12826,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
14116
12826
|
const reqObj = {
|
|
14117
12827
|
payload: bodyVars,
|
|
14118
12828
|
uriPathVars: pathVars,
|
|
14119
|
-
uriQuery: queryParams
|
|
12829
|
+
uriQuery: queryParams,
|
|
12830
|
+
authData: this.getObfuscatedKey()
|
|
14120
12831
|
};
|
|
14121
12832
|
|
|
14122
12833
|
try {
|
|
@@ -14193,29 +12904,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
14193
12904
|
}
|
|
14194
12905
|
});
|
|
14195
12906
|
|
|
14196
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
14197
|
-
let thisHeaderData = null;
|
|
14198
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
14199
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
14200
|
-
try {
|
|
14201
|
-
// parse the additional headers object that was passed in
|
|
14202
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
14203
|
-
} catch (err) {
|
|
14204
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
14205
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
14206
|
-
return callback(null, errorObj);
|
|
14207
|
-
}
|
|
14208
|
-
} else if (thisHeaderData === null) {
|
|
14209
|
-
thisHeaderData = { contentType: '' };
|
|
14210
|
-
}
|
|
14211
|
-
|
|
14212
12907
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
14213
12908
|
// see adapter code documentation for more information on the request object's fields
|
|
14214
12909
|
const reqObj = {
|
|
14215
12910
|
payload: bodyVars,
|
|
14216
12911
|
uriPathVars: pathVars,
|
|
14217
12912
|
uriQuery: queryParams,
|
|
14218
|
-
|
|
12913
|
+
authData: this.getObfuscatedKey()
|
|
14219
12914
|
};
|
|
14220
12915
|
|
|
14221
12916
|
try {
|
|
@@ -14286,29 +12981,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
14286
12981
|
}
|
|
14287
12982
|
});
|
|
14288
12983
|
|
|
14289
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
14290
|
-
let thisHeaderData = null;
|
|
14291
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
14292
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
14293
|
-
try {
|
|
14294
|
-
// parse the additional headers object that was passed in
|
|
14295
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
14296
|
-
} catch (err) {
|
|
14297
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
14298
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
14299
|
-
return callback(null, errorObj);
|
|
14300
|
-
}
|
|
14301
|
-
} else if (thisHeaderData === null) {
|
|
14302
|
-
thisHeaderData = { contentType: '' };
|
|
14303
|
-
}
|
|
14304
|
-
|
|
14305
12984
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
14306
12985
|
// see adapter code documentation for more information on the request object's fields
|
|
14307
12986
|
const reqObj = {
|
|
14308
12987
|
payload: bodyVars,
|
|
14309
12988
|
uriPathVars: pathVars,
|
|
14310
12989
|
uriQuery: queryParams,
|
|
14311
|
-
|
|
12990
|
+
authData: this.getObfuscatedKey()
|
|
14312
12991
|
};
|
|
14313
12992
|
|
|
14314
12993
|
try {
|
|
@@ -14385,7 +13064,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
14385
13064
|
const reqObj = {
|
|
14386
13065
|
payload: bodyVars,
|
|
14387
13066
|
uriPathVars: pathVars,
|
|
14388
|
-
uriQuery: queryParams
|
|
13067
|
+
uriQuery: queryParams,
|
|
13068
|
+
authData: this.getObfuscatedKey()
|
|
14389
13069
|
};
|
|
14390
13070
|
|
|
14391
13071
|
try {
|
|
@@ -14462,29 +13142,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
14462
13142
|
}
|
|
14463
13143
|
});
|
|
14464
13144
|
|
|
14465
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
14466
|
-
let thisHeaderData = null;
|
|
14467
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
14468
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
14469
|
-
try {
|
|
14470
|
-
// parse the additional headers object that was passed in
|
|
14471
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
14472
|
-
} catch (err) {
|
|
14473
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
14474
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
14475
|
-
return callback(null, errorObj);
|
|
14476
|
-
}
|
|
14477
|
-
} else if (thisHeaderData === null) {
|
|
14478
|
-
thisHeaderData = { contentType: '' };
|
|
14479
|
-
}
|
|
14480
|
-
|
|
14481
13145
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
14482
13146
|
// see adapter code documentation for more information on the request object's fields
|
|
14483
13147
|
const reqObj = {
|
|
14484
13148
|
payload: bodyVars,
|
|
14485
13149
|
uriPathVars: pathVars,
|
|
14486
13150
|
uriQuery: queryParams,
|
|
14487
|
-
|
|
13151
|
+
authData: this.getObfuscatedKey()
|
|
14488
13152
|
};
|
|
14489
13153
|
|
|
14490
13154
|
try {
|
|
@@ -14567,7 +13231,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
14567
13231
|
const reqObj = {
|
|
14568
13232
|
payload: bodyVars,
|
|
14569
13233
|
uriPathVars: pathVars,
|
|
14570
|
-
uriQuery: queryParams
|
|
13234
|
+
uriQuery: queryParams,
|
|
13235
|
+
authData: this.getObfuscatedKey()
|
|
14571
13236
|
};
|
|
14572
13237
|
|
|
14573
13238
|
try {
|
|
@@ -14644,29 +13309,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
14644
13309
|
}
|
|
14645
13310
|
});
|
|
14646
13311
|
|
|
14647
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
14648
|
-
let thisHeaderData = null;
|
|
14649
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
14650
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
14651
|
-
try {
|
|
14652
|
-
// parse the additional headers object that was passed in
|
|
14653
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
14654
|
-
} catch (err) {
|
|
14655
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
14656
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
14657
|
-
return callback(null, errorObj);
|
|
14658
|
-
}
|
|
14659
|
-
} else if (thisHeaderData === null) {
|
|
14660
|
-
thisHeaderData = { contentType: '' };
|
|
14661
|
-
}
|
|
14662
|
-
|
|
14663
13312
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
14664
13313
|
// see adapter code documentation for more information on the request object's fields
|
|
14665
13314
|
const reqObj = {
|
|
14666
13315
|
payload: bodyVars,
|
|
14667
13316
|
uriPathVars: pathVars,
|
|
14668
13317
|
uriQuery: queryParams,
|
|
14669
|
-
|
|
13318
|
+
authData: this.getObfuscatedKey()
|
|
14670
13319
|
};
|
|
14671
13320
|
|
|
14672
13321
|
try {
|
|
@@ -14739,29 +13388,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
14739
13388
|
}
|
|
14740
13389
|
});
|
|
14741
13390
|
|
|
14742
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
14743
|
-
let thisHeaderData = null;
|
|
14744
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
14745
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
14746
|
-
try {
|
|
14747
|
-
// parse the additional headers object that was passed in
|
|
14748
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
14749
|
-
} catch (err) {
|
|
14750
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
14751
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
14752
|
-
return callback(null, errorObj);
|
|
14753
|
-
}
|
|
14754
|
-
} else if (thisHeaderData === null) {
|
|
14755
|
-
thisHeaderData = { contentType: '' };
|
|
14756
|
-
}
|
|
14757
|
-
|
|
14758
13391
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
14759
13392
|
// see adapter code documentation for more information on the request object's fields
|
|
14760
13393
|
const reqObj = {
|
|
14761
13394
|
payload: bodyVars,
|
|
14762
13395
|
uriPathVars: pathVars,
|
|
14763
13396
|
uriQuery: queryParams,
|
|
14764
|
-
|
|
13397
|
+
authData: this.getObfuscatedKey()
|
|
14765
13398
|
};
|
|
14766
13399
|
|
|
14767
13400
|
try {
|
|
@@ -14838,7 +13471,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
14838
13471
|
const reqObj = {
|
|
14839
13472
|
payload: bodyVars,
|
|
14840
13473
|
uriPathVars: pathVars,
|
|
14841
|
-
uriQuery: queryParams
|
|
13474
|
+
uriQuery: queryParams,
|
|
13475
|
+
authData: this.getObfuscatedKey()
|
|
14842
13476
|
};
|
|
14843
13477
|
|
|
14844
13478
|
try {
|
|
@@ -14915,29 +13549,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
14915
13549
|
}
|
|
14916
13550
|
});
|
|
14917
13551
|
|
|
14918
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
14919
|
-
let thisHeaderData = null;
|
|
14920
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
14921
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
14922
|
-
try {
|
|
14923
|
-
// parse the additional headers object that was passed in
|
|
14924
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
14925
|
-
} catch (err) {
|
|
14926
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
14927
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
14928
|
-
return callback(null, errorObj);
|
|
14929
|
-
}
|
|
14930
|
-
} else if (thisHeaderData === null) {
|
|
14931
|
-
thisHeaderData = { contentType: '' };
|
|
14932
|
-
}
|
|
14933
|
-
|
|
14934
13552
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
14935
13553
|
// see adapter code documentation for more information on the request object's fields
|
|
14936
13554
|
const reqObj = {
|
|
14937
13555
|
payload: bodyVars,
|
|
14938
13556
|
uriPathVars: pathVars,
|
|
14939
13557
|
uriQuery: queryParams,
|
|
14940
|
-
|
|
13558
|
+
authData: this.getObfuscatedKey()
|
|
14941
13559
|
};
|
|
14942
13560
|
|
|
14943
13561
|
try {
|
|
@@ -15020,7 +13638,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
15020
13638
|
const reqObj = {
|
|
15021
13639
|
payload: bodyVars,
|
|
15022
13640
|
uriPathVars: pathVars,
|
|
15023
|
-
uriQuery: queryParams
|
|
13641
|
+
uriQuery: queryParams,
|
|
13642
|
+
authData: this.getObfuscatedKey()
|
|
15024
13643
|
};
|
|
15025
13644
|
|
|
15026
13645
|
try {
|
|
@@ -15097,29 +13716,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
15097
13716
|
}
|
|
15098
13717
|
});
|
|
15099
13718
|
|
|
15100
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
15101
|
-
let thisHeaderData = null;
|
|
15102
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
15103
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
15104
|
-
try {
|
|
15105
|
-
// parse the additional headers object that was passed in
|
|
15106
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
15107
|
-
} catch (err) {
|
|
15108
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
15109
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
15110
|
-
return callback(null, errorObj);
|
|
15111
|
-
}
|
|
15112
|
-
} else if (thisHeaderData === null) {
|
|
15113
|
-
thisHeaderData = { contentType: '' };
|
|
15114
|
-
}
|
|
15115
|
-
|
|
15116
13719
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
15117
13720
|
// see adapter code documentation for more information on the request object's fields
|
|
15118
13721
|
const reqObj = {
|
|
15119
13722
|
payload: bodyVars,
|
|
15120
13723
|
uriPathVars: pathVars,
|
|
15121
13724
|
uriQuery: queryParams,
|
|
15122
|
-
|
|
13725
|
+
authData: this.getObfuscatedKey()
|
|
15123
13726
|
};
|
|
15124
13727
|
|
|
15125
13728
|
try {
|
|
@@ -15192,29 +13795,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
15192
13795
|
}
|
|
15193
13796
|
});
|
|
15194
13797
|
|
|
15195
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
15196
|
-
let thisHeaderData = null;
|
|
15197
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
15198
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
15199
|
-
try {
|
|
15200
|
-
// parse the additional headers object that was passed in
|
|
15201
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
15202
|
-
} catch (err) {
|
|
15203
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
15204
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
15205
|
-
return callback(null, errorObj);
|
|
15206
|
-
}
|
|
15207
|
-
} else if (thisHeaderData === null) {
|
|
15208
|
-
thisHeaderData = { contentType: '' };
|
|
15209
|
-
}
|
|
15210
|
-
|
|
15211
13798
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
15212
13799
|
// see adapter code documentation for more information on the request object's fields
|
|
15213
13800
|
const reqObj = {
|
|
15214
13801
|
payload: bodyVars,
|
|
15215
13802
|
uriPathVars: pathVars,
|
|
15216
13803
|
uriQuery: queryParams,
|
|
15217
|
-
|
|
13804
|
+
authData: this.getObfuscatedKey()
|
|
15218
13805
|
};
|
|
15219
13806
|
|
|
15220
13807
|
try {
|
|
@@ -15291,7 +13878,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
15291
13878
|
const reqObj = {
|
|
15292
13879
|
payload: bodyVars,
|
|
15293
13880
|
uriPathVars: pathVars,
|
|
15294
|
-
uriQuery: queryParams
|
|
13881
|
+
uriQuery: queryParams,
|
|
13882
|
+
authData: this.getObfuscatedKey()
|
|
15295
13883
|
};
|
|
15296
13884
|
|
|
15297
13885
|
try {
|
|
@@ -15368,29 +13956,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
15368
13956
|
}
|
|
15369
13957
|
});
|
|
15370
13958
|
|
|
15371
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
15372
|
-
let thisHeaderData = null;
|
|
15373
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
15374
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
15375
|
-
try {
|
|
15376
|
-
// parse the additional headers object that was passed in
|
|
15377
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
15378
|
-
} catch (err) {
|
|
15379
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
15380
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
15381
|
-
return callback(null, errorObj);
|
|
15382
|
-
}
|
|
15383
|
-
} else if (thisHeaderData === null) {
|
|
15384
|
-
thisHeaderData = { contentType: '' };
|
|
15385
|
-
}
|
|
15386
|
-
|
|
15387
13959
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
15388
13960
|
// see adapter code documentation for more information on the request object's fields
|
|
15389
13961
|
const reqObj = {
|
|
15390
13962
|
payload: bodyVars,
|
|
15391
13963
|
uriPathVars: pathVars,
|
|
15392
13964
|
uriQuery: queryParams,
|
|
15393
|
-
|
|
13965
|
+
authData: this.getObfuscatedKey()
|
|
15394
13966
|
};
|
|
15395
13967
|
|
|
15396
13968
|
try {
|
|
@@ -15467,29 +14039,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
15467
14039
|
}
|
|
15468
14040
|
});
|
|
15469
14041
|
|
|
15470
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
15471
|
-
let thisHeaderData = null;
|
|
15472
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
15473
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
15474
|
-
try {
|
|
15475
|
-
// parse the additional headers object that was passed in
|
|
15476
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
15477
|
-
} catch (err) {
|
|
15478
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
15479
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
15480
|
-
return callback(null, errorObj);
|
|
15481
|
-
}
|
|
15482
|
-
} else if (thisHeaderData === null) {
|
|
15483
|
-
thisHeaderData = { contentType: '' };
|
|
15484
|
-
}
|
|
15485
|
-
|
|
15486
14042
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
15487
14043
|
// see adapter code documentation for more information on the request object's fields
|
|
15488
14044
|
const reqObj = {
|
|
15489
14045
|
payload: bodyVars,
|
|
15490
14046
|
uriPathVars: pathVars,
|
|
15491
14047
|
uriQuery: queryParams,
|
|
15492
|
-
|
|
14048
|
+
authData: this.getObfuscatedKey()
|
|
15493
14049
|
};
|
|
15494
14050
|
|
|
15495
14051
|
try {
|
|
@@ -15566,29 +14122,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
15566
14122
|
}
|
|
15567
14123
|
});
|
|
15568
14124
|
|
|
15569
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
15570
|
-
let thisHeaderData = null;
|
|
15571
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
15572
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
15573
|
-
try {
|
|
15574
|
-
// parse the additional headers object that was passed in
|
|
15575
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
15576
|
-
} catch (err) {
|
|
15577
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
15578
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
15579
|
-
return callback(null, errorObj);
|
|
15580
|
-
}
|
|
15581
|
-
} else if (thisHeaderData === null) {
|
|
15582
|
-
thisHeaderData = { contentType: '' };
|
|
15583
|
-
}
|
|
15584
|
-
|
|
15585
14125
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
15586
14126
|
// see adapter code documentation for more information on the request object's fields
|
|
15587
14127
|
const reqObj = {
|
|
15588
14128
|
payload: bodyVars,
|
|
15589
14129
|
uriPathVars: pathVars,
|
|
15590
14130
|
uriQuery: queryParams,
|
|
15591
|
-
|
|
14131
|
+
authData: this.getObfuscatedKey()
|
|
15592
14132
|
};
|
|
15593
14133
|
|
|
15594
14134
|
try {
|
|
@@ -15665,29 +14205,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
15665
14205
|
}
|
|
15666
14206
|
});
|
|
15667
14207
|
|
|
15668
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
15669
|
-
let thisHeaderData = null;
|
|
15670
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
15671
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
15672
|
-
try {
|
|
15673
|
-
// parse the additional headers object that was passed in
|
|
15674
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
15675
|
-
} catch (err) {
|
|
15676
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
15677
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
15678
|
-
return callback(null, errorObj);
|
|
15679
|
-
}
|
|
15680
|
-
} else if (thisHeaderData === null) {
|
|
15681
|
-
thisHeaderData = { contentType: '' };
|
|
15682
|
-
}
|
|
15683
|
-
|
|
15684
14208
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
15685
14209
|
// see adapter code documentation for more information on the request object's fields
|
|
15686
14210
|
const reqObj = {
|
|
15687
14211
|
payload: bodyVars,
|
|
15688
14212
|
uriPathVars: pathVars,
|
|
15689
14213
|
uriQuery: queryParams,
|
|
15690
|
-
|
|
14214
|
+
authData: this.getObfuscatedKey()
|
|
15691
14215
|
};
|
|
15692
14216
|
|
|
15693
14217
|
try {
|
|
@@ -15775,7 +14299,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
15775
14299
|
const reqObj = {
|
|
15776
14300
|
payload: bodyVars,
|
|
15777
14301
|
uriPathVars: pathVars,
|
|
15778
|
-
uriQuery: queryParams
|
|
14302
|
+
uriQuery: queryParams,
|
|
14303
|
+
authData: this.getObfuscatedKey()
|
|
15779
14304
|
};
|
|
15780
14305
|
|
|
15781
14306
|
try {
|
|
@@ -15852,29 +14377,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
15852
14377
|
}
|
|
15853
14378
|
});
|
|
15854
14379
|
|
|
15855
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
15856
|
-
let thisHeaderData = null;
|
|
15857
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
15858
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
15859
|
-
try {
|
|
15860
|
-
// parse the additional headers object that was passed in
|
|
15861
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
15862
|
-
} catch (err) {
|
|
15863
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
15864
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
15865
|
-
return callback(null, errorObj);
|
|
15866
|
-
}
|
|
15867
|
-
} else if (thisHeaderData === null) {
|
|
15868
|
-
thisHeaderData = { contentType: '' };
|
|
15869
|
-
}
|
|
15870
|
-
|
|
15871
14380
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
15872
14381
|
// see adapter code documentation for more information on the request object's fields
|
|
15873
14382
|
const reqObj = {
|
|
15874
14383
|
payload: bodyVars,
|
|
15875
14384
|
uriPathVars: pathVars,
|
|
15876
14385
|
uriQuery: queryParams,
|
|
15877
|
-
|
|
14386
|
+
authData: this.getObfuscatedKey()
|
|
15878
14387
|
};
|
|
15879
14388
|
|
|
15880
14389
|
try {
|
|
@@ -15947,29 +14456,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
15947
14456
|
}
|
|
15948
14457
|
});
|
|
15949
14458
|
|
|
15950
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
15951
|
-
let thisHeaderData = null;
|
|
15952
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
15953
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
15954
|
-
try {
|
|
15955
|
-
// parse the additional headers object that was passed in
|
|
15956
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
15957
|
-
} catch (err) {
|
|
15958
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
15959
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
15960
|
-
return callback(null, errorObj);
|
|
15961
|
-
}
|
|
15962
|
-
} else if (thisHeaderData === null) {
|
|
15963
|
-
thisHeaderData = { contentType: '' };
|
|
15964
|
-
}
|
|
15965
|
-
|
|
15966
14459
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
15967
14460
|
// see adapter code documentation for more information on the request object's fields
|
|
15968
14461
|
const reqObj = {
|
|
15969
14462
|
payload: bodyVars,
|
|
15970
14463
|
uriPathVars: pathVars,
|
|
15971
14464
|
uriQuery: queryParams,
|
|
15972
|
-
|
|
14465
|
+
authData: this.getObfuscatedKey()
|
|
15973
14466
|
};
|
|
15974
14467
|
|
|
15975
14468
|
try {
|
|
@@ -16046,29 +14539,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
16046
14539
|
}
|
|
16047
14540
|
});
|
|
16048
14541
|
|
|
16049
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
16050
|
-
let thisHeaderData = null;
|
|
16051
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
16052
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
16053
|
-
try {
|
|
16054
|
-
// parse the additional headers object that was passed in
|
|
16055
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
16056
|
-
} catch (err) {
|
|
16057
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
16058
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
16059
|
-
return callback(null, errorObj);
|
|
16060
|
-
}
|
|
16061
|
-
} else if (thisHeaderData === null) {
|
|
16062
|
-
thisHeaderData = { contentType: '' };
|
|
16063
|
-
}
|
|
16064
|
-
|
|
16065
14542
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
16066
14543
|
// see adapter code documentation for more information on the request object's fields
|
|
16067
14544
|
const reqObj = {
|
|
16068
14545
|
payload: bodyVars,
|
|
16069
14546
|
uriPathVars: pathVars,
|
|
16070
14547
|
uriQuery: queryParams,
|
|
16071
|
-
|
|
14548
|
+
authData: this.getObfuscatedKey()
|
|
16072
14549
|
};
|
|
16073
14550
|
|
|
16074
14551
|
try {
|
|
@@ -16145,29 +14622,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
16145
14622
|
}
|
|
16146
14623
|
});
|
|
16147
14624
|
|
|
16148
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
16149
|
-
let thisHeaderData = null;
|
|
16150
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
16151
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
16152
|
-
try {
|
|
16153
|
-
// parse the additional headers object that was passed in
|
|
16154
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
16155
|
-
} catch (err) {
|
|
16156
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
16157
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
16158
|
-
return callback(null, errorObj);
|
|
16159
|
-
}
|
|
16160
|
-
} else if (thisHeaderData === null) {
|
|
16161
|
-
thisHeaderData = { contentType: '' };
|
|
16162
|
-
}
|
|
16163
|
-
|
|
16164
14625
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
16165
14626
|
// see adapter code documentation for more information on the request object's fields
|
|
16166
14627
|
const reqObj = {
|
|
16167
14628
|
payload: bodyVars,
|
|
16168
14629
|
uriPathVars: pathVars,
|
|
16169
14630
|
uriQuery: queryParams,
|
|
16170
|
-
|
|
14631
|
+
authData: this.getObfuscatedKey()
|
|
16171
14632
|
};
|
|
16172
14633
|
|
|
16173
14634
|
try {
|
|
@@ -16240,29 +14701,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
16240
14701
|
}
|
|
16241
14702
|
});
|
|
16242
14703
|
|
|
16243
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
16244
|
-
let thisHeaderData = null;
|
|
16245
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
16246
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
16247
|
-
try {
|
|
16248
|
-
// parse the additional headers object that was passed in
|
|
16249
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
16250
|
-
} catch (err) {
|
|
16251
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
16252
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
16253
|
-
return callback(null, errorObj);
|
|
16254
|
-
}
|
|
16255
|
-
} else if (thisHeaderData === null) {
|
|
16256
|
-
thisHeaderData = { contentType: '' };
|
|
16257
|
-
}
|
|
16258
|
-
|
|
16259
14704
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
16260
14705
|
// see adapter code documentation for more information on the request object's fields
|
|
16261
14706
|
const reqObj = {
|
|
16262
14707
|
payload: bodyVars,
|
|
16263
14708
|
uriPathVars: pathVars,
|
|
16264
14709
|
uriQuery: queryParams,
|
|
16265
|
-
|
|
14710
|
+
authData: this.getObfuscatedKey()
|
|
16266
14711
|
};
|
|
16267
14712
|
|
|
16268
14713
|
try {
|
|
@@ -16339,29 +14784,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
16339
14784
|
}
|
|
16340
14785
|
});
|
|
16341
14786
|
|
|
16342
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
16343
|
-
let thisHeaderData = null;
|
|
16344
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
16345
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
16346
|
-
try {
|
|
16347
|
-
// parse the additional headers object that was passed in
|
|
16348
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
16349
|
-
} catch (err) {
|
|
16350
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
16351
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
16352
|
-
return callback(null, errorObj);
|
|
16353
|
-
}
|
|
16354
|
-
} else if (thisHeaderData === null) {
|
|
16355
|
-
thisHeaderData = { contentType: '' };
|
|
16356
|
-
}
|
|
16357
|
-
|
|
16358
14787
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
16359
14788
|
// see adapter code documentation for more information on the request object's fields
|
|
16360
14789
|
const reqObj = {
|
|
16361
14790
|
payload: bodyVars,
|
|
16362
14791
|
uriPathVars: pathVars,
|
|
16363
14792
|
uriQuery: queryParams,
|
|
16364
|
-
|
|
14793
|
+
authData: this.getObfuscatedKey()
|
|
16365
14794
|
};
|
|
16366
14795
|
|
|
16367
14796
|
try {
|
|
@@ -16438,29 +14867,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
16438
14867
|
}
|
|
16439
14868
|
});
|
|
16440
14869
|
|
|
16441
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
16442
|
-
let thisHeaderData = null;
|
|
16443
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
16444
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
16445
|
-
try {
|
|
16446
|
-
// parse the additional headers object that was passed in
|
|
16447
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
16448
|
-
} catch (err) {
|
|
16449
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
16450
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
16451
|
-
return callback(null, errorObj);
|
|
16452
|
-
}
|
|
16453
|
-
} else if (thisHeaderData === null) {
|
|
16454
|
-
thisHeaderData = { contentType: '' };
|
|
16455
|
-
}
|
|
16456
|
-
|
|
16457
14870
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
16458
14871
|
// see adapter code documentation for more information on the request object's fields
|
|
16459
14872
|
const reqObj = {
|
|
16460
14873
|
payload: bodyVars,
|
|
16461
14874
|
uriPathVars: pathVars,
|
|
16462
14875
|
uriQuery: queryParams,
|
|
16463
|
-
|
|
14876
|
+
authData: this.getObfuscatedKey()
|
|
16464
14877
|
};
|
|
16465
14878
|
|
|
16466
14879
|
try {
|
|
@@ -16543,7 +14956,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
16543
14956
|
const reqObj = {
|
|
16544
14957
|
payload: bodyVars,
|
|
16545
14958
|
uriPathVars: pathVars,
|
|
16546
|
-
uriQuery: queryParams
|
|
14959
|
+
uriQuery: queryParams,
|
|
14960
|
+
authData: this.getObfuscatedKey()
|
|
16547
14961
|
};
|
|
16548
14962
|
|
|
16549
14963
|
try {
|
|
@@ -16626,7 +15040,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
16626
15040
|
const reqObj = {
|
|
16627
15041
|
payload: bodyVars,
|
|
16628
15042
|
uriPathVars: pathVars,
|
|
16629
|
-
uriQuery: queryParams
|
|
15043
|
+
uriQuery: queryParams,
|
|
15044
|
+
authData: this.getObfuscatedKey()
|
|
16630
15045
|
};
|
|
16631
15046
|
|
|
16632
15047
|
try {
|
|
@@ -16703,29 +15118,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
16703
15118
|
}
|
|
16704
15119
|
});
|
|
16705
15120
|
|
|
16706
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
16707
|
-
let thisHeaderData = null;
|
|
16708
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
16709
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
16710
|
-
try {
|
|
16711
|
-
// parse the additional headers object that was passed in
|
|
16712
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
16713
|
-
} catch (err) {
|
|
16714
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
16715
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
16716
|
-
return callback(null, errorObj);
|
|
16717
|
-
}
|
|
16718
|
-
} else if (thisHeaderData === null) {
|
|
16719
|
-
thisHeaderData = { contentType: '' };
|
|
16720
|
-
}
|
|
16721
|
-
|
|
16722
15121
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
16723
15122
|
// see adapter code documentation for more information on the request object's fields
|
|
16724
15123
|
const reqObj = {
|
|
16725
15124
|
payload: bodyVars,
|
|
16726
15125
|
uriPathVars: pathVars,
|
|
16727
15126
|
uriQuery: queryParams,
|
|
16728
|
-
|
|
15127
|
+
authData: this.getObfuscatedKey()
|
|
16729
15128
|
};
|
|
16730
15129
|
|
|
16731
15130
|
try {
|
|
@@ -16802,29 +15201,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
16802
15201
|
}
|
|
16803
15202
|
});
|
|
16804
15203
|
|
|
16805
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
16806
|
-
let thisHeaderData = null;
|
|
16807
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
16808
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
16809
|
-
try {
|
|
16810
|
-
// parse the additional headers object that was passed in
|
|
16811
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
16812
|
-
} catch (err) {
|
|
16813
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
16814
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
16815
|
-
return callback(null, errorObj);
|
|
16816
|
-
}
|
|
16817
|
-
} else if (thisHeaderData === null) {
|
|
16818
|
-
thisHeaderData = { contentType: '' };
|
|
16819
|
-
}
|
|
16820
|
-
|
|
16821
15204
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
16822
15205
|
// see adapter code documentation for more information on the request object's fields
|
|
16823
15206
|
const reqObj = {
|
|
16824
15207
|
payload: bodyVars,
|
|
16825
15208
|
uriPathVars: pathVars,
|
|
16826
15209
|
uriQuery: queryParams,
|
|
16827
|
-
|
|
15210
|
+
authData: this.getObfuscatedKey()
|
|
16828
15211
|
};
|
|
16829
15212
|
|
|
16830
15213
|
try {
|
|
@@ -16907,7 +15290,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
16907
15290
|
const reqObj = {
|
|
16908
15291
|
payload: bodyVars,
|
|
16909
15292
|
uriPathVars: pathVars,
|
|
16910
|
-
uriQuery: queryParams
|
|
15293
|
+
uriQuery: queryParams,
|
|
15294
|
+
authData: this.getObfuscatedKey()
|
|
16911
15295
|
};
|
|
16912
15296
|
|
|
16913
15297
|
try {
|
|
@@ -16984,29 +15368,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
16984
15368
|
}
|
|
16985
15369
|
});
|
|
16986
15370
|
|
|
16987
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
16988
|
-
let thisHeaderData = null;
|
|
16989
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
16990
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
16991
|
-
try {
|
|
16992
|
-
// parse the additional headers object that was passed in
|
|
16993
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
16994
|
-
} catch (err) {
|
|
16995
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
16996
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
16997
|
-
return callback(null, errorObj);
|
|
16998
|
-
}
|
|
16999
|
-
} else if (thisHeaderData === null) {
|
|
17000
|
-
thisHeaderData = { contentType: '' };
|
|
17001
|
-
}
|
|
17002
|
-
|
|
17003
15371
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
17004
15372
|
// see adapter code documentation for more information on the request object's fields
|
|
17005
15373
|
const reqObj = {
|
|
17006
15374
|
payload: bodyVars,
|
|
17007
15375
|
uriPathVars: pathVars,
|
|
17008
15376
|
uriQuery: queryParams,
|
|
17009
|
-
|
|
15377
|
+
authData: this.getObfuscatedKey()
|
|
17010
15378
|
};
|
|
17011
15379
|
|
|
17012
15380
|
try {
|
|
@@ -17077,29 +15445,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
17077
15445
|
}
|
|
17078
15446
|
});
|
|
17079
15447
|
|
|
17080
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
17081
|
-
let thisHeaderData = null;
|
|
17082
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
17083
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
17084
|
-
try {
|
|
17085
|
-
// parse the additional headers object that was passed in
|
|
17086
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
17087
|
-
} catch (err) {
|
|
17088
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
17089
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
17090
|
-
return callback(null, errorObj);
|
|
17091
|
-
}
|
|
17092
|
-
} else if (thisHeaderData === null) {
|
|
17093
|
-
thisHeaderData = { contentType: '' };
|
|
17094
|
-
}
|
|
17095
|
-
|
|
17096
15448
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
17097
15449
|
// see adapter code documentation for more information on the request object's fields
|
|
17098
15450
|
const reqObj = {
|
|
17099
15451
|
payload: bodyVars,
|
|
17100
15452
|
uriPathVars: pathVars,
|
|
17101
15453
|
uriQuery: queryParams,
|
|
17102
|
-
|
|
15454
|
+
authData: this.getObfuscatedKey()
|
|
17103
15455
|
};
|
|
17104
15456
|
|
|
17105
15457
|
try {
|
|
@@ -17176,29 +15528,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
17176
15528
|
}
|
|
17177
15529
|
});
|
|
17178
15530
|
|
|
17179
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
17180
|
-
let thisHeaderData = null;
|
|
17181
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
17182
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
17183
|
-
try {
|
|
17184
|
-
// parse the additional headers object that was passed in
|
|
17185
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
17186
|
-
} catch (err) {
|
|
17187
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
17188
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
17189
|
-
return callback(null, errorObj);
|
|
17190
|
-
}
|
|
17191
|
-
} else if (thisHeaderData === null) {
|
|
17192
|
-
thisHeaderData = { contentType: '' };
|
|
17193
|
-
}
|
|
17194
|
-
|
|
17195
15531
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
17196
15532
|
// see adapter code documentation for more information on the request object's fields
|
|
17197
15533
|
const reqObj = {
|
|
17198
15534
|
payload: bodyVars,
|
|
17199
15535
|
uriPathVars: pathVars,
|
|
17200
15536
|
uriQuery: queryParams,
|
|
17201
|
-
|
|
15537
|
+
authData: this.getObfuscatedKey()
|
|
17202
15538
|
};
|
|
17203
15539
|
|
|
17204
15540
|
try {
|
|
@@ -17269,29 +15605,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
17269
15605
|
}
|
|
17270
15606
|
});
|
|
17271
15607
|
|
|
17272
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
17273
|
-
let thisHeaderData = null;
|
|
17274
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
17275
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
17276
|
-
try {
|
|
17277
|
-
// parse the additional headers object that was passed in
|
|
17278
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
17279
|
-
} catch (err) {
|
|
17280
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
17281
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
17282
|
-
return callback(null, errorObj);
|
|
17283
|
-
}
|
|
17284
|
-
} else if (thisHeaderData === null) {
|
|
17285
|
-
thisHeaderData = { contentType: '' };
|
|
17286
|
-
}
|
|
17287
|
-
|
|
17288
15608
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
17289
15609
|
// see adapter code documentation for more information on the request object's fields
|
|
17290
15610
|
const reqObj = {
|
|
17291
15611
|
payload: bodyVars,
|
|
17292
15612
|
uriPathVars: pathVars,
|
|
17293
15613
|
uriQuery: queryParams,
|
|
17294
|
-
|
|
15614
|
+
authData: this.getObfuscatedKey()
|
|
17295
15615
|
};
|
|
17296
15616
|
|
|
17297
15617
|
try {
|
|
@@ -17362,29 +15682,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
17362
15682
|
}
|
|
17363
15683
|
});
|
|
17364
15684
|
|
|
17365
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
17366
|
-
let thisHeaderData = null;
|
|
17367
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
17368
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
17369
|
-
try {
|
|
17370
|
-
// parse the additional headers object that was passed in
|
|
17371
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
17372
|
-
} catch (err) {
|
|
17373
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
17374
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
17375
|
-
return callback(null, errorObj);
|
|
17376
|
-
}
|
|
17377
|
-
} else if (thisHeaderData === null) {
|
|
17378
|
-
thisHeaderData = { contentType: '' };
|
|
17379
|
-
}
|
|
17380
|
-
|
|
17381
15685
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
17382
15686
|
// see adapter code documentation for more information on the request object's fields
|
|
17383
15687
|
const reqObj = {
|
|
17384
15688
|
payload: bodyVars,
|
|
17385
15689
|
uriPathVars: pathVars,
|
|
17386
15690
|
uriQuery: queryParams,
|
|
17387
|
-
|
|
15691
|
+
authData: this.getObfuscatedKey()
|
|
17388
15692
|
};
|
|
17389
15693
|
|
|
17390
15694
|
try {
|
|
@@ -17455,29 +15759,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
17455
15759
|
}
|
|
17456
15760
|
});
|
|
17457
15761
|
|
|
17458
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
17459
|
-
let thisHeaderData = null;
|
|
17460
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
17461
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
17462
|
-
try {
|
|
17463
|
-
// parse the additional headers object that was passed in
|
|
17464
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
17465
|
-
} catch (err) {
|
|
17466
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
17467
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
17468
|
-
return callback(null, errorObj);
|
|
17469
|
-
}
|
|
17470
|
-
} else if (thisHeaderData === null) {
|
|
17471
|
-
thisHeaderData = { contentType: '' };
|
|
17472
|
-
}
|
|
17473
|
-
|
|
17474
15762
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
17475
15763
|
// see adapter code documentation for more information on the request object's fields
|
|
17476
15764
|
const reqObj = {
|
|
17477
15765
|
payload: bodyVars,
|
|
17478
15766
|
uriPathVars: pathVars,
|
|
17479
15767
|
uriQuery: queryParams,
|
|
17480
|
-
|
|
15768
|
+
authData: this.getObfuscatedKey()
|
|
17481
15769
|
};
|
|
17482
15770
|
|
|
17483
15771
|
try {
|
|
@@ -17548,29 +15836,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
17548
15836
|
}
|
|
17549
15837
|
});
|
|
17550
15838
|
|
|
17551
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
17552
|
-
let thisHeaderData = null;
|
|
17553
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
17554
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
17555
|
-
try {
|
|
17556
|
-
// parse the additional headers object that was passed in
|
|
17557
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
17558
|
-
} catch (err) {
|
|
17559
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
17560
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
17561
|
-
return callback(null, errorObj);
|
|
17562
|
-
}
|
|
17563
|
-
} else if (thisHeaderData === null) {
|
|
17564
|
-
thisHeaderData = { contentType: '' };
|
|
17565
|
-
}
|
|
17566
|
-
|
|
17567
15839
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
17568
15840
|
// see adapter code documentation for more information on the request object's fields
|
|
17569
15841
|
const reqObj = {
|
|
17570
15842
|
payload: bodyVars,
|
|
17571
15843
|
uriPathVars: pathVars,
|
|
17572
15844
|
uriQuery: queryParams,
|
|
17573
|
-
|
|
15845
|
+
authData: this.getObfuscatedKey()
|
|
17574
15846
|
};
|
|
17575
15847
|
|
|
17576
15848
|
try {
|
|
@@ -17655,29 +15927,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
17655
15927
|
}
|
|
17656
15928
|
});
|
|
17657
15929
|
|
|
17658
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
17659
|
-
let thisHeaderData = null;
|
|
17660
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
17661
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
17662
|
-
try {
|
|
17663
|
-
// parse the additional headers object that was passed in
|
|
17664
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
17665
|
-
} catch (err) {
|
|
17666
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
17667
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
17668
|
-
return callback(null, errorObj);
|
|
17669
|
-
}
|
|
17670
|
-
} else if (thisHeaderData === null) {
|
|
17671
|
-
thisHeaderData = { contentType: '' };
|
|
17672
|
-
}
|
|
17673
|
-
|
|
17674
15930
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
17675
15931
|
// see adapter code documentation for more information on the request object's fields
|
|
17676
15932
|
const reqObj = {
|
|
17677
15933
|
payload: bodyVars,
|
|
17678
15934
|
uriPathVars: pathVars,
|
|
17679
15935
|
uriQuery: queryParams,
|
|
17680
|
-
|
|
15936
|
+
authData: this.getObfuscatedKey()
|
|
17681
15937
|
};
|
|
17682
15938
|
|
|
17683
15939
|
try {
|
|
@@ -17754,29 +16010,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
17754
16010
|
}
|
|
17755
16011
|
});
|
|
17756
16012
|
|
|
17757
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
17758
|
-
let thisHeaderData = null;
|
|
17759
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
17760
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
17761
|
-
try {
|
|
17762
|
-
// parse the additional headers object that was passed in
|
|
17763
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
17764
|
-
} catch (err) {
|
|
17765
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
17766
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
17767
|
-
return callback(null, errorObj);
|
|
17768
|
-
}
|
|
17769
|
-
} else if (thisHeaderData === null) {
|
|
17770
|
-
thisHeaderData = { contentType: '' };
|
|
17771
|
-
}
|
|
17772
|
-
|
|
17773
16013
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
17774
16014
|
// see adapter code documentation for more information on the request object's fields
|
|
17775
16015
|
const reqObj = {
|
|
17776
16016
|
payload: bodyVars,
|
|
17777
16017
|
uriPathVars: pathVars,
|
|
17778
16018
|
uriQuery: queryParams,
|
|
17779
|
-
|
|
16019
|
+
authData: this.getObfuscatedKey()
|
|
17780
16020
|
};
|
|
17781
16021
|
|
|
17782
16022
|
try {
|
|
@@ -17849,29 +16089,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
17849
16089
|
}
|
|
17850
16090
|
});
|
|
17851
16091
|
|
|
17852
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
17853
|
-
let thisHeaderData = null;
|
|
17854
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
17855
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
17856
|
-
try {
|
|
17857
|
-
// parse the additional headers object that was passed in
|
|
17858
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
17859
|
-
} catch (err) {
|
|
17860
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
17861
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
17862
|
-
return callback(null, errorObj);
|
|
17863
|
-
}
|
|
17864
|
-
} else if (thisHeaderData === null) {
|
|
17865
|
-
thisHeaderData = { contentType: '' };
|
|
17866
|
-
}
|
|
17867
|
-
|
|
17868
16092
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
17869
16093
|
// see adapter code documentation for more information on the request object's fields
|
|
17870
16094
|
const reqObj = {
|
|
17871
16095
|
payload: bodyVars,
|
|
17872
16096
|
uriPathVars: pathVars,
|
|
17873
16097
|
uriQuery: queryParams,
|
|
17874
|
-
|
|
16098
|
+
authData: this.getObfuscatedKey()
|
|
17875
16099
|
};
|
|
17876
16100
|
|
|
17877
16101
|
try {
|
|
@@ -17948,29 +16172,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
17948
16172
|
}
|
|
17949
16173
|
});
|
|
17950
16174
|
|
|
17951
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
17952
|
-
let thisHeaderData = null;
|
|
17953
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
17954
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
17955
|
-
try {
|
|
17956
|
-
// parse the additional headers object that was passed in
|
|
17957
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
17958
|
-
} catch (err) {
|
|
17959
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
17960
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
17961
|
-
return callback(null, errorObj);
|
|
17962
|
-
}
|
|
17963
|
-
} else if (thisHeaderData === null) {
|
|
17964
|
-
thisHeaderData = { contentType: '' };
|
|
17965
|
-
}
|
|
17966
|
-
|
|
17967
16175
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
17968
16176
|
// see adapter code documentation for more information on the request object's fields
|
|
17969
16177
|
const reqObj = {
|
|
17970
16178
|
payload: bodyVars,
|
|
17971
16179
|
uriPathVars: pathVars,
|
|
17972
16180
|
uriQuery: queryParams,
|
|
17973
|
-
|
|
16181
|
+
authData: this.getObfuscatedKey()
|
|
17974
16182
|
};
|
|
17975
16183
|
|
|
17976
16184
|
try {
|
|
@@ -18047,29 +16255,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
18047
16255
|
}
|
|
18048
16256
|
});
|
|
18049
16257
|
|
|
18050
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
18051
|
-
let thisHeaderData = null;
|
|
18052
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
18053
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
18054
|
-
try {
|
|
18055
|
-
// parse the additional headers object that was passed in
|
|
18056
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
18057
|
-
} catch (err) {
|
|
18058
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
18059
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
18060
|
-
return callback(null, errorObj);
|
|
18061
|
-
}
|
|
18062
|
-
} else if (thisHeaderData === null) {
|
|
18063
|
-
thisHeaderData = { contentType: '' };
|
|
18064
|
-
}
|
|
18065
|
-
|
|
18066
16258
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
18067
16259
|
// see adapter code documentation for more information on the request object's fields
|
|
18068
16260
|
const reqObj = {
|
|
18069
16261
|
payload: bodyVars,
|
|
18070
16262
|
uriPathVars: pathVars,
|
|
18071
16263
|
uriQuery: queryParams,
|
|
18072
|
-
|
|
16264
|
+
authData: this.getObfuscatedKey()
|
|
18073
16265
|
};
|
|
18074
16266
|
|
|
18075
16267
|
try {
|
|
@@ -18142,29 +16334,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
18142
16334
|
}
|
|
18143
16335
|
});
|
|
18144
16336
|
|
|
18145
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
18146
|
-
let thisHeaderData = null;
|
|
18147
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
18148
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
18149
|
-
try {
|
|
18150
|
-
// parse the additional headers object that was passed in
|
|
18151
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
18152
|
-
} catch (err) {
|
|
18153
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
18154
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
18155
|
-
return callback(null, errorObj);
|
|
18156
|
-
}
|
|
18157
|
-
} else if (thisHeaderData === null) {
|
|
18158
|
-
thisHeaderData = { contentType: '' };
|
|
18159
|
-
}
|
|
18160
|
-
|
|
18161
16337
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
18162
16338
|
// see adapter code documentation for more information on the request object's fields
|
|
18163
16339
|
const reqObj = {
|
|
18164
16340
|
payload: bodyVars,
|
|
18165
16341
|
uriPathVars: pathVars,
|
|
18166
16342
|
uriQuery: queryParams,
|
|
18167
|
-
|
|
16343
|
+
authData: this.getObfuscatedKey()
|
|
18168
16344
|
};
|
|
18169
16345
|
|
|
18170
16346
|
try {
|
|
@@ -18235,29 +16411,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
18235
16411
|
}
|
|
18236
16412
|
});
|
|
18237
16413
|
|
|
18238
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
18239
|
-
let thisHeaderData = null;
|
|
18240
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
18241
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
18242
|
-
try {
|
|
18243
|
-
// parse the additional headers object that was passed in
|
|
18244
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
18245
|
-
} catch (err) {
|
|
18246
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
18247
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
18248
|
-
return callback(null, errorObj);
|
|
18249
|
-
}
|
|
18250
|
-
} else if (thisHeaderData === null) {
|
|
18251
|
-
thisHeaderData = { contentType: '' };
|
|
18252
|
-
}
|
|
18253
|
-
|
|
18254
16414
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
18255
16415
|
// see adapter code documentation for more information on the request object's fields
|
|
18256
16416
|
const reqObj = {
|
|
18257
16417
|
payload: bodyVars,
|
|
18258
16418
|
uriPathVars: pathVars,
|
|
18259
16419
|
uriQuery: queryParams,
|
|
18260
|
-
|
|
16420
|
+
authData: this.getObfuscatedKey()
|
|
18261
16421
|
};
|
|
18262
16422
|
|
|
18263
16423
|
try {
|
|
@@ -18334,29 +16494,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
18334
16494
|
}
|
|
18335
16495
|
});
|
|
18336
16496
|
|
|
18337
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
18338
|
-
let thisHeaderData = null;
|
|
18339
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
18340
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
18341
|
-
try {
|
|
18342
|
-
// parse the additional headers object that was passed in
|
|
18343
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
18344
|
-
} catch (err) {
|
|
18345
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
18346
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
18347
|
-
return callback(null, errorObj);
|
|
18348
|
-
}
|
|
18349
|
-
} else if (thisHeaderData === null) {
|
|
18350
|
-
thisHeaderData = { contentType: '' };
|
|
18351
|
-
}
|
|
18352
|
-
|
|
18353
16497
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
18354
16498
|
// see adapter code documentation for more information on the request object's fields
|
|
18355
16499
|
const reqObj = {
|
|
18356
16500
|
payload: bodyVars,
|
|
18357
16501
|
uriPathVars: pathVars,
|
|
18358
16502
|
uriQuery: queryParams,
|
|
18359
|
-
|
|
16503
|
+
authData: this.getObfuscatedKey()
|
|
18360
16504
|
};
|
|
18361
16505
|
|
|
18362
16506
|
try {
|
|
@@ -18433,29 +16577,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
18433
16577
|
}
|
|
18434
16578
|
});
|
|
18435
16579
|
|
|
18436
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
18437
|
-
let thisHeaderData = null;
|
|
18438
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
18439
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
18440
|
-
try {
|
|
18441
|
-
// parse the additional headers object that was passed in
|
|
18442
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
18443
|
-
} catch (err) {
|
|
18444
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
18445
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
18446
|
-
return callback(null, errorObj);
|
|
18447
|
-
}
|
|
18448
|
-
} else if (thisHeaderData === null) {
|
|
18449
|
-
thisHeaderData = { contentType: '' };
|
|
18450
|
-
}
|
|
18451
|
-
|
|
18452
16580
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
18453
16581
|
// see adapter code documentation for more information on the request object's fields
|
|
18454
16582
|
const reqObj = {
|
|
18455
16583
|
payload: bodyVars,
|
|
18456
16584
|
uriPathVars: pathVars,
|
|
18457
16585
|
uriQuery: queryParams,
|
|
18458
|
-
|
|
16586
|
+
authData: this.getObfuscatedKey()
|
|
18459
16587
|
};
|
|
18460
16588
|
|
|
18461
16589
|
try {
|
|
@@ -18532,29 +16660,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
18532
16660
|
}
|
|
18533
16661
|
});
|
|
18534
16662
|
|
|
18535
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
18536
|
-
let thisHeaderData = null;
|
|
18537
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
18538
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
18539
|
-
try {
|
|
18540
|
-
// parse the additional headers object that was passed in
|
|
18541
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
18542
|
-
} catch (err) {
|
|
18543
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
18544
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
18545
|
-
return callback(null, errorObj);
|
|
18546
|
-
}
|
|
18547
|
-
} else if (thisHeaderData === null) {
|
|
18548
|
-
thisHeaderData = { contentType: '' };
|
|
18549
|
-
}
|
|
18550
|
-
|
|
18551
16663
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
18552
16664
|
// see adapter code documentation for more information on the request object's fields
|
|
18553
16665
|
const reqObj = {
|
|
18554
16666
|
payload: bodyVars,
|
|
18555
16667
|
uriPathVars: pathVars,
|
|
18556
16668
|
uriQuery: queryParams,
|
|
18557
|
-
|
|
16669
|
+
authData: this.getObfuscatedKey()
|
|
18558
16670
|
};
|
|
18559
16671
|
|
|
18560
16672
|
try {
|
|
@@ -18625,29 +16737,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
18625
16737
|
}
|
|
18626
16738
|
});
|
|
18627
16739
|
|
|
18628
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
18629
|
-
let thisHeaderData = null;
|
|
18630
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
18631
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
18632
|
-
try {
|
|
18633
|
-
// parse the additional headers object that was passed in
|
|
18634
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
18635
|
-
} catch (err) {
|
|
18636
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
18637
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
18638
|
-
return callback(null, errorObj);
|
|
18639
|
-
}
|
|
18640
|
-
} else if (thisHeaderData === null) {
|
|
18641
|
-
thisHeaderData = { contentType: '' };
|
|
18642
|
-
}
|
|
18643
|
-
|
|
18644
16740
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
18645
16741
|
// see adapter code documentation for more information on the request object's fields
|
|
18646
16742
|
const reqObj = {
|
|
18647
16743
|
payload: bodyVars,
|
|
18648
16744
|
uriPathVars: pathVars,
|
|
18649
16745
|
uriQuery: queryParams,
|
|
18650
|
-
|
|
16746
|
+
authData: this.getObfuscatedKey()
|
|
18651
16747
|
};
|
|
18652
16748
|
|
|
18653
16749
|
try {
|
|
@@ -18724,7 +16820,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
18724
16820
|
const reqObj = {
|
|
18725
16821
|
payload: bodyVars,
|
|
18726
16822
|
uriPathVars: pathVars,
|
|
18727
|
-
uriQuery: queryParams
|
|
16823
|
+
uriQuery: queryParams,
|
|
16824
|
+
authData: this.getObfuscatedKey()
|
|
18728
16825
|
};
|
|
18729
16826
|
|
|
18730
16827
|
try {
|
|
@@ -18795,29 +16892,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
18795
16892
|
}
|
|
18796
16893
|
});
|
|
18797
16894
|
|
|
18798
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
18799
|
-
let thisHeaderData = null;
|
|
18800
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
18801
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
18802
|
-
try {
|
|
18803
|
-
// parse the additional headers object that was passed in
|
|
18804
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
18805
|
-
} catch (err) {
|
|
18806
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
18807
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
18808
|
-
return callback(null, errorObj);
|
|
18809
|
-
}
|
|
18810
|
-
} else if (thisHeaderData === null) {
|
|
18811
|
-
thisHeaderData = { contentType: '' };
|
|
18812
|
-
}
|
|
18813
|
-
|
|
18814
16895
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
18815
16896
|
// see adapter code documentation for more information on the request object's fields
|
|
18816
16897
|
const reqObj = {
|
|
18817
16898
|
payload: bodyVars,
|
|
18818
16899
|
uriPathVars: pathVars,
|
|
18819
16900
|
uriQuery: queryParams,
|
|
18820
|
-
|
|
16901
|
+
authData: this.getObfuscatedKey()
|
|
18821
16902
|
};
|
|
18822
16903
|
|
|
18823
16904
|
try {
|
|
@@ -18899,7 +16980,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
18899
16980
|
const reqObj = {
|
|
18900
16981
|
payload: bodyVars,
|
|
18901
16982
|
uriPathVars: pathVars,
|
|
18902
|
-
uriQuery: queryParams
|
|
16983
|
+
uriQuery: queryParams,
|
|
16984
|
+
authData: this.getObfuscatedKey()
|
|
18903
16985
|
};
|
|
18904
16986
|
|
|
18905
16987
|
try {
|
|
@@ -18972,29 +17054,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
18972
17054
|
}
|
|
18973
17055
|
});
|
|
18974
17056
|
|
|
18975
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
18976
|
-
let thisHeaderData = null;
|
|
18977
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
18978
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
18979
|
-
try {
|
|
18980
|
-
// parse the additional headers object that was passed in
|
|
18981
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
18982
|
-
} catch (err) {
|
|
18983
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
18984
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
18985
|
-
return callback(null, errorObj);
|
|
18986
|
-
}
|
|
18987
|
-
} else if (thisHeaderData === null) {
|
|
18988
|
-
thisHeaderData = { contentType: '' };
|
|
18989
|
-
}
|
|
18990
|
-
|
|
18991
17057
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
18992
17058
|
// see adapter code documentation for more information on the request object's fields
|
|
18993
17059
|
const reqObj = {
|
|
18994
17060
|
payload: bodyVars,
|
|
18995
17061
|
uriPathVars: pathVars,
|
|
18996
17062
|
uriQuery: queryParams,
|
|
18997
|
-
|
|
17063
|
+
authData: this.getObfuscatedKey()
|
|
18998
17064
|
};
|
|
18999
17065
|
|
|
19000
17066
|
try {
|
|
@@ -19065,29 +17131,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
19065
17131
|
}
|
|
19066
17132
|
});
|
|
19067
17133
|
|
|
19068
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
19069
|
-
let thisHeaderData = null;
|
|
19070
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
19071
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
19072
|
-
try {
|
|
19073
|
-
// parse the additional headers object that was passed in
|
|
19074
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
19075
|
-
} catch (err) {
|
|
19076
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
19077
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
19078
|
-
return callback(null, errorObj);
|
|
19079
|
-
}
|
|
19080
|
-
} else if (thisHeaderData === null) {
|
|
19081
|
-
thisHeaderData = { contentType: '' };
|
|
19082
|
-
}
|
|
19083
|
-
|
|
19084
17134
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
19085
17135
|
// see adapter code documentation for more information on the request object's fields
|
|
19086
17136
|
const reqObj = {
|
|
19087
17137
|
payload: bodyVars,
|
|
19088
17138
|
uriPathVars: pathVars,
|
|
19089
17139
|
uriQuery: queryParams,
|
|
19090
|
-
|
|
17140
|
+
authData: this.getObfuscatedKey()
|
|
19091
17141
|
};
|
|
19092
17142
|
|
|
19093
17143
|
try {
|
|
@@ -19169,7 +17219,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
19169
17219
|
const reqObj = {
|
|
19170
17220
|
payload: bodyVars,
|
|
19171
17221
|
uriPathVars: pathVars,
|
|
19172
|
-
uriQuery: queryParams
|
|
17222
|
+
uriQuery: queryParams,
|
|
17223
|
+
authData: this.getObfuscatedKey()
|
|
19173
17224
|
};
|
|
19174
17225
|
|
|
19175
17226
|
try {
|
|
@@ -19257,7 +17308,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
19257
17308
|
const reqObj = {
|
|
19258
17309
|
payload: bodyVars,
|
|
19259
17310
|
uriPathVars: pathVars,
|
|
19260
|
-
uriQuery: queryParams
|
|
17311
|
+
uriQuery: queryParams,
|
|
17312
|
+
authData: this.getObfuscatedKey()
|
|
19261
17313
|
};
|
|
19262
17314
|
|
|
19263
17315
|
try {
|
|
@@ -19335,7 +17387,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
19335
17387
|
const reqObj = {
|
|
19336
17388
|
payload: bodyVars,
|
|
19337
17389
|
uriPathVars: pathVars,
|
|
19338
|
-
uriQuery: queryParams
|
|
17390
|
+
uriQuery: queryParams,
|
|
17391
|
+
authData: this.getObfuscatedKey()
|
|
19339
17392
|
};
|
|
19340
17393
|
|
|
19341
17394
|
try {
|
|
@@ -19417,7 +17470,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
19417
17470
|
const reqObj = {
|
|
19418
17471
|
payload: bodyVars,
|
|
19419
17472
|
uriPathVars: pathVars,
|
|
19420
|
-
uriQuery: queryParams
|
|
17473
|
+
uriQuery: queryParams,
|
|
17474
|
+
authData: this.getObfuscatedKey()
|
|
19421
17475
|
};
|
|
19422
17476
|
|
|
19423
17477
|
try {
|
|
@@ -19496,7 +17550,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
19496
17550
|
const reqObj = {
|
|
19497
17551
|
payload: bodyVars,
|
|
19498
17552
|
uriPathVars: pathVars,
|
|
19499
|
-
uriQuery: queryParams
|
|
17553
|
+
uriQuery: queryParams,
|
|
17554
|
+
authData: this.getObfuscatedKey()
|
|
19500
17555
|
};
|
|
19501
17556
|
|
|
19502
17557
|
try {
|
|
@@ -19578,7 +17633,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
19578
17633
|
const reqObj = {
|
|
19579
17634
|
payload: bodyVars,
|
|
19580
17635
|
uriPathVars: pathVars,
|
|
19581
|
-
uriQuery: queryParams
|
|
17636
|
+
uriQuery: queryParams,
|
|
17637
|
+
authData: this.getObfuscatedKey()
|
|
19582
17638
|
};
|
|
19583
17639
|
|
|
19584
17640
|
try {
|
|
@@ -19666,7 +17722,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
19666
17722
|
const reqObj = {
|
|
19667
17723
|
payload: bodyVars,
|
|
19668
17724
|
uriPathVars: pathVars,
|
|
19669
|
-
uriQuery: queryParams
|
|
17725
|
+
uriQuery: queryParams,
|
|
17726
|
+
authData: this.getObfuscatedKey()
|
|
19670
17727
|
};
|
|
19671
17728
|
|
|
19672
17729
|
try {
|
|
@@ -19743,29 +17800,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
19743
17800
|
}
|
|
19744
17801
|
});
|
|
19745
17802
|
|
|
19746
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
19747
|
-
let thisHeaderData = null;
|
|
19748
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
19749
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
19750
|
-
try {
|
|
19751
|
-
// parse the additional headers object that was passed in
|
|
19752
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
19753
|
-
} catch (err) {
|
|
19754
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
19755
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
19756
|
-
return callback(null, errorObj);
|
|
19757
|
-
}
|
|
19758
|
-
} else if (thisHeaderData === null) {
|
|
19759
|
-
thisHeaderData = { contentType: '' };
|
|
19760
|
-
}
|
|
19761
|
-
|
|
19762
17803
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
19763
17804
|
// see adapter code documentation for more information on the request object's fields
|
|
19764
17805
|
const reqObj = {
|
|
19765
17806
|
payload: bodyVars,
|
|
19766
17807
|
uriPathVars: pathVars,
|
|
19767
17808
|
uriQuery: queryParams,
|
|
19768
|
-
|
|
17809
|
+
authData: this.getObfuscatedKey()
|
|
19769
17810
|
};
|
|
19770
17811
|
|
|
19771
17812
|
try {
|
|
@@ -19836,29 +17877,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
19836
17877
|
}
|
|
19837
17878
|
});
|
|
19838
17879
|
|
|
19839
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
19840
|
-
let thisHeaderData = null;
|
|
19841
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
19842
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
19843
|
-
try {
|
|
19844
|
-
// parse the additional headers object that was passed in
|
|
19845
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
19846
|
-
} catch (err) {
|
|
19847
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
19848
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
19849
|
-
return callback(null, errorObj);
|
|
19850
|
-
}
|
|
19851
|
-
} else if (thisHeaderData === null) {
|
|
19852
|
-
thisHeaderData = { contentType: '' };
|
|
19853
|
-
}
|
|
19854
|
-
|
|
19855
17880
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
19856
17881
|
// see adapter code documentation for more information on the request object's fields
|
|
19857
17882
|
const reqObj = {
|
|
19858
17883
|
payload: bodyVars,
|
|
19859
17884
|
uriPathVars: pathVars,
|
|
19860
17885
|
uriQuery: queryParams,
|
|
19861
|
-
|
|
17886
|
+
authData: this.getObfuscatedKey()
|
|
19862
17887
|
};
|
|
19863
17888
|
|
|
19864
17889
|
try {
|
|
@@ -19930,29 +17955,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
19930
17955
|
}
|
|
19931
17956
|
});
|
|
19932
17957
|
|
|
19933
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
19934
|
-
let thisHeaderData = null;
|
|
19935
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
19936
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
19937
|
-
try {
|
|
19938
|
-
// parse the additional headers object that was passed in
|
|
19939
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
19940
|
-
} catch (err) {
|
|
19941
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
19942
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
19943
|
-
return callback(null, errorObj);
|
|
19944
|
-
}
|
|
19945
|
-
} else if (thisHeaderData === null) {
|
|
19946
|
-
thisHeaderData = { contentType: '' };
|
|
19947
|
-
}
|
|
19948
|
-
|
|
19949
17958
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
19950
17959
|
// see adapter code documentation for more information on the request object's fields
|
|
19951
17960
|
const reqObj = {
|
|
19952
17961
|
payload: bodyVars,
|
|
19953
17962
|
uriPathVars: pathVars,
|
|
19954
17963
|
uriQuery: queryParams,
|
|
19955
|
-
|
|
17964
|
+
authData: this.getObfuscatedKey()
|
|
19956
17965
|
};
|
|
19957
17966
|
|
|
19958
17967
|
try {
|
|
@@ -20026,29 +18035,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
20026
18035
|
}
|
|
20027
18036
|
});
|
|
20028
18037
|
|
|
20029
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
20030
|
-
let thisHeaderData = null;
|
|
20031
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
20032
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
20033
|
-
try {
|
|
20034
|
-
// parse the additional headers object that was passed in
|
|
20035
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
20036
|
-
} catch (err) {
|
|
20037
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
20038
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
20039
|
-
return callback(null, errorObj);
|
|
20040
|
-
}
|
|
20041
|
-
} else if (thisHeaderData === null) {
|
|
20042
|
-
thisHeaderData = { contentType: '' };
|
|
20043
|
-
}
|
|
20044
|
-
|
|
20045
18038
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
20046
18039
|
// see adapter code documentation for more information on the request object's fields
|
|
20047
18040
|
const reqObj = {
|
|
20048
18041
|
payload: bodyVars,
|
|
20049
18042
|
uriPathVars: pathVars,
|
|
20050
18043
|
uriQuery: queryParams,
|
|
20051
|
-
|
|
18044
|
+
authData: this.getObfuscatedKey()
|
|
20052
18045
|
};
|
|
20053
18046
|
|
|
20054
18047
|
try {
|
|
@@ -20120,29 +18113,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
20120
18113
|
}
|
|
20121
18114
|
});
|
|
20122
18115
|
|
|
20123
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
20124
|
-
let thisHeaderData = null;
|
|
20125
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
20126
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
20127
|
-
try {
|
|
20128
|
-
// parse the additional headers object that was passed in
|
|
20129
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
20130
|
-
} catch (err) {
|
|
20131
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
20132
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
20133
|
-
return callback(null, errorObj);
|
|
20134
|
-
}
|
|
20135
|
-
} else if (thisHeaderData === null) {
|
|
20136
|
-
thisHeaderData = { contentType: '' };
|
|
20137
|
-
}
|
|
20138
|
-
|
|
20139
18116
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
20140
18117
|
// see adapter code documentation for more information on the request object's fields
|
|
20141
18118
|
const reqObj = {
|
|
20142
18119
|
payload: bodyVars,
|
|
20143
18120
|
uriPathVars: pathVars,
|
|
20144
18121
|
uriQuery: queryParams,
|
|
20145
|
-
|
|
18122
|
+
authData: this.getObfuscatedKey()
|
|
20146
18123
|
};
|
|
20147
18124
|
|
|
20148
18125
|
try {
|
|
@@ -20230,7 +18207,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
20230
18207
|
const reqObj = {
|
|
20231
18208
|
payload: bodyVars,
|
|
20232
18209
|
uriPathVars: pathVars,
|
|
20233
|
-
uriQuery: queryParams
|
|
18210
|
+
uriQuery: queryParams,
|
|
18211
|
+
authData: this.getObfuscatedKey()
|
|
20234
18212
|
};
|
|
20235
18213
|
|
|
20236
18214
|
try {
|
|
@@ -20312,7 +18290,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
20312
18290
|
const reqObj = {
|
|
20313
18291
|
payload: bodyVars,
|
|
20314
18292
|
uriPathVars: pathVars,
|
|
20315
|
-
uriQuery: queryParams
|
|
18293
|
+
uriQuery: queryParams,
|
|
18294
|
+
authData: this.getObfuscatedKey()
|
|
20316
18295
|
};
|
|
20317
18296
|
|
|
20318
18297
|
try {
|
|
@@ -20391,7 +18370,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
20391
18370
|
const reqObj = {
|
|
20392
18371
|
payload: bodyVars,
|
|
20393
18372
|
uriPathVars: pathVars,
|
|
20394
|
-
uriQuery: queryParams
|
|
18373
|
+
uriQuery: queryParams,
|
|
18374
|
+
authData: this.getObfuscatedKey()
|
|
20395
18375
|
};
|
|
20396
18376
|
|
|
20397
18377
|
try {
|
|
@@ -20471,7 +18451,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
20471
18451
|
const reqObj = {
|
|
20472
18452
|
payload: bodyVars,
|
|
20473
18453
|
uriPathVars: pathVars,
|
|
20474
|
-
uriQuery: queryParams
|
|
18454
|
+
uriQuery: queryParams,
|
|
18455
|
+
authData: this.getObfuscatedKey()
|
|
20475
18456
|
};
|
|
20476
18457
|
|
|
20477
18458
|
try {
|
|
@@ -20553,7 +18534,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
20553
18534
|
const reqObj = {
|
|
20554
18535
|
payload: bodyVars,
|
|
20555
18536
|
uriPathVars: pathVars,
|
|
20556
|
-
uriQuery: queryParams
|
|
18537
|
+
uriQuery: queryParams,
|
|
18538
|
+
authData: this.getObfuscatedKey()
|
|
20557
18539
|
};
|
|
20558
18540
|
|
|
20559
18541
|
try {
|
|
@@ -20635,7 +18617,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
20635
18617
|
const reqObj = {
|
|
20636
18618
|
payload: bodyVars,
|
|
20637
18619
|
uriPathVars: pathVars,
|
|
20638
|
-
uriQuery: queryParams
|
|
18620
|
+
uriQuery: queryParams,
|
|
18621
|
+
authData: this.getObfuscatedKey()
|
|
20639
18622
|
};
|
|
20640
18623
|
|
|
20641
18624
|
try {
|
|
@@ -20717,7 +18700,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
20717
18700
|
const reqObj = {
|
|
20718
18701
|
payload: bodyVars,
|
|
20719
18702
|
uriPathVars: pathVars,
|
|
20720
|
-
uriQuery: queryParams
|
|
18703
|
+
uriQuery: queryParams,
|
|
18704
|
+
authData: this.getObfuscatedKey()
|
|
20721
18705
|
};
|
|
20722
18706
|
|
|
20723
18707
|
try {
|
|
@@ -20805,7 +18789,8 @@ class Zscaler extends AdapterBaseCl {
|
|
|
20805
18789
|
const reqObj = {
|
|
20806
18790
|
payload: bodyVars,
|
|
20807
18791
|
uriPathVars: pathVars,
|
|
20808
|
-
uriQuery: queryParams
|
|
18792
|
+
uriQuery: queryParams,
|
|
18793
|
+
authData: this.getObfuscatedKey()
|
|
20809
18794
|
};
|
|
20810
18795
|
|
|
20811
18796
|
try {
|
|
@@ -20882,29 +18867,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
20882
18867
|
}
|
|
20883
18868
|
});
|
|
20884
18869
|
|
|
20885
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
20886
|
-
let thisHeaderData = null;
|
|
20887
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
20888
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
20889
|
-
try {
|
|
20890
|
-
// parse the additional headers object that was passed in
|
|
20891
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
20892
|
-
} catch (err) {
|
|
20893
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
20894
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
20895
|
-
return callback(null, errorObj);
|
|
20896
|
-
}
|
|
20897
|
-
} else if (thisHeaderData === null) {
|
|
20898
|
-
thisHeaderData = { contentType: '' };
|
|
20899
|
-
}
|
|
20900
|
-
|
|
20901
18870
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
20902
18871
|
// see adapter code documentation for more information on the request object's fields
|
|
20903
18872
|
const reqObj = {
|
|
20904
18873
|
payload: bodyVars,
|
|
20905
18874
|
uriPathVars: pathVars,
|
|
20906
18875
|
uriQuery: queryParams,
|
|
20907
|
-
|
|
18876
|
+
authData: this.getObfuscatedKey()
|
|
20908
18877
|
};
|
|
20909
18878
|
|
|
20910
18879
|
try {
|
|
@@ -20981,29 +18950,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
20981
18950
|
}
|
|
20982
18951
|
});
|
|
20983
18952
|
|
|
20984
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
20985
|
-
let thisHeaderData = null;
|
|
20986
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
20987
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
20988
|
-
try {
|
|
20989
|
-
// parse the additional headers object that was passed in
|
|
20990
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
20991
|
-
} catch (err) {
|
|
20992
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
20993
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
20994
|
-
return callback(null, errorObj);
|
|
20995
|
-
}
|
|
20996
|
-
} else if (thisHeaderData === null) {
|
|
20997
|
-
thisHeaderData = { contentType: '' };
|
|
20998
|
-
}
|
|
20999
|
-
|
|
21000
18953
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
21001
18954
|
// see adapter code documentation for more information on the request object's fields
|
|
21002
18955
|
const reqObj = {
|
|
21003
18956
|
payload: bodyVars,
|
|
21004
18957
|
uriPathVars: pathVars,
|
|
21005
18958
|
uriQuery: queryParams,
|
|
21006
|
-
|
|
18959
|
+
authData: this.getObfuscatedKey()
|
|
21007
18960
|
};
|
|
21008
18961
|
|
|
21009
18962
|
try {
|
|
@@ -21082,29 +19035,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
21082
19035
|
}
|
|
21083
19036
|
});
|
|
21084
19037
|
|
|
21085
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
21086
|
-
let thisHeaderData = null;
|
|
21087
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
21088
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
21089
|
-
try {
|
|
21090
|
-
// parse the additional headers object that was passed in
|
|
21091
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
21092
|
-
} catch (err) {
|
|
21093
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
21094
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
21095
|
-
return callback(null, errorObj);
|
|
21096
|
-
}
|
|
21097
|
-
} else if (thisHeaderData === null) {
|
|
21098
|
-
thisHeaderData = { contentType: '' };
|
|
21099
|
-
}
|
|
21100
|
-
|
|
21101
19038
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
21102
19039
|
// see adapter code documentation for more information on the request object's fields
|
|
21103
19040
|
const reqObj = {
|
|
21104
19041
|
payload: bodyVars,
|
|
21105
19042
|
uriPathVars: pathVars,
|
|
21106
19043
|
uriQuery: queryParams,
|
|
21107
|
-
|
|
19044
|
+
authData: this.getObfuscatedKey()
|
|
21108
19045
|
};
|
|
21109
19046
|
|
|
21110
19047
|
try {
|
|
@@ -21183,29 +19120,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
21183
19120
|
}
|
|
21184
19121
|
});
|
|
21185
19122
|
|
|
21186
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
21187
|
-
let thisHeaderData = null;
|
|
21188
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
21189
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
21190
|
-
try {
|
|
21191
|
-
// parse the additional headers object that was passed in
|
|
21192
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
21193
|
-
} catch (err) {
|
|
21194
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
21195
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
21196
|
-
return callback(null, errorObj);
|
|
21197
|
-
}
|
|
21198
|
-
} else if (thisHeaderData === null) {
|
|
21199
|
-
thisHeaderData = { contentType: '' };
|
|
21200
|
-
}
|
|
21201
|
-
|
|
21202
19123
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
21203
19124
|
// see adapter code documentation for more information on the request object's fields
|
|
21204
19125
|
const reqObj = {
|
|
21205
19126
|
payload: bodyVars,
|
|
21206
19127
|
uriPathVars: pathVars,
|
|
21207
19128
|
uriQuery: queryParams,
|
|
21208
|
-
|
|
19129
|
+
authData: this.getObfuscatedKey()
|
|
21209
19130
|
};
|
|
21210
19131
|
|
|
21211
19132
|
try {
|
|
@@ -21276,29 +19197,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
21276
19197
|
}
|
|
21277
19198
|
});
|
|
21278
19199
|
|
|
21279
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
21280
|
-
let thisHeaderData = null;
|
|
21281
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
21282
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
21283
|
-
try {
|
|
21284
|
-
// parse the additional headers object that was passed in
|
|
21285
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
21286
|
-
} catch (err) {
|
|
21287
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
21288
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
21289
|
-
return callback(null, errorObj);
|
|
21290
|
-
}
|
|
21291
|
-
} else if (thisHeaderData === null) {
|
|
21292
|
-
thisHeaderData = { contentType: '' };
|
|
21293
|
-
}
|
|
21294
|
-
|
|
21295
19200
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
21296
19201
|
// see adapter code documentation for more information on the request object's fields
|
|
21297
19202
|
const reqObj = {
|
|
21298
19203
|
payload: bodyVars,
|
|
21299
19204
|
uriPathVars: pathVars,
|
|
21300
19205
|
uriQuery: queryParams,
|
|
21301
|
-
|
|
19206
|
+
authData: this.getObfuscatedKey()
|
|
21302
19207
|
};
|
|
21303
19208
|
|
|
21304
19209
|
try {
|
|
@@ -21375,29 +19280,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
21375
19280
|
}
|
|
21376
19281
|
});
|
|
21377
19282
|
|
|
21378
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
21379
|
-
let thisHeaderData = null;
|
|
21380
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
21381
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
21382
|
-
try {
|
|
21383
|
-
// parse the additional headers object that was passed in
|
|
21384
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
21385
|
-
} catch (err) {
|
|
21386
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
21387
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
21388
|
-
return callback(null, errorObj);
|
|
21389
|
-
}
|
|
21390
|
-
} else if (thisHeaderData === null) {
|
|
21391
|
-
thisHeaderData = { contentType: '' };
|
|
21392
|
-
}
|
|
21393
|
-
|
|
21394
19283
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
21395
19284
|
// see adapter code documentation for more information on the request object's fields
|
|
21396
19285
|
const reqObj = {
|
|
21397
19286
|
payload: bodyVars,
|
|
21398
19287
|
uriPathVars: pathVars,
|
|
21399
19288
|
uriQuery: queryParams,
|
|
21400
|
-
|
|
19289
|
+
authData: this.getObfuscatedKey()
|
|
21401
19290
|
};
|
|
21402
19291
|
|
|
21403
19292
|
try {
|
|
@@ -21470,29 +19359,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
21470
19359
|
}
|
|
21471
19360
|
});
|
|
21472
19361
|
|
|
21473
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
21474
|
-
let thisHeaderData = null;
|
|
21475
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
21476
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
21477
|
-
try {
|
|
21478
|
-
// parse the additional headers object that was passed in
|
|
21479
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
21480
|
-
} catch (err) {
|
|
21481
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
21482
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
21483
|
-
return callback(null, errorObj);
|
|
21484
|
-
}
|
|
21485
|
-
} else if (thisHeaderData === null) {
|
|
21486
|
-
thisHeaderData = { contentType: '' };
|
|
21487
|
-
}
|
|
21488
|
-
|
|
21489
19362
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
21490
19363
|
// see adapter code documentation for more information on the request object's fields
|
|
21491
19364
|
const reqObj = {
|
|
21492
19365
|
payload: bodyVars,
|
|
21493
19366
|
uriPathVars: pathVars,
|
|
21494
19367
|
uriQuery: queryParams,
|
|
21495
|
-
|
|
19368
|
+
authData: this.getObfuscatedKey()
|
|
21496
19369
|
};
|
|
21497
19370
|
|
|
21498
19371
|
try {
|
|
@@ -21570,29 +19443,13 @@ class Zscaler extends AdapterBaseCl {
|
|
|
21570
19443
|
}
|
|
21571
19444
|
});
|
|
21572
19445
|
|
|
21573
|
-
// if you want to expose addlHeaders to workflow, add it to the method signature here and in pronghorn.json
|
|
21574
|
-
let thisHeaderData = null;
|
|
21575
|
-
// if the additional headers was passed in as a string parse the json into an object
|
|
21576
|
-
if (thisHeaderData !== null && thisHeaderData.constructor === String) {
|
|
21577
|
-
try {
|
|
21578
|
-
// parse the additional headers object that was passed in
|
|
21579
|
-
thisHeaderData = JSON.parse(thisHeaderData);
|
|
21580
|
-
} catch (err) {
|
|
21581
|
-
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'addlHeaders string must be a stringified JSON', [], null, null, null);
|
|
21582
|
-
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
21583
|
-
return callback(null, errorObj);
|
|
21584
|
-
}
|
|
21585
|
-
} else if (thisHeaderData === null) {
|
|
21586
|
-
thisHeaderData = { contentType: '' };
|
|
21587
|
-
}
|
|
21588
|
-
|
|
21589
19446
|
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, filter, priority, event
|
|
21590
19447
|
// see adapter code documentation for more information on the request object's fields
|
|
21591
19448
|
const reqObj = {
|
|
21592
19449
|
payload: bodyVars,
|
|
21593
19450
|
uriPathVars: pathVars,
|
|
21594
19451
|
uriQuery: queryParams,
|
|
21595
|
-
|
|
19452
|
+
authData: this.getObfuscatedKey()
|
|
21596
19453
|
};
|
|
21597
19454
|
|
|
21598
19455
|
try {
|