Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / squareMessage / squareMessage.controller.js
index 11de50c..e8649fa 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1baf=['count','set','Content-Range','reject','save','update','then','destroy','stack','name','send','index','map','fieldName','key','query','filters','intersection','attributes','model','fields','length','hasOwnProperty','order','sort','where','pick','merge','type','filter','options','SquareMessage','include','show','params','keys','rawAttributes','includeAll','create','body','find','catch','eml-format','rimraf','zip-dir','request-promise','moment','bluebird','mustache','util','path','to-csv','ejs','squel','crypto','jsforce','desk.js','querystring','papaparse','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','limit','undefined'];(function(_0x47b0d9,_0x41b561){var _0x599df3=function(_0x4c0c30){while(--_0x4c0c30){_0x47b0d9['push'](_0x47b0d9['shift']());}};_0x599df3(++_0x41b561);}(_0x1baf,0x14e));var _0xf1ba=function(_0x1b1c5b,_0x117446){_0x1b1c5b=_0x1b1c5b-0x0;var _0x210a21=_0x1baf[_0x1b1c5b];return _0x210a21;};'use strict';var emlformat=require(_0xf1ba('0x0'));var rimraf=require(_0xf1ba('0x1'));var zipdir=require(_0xf1ba('0x2'));var jsonpatch=require('fast-json-patch');var rp=require(_0xf1ba('0x3'));var moment=require(_0xf1ba('0x4'));var BPromise=require(_0xf1ba('0x5'));var Mustache=require(_0xf1ba('0x6'));var util=require(_0xf1ba('0x7'));var path=require(_0xf1ba('0x8'));var sox=require('sox');var csv=require(_0xf1ba('0x9'));var ejs=require(_0xf1ba('0xa'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require('lodash');var squel=require(_0xf1ba('0xb'));var crypto=require(_0xf1ba('0xc'));var jsforce=require(_0xf1ba('0xd'));var deskjs=require(_0xf1ba('0xe'));var toCsv=require(_0xf1ba('0x9'));var querystring=require(_0xf1ba('0xf'));var Papa=require(_0xf1ba('0x10'));var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require(_0xf1ba('0x11'));var hardwareService=require(_0xf1ba('0x12'));var logger=require('../../config/logger')(_0xf1ba('0x13'));var utils=require(_0xf1ba('0x14'));var config=require(_0xf1ba('0x15'));var licenseUtil=require(_0xf1ba('0x16'));var db=require(_0xf1ba('0x17'))['db'];function respondWithStatusCode(_0x298137,_0x4ce634){_0x4ce634=_0x4ce634||0xcc;return function(_0x4db67f){if(_0x4db67f){return _0x298137[_0xf1ba('0x18')](_0x4ce634);}return _0x298137[_0xf1ba('0x19')](_0x4ce634)[_0xf1ba('0x1a')]();};}function respondWithResult(_0x573144,_0x194347){_0x194347=_0x194347||0xc8;return function(_0x1c2616){if(_0x1c2616){return _0x573144[_0xf1ba('0x19')](_0x194347)[_0xf1ba('0x1b')](_0x1c2616);}};}function respondWithFilteredResult(_0x482a6e,_0x313f1b){return function(_0x4fbaf6){if(_0x4fbaf6){var _0x624a9c=typeof _0x313f1b[_0xf1ba('0x1c')]==='undefined'&&typeof _0x313f1b[_0xf1ba('0x1d')]===_0xf1ba('0x1e');var _0xf2847d=_0x4fbaf6['count'];var _0x2ce38c=_0x624a9c?0x0:_0x313f1b[_0xf1ba('0x1c')];var _0x3219df=_0x624a9c?_0x4fbaf6[_0xf1ba('0x1f')]:_0x313f1b[_0xf1ba('0x1c')]+_0x313f1b[_0xf1ba('0x1d')];var _0x13d1d3;if(_0x3219df>=_0xf2847d){_0x3219df=_0xf2847d;_0x13d1d3=0xc8;}else{_0x13d1d3=0xce;}_0x482a6e[_0xf1ba('0x19')](_0x13d1d3);return _0x482a6e[_0xf1ba('0x20')](_0xf1ba('0x21'),_0x2ce38c+'-'+_0x3219df+'/'+_0xf2847d)['json'](_0x4fbaf6);}return null;};}function patchUpdates(_0x11a5c3){return function(_0x3d6f6e){try{jsonpatch['apply'](_0x3d6f6e,_0x11a5c3,!![]);}catch(_0x2f3a44){return BPromise[_0xf1ba('0x22')](_0x2f3a44);}return _0x3d6f6e[_0xf1ba('0x23')]();};}function saveUpdates(_0x48e067,_0x2e9f1f){return function(_0x1e5e7f){if(_0x1e5e7f){return _0x1e5e7f[_0xf1ba('0x24')](_0x48e067)[_0xf1ba('0x25')](function(_0x309c66){return _0x309c66;});}return null;};}function removeEntity(_0x3b5fdd,_0xb94f5){return function(_0x3a2ff6){if(_0x3a2ff6){return _0x3a2ff6[_0xf1ba('0x26')]()[_0xf1ba('0x25')](function(){_0x3b5fdd[_0xf1ba('0x19')](0xcc)[_0xf1ba('0x1a')]();});}};}function handleEntityNotFound(_0x2493f8,_0x429096){return function(_0x5b0881){if(!_0x5b0881){_0x2493f8[_0xf1ba('0x18')](0x194);}return _0x5b0881;};}function handleError(_0x3106f9,_0x9f03ce){_0x9f03ce=_0x9f03ce||0x1f4;return function(_0x3f6c11){logger['error'](_0x3f6c11[_0xf1ba('0x27')]);if(_0x3f6c11[_0xf1ba('0x28')]){delete _0x3f6c11[_0xf1ba('0x28')];}_0x3106f9[_0xf1ba('0x19')](_0x9f03ce)[_0xf1ba('0x29')](_0x3f6c11);};}exports[_0xf1ba('0x2a')]=function(_0xc86008,_0xc755bd){var _0x2988cf={},_0x8971ef={},_0x1dbf7d={'count':0x0,'rows':[]};var _0x34823c=_[_0xf1ba('0x2b')](db['SquareMessage']['rawAttributes'],function(_0x1d8071){return{'name':_0x1d8071[_0xf1ba('0x2c')],'type':_0x1d8071['type'][_0xf1ba('0x2d')]};});_0x8971ef['model']=_['map'](_0x34823c,'name');_0x8971ef[_0xf1ba('0x2e')]=_['keys'](_0xc86008[_0xf1ba('0x2e')]);_0x8971ef[_0xf1ba('0x2f')]=_[_0xf1ba('0x30')](_0x8971ef['model'],_0x8971ef[_0xf1ba('0x2e')]);_0x2988cf[_0xf1ba('0x31')]=_[_0xf1ba('0x30')](_0x8971ef[_0xf1ba('0x32')],qs[_0xf1ba('0x33')](_0xc86008[_0xf1ba('0x2e')][_0xf1ba('0x33')]));_0x2988cf[_0xf1ba('0x31')]=_0x2988cf[_0xf1ba('0x31')][_0xf1ba('0x34')]?_0x2988cf['attributes']:_0x8971ef[_0xf1ba('0x32')];if(!_0xc86008[_0xf1ba('0x2e')][_0xf1ba('0x35')]('nolimit')){_0x2988cf['limit']=qs[_0xf1ba('0x1d')](_0xc86008['query'][_0xf1ba('0x1d')]);_0x2988cf['offset']=qs['offset'](_0xc86008['query']['offset']);}_0x2988cf[_0xf1ba('0x36')]=qs[_0xf1ba('0x37')](_0xc86008['query']['sort']);_0x2988cf[_0xf1ba('0x38')]=qs['filters'](_[_0xf1ba('0x39')](_0xc86008[_0xf1ba('0x2e')],_0x8971ef['filters']),_0x34823c);if(_0xc86008[_0xf1ba('0x2e')]['filter']){_0x2988cf[_0xf1ba('0x38')]=_[_0xf1ba('0x3a')](_0x2988cf[_0xf1ba('0x38')],{'$or':_[_0xf1ba('0x2b')](_0x34823c,function(_0x1b9cd4){if(_0x1b9cd4[_0xf1ba('0x3b')]!=='VIRTUAL'){var _0x750f68={};_0x750f68[_0x1b9cd4[_0xf1ba('0x28')]]={'$like':'%'+_0xc86008[_0xf1ba('0x2e')][_0xf1ba('0x3c')]+'%'};return _0x750f68;}})});}_0x2988cf=_[_0xf1ba('0x3a')]({},_0x2988cf,_0xc86008[_0xf1ba('0x3d')]);var _0x50fb10={'where':_0x2988cf[_0xf1ba('0x38')]};return db[_0xf1ba('0x3e')][_0xf1ba('0x1f')](_0x50fb10)['then'](function(_0x5745bc){_0x1dbf7d[_0xf1ba('0x1f')]=_0x5745bc;if(_0xc86008[_0xf1ba('0x2e')]['includeAll']){_0x2988cf[_0xf1ba('0x3f')]=[{'all':!![]}];}return db[_0xf1ba('0x3e')]['findAll'](_0x2988cf);})['then'](function(_0x16f87f){_0x1dbf7d['rows']=_0x16f87f;return _0x1dbf7d;})[_0xf1ba('0x25')](respondWithFilteredResult(_0xc755bd,_0x2988cf))['catch'](handleError(_0xc755bd,null));};exports[_0xf1ba('0x40')]=function(_0x4a365a,_0x3060c7){var _0x2d75d9={'raw':!![],'where':{'id':_0x4a365a[_0xf1ba('0x41')]['id']}},_0x2afbf4={};_0x2afbf4[_0xf1ba('0x32')]=_[_0xf1ba('0x42')](db[_0xf1ba('0x3e')][_0xf1ba('0x43')]);_0x2afbf4['query']=_['keys'](_0x4a365a[_0xf1ba('0x2e')]);_0x2afbf4['filters']=_['intersection'](_0x2afbf4[_0xf1ba('0x32')],_0x2afbf4[_0xf1ba('0x2e')]);_0x2d75d9[_0xf1ba('0x31')]=_[_0xf1ba('0x30')](_0x2afbf4[_0xf1ba('0x32')],qs[_0xf1ba('0x33')](_0x4a365a[_0xf1ba('0x2e')][_0xf1ba('0x33')]));_0x2d75d9[_0xf1ba('0x31')]=_0x2d75d9[_0xf1ba('0x31')]['length']?_0x2d75d9[_0xf1ba('0x31')]:_0x2afbf4['model'];if(_0x4a365a['query'][_0xf1ba('0x44')]){_0x2d75d9[_0xf1ba('0x3f')]=[{'all':!![]}];}_0x2d75d9=_[_0xf1ba('0x3a')]({},_0x2d75d9,_0x4a365a[_0xf1ba('0x3d')]);return db[_0xf1ba('0x3e')]['find'](_0x2d75d9)[_0xf1ba('0x25')](handleEntityNotFound(_0x3060c7,null))[_0xf1ba('0x25')](respondWithResult(_0x3060c7,null))['catch'](handleError(_0x3060c7,null));};exports[_0xf1ba('0x45')]=function(_0x30a01a,_0x4ca6de){return db[_0xf1ba('0x3e')][_0xf1ba('0x45')](_0x30a01a[_0xf1ba('0x46')],{})[_0xf1ba('0x25')](respondWithResult(_0x4ca6de,0xc9))['catch'](handleError(_0x4ca6de,null));};exports[_0xf1ba('0x24')]=function(_0x3bb1ea,_0xfc74bf){if(_0x3bb1ea[_0xf1ba('0x46')]['id']){delete _0x3bb1ea[_0xf1ba('0x46')]['id'];}return db['SquareMessage'][_0xf1ba('0x47')]({'where':{'id':_0x3bb1ea[_0xf1ba('0x41')]['id']}})[_0xf1ba('0x25')](handleEntityNotFound(_0xfc74bf,null))['then'](saveUpdates(_0x3bb1ea['body'],null))[_0xf1ba('0x25')](respondWithResult(_0xfc74bf,null))['catch'](handleError(_0xfc74bf,null));};exports['destroy']=function(_0x59f764,_0x195570){return db[_0xf1ba('0x3e')]['find']({'where':{'id':_0x59f764['params']['id']}})[_0xf1ba('0x25')](handleEntityNotFound(_0x195570,null))[_0xf1ba('0x25')](removeEntity(_0x195570,null))[_0xf1ba('0x48')](handleError(_0x195570,null));};
\ No newline at end of file
+var _0xc87f=['crypto','desk.js','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','json','offset','undefined','limit','count','set','Content-Range','apply','reject','save','update','then','destroy','error','name','send','map','SquareMessage','rawAttributes','fieldName','key','model','keys','query','filters','attributes','intersection','length','nolimit','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','findAll','rows','show','params','include','find','catch','create','body','eml-format','rimraf','fast-json-patch','request-promise','moment','bluebird','mustache','path','sox','to-csv','ejs','fs-extra','lodash','squel'];(function(_0x25c7fb,_0x2e4e86){var _0x214b77=function(_0x36b7c0){while(--_0x36b7c0){_0x25c7fb['push'](_0x25c7fb['shift']());}};_0x214b77(++_0x2e4e86);}(_0xc87f,0x169));var _0xfc87=function(_0x23952a,_0x5431af){_0x23952a=_0x23952a-0x0;var _0x6ba12d=_0xc87f[_0x23952a];return _0x6ba12d;};'use strict';var emlformat=require(_0xfc87('0x0'));var rimraf=require(_0xfc87('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0xfc87('0x2'));var rp=require(_0xfc87('0x3'));var moment=require(_0xfc87('0x4'));var BPromise=require(_0xfc87('0x5'));var Mustache=require(_0xfc87('0x6'));var util=require('util');var path=require(_0xfc87('0x7'));var sox=require(_0xfc87('0x8'));var csv=require(_0xfc87('0x9'));var ejs=require(_0xfc87('0xa'));var fs=require('fs');var fs_extra=require(_0xfc87('0xb'));var _=require(_0xfc87('0xc'));var squel=require(_0xfc87('0xd'));var crypto=require(_0xfc87('0xe'));var jsforce=require('jsforce');var deskjs=require(_0xfc87('0xf'));var toCsv=require(_0xfc87('0x9'));var querystring=require('querystring');var Papa=require(_0xfc87('0x10'));var Redis=require(_0xfc87('0x11'));var authService=require(_0xfc87('0x12'));var qs=require(_0xfc87('0x13'));var as=require(_0xfc87('0x14'));var hardwareService=require(_0xfc87('0x15'));var logger=require(_0xfc87('0x16'))('api');var utils=require(_0xfc87('0x17'));var config=require(_0xfc87('0x18'));var licenseUtil=require('../../config/license/util');var db=require(_0xfc87('0x19'))['db'];function respondWithStatusCode(_0x440721,_0x1638bb){_0x1638bb=_0x1638bb||0xcc;return function(_0x1ccdf5){if(_0x1ccdf5){return _0x440721[_0xfc87('0x1a')](_0x1638bb);}return _0x440721[_0xfc87('0x1b')](_0x1638bb)[_0xfc87('0x1c')]();};}function respondWithResult(_0x4c7299,_0x55b7c7){_0x55b7c7=_0x55b7c7||0xc8;return function(_0x2e0f46){if(_0x2e0f46){return _0x4c7299[_0xfc87('0x1b')](_0x55b7c7)[_0xfc87('0x1d')](_0x2e0f46);}};}function respondWithFilteredResult(_0x30cc39,_0x191b0e){return function(_0x122f3a){if(_0x122f3a){var _0x8895a2=typeof _0x191b0e[_0xfc87('0x1e')]===_0xfc87('0x1f')&&typeof _0x191b0e[_0xfc87('0x20')]===_0xfc87('0x1f');var _0x5aeb8f=_0x122f3a[_0xfc87('0x21')];var _0x276013=_0x8895a2?0x0:_0x191b0e['offset'];var _0x1399e5=_0x8895a2?_0x122f3a[_0xfc87('0x21')]:_0x191b0e['offset']+_0x191b0e['limit'];var _0x59b68c;if(_0x1399e5>=_0x5aeb8f){_0x1399e5=_0x5aeb8f;_0x59b68c=0xc8;}else{_0x59b68c=0xce;}_0x30cc39[_0xfc87('0x1b')](_0x59b68c);return _0x30cc39[_0xfc87('0x22')](_0xfc87('0x23'),_0x276013+'-'+_0x1399e5+'/'+_0x5aeb8f)[_0xfc87('0x1d')](_0x122f3a);}return null;};}function patchUpdates(_0x201234){return function(_0x41f19b){try{jsonpatch[_0xfc87('0x24')](_0x41f19b,_0x201234,!![]);}catch(_0x7f64){return BPromise[_0xfc87('0x25')](_0x7f64);}return _0x41f19b[_0xfc87('0x26')]();};}function saveUpdates(_0x2a6323,_0x480e26){return function(_0x3972af){if(_0x3972af){return _0x3972af[_0xfc87('0x27')](_0x2a6323)[_0xfc87('0x28')](function(_0x516aeb){return _0x516aeb;});}return null;};}function removeEntity(_0x33cf13,_0x195449){return function(_0x2a65e5){if(_0x2a65e5){return _0x2a65e5[_0xfc87('0x29')]()[_0xfc87('0x28')](function(){_0x33cf13[_0xfc87('0x1b')](0xcc)[_0xfc87('0x1c')]();});}};}function handleEntityNotFound(_0x242a72,_0x52156d){return function(_0x4f58fd){if(!_0x4f58fd){_0x242a72[_0xfc87('0x1a')](0x194);}return _0x4f58fd;};}function handleError(_0x3d599c,_0x55ecc7){_0x55ecc7=_0x55ecc7||0x1f4;return function(_0x3c7d48){logger[_0xfc87('0x2a')](_0x3c7d48['stack']);if(_0x3c7d48[_0xfc87('0x2b')]){delete _0x3c7d48[_0xfc87('0x2b')];}_0x3d599c[_0xfc87('0x1b')](_0x55ecc7)[_0xfc87('0x2c')](_0x3c7d48);};}exports['index']=function(_0x3e48ac,_0xdd680a){var _0x35fc28={},_0x8e45={},_0x48bfd3={'count':0x0,'rows':[]};var _0x11a866=_[_0xfc87('0x2d')](db[_0xfc87('0x2e')][_0xfc87('0x2f')],function(_0x40f0be){return{'name':_0x40f0be[_0xfc87('0x30')],'type':_0x40f0be['type'][_0xfc87('0x31')]};});_0x8e45[_0xfc87('0x32')]=_[_0xfc87('0x2d')](_0x11a866,_0xfc87('0x2b'));_0x8e45['query']=_[_0xfc87('0x33')](_0x3e48ac[_0xfc87('0x34')]);_0x8e45[_0xfc87('0x35')]=_['intersection'](_0x8e45[_0xfc87('0x32')],_0x8e45['query']);_0x35fc28[_0xfc87('0x36')]=_[_0xfc87('0x37')](_0x8e45[_0xfc87('0x32')],qs['fields'](_0x3e48ac[_0xfc87('0x34')]['fields']));_0x35fc28[_0xfc87('0x36')]=_0x35fc28[_0xfc87('0x36')][_0xfc87('0x38')]?_0x35fc28['attributes']:_0x8e45['model'];if(!_0x3e48ac['query']['hasOwnProperty'](_0xfc87('0x39'))){_0x35fc28[_0xfc87('0x20')]=qs[_0xfc87('0x20')](_0x3e48ac[_0xfc87('0x34')][_0xfc87('0x20')]);_0x35fc28[_0xfc87('0x1e')]=qs[_0xfc87('0x1e')](_0x3e48ac[_0xfc87('0x34')][_0xfc87('0x1e')]);}_0x35fc28['order']=qs[_0xfc87('0x3a')](_0x3e48ac[_0xfc87('0x34')][_0xfc87('0x3a')]);_0x35fc28[_0xfc87('0x3b')]=qs[_0xfc87('0x35')](_[_0xfc87('0x3c')](_0x3e48ac[_0xfc87('0x34')],_0x8e45[_0xfc87('0x35')]),_0x11a866);if(_0x3e48ac['query'][_0xfc87('0x3d')]){_0x35fc28[_0xfc87('0x3b')]=_[_0xfc87('0x3e')](_0x35fc28['where'],{'$or':_['map'](_0x11a866,function(_0x1d64e9){if(_0x1d64e9['type']!==_0xfc87('0x3f')){var _0x56559b={};_0x56559b[_0x1d64e9[_0xfc87('0x2b')]]={'$like':'%'+_0x3e48ac['query'][_0xfc87('0x3d')]+'%'};return _0x56559b;}})});}_0x35fc28=_[_0xfc87('0x3e')]({},_0x35fc28,_0x3e48ac[_0xfc87('0x40')]);var _0x164367={'where':_0x35fc28[_0xfc87('0x3b')]};return db[_0xfc87('0x2e')][_0xfc87('0x21')](_0x164367)['then'](function(_0x14e72c){_0x48bfd3['count']=_0x14e72c;if(_0x3e48ac[_0xfc87('0x34')][_0xfc87('0x41')]){_0x35fc28['include']=[{'all':!![]}];}return db[_0xfc87('0x2e')][_0xfc87('0x42')](_0x35fc28);})[_0xfc87('0x28')](function(_0x4128dc){_0x48bfd3[_0xfc87('0x43')]=_0x4128dc;return _0x48bfd3;})[_0xfc87('0x28')](respondWithFilteredResult(_0xdd680a,_0x35fc28))['catch'](handleError(_0xdd680a,null));};exports[_0xfc87('0x44')]=function(_0x4a035b,_0x429bbd){var _0x47cab9={'raw':!![],'where':{'id':_0x4a035b[_0xfc87('0x45')]['id']}},_0x3646a7={};_0x3646a7[_0xfc87('0x32')]=_[_0xfc87('0x33')](db['SquareMessage'][_0xfc87('0x2f')]);_0x3646a7[_0xfc87('0x34')]=_['keys'](_0x4a035b['query']);_0x3646a7['filters']=_[_0xfc87('0x37')](_0x3646a7[_0xfc87('0x32')],_0x3646a7['query']);_0x47cab9['attributes']=_[_0xfc87('0x37')](_0x3646a7[_0xfc87('0x32')],qs['fields'](_0x4a035b[_0xfc87('0x34')]['fields']));_0x47cab9['attributes']=_0x47cab9[_0xfc87('0x36')][_0xfc87('0x38')]?_0x47cab9['attributes']:_0x3646a7[_0xfc87('0x32')];if(_0x4a035b[_0xfc87('0x34')][_0xfc87('0x41')]){_0x47cab9[_0xfc87('0x46')]=[{'all':!![]}];}_0x47cab9=_[_0xfc87('0x3e')]({},_0x47cab9,_0x4a035b[_0xfc87('0x40')]);return db[_0xfc87('0x2e')][_0xfc87('0x47')](_0x47cab9)['then'](handleEntityNotFound(_0x429bbd,null))[_0xfc87('0x28')](respondWithResult(_0x429bbd,null))[_0xfc87('0x48')](handleError(_0x429bbd,null));};exports[_0xfc87('0x49')]=function(_0x429ea1,_0x49e368){return db[_0xfc87('0x2e')][_0xfc87('0x49')](_0x429ea1[_0xfc87('0x4a')],{})[_0xfc87('0x28')](respondWithResult(_0x49e368,0xc9))[_0xfc87('0x48')](handleError(_0x49e368,null));};exports['update']=function(_0x30815e,_0x3f797a){if(_0x30815e[_0xfc87('0x4a')]['id']){delete _0x30815e['body']['id'];}return db[_0xfc87('0x2e')][_0xfc87('0x47')]({'where':{'id':_0x30815e['params']['id']}})[_0xfc87('0x28')](handleEntityNotFound(_0x3f797a,null))[_0xfc87('0x28')](saveUpdates(_0x30815e['body'],null))[_0xfc87('0x28')](respondWithResult(_0x3f797a,null))['catch'](handleError(_0x3f797a,null));};exports[_0xfc87('0x29')]=function(_0x1684b2,_0x301994){return db[_0xfc87('0x2e')]['find']({'where':{'id':_0x1684b2[_0xfc87('0x45')]['id']}})['then'](handleEntityNotFound(_0x301994,null))[_0xfc87('0x28')](removeEntity(_0x301994,null))[_0xfc87('0x48')](handleError(_0x301994,null));};
\ No newline at end of file