Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / intSugarcrmField / intSugarcrmField.controller.js
index 44f0747..5b6714a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf950=['request-promise','moment','util','path','sox','ejs','fs-extra','squel','desk.js','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','limit','undefined','count','set','Content-Range','apply','reject','save','update','then','destroy','stack','name','send','index','map','SugarcrmField','rawAttributes','fieldName','type','model','query','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','options','include','findAll','catch','show','params','keys','includeAll','create','body','find','rimraf','fast-json-patch'];(function(_0x2db45e,_0x3c3b37){var _0x200a5=function(_0x2a9fb2){while(--_0x2a9fb2){_0x2db45e['push'](_0x2db45e['shift']());}};_0x200a5(++_0x3c3b37);}(_0xf950,0x166));var _0x0f95=function(_0x2234bd,_0x259d9d){_0x2234bd=_0x2234bd-0x0;var _0x2aa4bd=_0xf950[_0x2234bd];return _0x2aa4bd;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x0f95('0x0'));var zipdir=require('zip-dir');var jsonpatch=require(_0x0f95('0x1'));var rp=require(_0x0f95('0x2'));var moment=require(_0x0f95('0x3'));var BPromise=require('bluebird');var Mustache=require('mustache');var util=require(_0x0f95('0x4'));var path=require(_0x0f95('0x5'));var sox=require(_0x0f95('0x6'));var csv=require('to-csv');var ejs=require(_0x0f95('0x7'));var fs=require('fs');var fs_extra=require(_0x0f95('0x8'));var _=require('lodash');var squel=require(_0x0f95('0x9'));var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0x0f95('0xa'));var toCsv=require('to-csv');var querystring=require(_0x0f95('0xb'));var Papa=require(_0x0f95('0xc'));var Redis=require('ioredis');var authService=require(_0x0f95('0xd'));var qs=require(_0x0f95('0xe'));var as=require(_0x0f95('0xf'));var hardwareService=require(_0x0f95('0x10'));var logger=require('../../config/logger')(_0x0f95('0x11'));var utils=require('../../config/utils');var config=require(_0x0f95('0x12'));var licenseUtil=require(_0x0f95('0x13'));var db=require(_0x0f95('0x14'))['db'];function respondWithStatusCode(_0x54d91e,_0x4a4652){_0x4a4652=_0x4a4652||0xcc;return function(_0x144ae2){if(_0x144ae2){return _0x54d91e[_0x0f95('0x15')](_0x4a4652);}return _0x54d91e[_0x0f95('0x16')](_0x4a4652)[_0x0f95('0x17')]();};}function respondWithResult(_0x266b19,_0x17b7b6){_0x17b7b6=_0x17b7b6||0xc8;return function(_0x247ce1){if(_0x247ce1){return _0x266b19[_0x0f95('0x16')](_0x17b7b6)[_0x0f95('0x18')](_0x247ce1);}};}function respondWithFilteredResult(_0x5e00a6,_0x1ff0c5){return function(_0x5e8699){if(_0x5e8699){var _0x4deaf1=typeof _0x1ff0c5[_0x0f95('0x19')]==='undefined'&&typeof _0x1ff0c5[_0x0f95('0x1a')]===_0x0f95('0x1b');var _0x136f81=_0x5e8699[_0x0f95('0x1c')];var _0x5925c8=_0x4deaf1?0x0:_0x1ff0c5[_0x0f95('0x19')];var _0x1a7927=_0x4deaf1?_0x5e8699[_0x0f95('0x1c')]:_0x1ff0c5[_0x0f95('0x19')]+_0x1ff0c5['limit'];var _0x38976b;if(_0x1a7927>=_0x136f81){_0x1a7927=_0x136f81;_0x38976b=0xc8;}else{_0x38976b=0xce;}_0x5e00a6[_0x0f95('0x16')](_0x38976b);return _0x5e00a6[_0x0f95('0x1d')](_0x0f95('0x1e'),_0x5925c8+'-'+_0x1a7927+'/'+_0x136f81)[_0x0f95('0x18')](_0x5e8699);}return null;};}function patchUpdates(_0x5f2060){return function(_0x32fb44){try{jsonpatch[_0x0f95('0x1f')](_0x32fb44,_0x5f2060,!![]);}catch(_0x2202e3){return BPromise[_0x0f95('0x20')](_0x2202e3);}return _0x32fb44[_0x0f95('0x21')]();};}function saveUpdates(_0x3c5016,_0x4da8c){return function(_0x26ceaa){if(_0x26ceaa){return _0x26ceaa[_0x0f95('0x22')](_0x3c5016)[_0x0f95('0x23')](function(_0x153186){return _0x153186;});}return null;};}function removeEntity(_0x182257,_0x2dd489){return function(_0x2bde42){if(_0x2bde42){return _0x2bde42[_0x0f95('0x24')]()['then'](function(){_0x182257[_0x0f95('0x16')](0xcc)[_0x0f95('0x17')]();});}};}function handleEntityNotFound(_0x52064f,_0x13f1db){return function(_0xcf6d64){if(!_0xcf6d64){_0x52064f[_0x0f95('0x15')](0x194);}return _0xcf6d64;};}function handleError(_0x32db10,_0x9fbe50){_0x9fbe50=_0x9fbe50||0x1f4;return function(_0x4ccf94){logger['error'](_0x4ccf94[_0x0f95('0x25')]);if(_0x4ccf94['name']){delete _0x4ccf94[_0x0f95('0x26')];}_0x32db10[_0x0f95('0x16')](_0x9fbe50)[_0x0f95('0x27')](_0x4ccf94);};}exports[_0x0f95('0x28')]=function(_0x5784ce,_0xa0e72e){var _0x338c6f={},_0x5e469f={},_0x35b570={'count':0x0,'rows':[]};var _0x3f803e=_[_0x0f95('0x29')](db[_0x0f95('0x2a')][_0x0f95('0x2b')],function(_0x4267f9){return{'name':_0x4267f9[_0x0f95('0x2c')],'type':_0x4267f9[_0x0f95('0x2d')]['key']};});_0x5e469f[_0x0f95('0x2e')]=_[_0x0f95('0x29')](_0x3f803e,_0x0f95('0x26'));_0x5e469f[_0x0f95('0x2f')]=_['keys'](_0x5784ce['query']);_0x5e469f[_0x0f95('0x30')]=_[_0x0f95('0x31')](_0x5e469f[_0x0f95('0x2e')],_0x5e469f[_0x0f95('0x2f')]);_0x338c6f[_0x0f95('0x32')]=_[_0x0f95('0x31')](_0x5e469f['model'],qs['fields'](_0x5784ce[_0x0f95('0x2f')][_0x0f95('0x33')]));_0x338c6f[_0x0f95('0x32')]=_0x338c6f[_0x0f95('0x32')][_0x0f95('0x34')]?_0x338c6f[_0x0f95('0x32')]:_0x5e469f['model'];if(!_0x5784ce['query'][_0x0f95('0x35')](_0x0f95('0x36'))){_0x338c6f[_0x0f95('0x1a')]=qs[_0x0f95('0x1a')](_0x5784ce[_0x0f95('0x2f')][_0x0f95('0x1a')]);_0x338c6f[_0x0f95('0x19')]=qs['offset'](_0x5784ce[_0x0f95('0x2f')][_0x0f95('0x19')]);}_0x338c6f[_0x0f95('0x37')]=qs[_0x0f95('0x38')](_0x5784ce['query'][_0x0f95('0x38')]);_0x338c6f[_0x0f95('0x39')]=qs[_0x0f95('0x30')](_[_0x0f95('0x3a')](_0x5784ce['query'],_0x5e469f[_0x0f95('0x30')]),_0x3f803e);if(_0x5784ce['query'][_0x0f95('0x3b')]){_0x338c6f['where']=_[_0x0f95('0x3c')](_0x338c6f[_0x0f95('0x39')],{'$or':_[_0x0f95('0x29')](_0x3f803e,function(_0x29eaa0){if(_0x29eaa0[_0x0f95('0x2d')]!=='VIRTUAL'){var _0x5613c0={};_0x5613c0[_0x29eaa0[_0x0f95('0x26')]]={'$like':'%'+_0x5784ce[_0x0f95('0x2f')][_0x0f95('0x3b')]+'%'};return _0x5613c0;}})});}_0x338c6f=_[_0x0f95('0x3c')]({},_0x338c6f,_0x5784ce[_0x0f95('0x3d')]);var _0x239c1e={'where':_0x338c6f[_0x0f95('0x39')]};return db['SugarcrmField'][_0x0f95('0x1c')](_0x239c1e)[_0x0f95('0x23')](function(_0x5cd729){_0x35b570[_0x0f95('0x1c')]=_0x5cd729;if(_0x5784ce[_0x0f95('0x2f')]['includeAll']){_0x338c6f[_0x0f95('0x3e')]=[{'all':!![]}];}return db['SugarcrmField'][_0x0f95('0x3f')](_0x338c6f);})[_0x0f95('0x23')](function(_0x4647cf){_0x35b570['rows']=_0x4647cf;return _0x35b570;})[_0x0f95('0x23')](respondWithFilteredResult(_0xa0e72e,_0x338c6f))[_0x0f95('0x40')](handleError(_0xa0e72e,null));};exports[_0x0f95('0x41')]=function(_0x10ce4f,_0x29cc75){var _0x164d66={'raw':!![],'where':{'id':_0x10ce4f[_0x0f95('0x42')]['id']}},_0x258dd0={};_0x258dd0['model']=_[_0x0f95('0x43')](db[_0x0f95('0x2a')][_0x0f95('0x2b')]);_0x258dd0[_0x0f95('0x2f')]=_[_0x0f95('0x43')](_0x10ce4f[_0x0f95('0x2f')]);_0x258dd0[_0x0f95('0x30')]=_[_0x0f95('0x31')](_0x258dd0[_0x0f95('0x2e')],_0x258dd0[_0x0f95('0x2f')]);_0x164d66[_0x0f95('0x32')]=_[_0x0f95('0x31')](_0x258dd0['model'],qs[_0x0f95('0x33')](_0x10ce4f[_0x0f95('0x2f')][_0x0f95('0x33')]));_0x164d66['attributes']=_0x164d66[_0x0f95('0x32')][_0x0f95('0x34')]?_0x164d66[_0x0f95('0x32')]:_0x258dd0[_0x0f95('0x2e')];if(_0x10ce4f[_0x0f95('0x2f')][_0x0f95('0x44')]){_0x164d66[_0x0f95('0x3e')]=[{'all':!![]}];}_0x164d66=_['merge']({},_0x164d66,_0x10ce4f['options']);return db[_0x0f95('0x2a')]['find'](_0x164d66)[_0x0f95('0x23')](handleEntityNotFound(_0x29cc75,null))[_0x0f95('0x23')](respondWithResult(_0x29cc75,null))[_0x0f95('0x40')](handleError(_0x29cc75,null));};exports['create']=function(_0x40c073,_0x1943e5){return db[_0x0f95('0x2a')][_0x0f95('0x45')](_0x40c073['body'],{})[_0x0f95('0x23')](respondWithResult(_0x1943e5,0xc9))['catch'](handleError(_0x1943e5,null));};exports['update']=function(_0x157da4,_0x410854){if(_0x157da4[_0x0f95('0x46')]['id']){delete _0x157da4[_0x0f95('0x46')]['id'];}return db[_0x0f95('0x2a')][_0x0f95('0x47')]({'where':{'id':_0x157da4[_0x0f95('0x42')]['id']}})[_0x0f95('0x23')](handleEntityNotFound(_0x410854,null))[_0x0f95('0x23')](saveUpdates(_0x157da4[_0x0f95('0x46')],null))[_0x0f95('0x23')](respondWithResult(_0x410854,null))[_0x0f95('0x40')](handleError(_0x410854,null));};exports[_0x0f95('0x24')]=function(_0x1b95ae,_0x268452){return db['SugarcrmField'][_0x0f95('0x47')]({'where':{'id':_0x1b95ae[_0x0f95('0x42')]['id']}})[_0x0f95('0x23')](handleEntityNotFound(_0x268452,null))[_0x0f95('0x23')](removeEntity(_0x268452,null))[_0x0f95('0x40')](handleError(_0x268452,null));};
\ No newline at end of file
+var _0xbc31=['hasOwnProperty','nolimit','order','sort','filter','where','merge','VIRTUAL','options','include','findAll','rows','show','params','includeAll','catch','create','body','find','destroy','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','util','path','sox','ejs','fs-extra','squel','crypto','jsforce','to-csv','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','sendStatus','status','json','limit','undefined','count','offset','Content-Range','reject','save','update','then','end','error','stack','name','send','index','map','SugarcrmField','rawAttributes','fieldName','type','query','keys','filters','model','intersection','fields','attributes','length'];(function(_0x40220a,_0x22feb1){var _0x3903cc=function(_0x33a296){while(--_0x33a296){_0x40220a['push'](_0x40220a['shift']());}};_0x3903cc(++_0x22feb1);}(_0xbc31,0xa6));var _0x1bc3=function(_0x4a5f54,_0x52b134){_0x4a5f54=_0x4a5f54-0x0;var _0x36b486=_0xbc31[_0x4a5f54];return _0x36b486;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x1bc3('0x0'));var zipdir=require(_0x1bc3('0x1'));var jsonpatch=require(_0x1bc3('0x2'));var rp=require(_0x1bc3('0x3'));var moment=require('moment');var BPromise=require(_0x1bc3('0x4'));var Mustache=require('mustache');var util=require(_0x1bc3('0x5'));var path=require(_0x1bc3('0x6'));var sox=require(_0x1bc3('0x7'));var csv=require('to-csv');var ejs=require(_0x1bc3('0x8'));var fs=require('fs');var fs_extra=require(_0x1bc3('0x9'));var _=require('lodash');var squel=require(_0x1bc3('0xa'));var crypto=require(_0x1bc3('0xb'));var jsforce=require(_0x1bc3('0xc'));var deskjs=require('desk.js');var toCsv=require(_0x1bc3('0xd'));var querystring=require('querystring');var Papa=require('papaparse');var Redis=require(_0x1bc3('0xe'));var authService=require(_0x1bc3('0xf'));var qs=require(_0x1bc3('0x10'));var as=require(_0x1bc3('0x11'));var hardwareService=require(_0x1bc3('0x12'));var logger=require(_0x1bc3('0x13'))(_0x1bc3('0x14'));var utils=require(_0x1bc3('0x15'));var config=require('../../config/environment');var licenseUtil=require('../../config/license/util');var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x574896,_0x405510){_0x405510=_0x405510||0xcc;return function(_0x244223){if(_0x244223){return _0x574896[_0x1bc3('0x16')](_0x405510);}return _0x574896[_0x1bc3('0x17')](_0x405510)['end']();};}function respondWithResult(_0x2965ef,_0x14e24a){_0x14e24a=_0x14e24a||0xc8;return function(_0x253f40){if(_0x253f40){return _0x2965ef[_0x1bc3('0x17')](_0x14e24a)[_0x1bc3('0x18')](_0x253f40);}};}function respondWithFilteredResult(_0xcf56b5,_0xe93eec){return function(_0xb2b084){if(_0xb2b084){var _0xb2ada8=typeof _0xe93eec['offset']==='undefined'&&typeof _0xe93eec[_0x1bc3('0x19')]===_0x1bc3('0x1a');var _0x164961=_0xb2b084[_0x1bc3('0x1b')];var _0x1aa101=_0xb2ada8?0x0:_0xe93eec[_0x1bc3('0x1c')];var _0x5db585=_0xb2ada8?_0xb2b084['count']:_0xe93eec['offset']+_0xe93eec[_0x1bc3('0x19')];var _0x2e30db;if(_0x5db585>=_0x164961){_0x5db585=_0x164961;_0x2e30db=0xc8;}else{_0x2e30db=0xce;}_0xcf56b5[_0x1bc3('0x17')](_0x2e30db);return _0xcf56b5['set'](_0x1bc3('0x1d'),_0x1aa101+'-'+_0x5db585+'/'+_0x164961)[_0x1bc3('0x18')](_0xb2b084);}return null;};}function patchUpdates(_0x5d8193){return function(_0x200157){try{jsonpatch['apply'](_0x200157,_0x5d8193,!![]);}catch(_0x94a3c5){return BPromise[_0x1bc3('0x1e')](_0x94a3c5);}return _0x200157[_0x1bc3('0x1f')]();};}function saveUpdates(_0x4e760a,_0x4e8c7c){return function(_0x27cbb4){if(_0x27cbb4){return _0x27cbb4[_0x1bc3('0x20')](_0x4e760a)[_0x1bc3('0x21')](function(_0x345374){return _0x345374;});}return null;};}function removeEntity(_0x2cbb50,_0x55071b){return function(_0x535f79){if(_0x535f79){return _0x535f79['destroy']()[_0x1bc3('0x21')](function(){_0x2cbb50[_0x1bc3('0x17')](0xcc)[_0x1bc3('0x22')]();});}};}function handleEntityNotFound(_0x5db2eb,_0x3d107a){return function(_0x238581){if(!_0x238581){_0x5db2eb['sendStatus'](0x194);}return _0x238581;};}function handleError(_0x5ca27b,_0x56e6c2){_0x56e6c2=_0x56e6c2||0x1f4;return function(_0x1e8c93){logger[_0x1bc3('0x23')](_0x1e8c93[_0x1bc3('0x24')]);if(_0x1e8c93[_0x1bc3('0x25')]){delete _0x1e8c93[_0x1bc3('0x25')];}_0x5ca27b[_0x1bc3('0x17')](_0x56e6c2)[_0x1bc3('0x26')](_0x1e8c93);};}exports[_0x1bc3('0x27')]=function(_0xcde2e2,_0x1ac17){var _0x5c90e2={},_0x5bca43={},_0x385cfa={'count':0x0,'rows':[]};var _0x54063c=_[_0x1bc3('0x28')](db[_0x1bc3('0x29')][_0x1bc3('0x2a')],function(_0x435ecd){return{'name':_0x435ecd[_0x1bc3('0x2b')],'type':_0x435ecd[_0x1bc3('0x2c')]['key']};});_0x5bca43['model']=_[_0x1bc3('0x28')](_0x54063c,_0x1bc3('0x25'));_0x5bca43[_0x1bc3('0x2d')]=_[_0x1bc3('0x2e')](_0xcde2e2['query']);_0x5bca43[_0x1bc3('0x2f')]=_['intersection'](_0x5bca43[_0x1bc3('0x30')],_0x5bca43[_0x1bc3('0x2d')]);_0x5c90e2['attributes']=_[_0x1bc3('0x31')](_0x5bca43[_0x1bc3('0x30')],qs[_0x1bc3('0x32')](_0xcde2e2[_0x1bc3('0x2d')][_0x1bc3('0x32')]));_0x5c90e2['attributes']=_0x5c90e2[_0x1bc3('0x33')][_0x1bc3('0x34')]?_0x5c90e2[_0x1bc3('0x33')]:_0x5bca43[_0x1bc3('0x30')];if(!_0xcde2e2[_0x1bc3('0x2d')][_0x1bc3('0x35')](_0x1bc3('0x36'))){_0x5c90e2['limit']=qs['limit'](_0xcde2e2[_0x1bc3('0x2d')][_0x1bc3('0x19')]);_0x5c90e2[_0x1bc3('0x1c')]=qs[_0x1bc3('0x1c')](_0xcde2e2[_0x1bc3('0x2d')][_0x1bc3('0x1c')]);}_0x5c90e2[_0x1bc3('0x37')]=qs[_0x1bc3('0x38')](_0xcde2e2[_0x1bc3('0x2d')][_0x1bc3('0x38')]);_0x5c90e2['where']=qs[_0x1bc3('0x2f')](_['pick'](_0xcde2e2[_0x1bc3('0x2d')],_0x5bca43[_0x1bc3('0x2f')]),_0x54063c);if(_0xcde2e2['query'][_0x1bc3('0x39')]){_0x5c90e2[_0x1bc3('0x3a')]=_[_0x1bc3('0x3b')](_0x5c90e2[_0x1bc3('0x3a')],{'$or':_[_0x1bc3('0x28')](_0x54063c,function(_0x5705b9){if(_0x5705b9[_0x1bc3('0x2c')]!==_0x1bc3('0x3c')){var _0x32e290={};_0x32e290[_0x5705b9[_0x1bc3('0x25')]]={'$like':'%'+_0xcde2e2['query'][_0x1bc3('0x39')]+'%'};return _0x32e290;}})});}_0x5c90e2=_[_0x1bc3('0x3b')]({},_0x5c90e2,_0xcde2e2[_0x1bc3('0x3d')]);var _0x385982={'where':_0x5c90e2[_0x1bc3('0x3a')]};return db[_0x1bc3('0x29')][_0x1bc3('0x1b')](_0x385982)[_0x1bc3('0x21')](function(_0x1015e6){_0x385cfa['count']=_0x1015e6;if(_0xcde2e2[_0x1bc3('0x2d')]['includeAll']){_0x5c90e2[_0x1bc3('0x3e')]=[{'all':!![]}];}return db['SugarcrmField'][_0x1bc3('0x3f')](_0x5c90e2);})[_0x1bc3('0x21')](function(_0x100895){_0x385cfa[_0x1bc3('0x40')]=_0x100895;return _0x385cfa;})[_0x1bc3('0x21')](respondWithFilteredResult(_0x1ac17,_0x5c90e2))['catch'](handleError(_0x1ac17,null));};exports[_0x1bc3('0x41')]=function(_0x3f2370,_0x5cf7b1){var _0x5ace5e={'raw':!![],'where':{'id':_0x3f2370[_0x1bc3('0x42')]['id']}},_0x1a85eb={};_0x1a85eb[_0x1bc3('0x30')]=_[_0x1bc3('0x2e')](db[_0x1bc3('0x29')][_0x1bc3('0x2a')]);_0x1a85eb[_0x1bc3('0x2d')]=_[_0x1bc3('0x2e')](_0x3f2370[_0x1bc3('0x2d')]);_0x1a85eb['filters']=_[_0x1bc3('0x31')](_0x1a85eb[_0x1bc3('0x30')],_0x1a85eb[_0x1bc3('0x2d')]);_0x5ace5e[_0x1bc3('0x33')]=_[_0x1bc3('0x31')](_0x1a85eb[_0x1bc3('0x30')],qs['fields'](_0x3f2370['query'][_0x1bc3('0x32')]));_0x5ace5e[_0x1bc3('0x33')]=_0x5ace5e[_0x1bc3('0x33')][_0x1bc3('0x34')]?_0x5ace5e[_0x1bc3('0x33')]:_0x1a85eb[_0x1bc3('0x30')];if(_0x3f2370['query'][_0x1bc3('0x43')]){_0x5ace5e[_0x1bc3('0x3e')]=[{'all':!![]}];}_0x5ace5e=_['merge']({},_0x5ace5e,_0x3f2370['options']);return db[_0x1bc3('0x29')]['find'](_0x5ace5e)[_0x1bc3('0x21')](handleEntityNotFound(_0x5cf7b1,null))[_0x1bc3('0x21')](respondWithResult(_0x5cf7b1,null))[_0x1bc3('0x44')](handleError(_0x5cf7b1,null));};exports[_0x1bc3('0x45')]=function(_0x36814b,_0x3f6d88){return db['SugarcrmField']['create'](_0x36814b[_0x1bc3('0x46')],{})[_0x1bc3('0x21')](respondWithResult(_0x3f6d88,0xc9))['catch'](handleError(_0x3f6d88,null));};exports['update']=function(_0x3a329f,_0x40b5fe){if(_0x3a329f[_0x1bc3('0x46')]['id']){delete _0x3a329f['body']['id'];}return db['SugarcrmField'][_0x1bc3('0x47')]({'where':{'id':_0x3a329f['params']['id']}})[_0x1bc3('0x21')](handleEntityNotFound(_0x40b5fe,null))['then'](saveUpdates(_0x3a329f[_0x1bc3('0x46')],null))['then'](respondWithResult(_0x40b5fe,null))['catch'](handleError(_0x40b5fe,null));};exports[_0x1bc3('0x48')]=function(_0x18f95e,_0x4e2f9a){return db[_0x1bc3('0x29')][_0x1bc3('0x47')]({'where':{'id':_0x18f95e[_0x1bc3('0x42')]['id']}})['then'](handleEntityNotFound(_0x4e2f9a,null))[_0x1bc3('0x21')](removeEntity(_0x4e2f9a,null))[_0x1bc3('0x44')](handleError(_0x4e2f9a,null));};
\ No newline at end of file