@itentialopensource/adapter-moogsoft 0.1.1 → 0.2.0
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/.eslintignore +1 -0
- package/.eslintrc.js +12 -12
- package/.jshintrc +0 -0
- package/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +169 -0
- package/CHANGELOG.md +37 -2
- package/CODE_OF_CONDUCT.md +12 -17
- package/CONTRIBUTING.md +88 -74
- package/ENHANCE.md +69 -0
- package/LICENSE +0 -0
- package/PROPERTIES.md +641 -0
- package/README.md +249 -418
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +1636 -35
- package/adapterBase.js +1331 -50
- package/entities/.generic/action.json +214 -0
- package/entities/.generic/schema.json +28 -0
- package/entities/.system/action.json +1 -0
- package/entities/Alerts/action.json +9 -0
- package/entities/Cookbooks/action.json +3 -0
- package/entities/Integrations/action.json +3 -0
- package/entities/Licenses/action.json +1 -0
- package/entities/MaintenanceWindows/action.json +4 -0
- package/entities/MergeGroups/action.json +4 -0
- package/entities/Processes/action.json +1 -0
- package/entities/Recipes/action.json +5 -0
- package/entities/SecurityRealms/action.json +2 -0
- package/entities/Services/action.json +1 -0
- package/entities/Situations/action.json +20 -0
- package/entities/Teams/action.json +3 -0
- package/entities/Tempus/action.json +3 -0
- package/entities/Threads/action.json +4 -0
- package/entities/Tools/action.json +2 -0
- package/entities/Users/action.json +2 -0
- package/entities/Workflows/action.json +4 -0
- package/error.json +12 -0
- package/package.json +51 -25
- package/pronghorn.json +642 -0
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +487 -10
- package/refs?service=git-upload-pack +0 -0
- package/report/Moogsoft.OpenApi3Json.json +11552 -0
- package/report/adapterInfo.json +10 -0
- package/report/updateReport1594225130913.json +95 -0
- package/report/updateReport1615386555916.json +95 -0
- package/report/updateReport1653652218796.json +120 -0
- package/sampleProperties.json +103 -5
- package/test/integration/adapterTestBasicGet.js +85 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +33 -102
- package/test/unit/adapterBaseTestUnit.js +949 -0
- package/test/unit/adapterTestUnit.js +643 -110
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +9 -14
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +179 -0
- package/utils/findPath.js +74 -0
- package/utils/modify.js +154 -0
- package/utils/packModificationScript.js +1 -1
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +4 -1
- package/utils/removeHooks.js +20 -0
- package/utils/setup.js +0 -0
- package/utils/tbScript.js +184 -0
- package/utils/tbUtils.js +469 -0
- package/utils/testRunner.js +16 -16
- package/utils/troubleshootingAdapter.js +190 -0
- package/workflows/README.md +0 -0
- package/gl-code-quality-report.json +0 -1
package/adapter.js
CHANGED
|
@@ -8,12 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
/* Required libraries. */
|
|
10
10
|
const path = require('path');
|
|
11
|
-
// const xmldom = require('xmldom');
|
|
12
11
|
|
|
13
12
|
/* Fetch in the other needed components for the this Adaptor */
|
|
14
13
|
const AdapterBaseCl = require(path.join(__dirname, 'adapterBase.js'));
|
|
15
14
|
|
|
16
|
-
|
|
17
15
|
/**
|
|
18
16
|
* This is the adapter/interface into Moogsoft
|
|
19
17
|
*/
|
|
@@ -23,69 +21,303 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
23
21
|
/**
|
|
24
22
|
* Moogsoft Adapter
|
|
25
23
|
* @constructor
|
|
24
|
+
*/
|
|
25
|
+
/* Working on changing the way we do Emit methods due to size and time constrainsts
|
|
26
26
|
constructor(prongid, properties) {
|
|
27
27
|
// Instantiate the AdapterBase super class
|
|
28
28
|
super(prongid, properties);
|
|
29
29
|
|
|
30
|
+
const restFunctionNames = this.getWorkflowFunctions();
|
|
31
|
+
|
|
32
|
+
// Dynamically bind emit functions
|
|
33
|
+
for (let i = 0; i < restFunctionNames.length; i += 1) {
|
|
34
|
+
// Bind function to have name fnNameEmit for fnName
|
|
35
|
+
const version = restFunctionNames[i].match(/__v[0-9]+/);
|
|
36
|
+
const baseFnName = restFunctionNames[i].replace(/__v[0-9]+/, '');
|
|
37
|
+
const fnNameEmit = version ? `${baseFnName}Emit${version}` : `${baseFnName}Emit`;
|
|
38
|
+
this[fnNameEmit] = function (...args) {
|
|
39
|
+
// extract the callback
|
|
40
|
+
const callback = args[args.length - 1];
|
|
41
|
+
// slice the callback from args so we can insert our own
|
|
42
|
+
const functionArgs = args.slice(0, args.length - 1);
|
|
43
|
+
// create a random name for the listener
|
|
44
|
+
const eventName = `${restFunctionNames[i]}:${Math.random().toString(36)}`;
|
|
45
|
+
// tell the calling class to start listening
|
|
46
|
+
callback({ event: eventName, status: 'received' });
|
|
47
|
+
// store parent for use of this context later
|
|
48
|
+
const parent = this;
|
|
49
|
+
// store emission function
|
|
50
|
+
const func = function (val, err) {
|
|
51
|
+
parent.removeListener(eventName, func);
|
|
52
|
+
parent.emit(eventName, val, err);
|
|
53
|
+
};
|
|
54
|
+
// Use apply to call the function in a specific context
|
|
55
|
+
this[restFunctionNames[i]].apply(this, functionArgs.concat([func])); // eslint-disable-line prefer-spread
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
30
59
|
// Uncomment if you have things to add to the constructor like using your own properties.
|
|
31
60
|
// Otherwise the constructor in the adapterBase will be used.
|
|
32
61
|
// Capture my own properties - they need to be defined in propertiesSchema.json
|
|
33
|
-
if (this.allProps && this.allProps.myownproperty) {
|
|
34
|
-
|
|
35
|
-
}
|
|
62
|
+
// if (this.allProps && this.allProps.myownproperty) {
|
|
63
|
+
// mypropvariable = this.allProps.myownproperty;
|
|
64
|
+
// }
|
|
36
65
|
}
|
|
37
66
|
*/
|
|
38
67
|
|
|
39
|
-
|
|
40
68
|
/**
|
|
41
69
|
* @callback healthCallback
|
|
42
|
-
* @param {Object}
|
|
70
|
+
* @param {Object} reqObj - the request to send into the healthcheck
|
|
71
|
+
* @param {Callback} callback - The results of the call
|
|
43
72
|
*/
|
|
73
|
+
healthCheck(reqObj, callback) {
|
|
74
|
+
// you can modify what is passed into the healthcheck by changing things in the newReq
|
|
75
|
+
let newReq = null;
|
|
76
|
+
if (reqObj) {
|
|
77
|
+
newReq = Object.assign(...reqObj);
|
|
78
|
+
}
|
|
79
|
+
super.healthCheck(newReq, callback);
|
|
80
|
+
}
|
|
81
|
+
|
|
44
82
|
/**
|
|
45
|
-
* @
|
|
46
|
-
* @param {Object} result - the result of the get request (entity/ies)
|
|
47
|
-
* @param {String} error - any error that occurred
|
|
83
|
+
* @iapGetAdapterWorkflowFunctions
|
|
48
84
|
*/
|
|
85
|
+
iapGetAdapterWorkflowFunctions(inIgnore) {
|
|
86
|
+
let myIgnore = [
|
|
87
|
+
'healthCheck',
|
|
88
|
+
'iapGetAdapterWorkflowFunctions',
|
|
89
|
+
'iapHasAdapterEntity',
|
|
90
|
+
'iapVerifyAdapterCapability',
|
|
91
|
+
'iapUpdateAdapterEntityCache',
|
|
92
|
+
'hasEntities',
|
|
93
|
+
'getAuthorization'
|
|
94
|
+
];
|
|
95
|
+
if (!inIgnore && Array.isArray(inIgnore)) {
|
|
96
|
+
myIgnore = inIgnore;
|
|
97
|
+
} else if (!inIgnore && typeof inIgnore === 'string') {
|
|
98
|
+
myIgnore = [inIgnore];
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
// The generic adapter functions should already be ignored (e.g. healthCheck)
|
|
102
|
+
// you can add specific methods that you do not want to be workflow functions to ignore like below
|
|
103
|
+
// myIgnore.push('myMethodNotInWorkflow');
|
|
104
|
+
|
|
105
|
+
return super.iapGetAdapterWorkflowFunctions(myIgnore);
|
|
106
|
+
}
|
|
107
|
+
|
|
49
108
|
/**
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
109
|
+
* iapUpdateAdapterConfiguration is used to update any of the adapter configuration files. This
|
|
110
|
+
* allows customers to make changes to adapter configuration without having to be on the
|
|
111
|
+
* file system.
|
|
112
|
+
*
|
|
113
|
+
* @function iapUpdateAdapterConfiguration
|
|
114
|
+
* @param {string} configFile - the name of the file being updated (required)
|
|
115
|
+
* @param {Object} changes - an object containing all of the changes = formatted like the configuration file (required)
|
|
116
|
+
* @param {string} entity - the entity to be changed, if an action, schema or mock data file (optional)
|
|
117
|
+
* @param {string} type - the type of entity file to change, (action, schema, mock) (optional)
|
|
118
|
+
* @param {string} action - the action to be changed, if an action, schema or mock data file (optional)
|
|
119
|
+
* @param {Callback} callback - The results of the call
|
|
53
120
|
*/
|
|
121
|
+
iapUpdateAdapterConfiguration(configFile, changes, entity, type, action, callback) {
|
|
122
|
+
const meth = 'adapter-iapUpdateAdapterConfiguration';
|
|
123
|
+
const origin = `${this.id}-${meth}`;
|
|
124
|
+
log.trace(origin);
|
|
125
|
+
|
|
126
|
+
super.iapUpdateAdapterConfiguration(configFile, changes, entity, type, action, callback);
|
|
127
|
+
}
|
|
128
|
+
|
|
54
129
|
/**
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
* @
|
|
130
|
+
* See if the API path provided is found in this adapter
|
|
131
|
+
*
|
|
132
|
+
* @function iapFindAdapterPath
|
|
133
|
+
* @param {string} apiPath - the api path to check on
|
|
134
|
+
* @param {Callback} callback - The results of the call
|
|
58
135
|
*/
|
|
136
|
+
iapFindAdapterPath(apiPath, callback) {
|
|
137
|
+
const meth = 'adapter-iapFindAdapterPath';
|
|
138
|
+
const origin = `${this.id}-${meth}`;
|
|
139
|
+
log.trace(origin);
|
|
140
|
+
|
|
141
|
+
super.iapFindAdapterPath(apiPath, callback);
|
|
142
|
+
}
|
|
143
|
+
|
|
59
144
|
/**
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
145
|
+
* @summary Suspends adapter
|
|
146
|
+
*
|
|
147
|
+
* @function iapSuspendAdapter
|
|
148
|
+
* @param {Callback} callback - callback function
|
|
149
|
+
*/
|
|
150
|
+
iapSuspendAdapter(mode, callback) {
|
|
151
|
+
const meth = 'adapter-iapSuspendAdapter';
|
|
152
|
+
const origin = `${this.id}-${meth}`;
|
|
153
|
+
log.trace(origin);
|
|
154
|
+
|
|
155
|
+
try {
|
|
156
|
+
return super.iapSuspendAdapter(mode, callback);
|
|
157
|
+
} catch (error) {
|
|
158
|
+
log.error(`${origin}: ${error}`);
|
|
159
|
+
return callback(null, error);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* @summary Unsuspends adapter
|
|
165
|
+
*
|
|
166
|
+
* @function iapUnsuspendAdapter
|
|
167
|
+
* @param {Callback} callback - callback function
|
|
168
|
+
*/
|
|
169
|
+
iapUnsuspendAdapter(callback) {
|
|
170
|
+
const meth = 'adapter-iapUnsuspendAdapter';
|
|
171
|
+
const origin = `${this.id}-${meth}`;
|
|
172
|
+
log.trace(origin);
|
|
173
|
+
|
|
174
|
+
try {
|
|
175
|
+
return super.iapUnsuspendAdapter(callback);
|
|
176
|
+
} catch (error) {
|
|
177
|
+
log.error(`${origin}: ${error}`);
|
|
178
|
+
return callback(null, error);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* @summary Get the Adaoter Queue
|
|
184
|
+
*
|
|
185
|
+
* @function iapGetAdapterQueue
|
|
186
|
+
* @param {Callback} callback - callback function
|
|
187
|
+
*/
|
|
188
|
+
iapGetAdapterQueue(callback) {
|
|
189
|
+
const meth = 'adapter-iapGetAdapterQueue';
|
|
190
|
+
const origin = `${this.id}-${meth}`;
|
|
191
|
+
log.trace(origin);
|
|
192
|
+
|
|
193
|
+
return super.iapGetAdapterQueue(callback);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* @summary Runs troubleshoot scripts for adapter
|
|
198
|
+
*
|
|
199
|
+
* @function iapTroubleshootAdapter
|
|
200
|
+
* @param {Object} props - the connection, healthcheck and authentication properties
|
|
201
|
+
*
|
|
202
|
+
* @param {boolean} persistFlag - whether the adapter properties should be updated
|
|
203
|
+
* @param {Callback} callback - The results of the call
|
|
204
|
+
*/
|
|
205
|
+
iapTroubleshootAdapter(props, persistFlag, callback) {
|
|
206
|
+
const meth = 'adapter-iapTroubleshootAdapter';
|
|
207
|
+
const origin = `${this.id}-${meth}`;
|
|
208
|
+
log.trace(origin);
|
|
209
|
+
|
|
210
|
+
try {
|
|
211
|
+
return super.iapTroubleshootAdapter(props, persistFlag, this, callback);
|
|
212
|
+
} catch (error) {
|
|
213
|
+
log.error(`${origin}: ${error}`);
|
|
214
|
+
return callback(null, error);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* @summary runs healthcheck script for adapter
|
|
220
|
+
*
|
|
221
|
+
* @function iapRunAdapterHealthcheck
|
|
222
|
+
* @param {Adapter} adapter - adapter instance to troubleshoot
|
|
223
|
+
* @param {Callback} callback - callback function
|
|
224
|
+
*/
|
|
225
|
+
iapRunAdapterHealthcheck(callback) {
|
|
226
|
+
const meth = 'adapter-iapRunAdapterHealthcheck';
|
|
227
|
+
const origin = `${this.id}-${meth}`;
|
|
228
|
+
log.trace(origin);
|
|
229
|
+
|
|
230
|
+
try {
|
|
231
|
+
return super.iapRunAdapterHealthcheck(this, callback);
|
|
232
|
+
} catch (error) {
|
|
233
|
+
log.error(`${origin}: ${error}`);
|
|
234
|
+
return callback(null, error);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* @summary runs connectivity check script for adapter
|
|
240
|
+
*
|
|
241
|
+
* @function iapRunAdapterConnectivity
|
|
242
|
+
* @param {Callback} callback - callback function
|
|
243
|
+
*/
|
|
244
|
+
iapRunAdapterConnectivity(callback) {
|
|
245
|
+
const meth = 'adapter-iapRunAdapterConnectivity';
|
|
246
|
+
const origin = `${this.id}-${meth}`;
|
|
247
|
+
log.trace(origin);
|
|
248
|
+
|
|
249
|
+
try {
|
|
250
|
+
return super.iapRunAdapterConnectivity(callback);
|
|
251
|
+
} catch (error) {
|
|
252
|
+
log.error(`${origin}: ${error}`);
|
|
253
|
+
return callback(null, error);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* @summary runs basicGet script for adapter
|
|
259
|
+
*
|
|
260
|
+
* @function iapRunAdapterBasicGet
|
|
261
|
+
* @param {Callback} callback - callback function
|
|
262
|
+
*/
|
|
263
|
+
iapRunAdapterBasicGet(callback) {
|
|
264
|
+
const meth = 'adapter-iapRunAdapterBasicGet';
|
|
265
|
+
const origin = `${this.id}-${meth}`;
|
|
266
|
+
log.trace(origin);
|
|
267
|
+
|
|
268
|
+
try {
|
|
269
|
+
return super.iapRunAdapterBasicGet(callback);
|
|
270
|
+
} catch (error) {
|
|
271
|
+
log.error(`${origin}: ${error}`);
|
|
272
|
+
return callback(null, error);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* @summary moves entites into Mongo DB
|
|
278
|
+
*
|
|
279
|
+
* @function iapMoveAdapterEntitiesToDB
|
|
280
|
+
* @param {getCallback} callback - a callback function to return the result (Generics)
|
|
281
|
+
* or the error
|
|
63
282
|
*/
|
|
283
|
+
iapMoveAdapterEntitiesToDB(callback) {
|
|
284
|
+
const meth = 'adapter-iapMoveAdapterEntitiesToDB';
|
|
285
|
+
const origin = `${this.id}-${meth}`;
|
|
286
|
+
log.trace(origin);
|
|
64
287
|
|
|
288
|
+
try {
|
|
289
|
+
return super.iapMoveAdapterEntitiesToDB(callback);
|
|
290
|
+
} catch (err) {
|
|
291
|
+
log.error(`${origin}: ${err}`);
|
|
292
|
+
return callback(null, err);
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/* BROKER CALLS */
|
|
65
297
|
/**
|
|
66
298
|
* @summary Determines if this adapter supports the specific entity
|
|
67
299
|
*
|
|
68
|
-
* @function
|
|
300
|
+
* @function iapHasAdapterEntity
|
|
69
301
|
* @param {String} entityType - the entity type to check for
|
|
70
302
|
* @param {String/Array} entityId - the specific entity we are looking for
|
|
71
303
|
*
|
|
72
304
|
* @param {Callback} callback - An array of whether the adapter can has the
|
|
73
305
|
* desired capability or an error
|
|
74
306
|
*/
|
|
75
|
-
|
|
76
|
-
const origin = `${this.id}-adapter-
|
|
307
|
+
iapHasAdapterEntity(entityType, entityId, callback) {
|
|
308
|
+
const origin = `${this.id}-adapter-iapHasAdapterEntity`;
|
|
77
309
|
log.trace(origin);
|
|
78
310
|
|
|
79
311
|
// Make the call -
|
|
80
|
-
//
|
|
81
|
-
return this.
|
|
312
|
+
// iapVerifyAdapterCapability(entityType, actionType, entityId, callback)
|
|
313
|
+
return this.iapVerifyAdapterCapability(entityType, null, entityId, callback);
|
|
82
314
|
}
|
|
83
315
|
|
|
84
316
|
/**
|
|
85
317
|
* @summary Provides a way for the adapter to tell north bound integrations
|
|
86
318
|
* whether the adapter supports type, action and specific entity
|
|
87
319
|
*
|
|
88
|
-
* @function
|
|
320
|
+
* @function iapVerifyAdapterCapability
|
|
89
321
|
* @param {String} entityType - the entity type to check for
|
|
90
322
|
* @param {String} actionType - the action type to check for
|
|
91
323
|
* @param {String/Array} entityId - the specific entity we are looking for
|
|
@@ -93,15 +325,15 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
93
325
|
* @param {Callback} callback - An array of whether the adapter can has the
|
|
94
326
|
* desired capability or an error
|
|
95
327
|
*/
|
|
96
|
-
|
|
97
|
-
const meth = 'adapterBase-
|
|
328
|
+
iapVerifyAdapterCapability(entityType, actionType, entityId, callback) {
|
|
329
|
+
const meth = 'adapterBase-iapVerifyAdapterCapability';
|
|
98
330
|
const origin = `${this.id}-${meth}`;
|
|
99
331
|
log.trace(origin);
|
|
100
332
|
|
|
101
333
|
// if caching
|
|
102
334
|
if (this.caching) {
|
|
103
|
-
// Make the call -
|
|
104
|
-
return this.requestHandlerInst.
|
|
335
|
+
// Make the call - iapVerifyAdapterCapability(entityType, actionType, entityId, callback)
|
|
336
|
+
return this.requestHandlerInst.iapVerifyAdapterCapability(entityType, actionType, entityId, (results, error) => {
|
|
105
337
|
if (error) {
|
|
106
338
|
return callback(null, error);
|
|
107
339
|
}
|
|
@@ -119,7 +351,7 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
119
351
|
}
|
|
120
352
|
|
|
121
353
|
// need to check the cache again since it has been updated
|
|
122
|
-
return this.requestHandlerInst.
|
|
354
|
+
return this.requestHandlerInst.iapVerifyAdapterCapability(entityType, actionType, entityId, (vcapable, verror) => {
|
|
123
355
|
if (verror) {
|
|
124
356
|
return callback(null, verror);
|
|
125
357
|
}
|
|
@@ -152,7 +384,7 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
152
384
|
// if no entity id
|
|
153
385
|
if (!entityId) {
|
|
154
386
|
// need to check the cache again since it has been updated
|
|
155
|
-
return this.requestHandlerInst.
|
|
387
|
+
return this.requestHandlerInst.iapVerifyAdapterCapability(entityType, actionType, null, (vcapable, verror) => {
|
|
156
388
|
if (verror) {
|
|
157
389
|
return callback(null, verror);
|
|
158
390
|
}
|
|
@@ -173,7 +405,7 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
173
405
|
}
|
|
174
406
|
|
|
175
407
|
// need to check the cache again since it has been updated
|
|
176
|
-
return this.requestHandlerInst.
|
|
408
|
+
return this.requestHandlerInst.iapVerifyAdapterCapability(entityType, actionType, null, (vcapable, verror) => {
|
|
177
409
|
if (verror) {
|
|
178
410
|
return callback(null, verror);
|
|
179
411
|
}
|
|
@@ -214,11 +446,11 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
214
446
|
/**
|
|
215
447
|
* @summary Updates the cache for all entities by call the get All entity method
|
|
216
448
|
*
|
|
217
|
-
* @function
|
|
449
|
+
* @function iapUpdateAdapterEntityCache
|
|
218
450
|
*
|
|
219
451
|
*/
|
|
220
|
-
|
|
221
|
-
const origin = `${this.id}-adapter-
|
|
452
|
+
iapUpdateAdapterEntityCache() {
|
|
453
|
+
const origin = `${this.id}-adapter-iapUpdateAdapterEntityCache`;
|
|
222
454
|
log.trace(origin);
|
|
223
455
|
|
|
224
456
|
if (this.caching) {
|
|
@@ -231,6 +463,385 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
231
463
|
}
|
|
232
464
|
}
|
|
233
465
|
|
|
466
|
+
/**
|
|
467
|
+
* @summary Determines if this adapter supports any in a list of entities
|
|
468
|
+
*
|
|
469
|
+
* @function hasEntities
|
|
470
|
+
* @param {String} entityType - the entity type to check for
|
|
471
|
+
* @param {Array} entityList - the list of entities we are looking for
|
|
472
|
+
*
|
|
473
|
+
* @param {Callback} callback - A map where the entity is the key and the
|
|
474
|
+
* value is true or false
|
|
475
|
+
*/
|
|
476
|
+
hasEntities(entityType, entityList, callback) {
|
|
477
|
+
const meth = 'adapter-hasEntities';
|
|
478
|
+
const origin = `${this.id}-${meth}`;
|
|
479
|
+
log.trace(origin);
|
|
480
|
+
|
|
481
|
+
try {
|
|
482
|
+
return super.hasEntities(entityType, entityList, callback);
|
|
483
|
+
} catch (err) {
|
|
484
|
+
log.error(`${origin}: ${err}`);
|
|
485
|
+
return callback(null, err);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
/**
|
|
490
|
+
* @summary Get Appliance that match the deviceName
|
|
491
|
+
*
|
|
492
|
+
* @function getDevice
|
|
493
|
+
* @param {String} deviceName - the deviceName to find (required)
|
|
494
|
+
*
|
|
495
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
496
|
+
* (appliance) or the error
|
|
497
|
+
*/
|
|
498
|
+
getDevice(deviceName, callback) {
|
|
499
|
+
const meth = 'adapter-getDevice';
|
|
500
|
+
const origin = `${this.id}-${meth}`;
|
|
501
|
+
log.trace(origin);
|
|
502
|
+
|
|
503
|
+
try {
|
|
504
|
+
return super.getDevice(deviceName, callback);
|
|
505
|
+
} catch (err) {
|
|
506
|
+
log.error(`${origin}: ${err}`);
|
|
507
|
+
return callback(null, err);
|
|
508
|
+
}
|
|
509
|
+
}
|
|
510
|
+
|
|
511
|
+
/**
|
|
512
|
+
* @summary Get Appliances that match the filter
|
|
513
|
+
*
|
|
514
|
+
* @function getDevicesFiltered
|
|
515
|
+
* @param {Object} options - the data to use to filter the appliances (optional)
|
|
516
|
+
*
|
|
517
|
+
* @param {getCallback} callback - a callback function to return the result
|
|
518
|
+
* (appliances) or the error
|
|
519
|
+
*/
|
|
520
|
+
getDevicesFiltered(options, callback) {
|
|
521
|
+
const meth = 'adapter-getDevicesFiltered';
|
|
522
|
+
const origin = `${this.id}-${meth}`;
|
|
523
|
+
log.trace(origin);
|
|
524
|
+
|
|
525
|
+
try {
|
|
526
|
+
return super.getDevicesFiltered(options, callback);
|
|
527
|
+
} catch (err) {
|
|
528
|
+
log.error(`${origin}: ${err}`);
|
|
529
|
+
return callback(null, err);
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* @summary Gets the status for the provided appliance
|
|
535
|
+
*
|
|
536
|
+
* @function isAlive
|
|
537
|
+
* @param {String} deviceName - the deviceName of the appliance. (required)
|
|
538
|
+
*
|
|
539
|
+
* @param {configCallback} callback - callback function to return the result
|
|
540
|
+
* (appliance isAlive) or the error
|
|
541
|
+
*/
|
|
542
|
+
isAlive(deviceName, callback) {
|
|
543
|
+
const meth = 'adapter-isAlive';
|
|
544
|
+
const origin = `${this.id}-${meth}`;
|
|
545
|
+
log.trace(origin);
|
|
546
|
+
|
|
547
|
+
try {
|
|
548
|
+
return super.isAlive(deviceName, callback);
|
|
549
|
+
} catch (err) {
|
|
550
|
+
log.error(`${origin}: ${err}`);
|
|
551
|
+
return callback(null, err);
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* @summary Gets a config for the provided Appliance
|
|
557
|
+
*
|
|
558
|
+
* @function getConfig
|
|
559
|
+
* @param {String} deviceName - the deviceName of the appliance. (required)
|
|
560
|
+
* @param {String} format - the desired format of the config. (optional)
|
|
561
|
+
*
|
|
562
|
+
* @param {configCallback} callback - callback function to return the result
|
|
563
|
+
* (appliance config) or the error
|
|
564
|
+
*/
|
|
565
|
+
getConfig(deviceName, format, callback) {
|
|
566
|
+
const meth = 'adapter-getConfig';
|
|
567
|
+
const origin = `${this.id}-${meth}`;
|
|
568
|
+
log.trace(origin);
|
|
569
|
+
|
|
570
|
+
try {
|
|
571
|
+
return super.getConfig(deviceName, format, callback);
|
|
572
|
+
} catch (err) {
|
|
573
|
+
log.error(`${origin}: ${err}`);
|
|
574
|
+
return callback(null, err);
|
|
575
|
+
}
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* @summary Gets the device count from the system
|
|
580
|
+
*
|
|
581
|
+
* @function iapGetDeviceCount
|
|
582
|
+
*
|
|
583
|
+
* @param {getCallback} callback - callback function to return the result
|
|
584
|
+
* (count) or the error
|
|
585
|
+
*/
|
|
586
|
+
iapGetDeviceCount(callback) {
|
|
587
|
+
const meth = 'adapter-iapGetDeviceCount';
|
|
588
|
+
const origin = `${this.id}-${meth}`;
|
|
589
|
+
log.trace(origin);
|
|
590
|
+
|
|
591
|
+
try {
|
|
592
|
+
return super.iapGetDeviceCount(callback);
|
|
593
|
+
} catch (err) {
|
|
594
|
+
log.error(`${origin}: ${err}`);
|
|
595
|
+
return callback(null, err);
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
/* GENERIC ADAPTER REQUEST - allows extension of adapter without new calls being added */
|
|
600
|
+
/**
|
|
601
|
+
* Makes the requested generic call
|
|
602
|
+
*
|
|
603
|
+
* @function genericAdapterRequest
|
|
604
|
+
* @param {String} uriPath - the path of the api call - do not include the host, port, base path or version (required)
|
|
605
|
+
* @param {String} restMethod - the rest method (GET, POST, PUT, PATCH, DELETE) (required)
|
|
606
|
+
* @param {Object} queryData - the parameters to be put on the url (optional).
|
|
607
|
+
* Can be a stringified Object.
|
|
608
|
+
* @param {Object} requestBody - the body to add to the request (optional).
|
|
609
|
+
* Can be a stringified Object.
|
|
610
|
+
* @param {Object} addlHeaders - additional headers to be put on the call (optional).
|
|
611
|
+
* Can be a stringified Object.
|
|
612
|
+
* @param {getCallback} callback - a callback function to return the result (Generics)
|
|
613
|
+
* or the error
|
|
614
|
+
*/
|
|
615
|
+
genericAdapterRequest(uriPath, restMethod, queryData, requestBody, addlHeaders, callback) {
|
|
616
|
+
const meth = 'adapter-genericAdapterRequest';
|
|
617
|
+
const origin = `${this.id}-${meth}`;
|
|
618
|
+
log.trace(origin);
|
|
619
|
+
|
|
620
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
621
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
622
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
623
|
+
return callback(null, errorObj);
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
627
|
+
if (uriPath === undefined || uriPath === null || uriPath === '') {
|
|
628
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['uriPath'], null, null, null);
|
|
629
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
630
|
+
return callback(null, errorObj);
|
|
631
|
+
}
|
|
632
|
+
if (restMethod === undefined || restMethod === null || restMethod === '') {
|
|
633
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['restMethod'], null, null, null);
|
|
634
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
635
|
+
return callback(null, errorObj);
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
639
|
+
// remove any leading / and split the uripath into path variables
|
|
640
|
+
let myPath = uriPath;
|
|
641
|
+
while (myPath.indexOf('/') === 0) {
|
|
642
|
+
myPath = myPath.substring(1);
|
|
643
|
+
}
|
|
644
|
+
const pathVars = myPath.split('/');
|
|
645
|
+
const queryParamsAvailable = queryData;
|
|
646
|
+
const queryParams = {};
|
|
647
|
+
const bodyVars = requestBody;
|
|
648
|
+
|
|
649
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
650
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
651
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
652
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
653
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
654
|
+
}
|
|
655
|
+
});
|
|
656
|
+
|
|
657
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
658
|
+
const reqObj = {
|
|
659
|
+
payload: bodyVars,
|
|
660
|
+
uriPathVars: pathVars,
|
|
661
|
+
uriQuery: queryParams,
|
|
662
|
+
uriOptions: {}
|
|
663
|
+
};
|
|
664
|
+
// add headers if provided
|
|
665
|
+
if (addlHeaders) {
|
|
666
|
+
reqObj.addlHeaders = addlHeaders;
|
|
667
|
+
}
|
|
668
|
+
|
|
669
|
+
// determine the call and return flag
|
|
670
|
+
let action = 'getGenerics';
|
|
671
|
+
let returnF = true;
|
|
672
|
+
if (restMethod.toUpperCase() === 'POST') {
|
|
673
|
+
action = 'createGeneric';
|
|
674
|
+
} else if (restMethod.toUpperCase() === 'PUT') {
|
|
675
|
+
action = 'updateGeneric';
|
|
676
|
+
} else if (restMethod.toUpperCase() === 'PATCH') {
|
|
677
|
+
action = 'patchGeneric';
|
|
678
|
+
} else if (restMethod.toUpperCase() === 'DELETE') {
|
|
679
|
+
action = 'deleteGeneric';
|
|
680
|
+
returnF = false;
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
try {
|
|
684
|
+
// Make the call -
|
|
685
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
686
|
+
return this.requestHandlerInst.identifyRequest('.generic', action, reqObj, returnF, (irReturnData, irReturnError) => {
|
|
687
|
+
// if we received an error or their is no response on the results
|
|
688
|
+
// return an error
|
|
689
|
+
if (irReturnError) {
|
|
690
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
691
|
+
return callback(null, irReturnError);
|
|
692
|
+
}
|
|
693
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
694
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['genericAdapterRequest'], null, null, null);
|
|
695
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
696
|
+
return callback(null, errorObj);
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
700
|
+
// return the response
|
|
701
|
+
return callback(irReturnData, null);
|
|
702
|
+
});
|
|
703
|
+
} catch (ex) {
|
|
704
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
705
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
706
|
+
return callback(null, errorObj);
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Makes the requested generic call with no base path or version
|
|
712
|
+
*
|
|
713
|
+
* @function genericAdapterRequestNoBasePath
|
|
714
|
+
* @param {String} uriPath - the path of the api call - do not include the host, port, base path or version (required)
|
|
715
|
+
* @param {String} restMethod - the rest method (GET, POST, PUT, PATCH, DELETE) (required)
|
|
716
|
+
* @param {Object} queryData - the parameters to be put on the url (optional).
|
|
717
|
+
* Can be a stringified Object.
|
|
718
|
+
* @param {Object} requestBody - the body to add to the request (optional).
|
|
719
|
+
* Can be a stringified Object.
|
|
720
|
+
* @param {Object} addlHeaders - additional headers to be put on the call (optional).
|
|
721
|
+
* Can be a stringified Object.
|
|
722
|
+
* @param {getCallback} callback - a callback function to return the result (Generics)
|
|
723
|
+
* or the error
|
|
724
|
+
*/
|
|
725
|
+
genericAdapterRequestNoBasePath(uriPath, restMethod, queryData, requestBody, addlHeaders, callback) {
|
|
726
|
+
const meth = 'adapter-genericAdapterRequestNoBasePath';
|
|
727
|
+
const origin = `${this.id}-${meth}`;
|
|
728
|
+
log.trace(origin);
|
|
729
|
+
|
|
730
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
731
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
732
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
733
|
+
return callback(null, errorObj);
|
|
734
|
+
}
|
|
735
|
+
|
|
736
|
+
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
737
|
+
if (uriPath === undefined || uriPath === null || uriPath === '') {
|
|
738
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['uriPath'], null, null, null);
|
|
739
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
740
|
+
return callback(null, errorObj);
|
|
741
|
+
}
|
|
742
|
+
if (restMethod === undefined || restMethod === null || restMethod === '') {
|
|
743
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['restMethod'], null, null, null);
|
|
744
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
745
|
+
return callback(null, errorObj);
|
|
746
|
+
}
|
|
747
|
+
|
|
748
|
+
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
749
|
+
// remove any leading / and split the uripath into path variables
|
|
750
|
+
let myPath = uriPath;
|
|
751
|
+
while (myPath.indexOf('/') === 0) {
|
|
752
|
+
myPath = myPath.substring(1);
|
|
753
|
+
}
|
|
754
|
+
const pathVars = myPath.split('/');
|
|
755
|
+
const queryParamsAvailable = queryData;
|
|
756
|
+
const queryParams = {};
|
|
757
|
+
const bodyVars = requestBody;
|
|
758
|
+
|
|
759
|
+
// loop in template. long callback arg name to avoid identifier conflicts
|
|
760
|
+
Object.keys(queryParamsAvailable).forEach((thisKeyInQueryParamsAvailable) => {
|
|
761
|
+
if (queryParamsAvailable[thisKeyInQueryParamsAvailable] !== undefined && queryParamsAvailable[thisKeyInQueryParamsAvailable] !== null
|
|
762
|
+
&& queryParamsAvailable[thisKeyInQueryParamsAvailable] !== '') {
|
|
763
|
+
queryParams[thisKeyInQueryParamsAvailable] = queryParamsAvailable[thisKeyInQueryParamsAvailable];
|
|
764
|
+
}
|
|
765
|
+
});
|
|
766
|
+
|
|
767
|
+
// set up the request object - payload, uriPathVars, uriQuery, uriOptions, addlHeaders
|
|
768
|
+
const reqObj = {
|
|
769
|
+
payload: bodyVars,
|
|
770
|
+
uriPathVars: pathVars,
|
|
771
|
+
uriQuery: queryParams,
|
|
772
|
+
uriOptions: {}
|
|
773
|
+
};
|
|
774
|
+
// add headers if provided
|
|
775
|
+
if (addlHeaders) {
|
|
776
|
+
reqObj.addlHeaders = addlHeaders;
|
|
777
|
+
}
|
|
778
|
+
|
|
779
|
+
// determine the call and return flag
|
|
780
|
+
let action = 'getGenericsNoBase';
|
|
781
|
+
let returnF = true;
|
|
782
|
+
if (restMethod.toUpperCase() === 'POST') {
|
|
783
|
+
action = 'createGenericNoBase';
|
|
784
|
+
} else if (restMethod.toUpperCase() === 'PUT') {
|
|
785
|
+
action = 'updateGenericNoBase';
|
|
786
|
+
} else if (restMethod.toUpperCase() === 'PATCH') {
|
|
787
|
+
action = 'patchGenericNoBase';
|
|
788
|
+
} else if (restMethod.toUpperCase() === 'DELETE') {
|
|
789
|
+
action = 'deleteGenericNoBase';
|
|
790
|
+
returnF = false;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
try {
|
|
794
|
+
// Make the call -
|
|
795
|
+
// identifyRequest(entity, action, requestObj, returnDataFlag, callback)
|
|
796
|
+
return this.requestHandlerInst.identifyRequest('.generic', action, reqObj, returnF, (irReturnData, irReturnError) => {
|
|
797
|
+
// if we received an error or their is no response on the results
|
|
798
|
+
// return an error
|
|
799
|
+
if (irReturnError) {
|
|
800
|
+
/* HERE IS WHERE YOU CAN ALTER THE ERROR MESSAGE */
|
|
801
|
+
return callback(null, irReturnError);
|
|
802
|
+
}
|
|
803
|
+
if (!Object.hasOwnProperty.call(irReturnData, 'response')) {
|
|
804
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Invalid Response', ['genericAdapterRequestNoBasePath'], null, null, null);
|
|
805
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
806
|
+
return callback(null, errorObj);
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
/* HERE IS WHERE YOU CAN ALTER THE RETURN DATA */
|
|
810
|
+
// return the response
|
|
811
|
+
return callback(irReturnData, null);
|
|
812
|
+
});
|
|
813
|
+
} catch (ex) {
|
|
814
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Caught Exception', null, null, null, ex);
|
|
815
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
816
|
+
return callback(null, errorObj);
|
|
817
|
+
}
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
/**
|
|
821
|
+
* @callback healthCallback
|
|
822
|
+
* @param {Object} result - the result of the get request (contains an id and a status)
|
|
823
|
+
*/
|
|
824
|
+
/**
|
|
825
|
+
* @callback getCallback
|
|
826
|
+
* @param {Object} result - the result of the get request (entity/ies)
|
|
827
|
+
* @param {String} error - any error that occurred
|
|
828
|
+
*/
|
|
829
|
+
/**
|
|
830
|
+
* @callback createCallback
|
|
831
|
+
* @param {Object} item - the newly created entity
|
|
832
|
+
* @param {String} error - any error that occurred
|
|
833
|
+
*/
|
|
834
|
+
/**
|
|
835
|
+
* @callback updateCallback
|
|
836
|
+
* @param {String} status - the status of the update action
|
|
837
|
+
* @param {String} error - any error that occurred
|
|
838
|
+
*/
|
|
839
|
+
/**
|
|
840
|
+
* @callback deleteCallback
|
|
841
|
+
* @param {String} status - the status of the delete action
|
|
842
|
+
* @param {String} error - any error that occurred
|
|
843
|
+
*/
|
|
844
|
+
|
|
234
845
|
/**
|
|
235
846
|
* @summary addAlertCustomInfo
|
|
236
847
|
*
|
|
@@ -244,6 +855,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
244
855
|
const origin = `${this.id}-${meth}`;
|
|
245
856
|
log.trace(origin);
|
|
246
857
|
|
|
858
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
859
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
860
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
861
|
+
return callback(null, errorObj);
|
|
862
|
+
}
|
|
863
|
+
|
|
247
864
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
248
865
|
|
|
249
866
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -308,6 +925,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
308
925
|
const origin = `${this.id}-${meth}`;
|
|
309
926
|
log.trace(origin);
|
|
310
927
|
|
|
928
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
929
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
930
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
931
|
+
return callback(null, errorObj);
|
|
932
|
+
}
|
|
933
|
+
|
|
311
934
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
312
935
|
|
|
313
936
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -372,6 +995,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
372
995
|
const origin = `${this.id}-${meth}`;
|
|
373
996
|
log.trace(origin);
|
|
374
997
|
|
|
998
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
999
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1000
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1001
|
+
return callback(null, errorObj);
|
|
1002
|
+
}
|
|
1003
|
+
|
|
375
1004
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
376
1005
|
|
|
377
1006
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -436,6 +1065,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
436
1065
|
const origin = `${this.id}-${meth}`;
|
|
437
1066
|
log.trace(origin);
|
|
438
1067
|
|
|
1068
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1069
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1070
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1071
|
+
return callback(null, errorObj);
|
|
1072
|
+
}
|
|
1073
|
+
|
|
439
1074
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
440
1075
|
|
|
441
1076
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -500,6 +1135,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
500
1135
|
const origin = `${this.id}-${meth}`;
|
|
501
1136
|
log.trace(origin);
|
|
502
1137
|
|
|
1138
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1139
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1140
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1141
|
+
return callback(null, errorObj);
|
|
1142
|
+
}
|
|
1143
|
+
|
|
503
1144
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
504
1145
|
|
|
505
1146
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -564,6 +1205,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
564
1205
|
const origin = `${this.id}-${meth}`;
|
|
565
1206
|
log.trace(origin);
|
|
566
1207
|
|
|
1208
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1209
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1210
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1211
|
+
return callback(null, errorObj);
|
|
1212
|
+
}
|
|
1213
|
+
|
|
567
1214
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
568
1215
|
|
|
569
1216
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -628,6 +1275,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
628
1275
|
const origin = `${this.id}-${meth}`;
|
|
629
1276
|
log.trace(origin);
|
|
630
1277
|
|
|
1278
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1279
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1280
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1281
|
+
return callback(null, errorObj);
|
|
1282
|
+
}
|
|
1283
|
+
|
|
631
1284
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
632
1285
|
|
|
633
1286
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -692,6 +1345,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
692
1345
|
const origin = `${this.id}-${meth}`;
|
|
693
1346
|
log.trace(origin);
|
|
694
1347
|
|
|
1348
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1349
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1350
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1351
|
+
return callback(null, errorObj);
|
|
1352
|
+
}
|
|
1353
|
+
|
|
695
1354
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
696
1355
|
|
|
697
1356
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -757,6 +1416,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
757
1416
|
const origin = `${this.id}-${meth}`;
|
|
758
1417
|
log.trace(origin);
|
|
759
1418
|
|
|
1419
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1420
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1421
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1422
|
+
return callback(null, errorObj);
|
|
1423
|
+
}
|
|
1424
|
+
|
|
760
1425
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
761
1426
|
|
|
762
1427
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -820,6 +1485,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
820
1485
|
const origin = `${this.id}-${meth}`;
|
|
821
1486
|
log.trace(origin);
|
|
822
1487
|
|
|
1488
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1489
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1490
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1491
|
+
return callback(null, errorObj);
|
|
1492
|
+
}
|
|
1493
|
+
|
|
823
1494
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
824
1495
|
|
|
825
1496
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -864,6 +1535,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
864
1535
|
const origin = `${this.id}-${meth}`;
|
|
865
1536
|
log.trace(origin);
|
|
866
1537
|
|
|
1538
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1539
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1540
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1541
|
+
return callback(null, errorObj);
|
|
1542
|
+
}
|
|
1543
|
+
|
|
867
1544
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
868
1545
|
|
|
869
1546
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -909,6 +1586,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
909
1586
|
const origin = `${this.id}-${meth}`;
|
|
910
1587
|
log.trace(origin);
|
|
911
1588
|
|
|
1589
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1590
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1591
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1592
|
+
return callback(null, errorObj);
|
|
1593
|
+
}
|
|
1594
|
+
|
|
912
1595
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
913
1596
|
|
|
914
1597
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -973,6 +1656,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
973
1656
|
const origin = `${this.id}-${meth}`;
|
|
974
1657
|
log.trace(origin);
|
|
975
1658
|
|
|
1659
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1660
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1661
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1662
|
+
return callback(null, errorObj);
|
|
1663
|
+
}
|
|
1664
|
+
|
|
976
1665
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
977
1666
|
|
|
978
1667
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -1037,6 +1726,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
1037
1726
|
const origin = `${this.id}-${meth}`;
|
|
1038
1727
|
log.trace(origin);
|
|
1039
1728
|
|
|
1729
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1730
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1731
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1732
|
+
return callback(null, errorObj);
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1040
1735
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1041
1736
|
|
|
1042
1737
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -1101,6 +1796,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
1101
1796
|
const origin = `${this.id}-${meth}`;
|
|
1102
1797
|
log.trace(origin);
|
|
1103
1798
|
|
|
1799
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1800
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1801
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1802
|
+
return callback(null, errorObj);
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1104
1805
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1105
1806
|
|
|
1106
1807
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -1165,6 +1866,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
1165
1866
|
const origin = `${this.id}-${meth}`;
|
|
1166
1867
|
log.trace(origin);
|
|
1167
1868
|
|
|
1869
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1870
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1871
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1872
|
+
return callback(null, errorObj);
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1168
1875
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1169
1876
|
|
|
1170
1877
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -1229,6 +1936,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
1229
1936
|
const origin = `${this.id}-${meth}`;
|
|
1230
1937
|
log.trace(origin);
|
|
1231
1938
|
|
|
1939
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
1940
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
1941
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
1942
|
+
return callback(null, errorObj);
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1232
1945
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1233
1946
|
|
|
1234
1947
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -1293,6 +2006,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
1293
2006
|
const origin = `${this.id}-${meth}`;
|
|
1294
2007
|
log.trace(origin);
|
|
1295
2008
|
|
|
2009
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2010
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2011
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2012
|
+
return callback(null, errorObj);
|
|
2013
|
+
}
|
|
2014
|
+
|
|
1296
2015
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1297
2016
|
|
|
1298
2017
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -1357,6 +2076,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
1357
2076
|
const origin = `${this.id}-${meth}`;
|
|
1358
2077
|
log.trace(origin);
|
|
1359
2078
|
|
|
2079
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2080
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2081
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2082
|
+
return callback(null, errorObj);
|
|
2083
|
+
}
|
|
2084
|
+
|
|
1360
2085
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1361
2086
|
|
|
1362
2087
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -1421,6 +2146,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
1421
2146
|
const origin = `${this.id}-${meth}`;
|
|
1422
2147
|
log.trace(origin);
|
|
1423
2148
|
|
|
2149
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2150
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2151
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2152
|
+
return callback(null, errorObj);
|
|
2153
|
+
}
|
|
2154
|
+
|
|
1424
2155
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1425
2156
|
|
|
1426
2157
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -1485,6 +2216,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
1485
2216
|
const origin = `${this.id}-${meth}`;
|
|
1486
2217
|
log.trace(origin);
|
|
1487
2218
|
|
|
2219
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2220
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2221
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2222
|
+
return callback(null, errorObj);
|
|
2223
|
+
}
|
|
2224
|
+
|
|
1488
2225
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1489
2226
|
|
|
1490
2227
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -1549,6 +2286,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
1549
2286
|
const origin = `${this.id}-${meth}`;
|
|
1550
2287
|
log.trace(origin);
|
|
1551
2288
|
|
|
2289
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2290
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2291
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2292
|
+
return callback(null, errorObj);
|
|
2293
|
+
}
|
|
2294
|
+
|
|
1552
2295
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1553
2296
|
|
|
1554
2297
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -1613,6 +2356,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
1613
2356
|
const origin = `${this.id}-${meth}`;
|
|
1614
2357
|
log.trace(origin);
|
|
1615
2358
|
|
|
2359
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2360
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2361
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2362
|
+
return callback(null, errorObj);
|
|
2363
|
+
}
|
|
2364
|
+
|
|
1616
2365
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1617
2366
|
|
|
1618
2367
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -1677,6 +2426,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
1677
2426
|
const origin = `${this.id}-${meth}`;
|
|
1678
2427
|
log.trace(origin);
|
|
1679
2428
|
|
|
2429
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2430
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2431
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2432
|
+
return callback(null, errorObj);
|
|
2433
|
+
}
|
|
2434
|
+
|
|
1680
2435
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1681
2436
|
|
|
1682
2437
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -1741,6 +2496,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
1741
2496
|
const origin = `${this.id}-${meth}`;
|
|
1742
2497
|
log.trace(origin);
|
|
1743
2498
|
|
|
2499
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2500
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2501
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2502
|
+
return callback(null, errorObj);
|
|
2503
|
+
}
|
|
2504
|
+
|
|
1744
2505
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1745
2506
|
|
|
1746
2507
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -1805,6 +2566,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
1805
2566
|
const origin = `${this.id}-${meth}`;
|
|
1806
2567
|
log.trace(origin);
|
|
1807
2568
|
|
|
2569
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2570
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2571
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2572
|
+
return callback(null, errorObj);
|
|
2573
|
+
}
|
|
2574
|
+
|
|
1808
2575
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1809
2576
|
|
|
1810
2577
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -1870,6 +2637,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
1870
2637
|
const origin = `${this.id}-${meth}`;
|
|
1871
2638
|
log.trace(origin);
|
|
1872
2639
|
|
|
2640
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2641
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2642
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2643
|
+
return callback(null, errorObj);
|
|
2644
|
+
}
|
|
2645
|
+
|
|
1873
2646
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1874
2647
|
|
|
1875
2648
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -1934,6 +2707,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
1934
2707
|
const origin = `${this.id}-${meth}`;
|
|
1935
2708
|
log.trace(origin);
|
|
1936
2709
|
|
|
2710
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2711
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2712
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2713
|
+
return callback(null, errorObj);
|
|
2714
|
+
}
|
|
2715
|
+
|
|
1937
2716
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
1938
2717
|
|
|
1939
2718
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -1998,6 +2777,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
1998
2777
|
const origin = `${this.id}-${meth}`;
|
|
1999
2778
|
log.trace(origin);
|
|
2000
2779
|
|
|
2780
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2781
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2782
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2783
|
+
return callback(null, errorObj);
|
|
2784
|
+
}
|
|
2785
|
+
|
|
2001
2786
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2002
2787
|
|
|
2003
2788
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2062,6 +2847,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
2062
2847
|
const origin = `${this.id}-${meth}`;
|
|
2063
2848
|
log.trace(origin);
|
|
2064
2849
|
|
|
2850
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2851
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2852
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2853
|
+
return callback(null, errorObj);
|
|
2854
|
+
}
|
|
2855
|
+
|
|
2065
2856
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2066
2857
|
|
|
2067
2858
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2125,6 +2916,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
2125
2916
|
const origin = `${this.id}-${meth}`;
|
|
2126
2917
|
log.trace(origin);
|
|
2127
2918
|
|
|
2919
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2920
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2921
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2922
|
+
return callback(null, errorObj);
|
|
2923
|
+
}
|
|
2924
|
+
|
|
2128
2925
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2129
2926
|
|
|
2130
2927
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2170,6 +2967,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
2170
2967
|
const origin = `${this.id}-${meth}`;
|
|
2171
2968
|
log.trace(origin);
|
|
2172
2969
|
|
|
2970
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
2971
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
2972
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
2973
|
+
return callback(null, errorObj);
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2173
2976
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2174
2977
|
|
|
2175
2978
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2234,6 +3037,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
2234
3037
|
const origin = `${this.id}-${meth}`;
|
|
2235
3038
|
log.trace(origin);
|
|
2236
3039
|
|
|
3040
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3041
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3042
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3043
|
+
return callback(null, errorObj);
|
|
3044
|
+
}
|
|
3045
|
+
|
|
2237
3046
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2238
3047
|
|
|
2239
3048
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2298,6 +3107,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
2298
3107
|
const origin = `${this.id}-${meth}`;
|
|
2299
3108
|
log.trace(origin);
|
|
2300
3109
|
|
|
3110
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3111
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3112
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3113
|
+
return callback(null, errorObj);
|
|
3114
|
+
}
|
|
3115
|
+
|
|
2301
3116
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2302
3117
|
|
|
2303
3118
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2362,6 +3177,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
2362
3177
|
const origin = `${this.id}-${meth}`;
|
|
2363
3178
|
log.trace(origin);
|
|
2364
3179
|
|
|
3180
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3181
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3182
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3183
|
+
return callback(null, errorObj);
|
|
3184
|
+
}
|
|
3185
|
+
|
|
2365
3186
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2366
3187
|
|
|
2367
3188
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2426,6 +3247,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
2426
3247
|
const origin = `${this.id}-${meth}`;
|
|
2427
3248
|
log.trace(origin);
|
|
2428
3249
|
|
|
3250
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3251
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3252
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3253
|
+
return callback(null, errorObj);
|
|
3254
|
+
}
|
|
3255
|
+
|
|
2429
3256
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2430
3257
|
|
|
2431
3258
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2490,6 +3317,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
2490
3317
|
const origin = `${this.id}-${meth}`;
|
|
2491
3318
|
log.trace(origin);
|
|
2492
3319
|
|
|
3320
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3321
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3322
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3323
|
+
return callback(null, errorObj);
|
|
3324
|
+
}
|
|
3325
|
+
|
|
2493
3326
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2494
3327
|
|
|
2495
3328
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2554,6 +3387,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
2554
3387
|
const origin = `${this.id}-${meth}`;
|
|
2555
3388
|
log.trace(origin);
|
|
2556
3389
|
|
|
3390
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3391
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3392
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3393
|
+
return callback(null, errorObj);
|
|
3394
|
+
}
|
|
3395
|
+
|
|
2557
3396
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2558
3397
|
|
|
2559
3398
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2618,6 +3457,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
2618
3457
|
const origin = `${this.id}-${meth}`;
|
|
2619
3458
|
log.trace(origin);
|
|
2620
3459
|
|
|
3460
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3461
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3462
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3463
|
+
return callback(null, errorObj);
|
|
3464
|
+
}
|
|
3465
|
+
|
|
2621
3466
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2622
3467
|
|
|
2623
3468
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2682,6 +3527,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
2682
3527
|
const origin = `${this.id}-${meth}`;
|
|
2683
3528
|
log.trace(origin);
|
|
2684
3529
|
|
|
3530
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3531
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3532
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3533
|
+
return callback(null, errorObj);
|
|
3534
|
+
}
|
|
3535
|
+
|
|
2685
3536
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2686
3537
|
|
|
2687
3538
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2746,6 +3597,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
2746
3597
|
const origin = `${this.id}-${meth}`;
|
|
2747
3598
|
log.trace(origin);
|
|
2748
3599
|
|
|
3600
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3601
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3602
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3603
|
+
return callback(null, errorObj);
|
|
3604
|
+
}
|
|
3605
|
+
|
|
2749
3606
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2750
3607
|
|
|
2751
3608
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2810,6 +3667,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
2810
3667
|
const origin = `${this.id}-${meth}`;
|
|
2811
3668
|
log.trace(origin);
|
|
2812
3669
|
|
|
3670
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3671
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3672
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3673
|
+
return callback(null, errorObj);
|
|
3674
|
+
}
|
|
3675
|
+
|
|
2813
3676
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2814
3677
|
|
|
2815
3678
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2874,6 +3737,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
2874
3737
|
const origin = `${this.id}-${meth}`;
|
|
2875
3738
|
log.trace(origin);
|
|
2876
3739
|
|
|
3740
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3741
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3742
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3743
|
+
return callback(null, errorObj);
|
|
3744
|
+
}
|
|
3745
|
+
|
|
2877
3746
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2878
3747
|
|
|
2879
3748
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -2938,6 +3807,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
2938
3807
|
const origin = `${this.id}-${meth}`;
|
|
2939
3808
|
log.trace(origin);
|
|
2940
3809
|
|
|
3810
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3811
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3812
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3813
|
+
return callback(null, errorObj);
|
|
3814
|
+
}
|
|
3815
|
+
|
|
2941
3816
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
2942
3817
|
|
|
2943
3818
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3002,6 +3877,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
3002
3877
|
const origin = `${this.id}-${meth}`;
|
|
3003
3878
|
log.trace(origin);
|
|
3004
3879
|
|
|
3880
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3881
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3882
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3883
|
+
return callback(null, errorObj);
|
|
3884
|
+
}
|
|
3885
|
+
|
|
3005
3886
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3006
3887
|
|
|
3007
3888
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3065,6 +3946,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
3065
3946
|
const origin = `${this.id}-${meth}`;
|
|
3066
3947
|
log.trace(origin);
|
|
3067
3948
|
|
|
3949
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
3950
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
3951
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
3952
|
+
return callback(null, errorObj);
|
|
3953
|
+
}
|
|
3954
|
+
|
|
3068
3955
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3069
3956
|
|
|
3070
3957
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3110,6 +3997,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
3110
3997
|
const origin = `${this.id}-${meth}`;
|
|
3111
3998
|
log.trace(origin);
|
|
3112
3999
|
|
|
4000
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4001
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4002
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4003
|
+
return callback(null, errorObj);
|
|
4004
|
+
}
|
|
4005
|
+
|
|
3113
4006
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3114
4007
|
|
|
3115
4008
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3174,6 +4067,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
3174
4067
|
const origin = `${this.id}-${meth}`;
|
|
3175
4068
|
log.trace(origin);
|
|
3176
4069
|
|
|
4070
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4071
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4072
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4073
|
+
return callback(null, errorObj);
|
|
4074
|
+
}
|
|
4075
|
+
|
|
3177
4076
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3178
4077
|
|
|
3179
4078
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3240,6 +4139,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
3240
4139
|
const origin = `${this.id}-${meth}`;
|
|
3241
4140
|
log.trace(origin);
|
|
3242
4141
|
|
|
4142
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4143
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4144
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4145
|
+
return callback(null, errorObj);
|
|
4146
|
+
}
|
|
4147
|
+
|
|
3243
4148
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3244
4149
|
|
|
3245
4150
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3304,6 +4209,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
3304
4209
|
const origin = `${this.id}-${meth}`;
|
|
3305
4210
|
log.trace(origin);
|
|
3306
4211
|
|
|
4212
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4213
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4214
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4215
|
+
return callback(null, errorObj);
|
|
4216
|
+
}
|
|
4217
|
+
|
|
3307
4218
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3308
4219
|
|
|
3309
4220
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3368,6 +4279,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
3368
4279
|
const origin = `${this.id}-${meth}`;
|
|
3369
4280
|
log.trace(origin);
|
|
3370
4281
|
|
|
4282
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4283
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4284
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4285
|
+
return callback(null, errorObj);
|
|
4286
|
+
}
|
|
4287
|
+
|
|
3371
4288
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3372
4289
|
|
|
3373
4290
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3432,6 +4349,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
3432
4349
|
const origin = `${this.id}-${meth}`;
|
|
3433
4350
|
log.trace(origin);
|
|
3434
4351
|
|
|
4352
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4353
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4354
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4355
|
+
return callback(null, errorObj);
|
|
4356
|
+
}
|
|
4357
|
+
|
|
3435
4358
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3436
4359
|
|
|
3437
4360
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3496,6 +4419,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
3496
4419
|
const origin = `${this.id}-${meth}`;
|
|
3497
4420
|
log.trace(origin);
|
|
3498
4421
|
|
|
4422
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4423
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4424
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4425
|
+
return callback(null, errorObj);
|
|
4426
|
+
}
|
|
4427
|
+
|
|
3499
4428
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3500
4429
|
|
|
3501
4430
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3560,6 +4489,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
3560
4489
|
const origin = `${this.id}-${meth}`;
|
|
3561
4490
|
log.trace(origin);
|
|
3562
4491
|
|
|
4492
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4493
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4494
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4495
|
+
return callback(null, errorObj);
|
|
4496
|
+
}
|
|
4497
|
+
|
|
3563
4498
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3564
4499
|
|
|
3565
4500
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3624,6 +4559,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
3624
4559
|
const origin = `${this.id}-${meth}`;
|
|
3625
4560
|
log.trace(origin);
|
|
3626
4561
|
|
|
4562
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4563
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4564
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4565
|
+
return callback(null, errorObj);
|
|
4566
|
+
}
|
|
4567
|
+
|
|
3627
4568
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3628
4569
|
|
|
3629
4570
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3688,6 +4629,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
3688
4629
|
const origin = `${this.id}-${meth}`;
|
|
3689
4630
|
log.trace(origin);
|
|
3690
4631
|
|
|
4632
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4633
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4634
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4635
|
+
return callback(null, errorObj);
|
|
4636
|
+
}
|
|
4637
|
+
|
|
3691
4638
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3692
4639
|
|
|
3693
4640
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3752,6 +4699,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
3752
4699
|
const origin = `${this.id}-${meth}`;
|
|
3753
4700
|
log.trace(origin);
|
|
3754
4701
|
|
|
4702
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4703
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4704
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4705
|
+
return callback(null, errorObj);
|
|
4706
|
+
}
|
|
4707
|
+
|
|
3755
4708
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3756
4709
|
|
|
3757
4710
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3816,6 +4769,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
3816
4769
|
const origin = `${this.id}-${meth}`;
|
|
3817
4770
|
log.trace(origin);
|
|
3818
4771
|
|
|
4772
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4773
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4774
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4775
|
+
return callback(null, errorObj);
|
|
4776
|
+
}
|
|
4777
|
+
|
|
3819
4778
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3820
4779
|
|
|
3821
4780
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3880,6 +4839,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
3880
4839
|
const origin = `${this.id}-${meth}`;
|
|
3881
4840
|
log.trace(origin);
|
|
3882
4841
|
|
|
4842
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4843
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4844
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4845
|
+
return callback(null, errorObj);
|
|
4846
|
+
}
|
|
4847
|
+
|
|
3883
4848
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3884
4849
|
|
|
3885
4850
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -3944,6 +4909,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
3944
4909
|
const origin = `${this.id}-${meth}`;
|
|
3945
4910
|
log.trace(origin);
|
|
3946
4911
|
|
|
4912
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4913
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4914
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4915
|
+
return callback(null, errorObj);
|
|
4916
|
+
}
|
|
4917
|
+
|
|
3947
4918
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
3948
4919
|
|
|
3949
4920
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -4008,6 +4979,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
4008
4979
|
const origin = `${this.id}-${meth}`;
|
|
4009
4980
|
log.trace(origin);
|
|
4010
4981
|
|
|
4982
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
4983
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
4984
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
4985
|
+
return callback(null, errorObj);
|
|
4986
|
+
}
|
|
4987
|
+
|
|
4011
4988
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4012
4989
|
|
|
4013
4990
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -4072,6 +5049,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
4072
5049
|
const origin = `${this.id}-${meth}`;
|
|
4073
5050
|
log.trace(origin);
|
|
4074
5051
|
|
|
5052
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5053
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5054
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5055
|
+
return callback(null, errorObj);
|
|
5056
|
+
}
|
|
5057
|
+
|
|
4075
5058
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4076
5059
|
|
|
4077
5060
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -4136,6 +5119,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
4136
5119
|
const origin = `${this.id}-${meth}`;
|
|
4137
5120
|
log.trace(origin);
|
|
4138
5121
|
|
|
5122
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5123
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5124
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5125
|
+
return callback(null, errorObj);
|
|
5126
|
+
}
|
|
5127
|
+
|
|
4139
5128
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4140
5129
|
|
|
4141
5130
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -4200,6 +5189,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
4200
5189
|
const origin = `${this.id}-${meth}`;
|
|
4201
5190
|
log.trace(origin);
|
|
4202
5191
|
|
|
5192
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5193
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5194
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5195
|
+
return callback(null, errorObj);
|
|
5196
|
+
}
|
|
5197
|
+
|
|
4203
5198
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4204
5199
|
|
|
4205
5200
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -4264,6 +5259,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
4264
5259
|
const origin = `${this.id}-${meth}`;
|
|
4265
5260
|
log.trace(origin);
|
|
4266
5261
|
|
|
5262
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5263
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5264
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5265
|
+
return callback(null, errorObj);
|
|
5266
|
+
}
|
|
5267
|
+
|
|
4267
5268
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4268
5269
|
|
|
4269
5270
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -4328,6 +5329,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
4328
5329
|
const origin = `${this.id}-${meth}`;
|
|
4329
5330
|
log.trace(origin);
|
|
4330
5331
|
|
|
5332
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5333
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5334
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5335
|
+
return callback(null, errorObj);
|
|
5336
|
+
}
|
|
5337
|
+
|
|
4331
5338
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4332
5339
|
|
|
4333
5340
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -4392,6 +5399,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
4392
5399
|
const origin = `${this.id}-${meth}`;
|
|
4393
5400
|
log.trace(origin);
|
|
4394
5401
|
|
|
5402
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5403
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5404
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5405
|
+
return callback(null, errorObj);
|
|
5406
|
+
}
|
|
5407
|
+
|
|
4395
5408
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4396
5409
|
|
|
4397
5410
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -4456,6 +5469,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
4456
5469
|
const origin = `${this.id}-${meth}`;
|
|
4457
5470
|
log.trace(origin);
|
|
4458
5471
|
|
|
5472
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5473
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5474
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5475
|
+
return callback(null, errorObj);
|
|
5476
|
+
}
|
|
5477
|
+
|
|
4459
5478
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4460
5479
|
|
|
4461
5480
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -4520,6 +5539,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
4520
5539
|
const origin = `${this.id}-${meth}`;
|
|
4521
5540
|
log.trace(origin);
|
|
4522
5541
|
|
|
5542
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5543
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5544
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5545
|
+
return callback(null, errorObj);
|
|
5546
|
+
}
|
|
5547
|
+
|
|
4523
5548
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4524
5549
|
|
|
4525
5550
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -4584,6 +5609,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
4584
5609
|
const origin = `${this.id}-${meth}`;
|
|
4585
5610
|
log.trace(origin);
|
|
4586
5611
|
|
|
5612
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5613
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5614
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5615
|
+
return callback(null, errorObj);
|
|
5616
|
+
}
|
|
5617
|
+
|
|
4587
5618
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4588
5619
|
|
|
4589
5620
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -4648,6 +5679,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
4648
5679
|
const origin = `${this.id}-${meth}`;
|
|
4649
5680
|
log.trace(origin);
|
|
4650
5681
|
|
|
5682
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5683
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5684
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5685
|
+
return callback(null, errorObj);
|
|
5686
|
+
}
|
|
5687
|
+
|
|
4651
5688
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4652
5689
|
|
|
4653
5690
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -4712,6 +5749,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
4712
5749
|
const origin = `${this.id}-${meth}`;
|
|
4713
5750
|
log.trace(origin);
|
|
4714
5751
|
|
|
5752
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5753
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5754
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5755
|
+
return callback(null, errorObj);
|
|
5756
|
+
}
|
|
5757
|
+
|
|
4715
5758
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4716
5759
|
|
|
4717
5760
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -4776,6 +5819,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
4776
5819
|
const origin = `${this.id}-${meth}`;
|
|
4777
5820
|
log.trace(origin);
|
|
4778
5821
|
|
|
5822
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5823
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5824
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5825
|
+
return callback(null, errorObj);
|
|
5826
|
+
}
|
|
5827
|
+
|
|
4779
5828
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4780
5829
|
|
|
4781
5830
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -4840,6 +5889,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
4840
5889
|
const origin = `${this.id}-${meth}`;
|
|
4841
5890
|
log.trace(origin);
|
|
4842
5891
|
|
|
5892
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5893
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5894
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5895
|
+
return callback(null, errorObj);
|
|
5896
|
+
}
|
|
5897
|
+
|
|
4843
5898
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4844
5899
|
|
|
4845
5900
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -4904,6 +5959,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
4904
5959
|
const origin = `${this.id}-${meth}`;
|
|
4905
5960
|
log.trace(origin);
|
|
4906
5961
|
|
|
5962
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
5963
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
5964
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
5965
|
+
return callback(null, errorObj);
|
|
5966
|
+
}
|
|
5967
|
+
|
|
4907
5968
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4908
5969
|
|
|
4909
5970
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -4968,6 +6029,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
4968
6029
|
const origin = `${this.id}-${meth}`;
|
|
4969
6030
|
log.trace(origin);
|
|
4970
6031
|
|
|
6032
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6033
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6034
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6035
|
+
return callback(null, errorObj);
|
|
6036
|
+
}
|
|
6037
|
+
|
|
4971
6038
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
4972
6039
|
|
|
4973
6040
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5032,6 +6099,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
5032
6099
|
const origin = `${this.id}-${meth}`;
|
|
5033
6100
|
log.trace(origin);
|
|
5034
6101
|
|
|
6102
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6103
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6104
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6105
|
+
return callback(null, errorObj);
|
|
6106
|
+
}
|
|
6107
|
+
|
|
5035
6108
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5036
6109
|
|
|
5037
6110
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5096,6 +6169,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
5096
6169
|
const origin = `${this.id}-${meth}`;
|
|
5097
6170
|
log.trace(origin);
|
|
5098
6171
|
|
|
6172
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6173
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6174
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6175
|
+
return callback(null, errorObj);
|
|
6176
|
+
}
|
|
6177
|
+
|
|
5099
6178
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5100
6179
|
|
|
5101
6180
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5160,6 +6239,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
5160
6239
|
const origin = `${this.id}-${meth}`;
|
|
5161
6240
|
log.trace(origin);
|
|
5162
6241
|
|
|
6242
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6243
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6244
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6245
|
+
return callback(null, errorObj);
|
|
6246
|
+
}
|
|
6247
|
+
|
|
5163
6248
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5164
6249
|
|
|
5165
6250
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5224,6 +6309,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
5224
6309
|
const origin = `${this.id}-${meth}`;
|
|
5225
6310
|
log.trace(origin);
|
|
5226
6311
|
|
|
6312
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6313
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6314
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6315
|
+
return callback(null, errorObj);
|
|
6316
|
+
}
|
|
6317
|
+
|
|
5227
6318
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5228
6319
|
|
|
5229
6320
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5288,6 +6379,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
5288
6379
|
const origin = `${this.id}-${meth}`;
|
|
5289
6380
|
log.trace(origin);
|
|
5290
6381
|
|
|
6382
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6383
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6384
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6385
|
+
return callback(null, errorObj);
|
|
6386
|
+
}
|
|
6387
|
+
|
|
5291
6388
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5292
6389
|
|
|
5293
6390
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5352,6 +6449,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
5352
6449
|
const origin = `${this.id}-${meth}`;
|
|
5353
6450
|
log.trace(origin);
|
|
5354
6451
|
|
|
6452
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6453
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6454
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6455
|
+
return callback(null, errorObj);
|
|
6456
|
+
}
|
|
6457
|
+
|
|
5355
6458
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5356
6459
|
|
|
5357
6460
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5416,6 +6519,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
5416
6519
|
const origin = `${this.id}-${meth}`;
|
|
5417
6520
|
log.trace(origin);
|
|
5418
6521
|
|
|
6522
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6523
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6524
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6525
|
+
return callback(null, errorObj);
|
|
6526
|
+
}
|
|
6527
|
+
|
|
5419
6528
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5420
6529
|
|
|
5421
6530
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5480,6 +6589,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
5480
6589
|
const origin = `${this.id}-${meth}`;
|
|
5481
6590
|
log.trace(origin);
|
|
5482
6591
|
|
|
6592
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6593
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6594
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6595
|
+
return callback(null, errorObj);
|
|
6596
|
+
}
|
|
6597
|
+
|
|
5483
6598
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5484
6599
|
|
|
5485
6600
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5544,6 +6659,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
5544
6659
|
const origin = `${this.id}-${meth}`;
|
|
5545
6660
|
log.trace(origin);
|
|
5546
6661
|
|
|
6662
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6663
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6664
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6665
|
+
return callback(null, errorObj);
|
|
6666
|
+
}
|
|
6667
|
+
|
|
5547
6668
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5548
6669
|
|
|
5549
6670
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5608,6 +6729,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
5608
6729
|
const origin = `${this.id}-${meth}`;
|
|
5609
6730
|
log.trace(origin);
|
|
5610
6731
|
|
|
6732
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6733
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6734
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6735
|
+
return callback(null, errorObj);
|
|
6736
|
+
}
|
|
6737
|
+
|
|
5611
6738
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5612
6739
|
|
|
5613
6740
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5672,6 +6799,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
5672
6799
|
const origin = `${this.id}-${meth}`;
|
|
5673
6800
|
log.trace(origin);
|
|
5674
6801
|
|
|
6802
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6803
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6804
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6805
|
+
return callback(null, errorObj);
|
|
6806
|
+
}
|
|
6807
|
+
|
|
5675
6808
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5676
6809
|
|
|
5677
6810
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5736,6 +6869,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
5736
6869
|
const origin = `${this.id}-${meth}`;
|
|
5737
6870
|
log.trace(origin);
|
|
5738
6871
|
|
|
6872
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6873
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6874
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6875
|
+
return callback(null, errorObj);
|
|
6876
|
+
}
|
|
6877
|
+
|
|
5739
6878
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5740
6879
|
|
|
5741
6880
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5800,6 +6939,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
5800
6939
|
const origin = `${this.id}-${meth}`;
|
|
5801
6940
|
log.trace(origin);
|
|
5802
6941
|
|
|
6942
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
6943
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
6944
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
6945
|
+
return callback(null, errorObj);
|
|
6946
|
+
}
|
|
6947
|
+
|
|
5803
6948
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5804
6949
|
|
|
5805
6950
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5864,6 +7009,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
5864
7009
|
const origin = `${this.id}-${meth}`;
|
|
5865
7010
|
log.trace(origin);
|
|
5866
7011
|
|
|
7012
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7013
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7014
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7015
|
+
return callback(null, errorObj);
|
|
7016
|
+
}
|
|
7017
|
+
|
|
5867
7018
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5868
7019
|
|
|
5869
7020
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5928,6 +7079,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
5928
7079
|
const origin = `${this.id}-${meth}`;
|
|
5929
7080
|
log.trace(origin);
|
|
5930
7081
|
|
|
7082
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7083
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7084
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7085
|
+
return callback(null, errorObj);
|
|
7086
|
+
}
|
|
7087
|
+
|
|
5931
7088
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5932
7089
|
|
|
5933
7090
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -5992,6 +7149,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
5992
7149
|
const origin = `${this.id}-${meth}`;
|
|
5993
7150
|
log.trace(origin);
|
|
5994
7151
|
|
|
7152
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7153
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7154
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7155
|
+
return callback(null, errorObj);
|
|
7156
|
+
}
|
|
7157
|
+
|
|
5995
7158
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
5996
7159
|
|
|
5997
7160
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -6056,6 +7219,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
6056
7219
|
const origin = `${this.id}-${meth}`;
|
|
6057
7220
|
log.trace(origin);
|
|
6058
7221
|
|
|
7222
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7223
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7224
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7225
|
+
return callback(null, errorObj);
|
|
7226
|
+
}
|
|
7227
|
+
|
|
6059
7228
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6060
7229
|
|
|
6061
7230
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -6119,6 +7288,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
6119
7288
|
const origin = `${this.id}-${meth}`;
|
|
6120
7289
|
log.trace(origin);
|
|
6121
7290
|
|
|
7291
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7292
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7293
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7294
|
+
return callback(null, errorObj);
|
|
7295
|
+
}
|
|
7296
|
+
|
|
6122
7297
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6123
7298
|
|
|
6124
7299
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -6164,6 +7339,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
6164
7339
|
const origin = `${this.id}-${meth}`;
|
|
6165
7340
|
log.trace(origin);
|
|
6166
7341
|
|
|
7342
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7343
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7344
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7345
|
+
return callback(null, errorObj);
|
|
7346
|
+
}
|
|
7347
|
+
|
|
6167
7348
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6168
7349
|
|
|
6169
7350
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -6228,6 +7409,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
6228
7409
|
const origin = `${this.id}-${meth}`;
|
|
6229
7410
|
log.trace(origin);
|
|
6230
7411
|
|
|
7412
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7413
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7414
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7415
|
+
return callback(null, errorObj);
|
|
7416
|
+
}
|
|
7417
|
+
|
|
6231
7418
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6232
7419
|
|
|
6233
7420
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -6292,6 +7479,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
6292
7479
|
const origin = `${this.id}-${meth}`;
|
|
6293
7480
|
log.trace(origin);
|
|
6294
7481
|
|
|
7482
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7483
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7484
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7485
|
+
return callback(null, errorObj);
|
|
7486
|
+
}
|
|
7487
|
+
|
|
6295
7488
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6296
7489
|
|
|
6297
7490
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -6356,6 +7549,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
6356
7549
|
const origin = `${this.id}-${meth}`;
|
|
6357
7550
|
log.trace(origin);
|
|
6358
7551
|
|
|
7552
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7553
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7554
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7555
|
+
return callback(null, errorObj);
|
|
7556
|
+
}
|
|
7557
|
+
|
|
6359
7558
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6360
7559
|
|
|
6361
7560
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -6419,6 +7618,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
6419
7618
|
const origin = `${this.id}-${meth}`;
|
|
6420
7619
|
log.trace(origin);
|
|
6421
7620
|
|
|
7621
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7622
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7623
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7624
|
+
return callback(null, errorObj);
|
|
7625
|
+
}
|
|
7626
|
+
|
|
6422
7627
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6423
7628
|
|
|
6424
7629
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -6464,6 +7669,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
6464
7669
|
const origin = `${this.id}-${meth}`;
|
|
6465
7670
|
log.trace(origin);
|
|
6466
7671
|
|
|
7672
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7673
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7674
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7675
|
+
return callback(null, errorObj);
|
|
7676
|
+
}
|
|
7677
|
+
|
|
6467
7678
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6468
7679
|
|
|
6469
7680
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -6528,6 +7739,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
6528
7739
|
const origin = `${this.id}-${meth}`;
|
|
6529
7740
|
log.trace(origin);
|
|
6530
7741
|
|
|
7742
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7743
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7744
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7745
|
+
return callback(null, errorObj);
|
|
7746
|
+
}
|
|
7747
|
+
|
|
6531
7748
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6532
7749
|
|
|
6533
7750
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -6592,6 +7809,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
6592
7809
|
const origin = `${this.id}-${meth}`;
|
|
6593
7810
|
log.trace(origin);
|
|
6594
7811
|
|
|
7812
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7813
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7814
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7815
|
+
return callback(null, errorObj);
|
|
7816
|
+
}
|
|
7817
|
+
|
|
6595
7818
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6596
7819
|
|
|
6597
7820
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -6656,6 +7879,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
6656
7879
|
const origin = `${this.id}-${meth}`;
|
|
6657
7880
|
log.trace(origin);
|
|
6658
7881
|
|
|
7882
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7883
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7884
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7885
|
+
return callback(null, errorObj);
|
|
7886
|
+
}
|
|
7887
|
+
|
|
6659
7888
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6660
7889
|
|
|
6661
7890
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -6719,6 +7948,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
6719
7948
|
const origin = `${this.id}-${meth}`;
|
|
6720
7949
|
log.trace(origin);
|
|
6721
7950
|
|
|
7951
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
7952
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
7953
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
7954
|
+
return callback(null, errorObj);
|
|
7955
|
+
}
|
|
7956
|
+
|
|
6722
7957
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6723
7958
|
|
|
6724
7959
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -6763,6 +7998,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
6763
7998
|
const origin = `${this.id}-${meth}`;
|
|
6764
7999
|
log.trace(origin);
|
|
6765
8000
|
|
|
8001
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
8002
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
8003
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8004
|
+
return callback(null, errorObj);
|
|
8005
|
+
}
|
|
8006
|
+
|
|
6766
8007
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6767
8008
|
|
|
6768
8009
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -6808,6 +8049,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
6808
8049
|
const origin = `${this.id}-${meth}`;
|
|
6809
8050
|
log.trace(origin);
|
|
6810
8051
|
|
|
8052
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
8053
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
8054
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8055
|
+
return callback(null, errorObj);
|
|
8056
|
+
}
|
|
8057
|
+
|
|
6811
8058
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6812
8059
|
|
|
6813
8060
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -6872,6 +8119,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
6872
8119
|
const origin = `${this.id}-${meth}`;
|
|
6873
8120
|
log.trace(origin);
|
|
6874
8121
|
|
|
8122
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
8123
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
8124
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8125
|
+
return callback(null, errorObj);
|
|
8126
|
+
}
|
|
8127
|
+
|
|
6875
8128
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6876
8129
|
|
|
6877
8130
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -6936,6 +8189,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
6936
8189
|
const origin = `${this.id}-${meth}`;
|
|
6937
8190
|
log.trace(origin);
|
|
6938
8191
|
|
|
8192
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
8193
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
8194
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8195
|
+
return callback(null, errorObj);
|
|
8196
|
+
}
|
|
8197
|
+
|
|
6939
8198
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
6940
8199
|
|
|
6941
8200
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -7000,6 +8259,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
7000
8259
|
const origin = `${this.id}-${meth}`;
|
|
7001
8260
|
log.trace(origin);
|
|
7002
8261
|
|
|
8262
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
8263
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
8264
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8265
|
+
return callback(null, errorObj);
|
|
8266
|
+
}
|
|
8267
|
+
|
|
7003
8268
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
7004
8269
|
|
|
7005
8270
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -7064,6 +8329,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
7064
8329
|
const origin = `${this.id}-${meth}`;
|
|
7065
8330
|
log.trace(origin);
|
|
7066
8331
|
|
|
8332
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
8333
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
8334
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8335
|
+
return callback(null, errorObj);
|
|
8336
|
+
}
|
|
8337
|
+
|
|
7067
8338
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
7068
8339
|
|
|
7069
8340
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -7128,6 +8399,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
7128
8399
|
const origin = `${this.id}-${meth}`;
|
|
7129
8400
|
log.trace(origin);
|
|
7130
8401
|
|
|
8402
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
8403
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
8404
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8405
|
+
return callback(null, errorObj);
|
|
8406
|
+
}
|
|
8407
|
+
|
|
7131
8408
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
7132
8409
|
|
|
7133
8410
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -7193,6 +8470,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
7193
8470
|
const origin = `${this.id}-${meth}`;
|
|
7194
8471
|
log.trace(origin);
|
|
7195
8472
|
|
|
8473
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
8474
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
8475
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8476
|
+
return callback(null, errorObj);
|
|
8477
|
+
}
|
|
8478
|
+
|
|
7196
8479
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
7197
8480
|
|
|
7198
8481
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -7257,6 +8540,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
7257
8540
|
const origin = `${this.id}-${meth}`;
|
|
7258
8541
|
log.trace(origin);
|
|
7259
8542
|
|
|
8543
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
8544
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
8545
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8546
|
+
return callback(null, errorObj);
|
|
8547
|
+
}
|
|
8548
|
+
|
|
7260
8549
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
7261
8550
|
|
|
7262
8551
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -7321,6 +8610,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
7321
8610
|
const origin = `${this.id}-${meth}`;
|
|
7322
8611
|
log.trace(origin);
|
|
7323
8612
|
|
|
8613
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
8614
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
8615
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8616
|
+
return callback(null, errorObj);
|
|
8617
|
+
}
|
|
8618
|
+
|
|
7324
8619
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
7325
8620
|
|
|
7326
8621
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -7384,6 +8679,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
7384
8679
|
const origin = `${this.id}-${meth}`;
|
|
7385
8680
|
log.trace(origin);
|
|
7386
8681
|
|
|
8682
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
8683
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
8684
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8685
|
+
return callback(null, errorObj);
|
|
8686
|
+
}
|
|
8687
|
+
|
|
7387
8688
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
7388
8689
|
|
|
7389
8690
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -7429,6 +8730,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
7429
8730
|
const origin = `${this.id}-${meth}`;
|
|
7430
8731
|
log.trace(origin);
|
|
7431
8732
|
|
|
8733
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
8734
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
8735
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8736
|
+
return callback(null, errorObj);
|
|
8737
|
+
}
|
|
8738
|
+
|
|
7432
8739
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
7433
8740
|
|
|
7434
8741
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -7493,6 +8800,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
7493
8800
|
const origin = `${this.id}-${meth}`;
|
|
7494
8801
|
log.trace(origin);
|
|
7495
8802
|
|
|
8803
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
8804
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
8805
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8806
|
+
return callback(null, errorObj);
|
|
8807
|
+
}
|
|
8808
|
+
|
|
7496
8809
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
7497
8810
|
|
|
7498
8811
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -7557,6 +8870,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
7557
8870
|
const origin = `${this.id}-${meth}`;
|
|
7558
8871
|
log.trace(origin);
|
|
7559
8872
|
|
|
8873
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
8874
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
8875
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8876
|
+
return callback(null, errorObj);
|
|
8877
|
+
}
|
|
8878
|
+
|
|
7560
8879
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
7561
8880
|
|
|
7562
8881
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -7621,6 +8940,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
7621
8940
|
const origin = `${this.id}-${meth}`;
|
|
7622
8941
|
log.trace(origin);
|
|
7623
8942
|
|
|
8943
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
8944
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
8945
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
8946
|
+
return callback(null, errorObj);
|
|
8947
|
+
}
|
|
8948
|
+
|
|
7624
8949
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
7625
8950
|
|
|
7626
8951
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -7685,6 +9010,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
7685
9010
|
const origin = `${this.id}-${meth}`;
|
|
7686
9011
|
log.trace(origin);
|
|
7687
9012
|
|
|
9013
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
9014
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
9015
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9016
|
+
return callback(null, errorObj);
|
|
9017
|
+
}
|
|
9018
|
+
|
|
7688
9019
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
7689
9020
|
|
|
7690
9021
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -7749,6 +9080,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
7749
9080
|
const origin = `${this.id}-${meth}`;
|
|
7750
9081
|
log.trace(origin);
|
|
7751
9082
|
|
|
9083
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
9084
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
9085
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9086
|
+
return callback(null, errorObj);
|
|
9087
|
+
}
|
|
9088
|
+
|
|
7752
9089
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
7753
9090
|
|
|
7754
9091
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -7813,6 +9150,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
7813
9150
|
const origin = `${this.id}-${meth}`;
|
|
7814
9151
|
log.trace(origin);
|
|
7815
9152
|
|
|
9153
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
9154
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
9155
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9156
|
+
return callback(null, errorObj);
|
|
9157
|
+
}
|
|
9158
|
+
|
|
7816
9159
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
7817
9160
|
|
|
7818
9161
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -7877,6 +9220,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
7877
9220
|
const origin = `${this.id}-${meth}`;
|
|
7878
9221
|
log.trace(origin);
|
|
7879
9222
|
|
|
9223
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
9224
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
9225
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9226
|
+
return callback(null, errorObj);
|
|
9227
|
+
}
|
|
9228
|
+
|
|
7880
9229
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
7881
9230
|
|
|
7882
9231
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -7941,6 +9290,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
7941
9290
|
const origin = `${this.id}-${meth}`;
|
|
7942
9291
|
log.trace(origin);
|
|
7943
9292
|
|
|
9293
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
9294
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
9295
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9296
|
+
return callback(null, errorObj);
|
|
9297
|
+
}
|
|
9298
|
+
|
|
7944
9299
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
7945
9300
|
|
|
7946
9301
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -8004,6 +9359,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
8004
9359
|
const origin = `${this.id}-${meth}`;
|
|
8005
9360
|
log.trace(origin);
|
|
8006
9361
|
|
|
9362
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
9363
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
9364
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9365
|
+
return callback(null, errorObj);
|
|
9366
|
+
}
|
|
9367
|
+
|
|
8007
9368
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8008
9369
|
|
|
8009
9370
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -8049,6 +9410,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
8049
9410
|
const origin = `${this.id}-${meth}`;
|
|
8050
9411
|
log.trace(origin);
|
|
8051
9412
|
|
|
9413
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
9414
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
9415
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9416
|
+
return callback(null, errorObj);
|
|
9417
|
+
}
|
|
9418
|
+
|
|
8052
9419
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8053
9420
|
|
|
8054
9421
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -8113,6 +9480,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
8113
9480
|
const origin = `${this.id}-${meth}`;
|
|
8114
9481
|
log.trace(origin);
|
|
8115
9482
|
|
|
9483
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
9484
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
9485
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9486
|
+
return callback(null, errorObj);
|
|
9487
|
+
}
|
|
9488
|
+
|
|
8116
9489
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8117
9490
|
|
|
8118
9491
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -8177,6 +9550,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
8177
9550
|
const origin = `${this.id}-${meth}`;
|
|
8178
9551
|
log.trace(origin);
|
|
8179
9552
|
|
|
9553
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
9554
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
9555
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9556
|
+
return callback(null, errorObj);
|
|
9557
|
+
}
|
|
9558
|
+
|
|
8180
9559
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8181
9560
|
|
|
8182
9561
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -8241,6 +9620,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
8241
9620
|
const origin = `${this.id}-${meth}`;
|
|
8242
9621
|
log.trace(origin);
|
|
8243
9622
|
|
|
9623
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
9624
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
9625
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9626
|
+
return callback(null, errorObj);
|
|
9627
|
+
}
|
|
9628
|
+
|
|
8244
9629
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8245
9630
|
|
|
8246
9631
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -8304,6 +9689,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
8304
9689
|
const origin = `${this.id}-${meth}`;
|
|
8305
9690
|
log.trace(origin);
|
|
8306
9691
|
|
|
9692
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
9693
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
9694
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9695
|
+
return callback(null, errorObj);
|
|
9696
|
+
}
|
|
9697
|
+
|
|
8307
9698
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8308
9699
|
|
|
8309
9700
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -8349,6 +9740,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
8349
9740
|
const origin = `${this.id}-${meth}`;
|
|
8350
9741
|
log.trace(origin);
|
|
8351
9742
|
|
|
9743
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
9744
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
9745
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9746
|
+
return callback(null, errorObj);
|
|
9747
|
+
}
|
|
9748
|
+
|
|
8352
9749
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8353
9750
|
|
|
8354
9751
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -8413,6 +9810,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
8413
9810
|
const origin = `${this.id}-${meth}`;
|
|
8414
9811
|
log.trace(origin);
|
|
8415
9812
|
|
|
9813
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
9814
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
9815
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9816
|
+
return callback(null, errorObj);
|
|
9817
|
+
}
|
|
9818
|
+
|
|
8416
9819
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8417
9820
|
|
|
8418
9821
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -8477,6 +9880,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
8477
9880
|
const origin = `${this.id}-${meth}`;
|
|
8478
9881
|
log.trace(origin);
|
|
8479
9882
|
|
|
9883
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
9884
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
9885
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9886
|
+
return callback(null, errorObj);
|
|
9887
|
+
}
|
|
9888
|
+
|
|
8480
9889
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8481
9890
|
|
|
8482
9891
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -8541,6 +9950,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
8541
9950
|
const origin = `${this.id}-${meth}`;
|
|
8542
9951
|
log.trace(origin);
|
|
8543
9952
|
|
|
9953
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
9954
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
9955
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
9956
|
+
return callback(null, errorObj);
|
|
9957
|
+
}
|
|
9958
|
+
|
|
8544
9959
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8545
9960
|
|
|
8546
9961
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -8605,6 +10020,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
8605
10020
|
const origin = `${this.id}-${meth}`;
|
|
8606
10021
|
log.trace(origin);
|
|
8607
10022
|
|
|
10023
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
10024
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
10025
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10026
|
+
return callback(null, errorObj);
|
|
10027
|
+
}
|
|
10028
|
+
|
|
8608
10029
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8609
10030
|
|
|
8610
10031
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -8669,6 +10090,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
8669
10090
|
const origin = `${this.id}-${meth}`;
|
|
8670
10091
|
log.trace(origin);
|
|
8671
10092
|
|
|
10093
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
10094
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
10095
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10096
|
+
return callback(null, errorObj);
|
|
10097
|
+
}
|
|
10098
|
+
|
|
8672
10099
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8673
10100
|
|
|
8674
10101
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -8733,6 +10160,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
8733
10160
|
const origin = `${this.id}-${meth}`;
|
|
8734
10161
|
log.trace(origin);
|
|
8735
10162
|
|
|
10163
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
10164
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
10165
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10166
|
+
return callback(null, errorObj);
|
|
10167
|
+
}
|
|
10168
|
+
|
|
8736
10169
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8737
10170
|
|
|
8738
10171
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -8797,6 +10230,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
8797
10230
|
const origin = `${this.id}-${meth}`;
|
|
8798
10231
|
log.trace(origin);
|
|
8799
10232
|
|
|
10233
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
10234
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
10235
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10236
|
+
return callback(null, errorObj);
|
|
10237
|
+
}
|
|
10238
|
+
|
|
8800
10239
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8801
10240
|
|
|
8802
10241
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -8861,6 +10300,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
8861
10300
|
const origin = `${this.id}-${meth}`;
|
|
8862
10301
|
log.trace(origin);
|
|
8863
10302
|
|
|
10303
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
10304
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
10305
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10306
|
+
return callback(null, errorObj);
|
|
10307
|
+
}
|
|
10308
|
+
|
|
8864
10309
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8865
10310
|
|
|
8866
10311
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -8925,6 +10370,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
8925
10370
|
const origin = `${this.id}-${meth}`;
|
|
8926
10371
|
log.trace(origin);
|
|
8927
10372
|
|
|
10373
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
10374
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
10375
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10376
|
+
return callback(null, errorObj);
|
|
10377
|
+
}
|
|
10378
|
+
|
|
8928
10379
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8929
10380
|
|
|
8930
10381
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -8989,6 +10440,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
8989
10440
|
const origin = `${this.id}-${meth}`;
|
|
8990
10441
|
log.trace(origin);
|
|
8991
10442
|
|
|
10443
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
10444
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
10445
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10446
|
+
return callback(null, errorObj);
|
|
10447
|
+
}
|
|
10448
|
+
|
|
8992
10449
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
8993
10450
|
|
|
8994
10451
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -9053,6 +10510,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
9053
10510
|
const origin = `${this.id}-${meth}`;
|
|
9054
10511
|
log.trace(origin);
|
|
9055
10512
|
|
|
10513
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
10514
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
10515
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10516
|
+
return callback(null, errorObj);
|
|
10517
|
+
}
|
|
10518
|
+
|
|
9056
10519
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
9057
10520
|
|
|
9058
10521
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -9117,6 +10580,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
9117
10580
|
const origin = `${this.id}-${meth}`;
|
|
9118
10581
|
log.trace(origin);
|
|
9119
10582
|
|
|
10583
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
10584
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
10585
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10586
|
+
return callback(null, errorObj);
|
|
10587
|
+
}
|
|
10588
|
+
|
|
9120
10589
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
9121
10590
|
|
|
9122
10591
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -9181,6 +10650,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
9181
10650
|
const origin = `${this.id}-${meth}`;
|
|
9182
10651
|
log.trace(origin);
|
|
9183
10652
|
|
|
10653
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
10654
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
10655
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10656
|
+
return callback(null, errorObj);
|
|
10657
|
+
}
|
|
10658
|
+
|
|
9184
10659
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
9185
10660
|
|
|
9186
10661
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -9245,6 +10720,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
9245
10720
|
const origin = `${this.id}-${meth}`;
|
|
9246
10721
|
log.trace(origin);
|
|
9247
10722
|
|
|
10723
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
10724
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
10725
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10726
|
+
return callback(null, errorObj);
|
|
10727
|
+
}
|
|
10728
|
+
|
|
9248
10729
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
9249
10730
|
|
|
9250
10731
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -9309,6 +10790,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
9309
10790
|
const origin = `${this.id}-${meth}`;
|
|
9310
10791
|
log.trace(origin);
|
|
9311
10792
|
|
|
10793
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
10794
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
10795
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10796
|
+
return callback(null, errorObj);
|
|
10797
|
+
}
|
|
10798
|
+
|
|
9312
10799
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
9313
10800
|
|
|
9314
10801
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -9373,6 +10860,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
9373
10860
|
const origin = `${this.id}-${meth}`;
|
|
9374
10861
|
log.trace(origin);
|
|
9375
10862
|
|
|
10863
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
10864
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
10865
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10866
|
+
return callback(null, errorObj);
|
|
10867
|
+
}
|
|
10868
|
+
|
|
9376
10869
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
9377
10870
|
|
|
9378
10871
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -9437,6 +10930,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
9437
10930
|
const origin = `${this.id}-${meth}`;
|
|
9438
10931
|
log.trace(origin);
|
|
9439
10932
|
|
|
10933
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
10934
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
10935
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
10936
|
+
return callback(null, errorObj);
|
|
10937
|
+
}
|
|
10938
|
+
|
|
9440
10939
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
9441
10940
|
|
|
9442
10941
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -9500,6 +10999,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
9500
10999
|
const origin = `${this.id}-${meth}`;
|
|
9501
11000
|
log.trace(origin);
|
|
9502
11001
|
|
|
11002
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
11003
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
11004
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11005
|
+
return callback(null, errorObj);
|
|
11006
|
+
}
|
|
11007
|
+
|
|
9503
11008
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
9504
11009
|
|
|
9505
11010
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -9545,6 +11050,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
9545
11050
|
const origin = `${this.id}-${meth}`;
|
|
9546
11051
|
log.trace(origin);
|
|
9547
11052
|
|
|
11053
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
11054
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
11055
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11056
|
+
return callback(null, errorObj);
|
|
11057
|
+
}
|
|
11058
|
+
|
|
9548
11059
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
9549
11060
|
|
|
9550
11061
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -9609,6 +11120,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
9609
11120
|
const origin = `${this.id}-${meth}`;
|
|
9610
11121
|
log.trace(origin);
|
|
9611
11122
|
|
|
11123
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
11124
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
11125
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11126
|
+
return callback(null, errorObj);
|
|
11127
|
+
}
|
|
11128
|
+
|
|
9612
11129
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
9613
11130
|
|
|
9614
11131
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -9673,6 +11190,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
9673
11190
|
const origin = `${this.id}-${meth}`;
|
|
9674
11191
|
log.trace(origin);
|
|
9675
11192
|
|
|
11193
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
11194
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
11195
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11196
|
+
return callback(null, errorObj);
|
|
11197
|
+
}
|
|
11198
|
+
|
|
9676
11199
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
9677
11200
|
|
|
9678
11201
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -9737,6 +11260,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
9737
11260
|
const origin = `${this.id}-${meth}`;
|
|
9738
11261
|
log.trace(origin);
|
|
9739
11262
|
|
|
11263
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
11264
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
11265
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11266
|
+
return callback(null, errorObj);
|
|
11267
|
+
}
|
|
11268
|
+
|
|
9740
11269
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
9741
11270
|
|
|
9742
11271
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -9801,6 +11330,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
9801
11330
|
const origin = `${this.id}-${meth}`;
|
|
9802
11331
|
log.trace(origin);
|
|
9803
11332
|
|
|
11333
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
11334
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
11335
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11336
|
+
return callback(null, errorObj);
|
|
11337
|
+
}
|
|
11338
|
+
|
|
9804
11339
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
9805
11340
|
|
|
9806
11341
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -9865,6 +11400,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
9865
11400
|
const origin = `${this.id}-${meth}`;
|
|
9866
11401
|
log.trace(origin);
|
|
9867
11402
|
|
|
11403
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
11404
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
11405
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11406
|
+
return callback(null, errorObj);
|
|
11407
|
+
}
|
|
11408
|
+
|
|
9868
11409
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
9869
11410
|
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
9870
11411
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['integrationId'], null, null, null);
|
|
@@ -9935,6 +11476,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
9935
11476
|
const origin = `${this.id}-${meth}`;
|
|
9936
11477
|
log.trace(origin);
|
|
9937
11478
|
|
|
11479
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
11480
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
11481
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11482
|
+
return callback(null, errorObj);
|
|
11483
|
+
}
|
|
11484
|
+
|
|
9938
11485
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
9939
11486
|
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
9940
11487
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['integrationId'], null, null, null);
|
|
@@ -10004,6 +11551,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
10004
11551
|
const origin = `${this.id}-${meth}`;
|
|
10005
11552
|
log.trace(origin);
|
|
10006
11553
|
|
|
11554
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
11555
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
11556
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11557
|
+
return callback(null, errorObj);
|
|
11558
|
+
}
|
|
11559
|
+
|
|
10007
11560
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
10008
11561
|
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
10009
11562
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['integrationId'], null, null, null);
|
|
@@ -10074,6 +11627,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
10074
11627
|
const origin = `${this.id}-${meth}`;
|
|
10075
11628
|
log.trace(origin);
|
|
10076
11629
|
|
|
11630
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
11631
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
11632
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11633
|
+
return callback(null, errorObj);
|
|
11634
|
+
}
|
|
11635
|
+
|
|
10077
11636
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
10078
11637
|
if (integrationId === undefined || integrationId === null || integrationId === '') {
|
|
10079
11638
|
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'Missing Data', ['integrationId'], null, null, null);
|
|
@@ -10143,6 +11702,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
10143
11702
|
const origin = `${this.id}-${meth}`;
|
|
10144
11703
|
log.trace(origin);
|
|
10145
11704
|
|
|
11705
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
11706
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
11707
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11708
|
+
return callback(null, errorObj);
|
|
11709
|
+
}
|
|
11710
|
+
|
|
10146
11711
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
10147
11712
|
|
|
10148
11713
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -10207,6 +11772,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
10207
11772
|
const origin = `${this.id}-${meth}`;
|
|
10208
11773
|
log.trace(origin);
|
|
10209
11774
|
|
|
11775
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
11776
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
11777
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11778
|
+
return callback(null, errorObj);
|
|
11779
|
+
}
|
|
11780
|
+
|
|
10210
11781
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
10211
11782
|
|
|
10212
11783
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -10271,6 +11842,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
10271
11842
|
const origin = `${this.id}-${meth}`;
|
|
10272
11843
|
log.trace(origin);
|
|
10273
11844
|
|
|
11845
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
11846
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
11847
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11848
|
+
return callback(null, errorObj);
|
|
11849
|
+
}
|
|
11850
|
+
|
|
10274
11851
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
10275
11852
|
|
|
10276
11853
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -10334,6 +11911,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
10334
11911
|
const origin = `${this.id}-${meth}`;
|
|
10335
11912
|
log.trace(origin);
|
|
10336
11913
|
|
|
11914
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
11915
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
11916
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11917
|
+
return callback(null, errorObj);
|
|
11918
|
+
}
|
|
11919
|
+
|
|
10337
11920
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
10338
11921
|
|
|
10339
11922
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -10378,6 +11961,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
10378
11961
|
const origin = `${this.id}-${meth}`;
|
|
10379
11962
|
log.trace(origin);
|
|
10380
11963
|
|
|
11964
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
11965
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
11966
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
11967
|
+
return callback(null, errorObj);
|
|
11968
|
+
}
|
|
11969
|
+
|
|
10381
11970
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
10382
11971
|
|
|
10383
11972
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -10422,6 +12011,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
10422
12011
|
const origin = `${this.id}-${meth}`;
|
|
10423
12012
|
log.trace(origin);
|
|
10424
12013
|
|
|
12014
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
12015
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
12016
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
12017
|
+
return callback(null, errorObj);
|
|
12018
|
+
}
|
|
12019
|
+
|
|
10425
12020
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
10426
12021
|
|
|
10427
12022
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|
|
@@ -10468,6 +12063,12 @@ class Moogsoft extends AdapterBaseCl {
|
|
|
10468
12063
|
const origin = `${this.id}-${meth}`;
|
|
10469
12064
|
log.trace(origin);
|
|
10470
12065
|
|
|
12066
|
+
if (this.suspended && this.suspendMode === 'error') {
|
|
12067
|
+
const errorObj = this.requestHandlerInst.formatErrorObject(this.id, meth, 'AD.600', [], null, null, null);
|
|
12068
|
+
log.error(`${origin}: ${errorObj.IAPerror.displayString}`);
|
|
12069
|
+
return callback(null, errorObj);
|
|
12070
|
+
}
|
|
12071
|
+
|
|
10471
12072
|
/* HERE IS WHERE YOU VALIDATE DATA */
|
|
10472
12073
|
|
|
10473
12074
|
/* HERE IS WHERE YOU SET THE DATA TO PASS INTO REQUEST */
|