Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / intDynamics365Field / intDynamics365Field.controller.js
index d107c36..9635fd6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa761=['show','params','include','find','create','body','eml-format','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','lodash','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','undefined','limit','count','Content-Range','apply','reject','update','then','destroy','stack','name','send','index','map','Dynamics365Field','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','findAll','rows','catch'];(function(_0x4ab99,_0x219ed2){var _0x29e39c=function(_0x2dd986){while(--_0x2dd986){_0x4ab99['push'](_0x4ab99['shift']());}};_0x29e39c(++_0x219ed2);}(_0xa761,0x146));var _0x1a76=function(_0x38bcf3,_0x20be9e){_0x38bcf3=_0x38bcf3-0x0;var _0x837d8c=_0xa761[_0x38bcf3];return _0x837d8c;};'use strict';var emlformat=require(_0x1a76('0x0'));var rimraf=require('rimraf');var zipdir=require(_0x1a76('0x1'));var jsonpatch=require(_0x1a76('0x2'));var rp=require(_0x1a76('0x3'));var moment=require(_0x1a76('0x4'));var BPromise=require(_0x1a76('0x5'));var Mustache=require(_0x1a76('0x6'));var util=require(_0x1a76('0x7'));var path=require(_0x1a76('0x8'));var sox=require(_0x1a76('0x9'));var csv=require(_0x1a76('0xa'));var ejs=require(_0x1a76('0xb'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x1a76('0xc'));var squel=require('squel');var crypto=require(_0x1a76('0xd'));var jsforce=require(_0x1a76('0xe'));var deskjs=require(_0x1a76('0xf'));var toCsv=require('to-csv');var querystring=require(_0x1a76('0x10'));var Papa=require(_0x1a76('0x11'));var Redis=require(_0x1a76('0x12'));var authService=require(_0x1a76('0x13'));var qs=require(_0x1a76('0x14'));var as=require(_0x1a76('0x15'));var hardwareService=require(_0x1a76('0x16'));var logger=require(_0x1a76('0x17'))(_0x1a76('0x18'));var utils=require('../../config/utils');var config=require(_0x1a76('0x19'));var licenseUtil=require(_0x1a76('0x1a'));var db=require(_0x1a76('0x1b'))['db'];function respondWithStatusCode(_0x28339a,_0x409891){_0x409891=_0x409891||0xcc;return function(_0x15e958){if(_0x15e958){return _0x28339a[_0x1a76('0x1c')](_0x409891);}return _0x28339a[_0x1a76('0x1d')](_0x409891)[_0x1a76('0x1e')]();};}function respondWithResult(_0x5d438f,_0x44f979){_0x44f979=_0x44f979||0xc8;return function(_0x332a24){if(_0x332a24){return _0x5d438f[_0x1a76('0x1d')](_0x44f979)[_0x1a76('0x1f')](_0x332a24);}};}function respondWithFilteredResult(_0x39d65a,_0x5a3b37){return function(_0x9cfcad){if(_0x9cfcad){var _0x5c5ef9=typeof _0x5a3b37[_0x1a76('0x20')]===_0x1a76('0x21')&&typeof _0x5a3b37[_0x1a76('0x22')]===_0x1a76('0x21');var _0x5515c9=_0x9cfcad[_0x1a76('0x23')];var _0x1af2d6=_0x5c5ef9?0x0:_0x5a3b37['offset'];var _0xdb21c=_0x5c5ef9?_0x9cfcad[_0x1a76('0x23')]:_0x5a3b37[_0x1a76('0x20')]+_0x5a3b37[_0x1a76('0x22')];var _0x1b9045;if(_0xdb21c>=_0x5515c9){_0xdb21c=_0x5515c9;_0x1b9045=0xc8;}else{_0x1b9045=0xce;}_0x39d65a[_0x1a76('0x1d')](_0x1b9045);return _0x39d65a['set'](_0x1a76('0x24'),_0x1af2d6+'-'+_0xdb21c+'/'+_0x5515c9)[_0x1a76('0x1f')](_0x9cfcad);}return null;};}function patchUpdates(_0x5b5a15){return function(_0x25e2ce){try{jsonpatch[_0x1a76('0x25')](_0x25e2ce,_0x5b5a15,!![]);}catch(_0x85c795){return BPromise[_0x1a76('0x26')](_0x85c795);}return _0x25e2ce['save']();};}function saveUpdates(_0xccc078,_0xd3cc0b){return function(_0x3eed7a){if(_0x3eed7a){return _0x3eed7a[_0x1a76('0x27')](_0xccc078)[_0x1a76('0x28')](function(_0x318fbb){return _0x318fbb;});}return null;};}function removeEntity(_0xcea620,_0x3f217b){return function(_0x4cdeb8){if(_0x4cdeb8){return _0x4cdeb8[_0x1a76('0x29')]()[_0x1a76('0x28')](function(){_0xcea620[_0x1a76('0x1d')](0xcc)[_0x1a76('0x1e')]();});}};}function handleEntityNotFound(_0x50f726,_0x1f8cef){return function(_0x2786cc){if(!_0x2786cc){_0x50f726[_0x1a76('0x1c')](0x194);}return _0x2786cc;};}function handleError(_0x6e4dc7,_0x313506){_0x313506=_0x313506||0x1f4;return function(_0x327679){logger['error'](_0x327679[_0x1a76('0x2a')]);if(_0x327679[_0x1a76('0x2b')]){delete _0x327679[_0x1a76('0x2b')];}_0x6e4dc7[_0x1a76('0x1d')](_0x313506)[_0x1a76('0x2c')](_0x327679);};}exports[_0x1a76('0x2d')]=function(_0x5be293,_0x36f867){var _0x3f5c42={},_0x1dce1c={},_0x26c88a={'count':0x0,'rows':[]};var _0xccad32=_[_0x1a76('0x2e')](db[_0x1a76('0x2f')][_0x1a76('0x30')],function(_0x6ef78){return{'name':_0x6ef78[_0x1a76('0x31')],'type':_0x6ef78[_0x1a76('0x32')][_0x1a76('0x33')]};});_0x1dce1c[_0x1a76('0x34')]=_[_0x1a76('0x2e')](_0xccad32,_0x1a76('0x2b'));_0x1dce1c[_0x1a76('0x35')]=_[_0x1a76('0x36')](_0x5be293[_0x1a76('0x35')]);_0x1dce1c[_0x1a76('0x37')]=_[_0x1a76('0x38')](_0x1dce1c[_0x1a76('0x34')],_0x1dce1c['query']);_0x3f5c42[_0x1a76('0x39')]=_[_0x1a76('0x38')](_0x1dce1c[_0x1a76('0x34')],qs[_0x1a76('0x3a')](_0x5be293[_0x1a76('0x35')][_0x1a76('0x3a')]));_0x3f5c42[_0x1a76('0x39')]=_0x3f5c42[_0x1a76('0x39')][_0x1a76('0x3b')]?_0x3f5c42[_0x1a76('0x39')]:_0x1dce1c[_0x1a76('0x34')];if(!_0x5be293[_0x1a76('0x35')][_0x1a76('0x3c')](_0x1a76('0x3d'))){_0x3f5c42['limit']=qs['limit'](_0x5be293[_0x1a76('0x35')][_0x1a76('0x22')]);_0x3f5c42['offset']=qs['offset'](_0x5be293[_0x1a76('0x35')][_0x1a76('0x20')]);}_0x3f5c42[_0x1a76('0x3e')]=qs['sort'](_0x5be293[_0x1a76('0x35')][_0x1a76('0x3f')]);_0x3f5c42[_0x1a76('0x40')]=qs[_0x1a76('0x37')](_[_0x1a76('0x41')](_0x5be293[_0x1a76('0x35')],_0x1dce1c[_0x1a76('0x37')]),_0xccad32);if(_0x5be293['query'][_0x1a76('0x42')]){_0x3f5c42[_0x1a76('0x40')]=_[_0x1a76('0x43')](_0x3f5c42[_0x1a76('0x40')],{'$or':_[_0x1a76('0x2e')](_0xccad32,function(_0x135c1a){if(_0x135c1a[_0x1a76('0x32')]!==_0x1a76('0x44')){var _0x8aed7={};_0x8aed7[_0x135c1a[_0x1a76('0x2b')]]={'$like':'%'+_0x5be293[_0x1a76('0x35')][_0x1a76('0x42')]+'%'};return _0x8aed7;}})});}_0x3f5c42=_[_0x1a76('0x43')]({},_0x3f5c42,_0x5be293[_0x1a76('0x45')]);var _0xc5c558={'where':_0x3f5c42[_0x1a76('0x40')]};return db['Dynamics365Field'][_0x1a76('0x23')](_0xc5c558)[_0x1a76('0x28')](function(_0x2f3155){_0x26c88a[_0x1a76('0x23')]=_0x2f3155;if(_0x5be293[_0x1a76('0x35')][_0x1a76('0x46')]){_0x3f5c42['include']=[{'all':!![]}];}return db[_0x1a76('0x2f')][_0x1a76('0x47')](_0x3f5c42);})[_0x1a76('0x28')](function(_0x59272a){_0x26c88a[_0x1a76('0x48')]=_0x59272a;return _0x26c88a;})['then'](respondWithFilteredResult(_0x36f867,_0x3f5c42))[_0x1a76('0x49')](handleError(_0x36f867,null));};exports[_0x1a76('0x4a')]=function(_0x46aabc,_0x2326bd){var _0x3f226d={'raw':!![],'where':{'id':_0x46aabc[_0x1a76('0x4b')]['id']}},_0xaff4f5={};_0xaff4f5[_0x1a76('0x34')]=_[_0x1a76('0x36')](db[_0x1a76('0x2f')][_0x1a76('0x30')]);_0xaff4f5['query']=_[_0x1a76('0x36')](_0x46aabc[_0x1a76('0x35')]);_0xaff4f5[_0x1a76('0x37')]=_['intersection'](_0xaff4f5[_0x1a76('0x34')],_0xaff4f5['query']);_0x3f226d[_0x1a76('0x39')]=_[_0x1a76('0x38')](_0xaff4f5['model'],qs[_0x1a76('0x3a')](_0x46aabc[_0x1a76('0x35')][_0x1a76('0x3a')]));_0x3f226d[_0x1a76('0x39')]=_0x3f226d[_0x1a76('0x39')][_0x1a76('0x3b')]?_0x3f226d[_0x1a76('0x39')]:_0xaff4f5[_0x1a76('0x34')];if(_0x46aabc[_0x1a76('0x35')]['includeAll']){_0x3f226d[_0x1a76('0x4c')]=[{'all':!![]}];}_0x3f226d=_['merge']({},_0x3f226d,_0x46aabc[_0x1a76('0x45')]);return db[_0x1a76('0x2f')][_0x1a76('0x4d')](_0x3f226d)[_0x1a76('0x28')](handleEntityNotFound(_0x2326bd,null))['then'](respondWithResult(_0x2326bd,null))['catch'](handleError(_0x2326bd,null));};exports['create']=function(_0x2bb48b,_0x20c173){return db[_0x1a76('0x2f')][_0x1a76('0x4e')](_0x2bb48b[_0x1a76('0x4f')],{})[_0x1a76('0x28')](respondWithResult(_0x20c173,0xc9))['catch'](handleError(_0x20c173,null));};exports[_0x1a76('0x27')]=function(_0x14e8cd,_0x305d2b){if(_0x14e8cd[_0x1a76('0x4f')]['id']){delete _0x14e8cd[_0x1a76('0x4f')]['id'];}return db[_0x1a76('0x2f')]['find']({'where':{'id':_0x14e8cd[_0x1a76('0x4b')]['id']}})[_0x1a76('0x28')](handleEntityNotFound(_0x305d2b,null))['then'](saveUpdates(_0x14e8cd[_0x1a76('0x4f')],null))[_0x1a76('0x28')](respondWithResult(_0x305d2b,null))[_0x1a76('0x49')](handleError(_0x305d2b,null));};exports[_0x1a76('0x29')]=function(_0x7ccb7a,_0x58d209){return db[_0x1a76('0x2f')][_0x1a76('0x4d')]({'where':{'id':_0x7ccb7a['params']['id']}})[_0x1a76('0x28')](handleEntityNotFound(_0x58d209,null))[_0x1a76('0x28')](removeEntity(_0x58d209,null))[_0x1a76('0x49')](handleError(_0x58d209,null));};
\ No newline at end of file
+var _0xeba2=['querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/environment','../../config/license/util','../../mysqldb','status','json','undefined','limit','count','offset','set','Content-Range','apply','reject','update','destroy','then','sendStatus','error','name','send','index','map','Dynamics365Field','rawAttributes','fieldName','type','model','query','keys','filters','intersection','attributes','length','hasOwnProperty','order','sort','filter','where','merge','VIRTUAL','options','includeAll','include','findAll','rows','show','params','fields','find','catch','create','body','eml-format','zip-dir','fast-json-patch','request-promise','bluebird','mustache','path','sox','to-csv','fs-extra','lodash','squel','crypto','jsforce','desk.js'];(function(_0x242f06,_0x563e27){var _0x414fee=function(_0x2520be){while(--_0x2520be){_0x242f06['push'](_0x242f06['shift']());}};_0x414fee(++_0x563e27);}(_0xeba2,0x16d));var _0x2eba=function(_0x2f37e0,_0x393ef9){_0x2f37e0=_0x2f37e0-0x0;var _0x43ccce=_0xeba2[_0x2f37e0];return _0x43ccce;};'use strict';var emlformat=require(_0x2eba('0x0'));var rimraf=require('rimraf');var zipdir=require(_0x2eba('0x1'));var jsonpatch=require(_0x2eba('0x2'));var rp=require(_0x2eba('0x3'));var moment=require('moment');var BPromise=require(_0x2eba('0x4'));var Mustache=require(_0x2eba('0x5'));var util=require('util');var path=require(_0x2eba('0x6'));var sox=require(_0x2eba('0x7'));var csv=require(_0x2eba('0x8'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x2eba('0x9'));var _=require(_0x2eba('0xa'));var squel=require(_0x2eba('0xb'));var crypto=require(_0x2eba('0xc'));var jsforce=require(_0x2eba('0xd'));var deskjs=require(_0x2eba('0xe'));var toCsv=require(_0x2eba('0x8'));var querystring=require(_0x2eba('0xf'));var Papa=require(_0x2eba('0x10'));var Redis=require(_0x2eba('0x11'));var authService=require(_0x2eba('0x12'));var qs=require(_0x2eba('0x13'));var as=require(_0x2eba('0x14'));var hardwareService=require(_0x2eba('0x15'));var logger=require(_0x2eba('0x16'))(_0x2eba('0x17'));var utils=require('../../config/utils');var config=require(_0x2eba('0x18'));var licenseUtil=require(_0x2eba('0x19'));var db=require(_0x2eba('0x1a'))['db'];function respondWithStatusCode(_0x47c14f,_0x99d6d){_0x99d6d=_0x99d6d||0xcc;return function(_0x7f8484){if(_0x7f8484){return _0x47c14f['sendStatus'](_0x99d6d);}return _0x47c14f[_0x2eba('0x1b')](_0x99d6d)['end']();};}function respondWithResult(_0x13c7a7,_0x5bae67){_0x5bae67=_0x5bae67||0xc8;return function(_0x160c91){if(_0x160c91){return _0x13c7a7['status'](_0x5bae67)[_0x2eba('0x1c')](_0x160c91);}};}function respondWithFilteredResult(_0x46ada7,_0x5ad5b6){return function(_0x6bcdc6){if(_0x6bcdc6){var _0x44b4e7=typeof _0x5ad5b6['offset']===_0x2eba('0x1d')&&typeof _0x5ad5b6[_0x2eba('0x1e')]===_0x2eba('0x1d');var _0x5142d1=_0x6bcdc6[_0x2eba('0x1f')];var _0x1731f7=_0x44b4e7?0x0:_0x5ad5b6['offset'];var _0x309aed=_0x44b4e7?_0x6bcdc6[_0x2eba('0x1f')]:_0x5ad5b6[_0x2eba('0x20')]+_0x5ad5b6['limit'];var _0x50a992;if(_0x309aed>=_0x5142d1){_0x309aed=_0x5142d1;_0x50a992=0xc8;}else{_0x50a992=0xce;}_0x46ada7[_0x2eba('0x1b')](_0x50a992);return _0x46ada7[_0x2eba('0x21')](_0x2eba('0x22'),_0x1731f7+'-'+_0x309aed+'/'+_0x5142d1)['json'](_0x6bcdc6);}return null;};}function patchUpdates(_0xd38b06){return function(_0x23d56a){try{jsonpatch[_0x2eba('0x23')](_0x23d56a,_0xd38b06,!![]);}catch(_0x4d7290){return BPromise[_0x2eba('0x24')](_0x4d7290);}return _0x23d56a['save']();};}function saveUpdates(_0x284ae4,_0x724a49){return function(_0x43959f){if(_0x43959f){return _0x43959f[_0x2eba('0x25')](_0x284ae4)['then'](function(_0xb0e28f){return _0xb0e28f;});}return null;};}function removeEntity(_0x5a139d,_0x4346c2){return function(_0x14d278){if(_0x14d278){return _0x14d278[_0x2eba('0x26')]()[_0x2eba('0x27')](function(){_0x5a139d[_0x2eba('0x1b')](0xcc)['end']();});}};}function handleEntityNotFound(_0x46a29c,_0xeaab31){return function(_0x5bd6ae){if(!_0x5bd6ae){_0x46a29c[_0x2eba('0x28')](0x194);}return _0x5bd6ae;};}function handleError(_0x143f04,_0x19b68d){_0x19b68d=_0x19b68d||0x1f4;return function(_0x4b90a2){logger[_0x2eba('0x29')](_0x4b90a2['stack']);if(_0x4b90a2[_0x2eba('0x2a')]){delete _0x4b90a2[_0x2eba('0x2a')];}_0x143f04['status'](_0x19b68d)[_0x2eba('0x2b')](_0x4b90a2);};}exports[_0x2eba('0x2c')]=function(_0x5316f5,_0x18ee0d){var _0x57d22c={},_0x266b1e={},_0x1107bc={'count':0x0,'rows':[]};var _0xa268fe=_[_0x2eba('0x2d')](db[_0x2eba('0x2e')][_0x2eba('0x2f')],function(_0x51029a){return{'name':_0x51029a[_0x2eba('0x30')],'type':_0x51029a[_0x2eba('0x31')]['key']};});_0x266b1e[_0x2eba('0x32')]=_[_0x2eba('0x2d')](_0xa268fe,_0x2eba('0x2a'));_0x266b1e[_0x2eba('0x33')]=_[_0x2eba('0x34')](_0x5316f5[_0x2eba('0x33')]);_0x266b1e[_0x2eba('0x35')]=_[_0x2eba('0x36')](_0x266b1e[_0x2eba('0x32')],_0x266b1e[_0x2eba('0x33')]);_0x57d22c[_0x2eba('0x37')]=_['intersection'](_0x266b1e[_0x2eba('0x32')],qs['fields'](_0x5316f5[_0x2eba('0x33')]['fields']));_0x57d22c['attributes']=_0x57d22c[_0x2eba('0x37')][_0x2eba('0x38')]?_0x57d22c[_0x2eba('0x37')]:_0x266b1e['model'];if(!_0x5316f5['query'][_0x2eba('0x39')]('nolimit')){_0x57d22c[_0x2eba('0x1e')]=qs[_0x2eba('0x1e')](_0x5316f5[_0x2eba('0x33')][_0x2eba('0x1e')]);_0x57d22c['offset']=qs[_0x2eba('0x20')](_0x5316f5[_0x2eba('0x33')]['offset']);}_0x57d22c[_0x2eba('0x3a')]=qs[_0x2eba('0x3b')](_0x5316f5[_0x2eba('0x33')][_0x2eba('0x3b')]);_0x57d22c['where']=qs['filters'](_['pick'](_0x5316f5[_0x2eba('0x33')],_0x266b1e[_0x2eba('0x35')]),_0xa268fe);if(_0x5316f5[_0x2eba('0x33')][_0x2eba('0x3c')]){_0x57d22c[_0x2eba('0x3d')]=_[_0x2eba('0x3e')](_0x57d22c['where'],{'$or':_['map'](_0xa268fe,function(_0xfd90c0){if(_0xfd90c0[_0x2eba('0x31')]!==_0x2eba('0x3f')){var _0x4b28b4={};_0x4b28b4[_0xfd90c0['name']]={'$like':'%'+_0x5316f5[_0x2eba('0x33')]['filter']+'%'};return _0x4b28b4;}})});}_0x57d22c=_[_0x2eba('0x3e')]({},_0x57d22c,_0x5316f5[_0x2eba('0x40')]);var _0xdb1f87={'where':_0x57d22c[_0x2eba('0x3d')]};return db[_0x2eba('0x2e')][_0x2eba('0x1f')](_0xdb1f87)[_0x2eba('0x27')](function(_0x3fbbd7){_0x1107bc[_0x2eba('0x1f')]=_0x3fbbd7;if(_0x5316f5['query'][_0x2eba('0x41')]){_0x57d22c[_0x2eba('0x42')]=[{'all':!![]}];}return db['Dynamics365Field'][_0x2eba('0x43')](_0x57d22c);})[_0x2eba('0x27')](function(_0x12f7f1){_0x1107bc[_0x2eba('0x44')]=_0x12f7f1;return _0x1107bc;})[_0x2eba('0x27')](respondWithFilteredResult(_0x18ee0d,_0x57d22c))['catch'](handleError(_0x18ee0d,null));};exports[_0x2eba('0x45')]=function(_0x1588f7,_0x5c5dd7){var _0xa52493={'raw':!![],'where':{'id':_0x1588f7[_0x2eba('0x46')]['id']}},_0x393078={};_0x393078[_0x2eba('0x32')]=_[_0x2eba('0x34')](db[_0x2eba('0x2e')][_0x2eba('0x2f')]);_0x393078['query']=_[_0x2eba('0x34')](_0x1588f7['query']);_0x393078[_0x2eba('0x35')]=_['intersection'](_0x393078['model'],_0x393078[_0x2eba('0x33')]);_0xa52493[_0x2eba('0x37')]=_[_0x2eba('0x36')](_0x393078[_0x2eba('0x32')],qs['fields'](_0x1588f7[_0x2eba('0x33')][_0x2eba('0x47')]));_0xa52493[_0x2eba('0x37')]=_0xa52493['attributes']['length']?_0xa52493[_0x2eba('0x37')]:_0x393078[_0x2eba('0x32')];if(_0x1588f7[_0x2eba('0x33')][_0x2eba('0x41')]){_0xa52493[_0x2eba('0x42')]=[{'all':!![]}];}_0xa52493=_['merge']({},_0xa52493,_0x1588f7[_0x2eba('0x40')]);return db[_0x2eba('0x2e')][_0x2eba('0x48')](_0xa52493)[_0x2eba('0x27')](handleEntityNotFound(_0x5c5dd7,null))['then'](respondWithResult(_0x5c5dd7,null))[_0x2eba('0x49')](handleError(_0x5c5dd7,null));};exports[_0x2eba('0x4a')]=function(_0x4527b5,_0x221f46){return db['Dynamics365Field'][_0x2eba('0x4a')](_0x4527b5[_0x2eba('0x4b')],{})['then'](respondWithResult(_0x221f46,0xc9))[_0x2eba('0x49')](handleError(_0x221f46,null));};exports[_0x2eba('0x25')]=function(_0x2e7c42,_0x33464f){if(_0x2e7c42[_0x2eba('0x4b')]['id']){delete _0x2e7c42[_0x2eba('0x4b')]['id'];}return db[_0x2eba('0x2e')][_0x2eba('0x48')]({'where':{'id':_0x2e7c42[_0x2eba('0x46')]['id']}})[_0x2eba('0x27')](handleEntityNotFound(_0x33464f,null))[_0x2eba('0x27')](saveUpdates(_0x2e7c42[_0x2eba('0x4b')],null))['then'](respondWithResult(_0x33464f,null))[_0x2eba('0x49')](handleError(_0x33464f,null));};exports[_0x2eba('0x26')]=function(_0x1ac276,_0x1feace){return db[_0x2eba('0x2e')]['find']({'where':{'id':_0x1ac276[_0x2eba('0x46')]['id']}})[_0x2eba('0x27')](handleEntityNotFound(_0x1feace,null))['then'](removeEntity(_0x1feace,null))[_0x2eba('0x49')](handleError(_0x1feace,null));};
\ No newline at end of file