Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / intServicenowField / intServicenowField.controller.js
index 05077d3..931c8b4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf3d8=['filter','merge','options','ServicenowField','includeAll','include','findAll','rows','catch','params','length','find','create','body','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','mustache','util','path','sox','to-csv','lodash','squel','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','json','count','offset','limit','set','Content-Range','apply','save','update','then','destroy','error','stack','name','send','index','map','rawAttributes','fieldName','key','model','query','keys','filters','intersection','fields','attributes','hasOwnProperty','nolimit','sort','where','pick'];(function(_0x7cf8eb,_0x5a470e){var _0x24e417=function(_0x10caea){while(--_0x10caea){_0x7cf8eb['push'](_0x7cf8eb['shift']());}};_0x24e417(++_0x5a470e);}(_0xf3d8,0xa8));var _0x8f3d=function(_0x1c9c24,_0x2a517b){_0x1c9c24=_0x1c9c24-0x0;var _0x349c69=_0xf3d8[_0x1c9c24];return _0x349c69;};'use strict';var pdf=require(_0x8f3d('0x0'));var emlformat=require(_0x8f3d('0x1'));var rimraf=require(_0x8f3d('0x2'));var zipdir=require(_0x8f3d('0x3'));var jsonpatch=require(_0x8f3d('0x4'));var rp=require(_0x8f3d('0x5'));var moment=require('moment');var BPromise=require(_0x8f3d('0x6'));var Mustache=require(_0x8f3d('0x7'));var util=require(_0x8f3d('0x8'));var path=require(_0x8f3d('0x9'));var sox=require(_0x8f3d('0xa'));var csv=require(_0x8f3d('0xb'));var ejs=require('ejs');var fs=require('fs');var _=require(_0x8f3d('0xc'));var squel=require(_0x8f3d('0xd'));var crypto=require('crypto');var jsforce=require(_0x8f3d('0xe'));var deskjs=require(_0x8f3d('0xf'));var toCsv=require(_0x8f3d('0xb'));var querystring=require(_0x8f3d('0x10'));var Papa=require(_0x8f3d('0x11'));var Redis=require(_0x8f3d('0x12'));var authService=require(_0x8f3d('0x13'));var qs=require(_0x8f3d('0x14'));var as=require(_0x8f3d('0x15'));var hardwareService=require(_0x8f3d('0x16'));var logger=require(_0x8f3d('0x17'))(_0x8f3d('0x18'));var utils=require(_0x8f3d('0x19'));var config=require(_0x8f3d('0x1a'));var db=require(_0x8f3d('0x1b'))['db'];function respondWithStatusCode(_0x646906,_0x291f8a){_0x291f8a=_0x291f8a||0xcc;return function(_0xd7c502){if(_0xd7c502){return _0x646906[_0x8f3d('0x1c')](_0x291f8a);}return _0x646906[_0x8f3d('0x1d')](_0x291f8a)[_0x8f3d('0x1e')]();};}function respondWithResult(_0x6296bc,_0x18ed6d){_0x18ed6d=_0x18ed6d||0xc8;return function(_0x2625ab){if(_0x2625ab){return _0x6296bc[_0x8f3d('0x1d')](_0x18ed6d)[_0x8f3d('0x1f')](_0x2625ab);}};}function respondWithFilteredResult(_0x370d78,_0x2bda8d){return function(_0x530af8){if(_0x530af8){var _0x77db77=_0x530af8[_0x8f3d('0x20')],_0x480f5a=_0x2bda8d[_0x8f3d('0x21')],_0x3c58e7=_0x2bda8d['offset']+_0x2bda8d[_0x8f3d('0x22')],_0x354aa1;if(_0x3c58e7>=_0x77db77){_0x3c58e7=_0x77db77;_0x354aa1=0xc8;}else{_0x354aa1=0xce;}_0x370d78['status'](_0x354aa1);return _0x370d78[_0x8f3d('0x23')](_0x8f3d('0x24'),_0x480f5a+'-'+_0x3c58e7+'/'+_0x77db77)[_0x8f3d('0x1f')](_0x530af8);}return null;};}function patchUpdates(_0x310ea6){return function(_0xfed9e4){try{jsonpatch[_0x8f3d('0x25')](_0xfed9e4,_0x310ea6,!![]);}catch(_0x40850b){return BPromise['reject'](_0x40850b);}return _0xfed9e4[_0x8f3d('0x26')]();};}function saveUpdates(_0x110954,_0x1f7135){return function(_0x437ee5){if(_0x437ee5){return _0x437ee5[_0x8f3d('0x27')](_0x110954)[_0x8f3d('0x28')](function(_0x588158){return _0x588158;});}return null;};}function removeEntity(_0x204532,_0x1c23b9){return function(_0xd7c564){if(_0xd7c564){return _0xd7c564[_0x8f3d('0x29')]()['then'](function(){_0x204532[_0x8f3d('0x1d')](0xcc)[_0x8f3d('0x1e')]();});}};}function handleEntityNotFound(_0xa14ba2,_0x5cdd64){return function(_0x301b91){if(!_0x301b91){_0xa14ba2[_0x8f3d('0x1c')](0x194);}return _0x301b91;};}function handleError(_0xab836a,_0x1d64f7){_0x1d64f7=_0x1d64f7||0x1f4;return function(_0xa8f475){logger[_0x8f3d('0x2a')](_0xa8f475[_0x8f3d('0x2b')]);if(_0xa8f475['name']){delete _0xa8f475[_0x8f3d('0x2c')];}_0xab836a[_0x8f3d('0x1d')](_0x1d64f7)[_0x8f3d('0x2d')](_0xa8f475);};}exports[_0x8f3d('0x2e')]=function(_0xc9026f,_0x3c07e4){var _0x539826={},_0x594742={},_0x5a2f60={'count':0x0,'rows':[]};var _0xcd0a6f=_[_0x8f3d('0x2f')](db['ServicenowField'][_0x8f3d('0x30')],function(_0x3ff518){return{'name':_0x3ff518[_0x8f3d('0x31')],'type':_0x3ff518['type'][_0x8f3d('0x32')]};});_0x594742[_0x8f3d('0x33')]=_[_0x8f3d('0x2f')](_0xcd0a6f,_0x8f3d('0x2c'));_0x594742[_0x8f3d('0x34')]=_[_0x8f3d('0x35')](_0xc9026f['query']);_0x594742[_0x8f3d('0x36')]=_['intersection'](_0x594742[_0x8f3d('0x33')],_0x594742['query']);_0x539826['attributes']=_[_0x8f3d('0x37')](_0x594742[_0x8f3d('0x33')],qs['fields'](_0xc9026f[_0x8f3d('0x34')][_0x8f3d('0x38')]));_0x539826['attributes']=_0x539826[_0x8f3d('0x39')]['length']?_0x539826['attributes']:_0x594742[_0x8f3d('0x33')];if(!_0xc9026f[_0x8f3d('0x34')][_0x8f3d('0x3a')](_0x8f3d('0x3b'))){_0x539826[_0x8f3d('0x22')]=qs[_0x8f3d('0x22')](_0xc9026f[_0x8f3d('0x34')][_0x8f3d('0x22')]);_0x539826[_0x8f3d('0x21')]=qs[_0x8f3d('0x21')](_0xc9026f[_0x8f3d('0x34')][_0x8f3d('0x21')]);}_0x539826['order']=qs[_0x8f3d('0x3c')](_0xc9026f[_0x8f3d('0x34')][_0x8f3d('0x3c')]);_0x539826[_0x8f3d('0x3d')]=qs[_0x8f3d('0x36')](_[_0x8f3d('0x3e')](_0xc9026f[_0x8f3d('0x34')],_0x594742[_0x8f3d('0x36')]));if(_0xc9026f[_0x8f3d('0x34')][_0x8f3d('0x3f')]){_0x539826[_0x8f3d('0x3d')]=_[_0x8f3d('0x40')](_0x539826['where'],{'$or':_[_0x8f3d('0x2f')](_0xcd0a6f,function(_0x58926c){if(_0x58926c['type']!=='VIRTUAL'){var _0x19fe37={};_0x19fe37[_0x58926c[_0x8f3d('0x2c')]]={'$like':'%'+_0xc9026f['query'][_0x8f3d('0x3f')]+'%'};return _0x19fe37;}})});}_0x539826=_['merge']({},_0x539826,_0xc9026f[_0x8f3d('0x41')]);var _0x1d5b04={'where':_0x539826[_0x8f3d('0x3d')]};return db[_0x8f3d('0x42')][_0x8f3d('0x20')](_0x1d5b04)['then'](function(_0x9f6309){_0x5a2f60[_0x8f3d('0x20')]=_0x9f6309;if(_0xc9026f[_0x8f3d('0x34')][_0x8f3d('0x43')]){_0x539826[_0x8f3d('0x44')]=[{'all':!![]}];}return db[_0x8f3d('0x42')][_0x8f3d('0x45')](_0x539826);})[_0x8f3d('0x28')](function(_0x56135c){_0x5a2f60[_0x8f3d('0x46')]=_0x56135c;return _0x5a2f60;})['then'](respondWithFilteredResult(_0x3c07e4,_0x539826))[_0x8f3d('0x47')](handleError(_0x3c07e4,null));};exports['show']=function(_0x42567f,_0xe17a36){var _0x2de456={'raw':!![],'where':{'id':_0x42567f[_0x8f3d('0x48')]['id']}},_0x46560b={};_0x46560b[_0x8f3d('0x33')]=_[_0x8f3d('0x35')](db[_0x8f3d('0x42')][_0x8f3d('0x30')]);_0x46560b[_0x8f3d('0x34')]=_['keys'](_0x42567f[_0x8f3d('0x34')]);_0x46560b[_0x8f3d('0x36')]=_['intersection'](_0x46560b['model'],_0x46560b['query']);_0x2de456[_0x8f3d('0x39')]=_[_0x8f3d('0x37')](_0x46560b[_0x8f3d('0x33')],qs['fields'](_0x42567f[_0x8f3d('0x34')][_0x8f3d('0x38')]));_0x2de456['attributes']=_0x2de456[_0x8f3d('0x39')][_0x8f3d('0x49')]?_0x2de456['attributes']:_0x46560b['model'];if(_0x42567f[_0x8f3d('0x34')][_0x8f3d('0x43')]){_0x2de456[_0x8f3d('0x44')]=[{'all':!![]}];}_0x2de456=_['merge']({},_0x2de456,_0x42567f['options']);return db['ServicenowField'][_0x8f3d('0x4a')](_0x2de456)[_0x8f3d('0x28')](handleEntityNotFound(_0xe17a36,null))['then'](respondWithResult(_0xe17a36,null))[_0x8f3d('0x47')](handleError(_0xe17a36,null));};exports['create']=function(_0xaa42e8,_0x4c1ec5){return db[_0x8f3d('0x42')][_0x8f3d('0x4b')](_0xaa42e8[_0x8f3d('0x4c')],{})['then'](respondWithResult(_0x4c1ec5,0xc9))['catch'](handleError(_0x4c1ec5,null));};exports['update']=function(_0x3bcfbd,_0x2ffa50){if(_0x3bcfbd[_0x8f3d('0x4c')]['id']){delete _0x3bcfbd[_0x8f3d('0x4c')]['id'];}return db['ServicenowField'][_0x8f3d('0x4a')]({'where':{'id':_0x3bcfbd[_0x8f3d('0x48')]['id']}})[_0x8f3d('0x28')](handleEntityNotFound(_0x2ffa50,null))['then'](saveUpdates(_0x3bcfbd['body'],null))['then'](respondWithResult(_0x2ffa50,null))[_0x8f3d('0x47')](handleError(_0x2ffa50,null));};exports[_0x8f3d('0x29')]=function(_0x50833d,_0x40c00e){return db[_0x8f3d('0x42')]['find']({'where':{'id':_0x50833d['params']['id']}})['then'](handleEntityNotFound(_0x40c00e,null))[_0x8f3d('0x28')](removeEntity(_0x40c00e,null))[_0x8f3d('0x47')](handleError(_0x40c00e,null));};
\ No newline at end of file
+var _0xb3ce=['api','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','end','json','offset','undefined','limit','count','Content-Range','apply','update','then','destroy','error','stack','name','send','index','rawAttributes','fieldName','type','key','model','map','keys','query','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','filters','pick','VIRTUAL','filter','merge','options','ServicenowField','includeAll','include','rows','catch','show','find','create','body','params','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','jsforce','querystring','papaparse','../../components/parsers/advancedSearch','../../config/license/hardware'];(function(_0x680515,_0x43dc28){var _0x5a4a8e=function(_0x2424a5){while(--_0x2424a5){_0x680515['push'](_0x680515['shift']());}};_0x5a4a8e(++_0x43dc28);}(_0xb3ce,0x15f));var _0xeb3c=function(_0x4f027d,_0x3f9587){_0x4f027d=_0x4f027d-0x0;var _0xc46890=_0xb3ce[_0x4f027d];return _0xc46890;};'use strict';var emlformat=require(_0xeb3c('0x0'));var rimraf=require(_0xeb3c('0x1'));var zipdir=require(_0xeb3c('0x2'));var jsonpatch=require(_0xeb3c('0x3'));var rp=require(_0xeb3c('0x4'));var moment=require('moment');var BPromise=require(_0xeb3c('0x5'));var Mustache=require('mustache');var util=require(_0xeb3c('0x6'));var path=require(_0xeb3c('0x7'));var sox=require(_0xeb3c('0x8'));var csv=require(_0xeb3c('0x9'));var ejs=require(_0xeb3c('0xa'));var fs=require('fs');var fs_extra=require(_0xeb3c('0xb'));var _=require(_0xeb3c('0xc'));var squel=require(_0xeb3c('0xd'));var crypto=require('crypto');var jsforce=require(_0xeb3c('0xe'));var deskjs=require('desk.js');var toCsv=require(_0xeb3c('0x9'));var querystring=require(_0xeb3c('0xf'));var Papa=require(_0xeb3c('0x10'));var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require(_0xeb3c('0x11'));var hardwareService=require(_0xeb3c('0x12'));var logger=require('../../config/logger')(_0xeb3c('0x13'));var utils=require(_0xeb3c('0x14'));var config=require(_0xeb3c('0x15'));var licenseUtil=require(_0xeb3c('0x16'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x1d8938,_0x11af97){_0x11af97=_0x11af97||0xcc;return function(_0x196e06){if(_0x196e06){return _0x1d8938[_0xeb3c('0x17')](_0x11af97);}return _0x1d8938[_0xeb3c('0x18')](_0x11af97)[_0xeb3c('0x19')]();};}function respondWithResult(_0x14c89a,_0x198aee){_0x198aee=_0x198aee||0xc8;return function(_0x3ae160){if(_0x3ae160){return _0x14c89a[_0xeb3c('0x18')](_0x198aee)[_0xeb3c('0x1a')](_0x3ae160);}};}function respondWithFilteredResult(_0x1b89f3,_0x14a4ae){return function(_0x99e85d){if(_0x99e85d){var _0x70184d=typeof _0x14a4ae[_0xeb3c('0x1b')]===_0xeb3c('0x1c')&&typeof _0x14a4ae[_0xeb3c('0x1d')]==='undefined';var _0x1c50a3=_0x99e85d[_0xeb3c('0x1e')];var _0x59cde3=_0x70184d?0x0:_0x14a4ae[_0xeb3c('0x1b')];var _0x4713b7=_0x70184d?_0x99e85d[_0xeb3c('0x1e')]:_0x14a4ae[_0xeb3c('0x1b')]+_0x14a4ae[_0xeb3c('0x1d')];var _0x20bd8d;if(_0x4713b7>=_0x1c50a3){_0x4713b7=_0x1c50a3;_0x20bd8d=0xc8;}else{_0x20bd8d=0xce;}_0x1b89f3[_0xeb3c('0x18')](_0x20bd8d);return _0x1b89f3['set'](_0xeb3c('0x1f'),_0x59cde3+'-'+_0x4713b7+'/'+_0x1c50a3)['json'](_0x99e85d);}return null;};}function patchUpdates(_0x1d53f3){return function(_0x10f781){try{jsonpatch[_0xeb3c('0x20')](_0x10f781,_0x1d53f3,!![]);}catch(_0x2109db){return BPromise['reject'](_0x2109db);}return _0x10f781['save']();};}function saveUpdates(_0x5ef05d,_0x2cd011){return function(_0x1104ed){if(_0x1104ed){return _0x1104ed[_0xeb3c('0x21')](_0x5ef05d)[_0xeb3c('0x22')](function(_0x8f4252){return _0x8f4252;});}return null;};}function removeEntity(_0xe6bac6,_0xf09294){return function(_0x59e7d1){if(_0x59e7d1){return _0x59e7d1[_0xeb3c('0x23')]()['then'](function(){_0xe6bac6[_0xeb3c('0x18')](0xcc)[_0xeb3c('0x19')]();});}};}function handleEntityNotFound(_0x267586,_0xd33c16){return function(_0x30f5d0){if(!_0x30f5d0){_0x267586['sendStatus'](0x194);}return _0x30f5d0;};}function handleError(_0x26adc8,_0xbcc19e){_0xbcc19e=_0xbcc19e||0x1f4;return function(_0x417647){logger[_0xeb3c('0x24')](_0x417647[_0xeb3c('0x25')]);if(_0x417647['name']){delete _0x417647[_0xeb3c('0x26')];}_0x26adc8[_0xeb3c('0x18')](_0xbcc19e)[_0xeb3c('0x27')](_0x417647);};}exports[_0xeb3c('0x28')]=function(_0x222daf,_0x20260a){var _0x591e8d={},_0x5bd2fb={},_0x15a578={'count':0x0,'rows':[]};var _0x3a514c=_['map'](db['ServicenowField'][_0xeb3c('0x29')],function(_0x43b0d5){return{'name':_0x43b0d5[_0xeb3c('0x2a')],'type':_0x43b0d5[_0xeb3c('0x2b')][_0xeb3c('0x2c')]};});_0x5bd2fb[_0xeb3c('0x2d')]=_[_0xeb3c('0x2e')](_0x3a514c,_0xeb3c('0x26'));_0x5bd2fb['query']=_[_0xeb3c('0x2f')](_0x222daf[_0xeb3c('0x30')]);_0x5bd2fb['filters']=_[_0xeb3c('0x31')](_0x5bd2fb['model'],_0x5bd2fb[_0xeb3c('0x30')]);_0x591e8d[_0xeb3c('0x32')]=_['intersection'](_0x5bd2fb[_0xeb3c('0x2d')],qs[_0xeb3c('0x33')](_0x222daf[_0xeb3c('0x30')][_0xeb3c('0x33')]));_0x591e8d[_0xeb3c('0x32')]=_0x591e8d['attributes'][_0xeb3c('0x34')]?_0x591e8d[_0xeb3c('0x32')]:_0x5bd2fb[_0xeb3c('0x2d')];if(!_0x222daf[_0xeb3c('0x30')][_0xeb3c('0x35')](_0xeb3c('0x36'))){_0x591e8d['limit']=qs[_0xeb3c('0x1d')](_0x222daf[_0xeb3c('0x30')][_0xeb3c('0x1d')]);_0x591e8d[_0xeb3c('0x1b')]=qs[_0xeb3c('0x1b')](_0x222daf['query'][_0xeb3c('0x1b')]);}_0x591e8d[_0xeb3c('0x37')]=qs[_0xeb3c('0x38')](_0x222daf[_0xeb3c('0x30')][_0xeb3c('0x38')]);_0x591e8d[_0xeb3c('0x39')]=qs[_0xeb3c('0x3a')](_[_0xeb3c('0x3b')](_0x222daf[_0xeb3c('0x30')],_0x5bd2fb[_0xeb3c('0x3a')]),_0x3a514c);if(_0x222daf[_0xeb3c('0x30')]['filter']){_0x591e8d[_0xeb3c('0x39')]=_['merge'](_0x591e8d['where'],{'$or':_[_0xeb3c('0x2e')](_0x3a514c,function(_0x5719dd){if(_0x5719dd[_0xeb3c('0x2b')]!==_0xeb3c('0x3c')){var _0x2baf02={};_0x2baf02[_0x5719dd[_0xeb3c('0x26')]]={'$like':'%'+_0x222daf[_0xeb3c('0x30')][_0xeb3c('0x3d')]+'%'};return _0x2baf02;}})});}_0x591e8d=_[_0xeb3c('0x3e')]({},_0x591e8d,_0x222daf[_0xeb3c('0x3f')]);var _0x3951a6={'where':_0x591e8d[_0xeb3c('0x39')]};return db[_0xeb3c('0x40')][_0xeb3c('0x1e')](_0x3951a6)[_0xeb3c('0x22')](function(_0xfacc65){_0x15a578[_0xeb3c('0x1e')]=_0xfacc65;if(_0x222daf[_0xeb3c('0x30')][_0xeb3c('0x41')]){_0x591e8d[_0xeb3c('0x42')]=[{'all':!![]}];}return db[_0xeb3c('0x40')]['findAll'](_0x591e8d);})[_0xeb3c('0x22')](function(_0x4c77eb){_0x15a578[_0xeb3c('0x43')]=_0x4c77eb;return _0x15a578;})['then'](respondWithFilteredResult(_0x20260a,_0x591e8d))[_0xeb3c('0x44')](handleError(_0x20260a,null));};exports[_0xeb3c('0x45')]=function(_0x1a33d0,_0x1823ed){var _0xf58eb1={'raw':!![],'where':{'id':_0x1a33d0['params']['id']}},_0xd82d16={};_0xd82d16[_0xeb3c('0x2d')]=_[_0xeb3c('0x2f')](db[_0xeb3c('0x40')][_0xeb3c('0x29')]);_0xd82d16['query']=_['keys'](_0x1a33d0['query']);_0xd82d16[_0xeb3c('0x3a')]=_[_0xeb3c('0x31')](_0xd82d16[_0xeb3c('0x2d')],_0xd82d16[_0xeb3c('0x30')]);_0xf58eb1[_0xeb3c('0x32')]=_[_0xeb3c('0x31')](_0xd82d16[_0xeb3c('0x2d')],qs[_0xeb3c('0x33')](_0x1a33d0[_0xeb3c('0x30')][_0xeb3c('0x33')]));_0xf58eb1['attributes']=_0xf58eb1[_0xeb3c('0x32')][_0xeb3c('0x34')]?_0xf58eb1[_0xeb3c('0x32')]:_0xd82d16[_0xeb3c('0x2d')];if(_0x1a33d0[_0xeb3c('0x30')][_0xeb3c('0x41')]){_0xf58eb1[_0xeb3c('0x42')]=[{'all':!![]}];}_0xf58eb1=_[_0xeb3c('0x3e')]({},_0xf58eb1,_0x1a33d0[_0xeb3c('0x3f')]);return db[_0xeb3c('0x40')][_0xeb3c('0x46')](_0xf58eb1)['then'](handleEntityNotFound(_0x1823ed,null))[_0xeb3c('0x22')](respondWithResult(_0x1823ed,null))['catch'](handleError(_0x1823ed,null));};exports['create']=function(_0x4fdac9,_0x1b4a59){return db[_0xeb3c('0x40')][_0xeb3c('0x47')](_0x4fdac9['body'],{})[_0xeb3c('0x22')](respondWithResult(_0x1b4a59,0xc9))[_0xeb3c('0x44')](handleError(_0x1b4a59,null));};exports[_0xeb3c('0x21')]=function(_0x52eafe,_0xdb2420){if(_0x52eafe['body']['id']){delete _0x52eafe[_0xeb3c('0x48')]['id'];}return db['ServicenowField'][_0xeb3c('0x46')]({'where':{'id':_0x52eafe[_0xeb3c('0x49')]['id']}})[_0xeb3c('0x22')](handleEntityNotFound(_0xdb2420,null))['then'](saveUpdates(_0x52eafe['body'],null))[_0xeb3c('0x22')](respondWithResult(_0xdb2420,null))[_0xeb3c('0x44')](handleError(_0xdb2420,null));};exports[_0xeb3c('0x23')]=function(_0x47b357,_0x2c2c41){return db[_0xeb3c('0x40')]['find']({'where':{'id':_0x47b357[_0xeb3c('0x49')]['id']}})[_0xeb3c('0x22')](handleEntityNotFound(_0x2c2c41,null))[_0xeb3c('0x22')](removeEntity(_0x2c2c41,null))['catch'](handleError(_0x2c2c41,null));};
\ No newline at end of file