Built motion from commit 9d1906d1.|2.5.40
[motion2.git] / server / api / intServicenowField / intServicenowField.controller.js
index 078cd16..b3eb113 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbf77=['create','body','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','util','path','sox','ejs','lodash','crypto','jsforce','desk.js','to-csv','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/license/util','sendStatus','status','end','json','count','offset','limit','set','Content-Range','apply','reject','save','update','then','destroy','error','stack','send','ServicenowField','rawAttributes','fieldName','type','key','model','map','name','query','keys','filters','intersection','attributes','length','hasOwnProperty','nolimit','sort','where','pick','filter','merge','VIRTUAL','includeAll','include','findAll','rows','catch','params','fields','options','find'];(function(_0x58db4e,_0x439d8d){var _0x40139a=function(_0x34cae4){while(--_0x34cae4){_0x58db4e['push'](_0x58db4e['shift']());}};_0x40139a(++_0x439d8d);}(_0xbf77,0xec));var _0x7bf7=function(_0x273c39,_0x1052e6){_0x273c39=_0x273c39-0x0;var _0x46d6b5=_0xbf77[_0x273c39];return _0x46d6b5;};'use strict';var pdf=require(_0x7bf7('0x0'));var emlformat=require(_0x7bf7('0x1'));var rimraf=require(_0x7bf7('0x2'));var zipdir=require(_0x7bf7('0x3'));var jsonpatch=require(_0x7bf7('0x4'));var rp=require(_0x7bf7('0x5'));var moment=require(_0x7bf7('0x6'));var BPromise=require(_0x7bf7('0x7'));var Mustache=require('mustache');var util=require(_0x7bf7('0x8'));var path=require(_0x7bf7('0x9'));var sox=require(_0x7bf7('0xa'));var csv=require('to-csv');var ejs=require(_0x7bf7('0xb'));var fs=require('fs');var _=require(_0x7bf7('0xc'));var squel=require('squel');var crypto=require(_0x7bf7('0xd'));var jsforce=require(_0x7bf7('0xe'));var deskjs=require(_0x7bf7('0xf'));var toCsv=require(_0x7bf7('0x10'));var querystring=require('querystring');var Papa=require(_0x7bf7('0x11'));var Redis=require(_0x7bf7('0x12'));var authService=require(_0x7bf7('0x13'));var qs=require(_0x7bf7('0x14'));var as=require(_0x7bf7('0x15'));var hardwareService=require(_0x7bf7('0x16'));var logger=require(_0x7bf7('0x17'))(_0x7bf7('0x18'));var utils=require(_0x7bf7('0x19'));var config=require('../../config/environment');var licenseUtil=require(_0x7bf7('0x1a'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x358af0,_0x20b1e7){_0x20b1e7=_0x20b1e7||0xcc;return function(_0x4df560){if(_0x4df560){return _0x358af0[_0x7bf7('0x1b')](_0x20b1e7);}return _0x358af0[_0x7bf7('0x1c')](_0x20b1e7)[_0x7bf7('0x1d')]();};}function respondWithResult(_0x25417e,_0x3c204f){_0x3c204f=_0x3c204f||0xc8;return function(_0x16c12d){if(_0x16c12d){return _0x25417e[_0x7bf7('0x1c')](_0x3c204f)[_0x7bf7('0x1e')](_0x16c12d);}};}function respondWithFilteredResult(_0x22e730,_0x4f78f1){return function(_0x1f1ff4){if(_0x1f1ff4){var _0x1dba4d=_0x1f1ff4[_0x7bf7('0x1f')],_0x508562=_0x4f78f1[_0x7bf7('0x20')],_0x3882d1=_0x4f78f1[_0x7bf7('0x20')]+_0x4f78f1[_0x7bf7('0x21')],_0x2feb44;if(_0x3882d1>=_0x1dba4d){_0x3882d1=_0x1dba4d;_0x2feb44=0xc8;}else{_0x2feb44=0xce;}_0x22e730['status'](_0x2feb44);return _0x22e730[_0x7bf7('0x22')](_0x7bf7('0x23'),_0x508562+'-'+_0x3882d1+'/'+_0x1dba4d)[_0x7bf7('0x1e')](_0x1f1ff4);}return null;};}function patchUpdates(_0x3513b3){return function(_0x1bf1c1){try{jsonpatch[_0x7bf7('0x24')](_0x1bf1c1,_0x3513b3,!![]);}catch(_0x47057a){return BPromise[_0x7bf7('0x25')](_0x47057a);}return _0x1bf1c1[_0x7bf7('0x26')]();};}function saveUpdates(_0x4b164a,_0x26aafc){return function(_0x3d1156){if(_0x3d1156){return _0x3d1156[_0x7bf7('0x27')](_0x4b164a)[_0x7bf7('0x28')](function(_0x235062){return _0x235062;});}return null;};}function removeEntity(_0x28ee36,_0xf17450){return function(_0x21b02d){if(_0x21b02d){return _0x21b02d[_0x7bf7('0x29')]()[_0x7bf7('0x28')](function(){_0x28ee36[_0x7bf7('0x1c')](0xcc)[_0x7bf7('0x1d')]();});}};}function handleEntityNotFound(_0x4a09eb,_0x4584c4){return function(_0x138fcf){if(!_0x138fcf){_0x4a09eb[_0x7bf7('0x1b')](0x194);}return _0x138fcf;};}function handleError(_0xf6dd77,_0xa055da){_0xa055da=_0xa055da||0x1f4;return function(_0x2d50d7){logger[_0x7bf7('0x2a')](_0x2d50d7[_0x7bf7('0x2b')]);if(_0x2d50d7['name']){delete _0x2d50d7['name'];}_0xf6dd77[_0x7bf7('0x1c')](_0xa055da)[_0x7bf7('0x2c')](_0x2d50d7);};}exports['index']=function(_0x303d84,_0x465664){var _0x30cd5d={},_0x2d936f={},_0x111531={'count':0x0,'rows':[]};var _0x58e36a=_['map'](db[_0x7bf7('0x2d')][_0x7bf7('0x2e')],function(_0x166719){return{'name':_0x166719[_0x7bf7('0x2f')],'type':_0x166719[_0x7bf7('0x30')][_0x7bf7('0x31')]};});_0x2d936f[_0x7bf7('0x32')]=_[_0x7bf7('0x33')](_0x58e36a,_0x7bf7('0x34'));_0x2d936f[_0x7bf7('0x35')]=_[_0x7bf7('0x36')](_0x303d84[_0x7bf7('0x35')]);_0x2d936f[_0x7bf7('0x37')]=_[_0x7bf7('0x38')](_0x2d936f['model'],_0x2d936f[_0x7bf7('0x35')]);_0x30cd5d[_0x7bf7('0x39')]=_['intersection'](_0x2d936f[_0x7bf7('0x32')],qs['fields'](_0x303d84[_0x7bf7('0x35')]['fields']));_0x30cd5d['attributes']=_0x30cd5d[_0x7bf7('0x39')][_0x7bf7('0x3a')]?_0x30cd5d['attributes']:_0x2d936f['model'];if(!_0x303d84[_0x7bf7('0x35')][_0x7bf7('0x3b')](_0x7bf7('0x3c'))){_0x30cd5d['limit']=qs[_0x7bf7('0x21')](_0x303d84['query'][_0x7bf7('0x21')]);_0x30cd5d['offset']=qs[_0x7bf7('0x20')](_0x303d84[_0x7bf7('0x35')]['offset']);}_0x30cd5d['order']=qs['sort'](_0x303d84[_0x7bf7('0x35')][_0x7bf7('0x3d')]);_0x30cd5d[_0x7bf7('0x3e')]=qs['filters'](_[_0x7bf7('0x3f')](_0x303d84[_0x7bf7('0x35')],_0x2d936f[_0x7bf7('0x37')]),_0x58e36a);if(_0x303d84[_0x7bf7('0x35')][_0x7bf7('0x40')]){_0x30cd5d[_0x7bf7('0x3e')]=_[_0x7bf7('0x41')](_0x30cd5d['where'],{'$or':_['map'](_0x58e36a,function(_0x3c3698){if(_0x3c3698[_0x7bf7('0x30')]!==_0x7bf7('0x42')){var _0x3f35d0={};_0x3f35d0[_0x3c3698[_0x7bf7('0x34')]]={'$like':'%'+_0x303d84[_0x7bf7('0x35')][_0x7bf7('0x40')]+'%'};return _0x3f35d0;}})});}_0x30cd5d=_[_0x7bf7('0x41')]({},_0x30cd5d,_0x303d84['options']);var _0xd152b3={'where':_0x30cd5d[_0x7bf7('0x3e')]};return db['ServicenowField']['count'](_0xd152b3)[_0x7bf7('0x28')](function(_0x4dca87){_0x111531[_0x7bf7('0x1f')]=_0x4dca87;if(_0x303d84[_0x7bf7('0x35')][_0x7bf7('0x43')]){_0x30cd5d[_0x7bf7('0x44')]=[{'all':!![]}];}return db[_0x7bf7('0x2d')][_0x7bf7('0x45')](_0x30cd5d);})[_0x7bf7('0x28')](function(_0x11bf6f){_0x111531[_0x7bf7('0x46')]=_0x11bf6f;return _0x111531;})['then'](respondWithFilteredResult(_0x465664,_0x30cd5d))[_0x7bf7('0x47')](handleError(_0x465664,null));};exports['show']=function(_0xe23446,_0x53add7){var _0x3a5d97={'raw':!![],'where':{'id':_0xe23446[_0x7bf7('0x48')]['id']}},_0x905a39={};_0x905a39[_0x7bf7('0x32')]=_[_0x7bf7('0x36')](db['ServicenowField'][_0x7bf7('0x2e')]);_0x905a39[_0x7bf7('0x35')]=_['keys'](_0xe23446[_0x7bf7('0x35')]);_0x905a39[_0x7bf7('0x37')]=_[_0x7bf7('0x38')](_0x905a39[_0x7bf7('0x32')],_0x905a39[_0x7bf7('0x35')]);_0x3a5d97['attributes']=_['intersection'](_0x905a39['model'],qs[_0x7bf7('0x49')](_0xe23446[_0x7bf7('0x35')][_0x7bf7('0x49')]));_0x3a5d97['attributes']=_0x3a5d97[_0x7bf7('0x39')][_0x7bf7('0x3a')]?_0x3a5d97['attributes']:_0x905a39[_0x7bf7('0x32')];if(_0xe23446[_0x7bf7('0x35')][_0x7bf7('0x43')]){_0x3a5d97[_0x7bf7('0x44')]=[{'all':!![]}];}_0x3a5d97=_['merge']({},_0x3a5d97,_0xe23446[_0x7bf7('0x4a')]);return db[_0x7bf7('0x2d')][_0x7bf7('0x4b')](_0x3a5d97)[_0x7bf7('0x28')](handleEntityNotFound(_0x53add7,null))[_0x7bf7('0x28')](respondWithResult(_0x53add7,null))[_0x7bf7('0x47')](handleError(_0x53add7,null));};exports['create']=function(_0x31ada9,_0x35cfc7){return db['ServicenowField'][_0x7bf7('0x4c')](_0x31ada9[_0x7bf7('0x4d')],{})[_0x7bf7('0x28')](respondWithResult(_0x35cfc7,0xc9))['catch'](handleError(_0x35cfc7,null));};exports[_0x7bf7('0x27')]=function(_0x520376,_0x3e513b){if(_0x520376[_0x7bf7('0x4d')]['id']){delete _0x520376[_0x7bf7('0x4d')]['id'];}return db[_0x7bf7('0x2d')][_0x7bf7('0x4b')]({'where':{'id':_0x520376['params']['id']}})['then'](handleEntityNotFound(_0x3e513b,null))[_0x7bf7('0x28')](saveUpdates(_0x520376[_0x7bf7('0x4d')],null))['then'](respondWithResult(_0x3e513b,null))[_0x7bf7('0x47')](handleError(_0x3e513b,null));};exports['destroy']=function(_0x47d2f1,_0xe395f0){return db[_0x7bf7('0x2d')][_0x7bf7('0x4b')]({'where':{'id':_0x47d2f1['params']['id']}})[_0x7bf7('0x28')](handleEntityNotFound(_0xe395f0,null))['then'](removeEntity(_0xe395f0,null))[_0x7bf7('0x47')](handleError(_0xe395f0,null));};
\ No newline at end of file
+var _0x9bcd=['to-csv','ejs','fs-extra','lodash','crypto','jsforce','desk.js','papaparse','ioredis','../../components/auth/service','../../config/logger','api','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','offset','limit','undefined','count','json','apply','reject','save','update','then','destroy','stack','name','send','map','ServicenowField','rawAttributes','fieldName','type','key','query','filters','model','intersection','fields','attributes','length','hasOwnProperty','order','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','include','findAll','catch','keys','find','create','body','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util'];(function(_0x56b257,_0x3b43ba){var _0x509873=function(_0x250592){while(--_0x250592){_0x56b257['push'](_0x56b257['shift']());}};_0x509873(++_0x3b43ba);}(_0x9bcd,0xca));var _0xd9bc=function(_0x1b9564,_0x2a9629){_0x1b9564=_0x1b9564-0x0;var _0x5c9d5e=_0x9bcd[_0x1b9564];return _0x5c9d5e;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xd9bc('0x0'));var zipdir=require(_0xd9bc('0x1'));var jsonpatch=require(_0xd9bc('0x2'));var rp=require(_0xd9bc('0x3'));var moment=require(_0xd9bc('0x4'));var BPromise=require(_0xd9bc('0x5'));var Mustache=require(_0xd9bc('0x6'));var util=require(_0xd9bc('0x7'));var path=require('path');var sox=require('sox');var csv=require(_0xd9bc('0x8'));var ejs=require(_0xd9bc('0x9'));var fs=require('fs');var fs_extra=require(_0xd9bc('0xa'));var _=require(_0xd9bc('0xb'));var squel=require('squel');var crypto=require(_0xd9bc('0xc'));var jsforce=require(_0xd9bc('0xd'));var deskjs=require(_0xd9bc('0xe'));var toCsv=require(_0xd9bc('0x8'));var querystring=require('querystring');var Papa=require(_0xd9bc('0xf'));var Redis=require(_0xd9bc('0x10'));var authService=require(_0xd9bc('0x11'));var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require(_0xd9bc('0x12'))(_0xd9bc('0x13'));var utils=require('../../config/utils');var config=require(_0xd9bc('0x14'));var licenseUtil=require(_0xd9bc('0x15'));var db=require(_0xd9bc('0x16'))['db'];function respondWithStatusCode(_0x1b0802,_0xbebe13){_0xbebe13=_0xbebe13||0xcc;return function(_0x4afdf2){if(_0x4afdf2){return _0x1b0802[_0xd9bc('0x17')](_0xbebe13);}return _0x1b0802[_0xd9bc('0x18')](_0xbebe13)[_0xd9bc('0x19')]();};}function respondWithResult(_0xe78278,_0x6e40c4){_0x6e40c4=_0x6e40c4||0xc8;return function(_0x52d47a){if(_0x52d47a){return _0xe78278['status'](_0x6e40c4)['json'](_0x52d47a);}};}function respondWithFilteredResult(_0x8d2dba,_0x106159){return function(_0x3633a8){if(_0x3633a8){var _0x3cefdd=typeof _0x106159[_0xd9bc('0x1a')]==='undefined'&&typeof _0x106159[_0xd9bc('0x1b')]===_0xd9bc('0x1c');var _0x4f329d=_0x3633a8[_0xd9bc('0x1d')];var _0x1de977=_0x3cefdd?0x0:_0x106159[_0xd9bc('0x1a')];var _0x1742df=_0x3cefdd?_0x3633a8[_0xd9bc('0x1d')]:_0x106159[_0xd9bc('0x1a')]+_0x106159['limit'];var _0x18f85e;if(_0x1742df>=_0x4f329d){_0x1742df=_0x4f329d;_0x18f85e=0xc8;}else{_0x18f85e=0xce;}_0x8d2dba[_0xd9bc('0x18')](_0x18f85e);return _0x8d2dba['set']('Content-Range',_0x1de977+'-'+_0x1742df+'/'+_0x4f329d)[_0xd9bc('0x1e')](_0x3633a8);}return null;};}function patchUpdates(_0x229ab2){return function(_0x2b0083){try{jsonpatch[_0xd9bc('0x1f')](_0x2b0083,_0x229ab2,!![]);}catch(_0x3bc725){return BPromise[_0xd9bc('0x20')](_0x3bc725);}return _0x2b0083[_0xd9bc('0x21')]();};}function saveUpdates(_0x2bb0f4,_0x2b8f42){return function(_0x39247a){if(_0x39247a){return _0x39247a[_0xd9bc('0x22')](_0x2bb0f4)[_0xd9bc('0x23')](function(_0x24f017){return _0x24f017;});}return null;};}function removeEntity(_0x312ff6,_0x340cdd){return function(_0x2de044){if(_0x2de044){return _0x2de044[_0xd9bc('0x24')]()[_0xd9bc('0x23')](function(){_0x312ff6[_0xd9bc('0x18')](0xcc)[_0xd9bc('0x19')]();});}};}function handleEntityNotFound(_0x24c517,_0x3ef3db){return function(_0x4a3bca){if(!_0x4a3bca){_0x24c517[_0xd9bc('0x17')](0x194);}return _0x4a3bca;};}function handleError(_0x16808d,_0x57209e){_0x57209e=_0x57209e||0x1f4;return function(_0x3d045b){logger['error'](_0x3d045b[_0xd9bc('0x25')]);if(_0x3d045b[_0xd9bc('0x26')]){delete _0x3d045b['name'];}_0x16808d[_0xd9bc('0x18')](_0x57209e)[_0xd9bc('0x27')](_0x3d045b);};}exports['index']=function(_0x3896a0,_0x1b3fb6){var _0x39b1cd={},_0x474dad={},_0xd52e2f={'count':0x0,'rows':[]};var _0x241cae=_[_0xd9bc('0x28')](db[_0xd9bc('0x29')][_0xd9bc('0x2a')],function(_0x264501){return{'name':_0x264501[_0xd9bc('0x2b')],'type':_0x264501[_0xd9bc('0x2c')][_0xd9bc('0x2d')]};});_0x474dad['model']=_[_0xd9bc('0x28')](_0x241cae,'name');_0x474dad[_0xd9bc('0x2e')]=_['keys'](_0x3896a0[_0xd9bc('0x2e')]);_0x474dad[_0xd9bc('0x2f')]=_['intersection'](_0x474dad[_0xd9bc('0x30')],_0x474dad[_0xd9bc('0x2e')]);_0x39b1cd['attributes']=_[_0xd9bc('0x31')](_0x474dad[_0xd9bc('0x30')],qs[_0xd9bc('0x32')](_0x3896a0['query'][_0xd9bc('0x32')]));_0x39b1cd[_0xd9bc('0x33')]=_0x39b1cd['attributes'][_0xd9bc('0x34')]?_0x39b1cd['attributes']:_0x474dad[_0xd9bc('0x30')];if(!_0x3896a0['query'][_0xd9bc('0x35')]('nolimit')){_0x39b1cd[_0xd9bc('0x1b')]=qs[_0xd9bc('0x1b')](_0x3896a0[_0xd9bc('0x2e')]['limit']);_0x39b1cd[_0xd9bc('0x1a')]=qs[_0xd9bc('0x1a')](_0x3896a0[_0xd9bc('0x2e')]['offset']);}_0x39b1cd[_0xd9bc('0x36')]=qs[_0xd9bc('0x37')](_0x3896a0[_0xd9bc('0x2e')][_0xd9bc('0x37')]);_0x39b1cd[_0xd9bc('0x38')]=qs[_0xd9bc('0x2f')](_[_0xd9bc('0x39')](_0x3896a0[_0xd9bc('0x2e')],_0x474dad['filters']),_0x241cae);if(_0x3896a0[_0xd9bc('0x2e')][_0xd9bc('0x3a')]){_0x39b1cd[_0xd9bc('0x38')]=_[_0xd9bc('0x3b')](_0x39b1cd[_0xd9bc('0x38')],{'$or':_['map'](_0x241cae,function(_0x53828c){if(_0x53828c['type']!==_0xd9bc('0x3c')){var _0x108dda={};_0x108dda[_0x53828c[_0xd9bc('0x26')]]={'$like':'%'+_0x3896a0[_0xd9bc('0x2e')]['filter']+'%'};return _0x108dda;}})});}_0x39b1cd=_[_0xd9bc('0x3b')]({},_0x39b1cd,_0x3896a0[_0xd9bc('0x3d')]);var _0x58938f={'where':_0x39b1cd['where']};return db['ServicenowField'][_0xd9bc('0x1d')](_0x58938f)[_0xd9bc('0x23')](function(_0x4037d8){_0xd52e2f[_0xd9bc('0x1d')]=_0x4037d8;if(_0x3896a0[_0xd9bc('0x2e')][_0xd9bc('0x3e')]){_0x39b1cd[_0xd9bc('0x3f')]=[{'all':!![]}];}return db['ServicenowField'][_0xd9bc('0x40')](_0x39b1cd);})[_0xd9bc('0x23')](function(_0x499c53){_0xd52e2f['rows']=_0x499c53;return _0xd52e2f;})[_0xd9bc('0x23')](respondWithFilteredResult(_0x1b3fb6,_0x39b1cd))[_0xd9bc('0x41')](handleError(_0x1b3fb6,null));};exports['show']=function(_0x1180a6,_0x3ebd3c){var _0x15013b={'raw':!![],'where':{'id':_0x1180a6['params']['id']}},_0x2ab44d={};_0x2ab44d[_0xd9bc('0x30')]=_[_0xd9bc('0x42')](db[_0xd9bc('0x29')][_0xd9bc('0x2a')]);_0x2ab44d[_0xd9bc('0x2e')]=_['keys'](_0x1180a6['query']);_0x2ab44d['filters']=_[_0xd9bc('0x31')](_0x2ab44d[_0xd9bc('0x30')],_0x2ab44d['query']);_0x15013b[_0xd9bc('0x33')]=_[_0xd9bc('0x31')](_0x2ab44d['model'],qs[_0xd9bc('0x32')](_0x1180a6[_0xd9bc('0x2e')][_0xd9bc('0x32')]));_0x15013b['attributes']=_0x15013b['attributes'][_0xd9bc('0x34')]?_0x15013b[_0xd9bc('0x33')]:_0x2ab44d[_0xd9bc('0x30')];if(_0x1180a6[_0xd9bc('0x2e')][_0xd9bc('0x3e')]){_0x15013b[_0xd9bc('0x3f')]=[{'all':!![]}];}_0x15013b=_[_0xd9bc('0x3b')]({},_0x15013b,_0x1180a6['options']);return db[_0xd9bc('0x29')][_0xd9bc('0x43')](_0x15013b)['then'](handleEntityNotFound(_0x3ebd3c,null))[_0xd9bc('0x23')](respondWithResult(_0x3ebd3c,null))[_0xd9bc('0x41')](handleError(_0x3ebd3c,null));};exports[_0xd9bc('0x44')]=function(_0x1a8280,_0xe2848b){return db[_0xd9bc('0x29')][_0xd9bc('0x44')](_0x1a8280[_0xd9bc('0x45')],{})[_0xd9bc('0x23')](respondWithResult(_0xe2848b,0xc9))[_0xd9bc('0x41')](handleError(_0xe2848b,null));};exports['update']=function(_0x33ebc7,_0x150c4f){if(_0x33ebc7[_0xd9bc('0x45')]['id']){delete _0x33ebc7[_0xd9bc('0x45')]['id'];}return db[_0xd9bc('0x29')][_0xd9bc('0x43')]({'where':{'id':_0x33ebc7['params']['id']}})[_0xd9bc('0x23')](handleEntityNotFound(_0x150c4f,null))['then'](saveUpdates(_0x33ebc7[_0xd9bc('0x45')],null))[_0xd9bc('0x23')](respondWithResult(_0x150c4f,null))[_0xd9bc('0x41')](handleError(_0x150c4f,null));};exports[_0xd9bc('0x24')]=function(_0x5f30f3,_0x8819c7){return db['ServicenowField'][_0xd9bc('0x43')]({'where':{'id':_0x5f30f3['params']['id']}})[_0xd9bc('0x23')](handleEntityNotFound(_0x8819c7,null))[_0xd9bc('0x23')](removeEntity(_0x8819c7,null))[_0xd9bc('0x41')](handleError(_0x8819c7,null));};
\ No newline at end of file