Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / faxApplication / faxApplication.controller.js
index 799da16..9100073 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xabf9=['crypto','jsforce','desk.js','papaparse','ioredis','../../components/auth/service','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','count','offset','limit','set','Content-Range','json','reject','save','update','then','destroy','error','stack','name','send','index','FaxApplication','rawAttributes','fieldName','type','key','keys','filters','intersection','model','query','attributes','fields','hasOwnProperty','nolimit','order','pick','where','merge','map','VIRTUAL','options','includeAll','include','findAll','show','length','find','catch','create','body','params','zip-dir','request-promise','moment','bluebird','mustache','path','to-csv','ejs','fs-extra','lodash'];(function(_0x8c43de,_0x90ff31){var _0xa6591b=function(_0x469716){while(--_0x469716){_0x8c43de['push'](_0x8c43de['shift']());}};_0xa6591b(++_0x90ff31);}(_0xabf9,0x11a));var _0x9abf=function(_0x489dd1,_0x3d4564){_0x489dd1=_0x489dd1-0x0;var _0x292b0f=_0xabf9[_0x489dd1];return _0x292b0f;};'use strict';var emlformat=require('eml-format');var rimraf=require('rimraf');var zipdir=require(_0x9abf('0x0'));var jsonpatch=require('fast-json-patch');var rp=require(_0x9abf('0x1'));var moment=require(_0x9abf('0x2'));var BPromise=require(_0x9abf('0x3'));var Mustache=require(_0x9abf('0x4'));var util=require('util');var path=require(_0x9abf('0x5'));var sox=require('sox');var csv=require(_0x9abf('0x6'));var ejs=require(_0x9abf('0x7'));var fs=require('fs');var fs_extra=require(_0x9abf('0x8'));var _=require(_0x9abf('0x9'));var squel=require('squel');var crypto=require(_0x9abf('0xa'));var jsforce=require(_0x9abf('0xb'));var deskjs=require(_0x9abf('0xc'));var toCsv=require('to-csv');var querystring=require('querystring');var Papa=require(_0x9abf('0xd'));var Redis=require(_0x9abf('0xe'));var authService=require(_0x9abf('0xf'));var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x9abf('0x10'));var logger=require(_0x9abf('0x11'))(_0x9abf('0x12'));var utils=require(_0x9abf('0x13'));var config=require(_0x9abf('0x14'));var licenseUtil=require(_0x9abf('0x15'));var db=require(_0x9abf('0x16'))['db'];function respondWithStatusCode(_0x3d159b,_0xba7c6d){_0xba7c6d=_0xba7c6d||0xcc;return function(_0x4048d9){if(_0x4048d9){return _0x3d159b[_0x9abf('0x17')](_0xba7c6d);}return _0x3d159b[_0x9abf('0x18')](_0xba7c6d)[_0x9abf('0x19')]();};}function respondWithResult(_0xc470ae,_0x53c016){_0x53c016=_0x53c016||0xc8;return function(_0x1eeed4){if(_0x1eeed4){return _0xc470ae[_0x9abf('0x18')](_0x53c016)['json'](_0x1eeed4);}};}function respondWithFilteredResult(_0x217eaa,_0x24c502){return function(_0x5e2d7c){if(_0x5e2d7c){var _0x28833b=typeof _0x24c502['offset']==='undefined'&&typeof _0x24c502['limit']==='undefined';var _0x359211=_0x5e2d7c[_0x9abf('0x1a')];var _0x15c331=_0x28833b?0x0:_0x24c502[_0x9abf('0x1b')];var _0xddf0d9=_0x28833b?_0x5e2d7c[_0x9abf('0x1a')]:_0x24c502[_0x9abf('0x1b')]+_0x24c502[_0x9abf('0x1c')];var _0x1cbcd7;if(_0xddf0d9>=_0x359211){_0xddf0d9=_0x359211;_0x1cbcd7=0xc8;}else{_0x1cbcd7=0xce;}_0x217eaa['status'](_0x1cbcd7);return _0x217eaa[_0x9abf('0x1d')](_0x9abf('0x1e'),_0x15c331+'-'+_0xddf0d9+'/'+_0x359211)[_0x9abf('0x1f')](_0x5e2d7c);}return null;};}function patchUpdates(_0x1c342e){return function(_0x15ab72){try{jsonpatch['apply'](_0x15ab72,_0x1c342e,!![]);}catch(_0x4b71af){return BPromise[_0x9abf('0x20')](_0x4b71af);}return _0x15ab72[_0x9abf('0x21')]();};}function saveUpdates(_0x2b0a7a,_0x35f751){return function(_0x13eb57){if(_0x13eb57){return _0x13eb57[_0x9abf('0x22')](_0x2b0a7a)[_0x9abf('0x23')](function(_0x16774d){return _0x16774d;});}return null;};}function removeEntity(_0x2890d6,_0x50a3eb){return function(_0x4f92e5){if(_0x4f92e5){return _0x4f92e5[_0x9abf('0x24')]()[_0x9abf('0x23')](function(){_0x2890d6[_0x9abf('0x18')](0xcc)[_0x9abf('0x19')]();});}};}function handleEntityNotFound(_0x57a5be,_0x18c52a){return function(_0x5666aa){if(!_0x5666aa){_0x57a5be[_0x9abf('0x17')](0x194);}return _0x5666aa;};}function handleError(_0xf72b48,_0x32f1fb){_0x32f1fb=_0x32f1fb||0x1f4;return function(_0x25f942){logger[_0x9abf('0x25')](_0x25f942[_0x9abf('0x26')]);if(_0x25f942[_0x9abf('0x27')]){delete _0x25f942[_0x9abf('0x27')];}_0xf72b48[_0x9abf('0x18')](_0x32f1fb)[_0x9abf('0x28')](_0x25f942);};}exports[_0x9abf('0x29')]=function(_0x5e67da,_0xafbb63){var _0x2a5213={},_0x2b855c={},_0xd6b5e6={'count':0x0,'rows':[]};var _0x25aaea=_['map'](db[_0x9abf('0x2a')][_0x9abf('0x2b')],function(_0x3e94e3){return{'name':_0x3e94e3[_0x9abf('0x2c')],'type':_0x3e94e3[_0x9abf('0x2d')][_0x9abf('0x2e')]};});_0x2b855c['model']=_['map'](_0x25aaea,_0x9abf('0x27'));_0x2b855c['query']=_[_0x9abf('0x2f')](_0x5e67da['query']);_0x2b855c[_0x9abf('0x30')]=_[_0x9abf('0x31')](_0x2b855c[_0x9abf('0x32')],_0x2b855c[_0x9abf('0x33')]);_0x2a5213[_0x9abf('0x34')]=_[_0x9abf('0x31')](_0x2b855c['model'],qs[_0x9abf('0x35')](_0x5e67da[_0x9abf('0x33')][_0x9abf('0x35')]));_0x2a5213[_0x9abf('0x34')]=_0x2a5213[_0x9abf('0x34')]['length']?_0x2a5213[_0x9abf('0x34')]:_0x2b855c[_0x9abf('0x32')];if(!_0x5e67da[_0x9abf('0x33')][_0x9abf('0x36')](_0x9abf('0x37'))){_0x2a5213[_0x9abf('0x1c')]=qs[_0x9abf('0x1c')](_0x5e67da[_0x9abf('0x33')][_0x9abf('0x1c')]);_0x2a5213[_0x9abf('0x1b')]=qs['offset'](_0x5e67da[_0x9abf('0x33')]['offset']);}_0x2a5213[_0x9abf('0x38')]=qs['sort'](_0x5e67da[_0x9abf('0x33')]['sort']);_0x2a5213['where']=qs[_0x9abf('0x30')](_[_0x9abf('0x39')](_0x5e67da[_0x9abf('0x33')],_0x2b855c[_0x9abf('0x30')]),_0x25aaea);if(_0x5e67da[_0x9abf('0x33')]['filter']){_0x2a5213[_0x9abf('0x3a')]=_[_0x9abf('0x3b')](_0x2a5213[_0x9abf('0x3a')],{'$or':_[_0x9abf('0x3c')](_0x25aaea,function(_0x4f2e62){if(_0x4f2e62[_0x9abf('0x2d')]!==_0x9abf('0x3d')){var _0x1dd786={};_0x1dd786[_0x4f2e62['name']]={'$like':'%'+_0x5e67da[_0x9abf('0x33')]['filter']+'%'};return _0x1dd786;}})});}_0x2a5213=_[_0x9abf('0x3b')]({},_0x2a5213,_0x5e67da[_0x9abf('0x3e')]);var _0x169b0a={'where':_0x2a5213[_0x9abf('0x3a')]};return db['FaxApplication'][_0x9abf('0x1a')](_0x169b0a)[_0x9abf('0x23')](function(_0x321347){_0xd6b5e6[_0x9abf('0x1a')]=_0x321347;if(_0x5e67da[_0x9abf('0x33')][_0x9abf('0x3f')]){_0x2a5213[_0x9abf('0x40')]=[{'all':!![]}];}return db['FaxApplication'][_0x9abf('0x41')](_0x2a5213);})[_0x9abf('0x23')](function(_0x243937){_0xd6b5e6['rows']=_0x243937;return _0xd6b5e6;})[_0x9abf('0x23')](respondWithFilteredResult(_0xafbb63,_0x2a5213))['catch'](handleError(_0xafbb63,null));};exports[_0x9abf('0x42')]=function(_0x54e5e6,_0x388350){var _0x477d88={'raw':!![],'where':{'id':_0x54e5e6['params']['id']}},_0x246f9d={};_0x246f9d[_0x9abf('0x32')]=_[_0x9abf('0x2f')](db[_0x9abf('0x2a')][_0x9abf('0x2b')]);_0x246f9d[_0x9abf('0x33')]=_[_0x9abf('0x2f')](_0x54e5e6[_0x9abf('0x33')]);_0x246f9d[_0x9abf('0x30')]=_[_0x9abf('0x31')](_0x246f9d['model'],_0x246f9d['query']);_0x477d88[_0x9abf('0x34')]=_['intersection'](_0x246f9d[_0x9abf('0x32')],qs[_0x9abf('0x35')](_0x54e5e6['query']['fields']));_0x477d88[_0x9abf('0x34')]=_0x477d88[_0x9abf('0x34')][_0x9abf('0x43')]?_0x477d88[_0x9abf('0x34')]:_0x246f9d[_0x9abf('0x32')];if(_0x54e5e6[_0x9abf('0x33')][_0x9abf('0x3f')]){_0x477d88[_0x9abf('0x40')]=[{'all':!![]}];}_0x477d88=_[_0x9abf('0x3b')]({},_0x477d88,_0x54e5e6[_0x9abf('0x3e')]);return db[_0x9abf('0x2a')][_0x9abf('0x44')](_0x477d88)[_0x9abf('0x23')](handleEntityNotFound(_0x388350,null))[_0x9abf('0x23')](respondWithResult(_0x388350,null))[_0x9abf('0x45')](handleError(_0x388350,null));};exports[_0x9abf('0x46')]=function(_0x57c57d,_0x3ff4cb){return db[_0x9abf('0x2a')][_0x9abf('0x46')](_0x57c57d['body'],{})['then'](respondWithResult(_0x3ff4cb,0xc9))[_0x9abf('0x45')](handleError(_0x3ff4cb,null));};exports[_0x9abf('0x22')]=function(_0x3696ae,_0x75f7b4){if(_0x3696ae[_0x9abf('0x47')]['id']){delete _0x3696ae['body']['id'];}return db[_0x9abf('0x2a')][_0x9abf('0x44')]({'where':{'id':_0x3696ae['params']['id']}})[_0x9abf('0x23')](handleEntityNotFound(_0x75f7b4,null))[_0x9abf('0x23')](saveUpdates(_0x3696ae[_0x9abf('0x47')],null))['then'](respondWithResult(_0x75f7b4,null))[_0x9abf('0x45')](handleError(_0x75f7b4,null));};exports['destroy']=function(_0x1c0f2c,_0x46d393){return db['FaxApplication'][_0x9abf('0x44')]({'where':{'id':_0x1c0f2c[_0x9abf('0x48')]['id']}})[_0x9abf('0x23')](handleEntityNotFound(_0x46d393,null))[_0x9abf('0x23')](removeEntity(_0x46d393,null))['catch'](handleError(_0x46d393,null));};
\ No newline at end of file
+var _0xed23=['path','ejs','fs-extra','crypto','desk.js','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','api','../../config/utils','../../config/environment','../../mysqldb','status','json','offset','limit','undefined','count','set','Content-Range','reject','update','then','destroy','end','sendStatus','error','stack','name','send','index','map','FaxApplication','rawAttributes','fieldName','key','model','keys','query','filters','intersection','fields','attributes','length','hasOwnProperty','sort','where','pick','filter','merge','type','VIRTUAL','options','includeAll','findAll','catch','show','params','find','create','body','eml-format','zip-dir','fast-json-patch','moment','bluebird','util'];(function(_0x4af3eb,_0x48cca9){var _0x96ebba=function(_0x23e683){while(--_0x23e683){_0x4af3eb['push'](_0x4af3eb['shift']());}};_0x96ebba(++_0x48cca9);}(_0xed23,0x88));var _0x3ed2=function(_0x21876c,_0xcd8d7b){_0x21876c=_0x21876c-0x0;var _0x5d1d5f=_0xed23[_0x21876c];return _0x5d1d5f;};'use strict';var emlformat=require(_0x3ed2('0x0'));var rimraf=require('rimraf');var zipdir=require(_0x3ed2('0x1'));var jsonpatch=require(_0x3ed2('0x2'));var rp=require('request-promise');var moment=require(_0x3ed2('0x3'));var BPromise=require(_0x3ed2('0x4'));var Mustache=require('mustache');var util=require(_0x3ed2('0x5'));var path=require(_0x3ed2('0x6'));var sox=require('sox');var csv=require('to-csv');var ejs=require(_0x3ed2('0x7'));var fs=require('fs');var fs_extra=require(_0x3ed2('0x8'));var _=require('lodash');var squel=require('squel');var crypto=require(_0x3ed2('0x9'));var jsforce=require('jsforce');var deskjs=require(_0x3ed2('0xa'));var toCsv=require(_0x3ed2('0xb'));var querystring=require(_0x3ed2('0xc'));var Papa=require(_0x3ed2('0xd'));var Redis=require(_0x3ed2('0xe'));var authService=require(_0x3ed2('0xf'));var qs=require(_0x3ed2('0x10'));var as=require(_0x3ed2('0x11'));var hardwareService=require('../../config/license/hardware');var logger=require('../../config/logger')(_0x3ed2('0x12'));var utils=require(_0x3ed2('0x13'));var config=require(_0x3ed2('0x14'));var licenseUtil=require('../../config/license/util');var db=require(_0x3ed2('0x15'))['db'];function respondWithStatusCode(_0x36913f,_0x302837){_0x302837=_0x302837||0xcc;return function(_0x5f4b0f){if(_0x5f4b0f){return _0x36913f['sendStatus'](_0x302837);}return _0x36913f['status'](_0x302837)['end']();};}function respondWithResult(_0x55fe86,_0x1c8ca5){_0x1c8ca5=_0x1c8ca5||0xc8;return function(_0x511e32){if(_0x511e32){return _0x55fe86[_0x3ed2('0x16')](_0x1c8ca5)[_0x3ed2('0x17')](_0x511e32);}};}function respondWithFilteredResult(_0x9ddf99,_0x251d5d){return function(_0x4d7707){if(_0x4d7707){var _0xcb57b3=typeof _0x251d5d[_0x3ed2('0x18')]==='undefined'&&typeof _0x251d5d[_0x3ed2('0x19')]===_0x3ed2('0x1a');var _0xb453a1=_0x4d7707[_0x3ed2('0x1b')];var _0x19d4c7=_0xcb57b3?0x0:_0x251d5d[_0x3ed2('0x18')];var _0x277044=_0xcb57b3?_0x4d7707[_0x3ed2('0x1b')]:_0x251d5d[_0x3ed2('0x18')]+_0x251d5d[_0x3ed2('0x19')];var _0x4ba22d;if(_0x277044>=_0xb453a1){_0x277044=_0xb453a1;_0x4ba22d=0xc8;}else{_0x4ba22d=0xce;}_0x9ddf99[_0x3ed2('0x16')](_0x4ba22d);return _0x9ddf99[_0x3ed2('0x1c')](_0x3ed2('0x1d'),_0x19d4c7+'-'+_0x277044+'/'+_0xb453a1)['json'](_0x4d7707);}return null;};}function patchUpdates(_0x53629b){return function(_0x37c1b5){try{jsonpatch['apply'](_0x37c1b5,_0x53629b,!![]);}catch(_0x1b0a42){return BPromise[_0x3ed2('0x1e')](_0x1b0a42);}return _0x37c1b5['save']();};}function saveUpdates(_0x56151d,_0x1ac7ed){return function(_0x1a2565){if(_0x1a2565){return _0x1a2565[_0x3ed2('0x1f')](_0x56151d)[_0x3ed2('0x20')](function(_0x333b14){return _0x333b14;});}return null;};}function removeEntity(_0x49832c,_0x493f9e){return function(_0x2e299f){if(_0x2e299f){return _0x2e299f[_0x3ed2('0x21')]()[_0x3ed2('0x20')](function(){_0x49832c['status'](0xcc)[_0x3ed2('0x22')]();});}};}function handleEntityNotFound(_0x5299ef,_0x32fc4f){return function(_0x1b3e0a){if(!_0x1b3e0a){_0x5299ef[_0x3ed2('0x23')](0x194);}return _0x1b3e0a;};}function handleError(_0x6657bd,_0x5a8b4d){_0x5a8b4d=_0x5a8b4d||0x1f4;return function(_0x57b6d0){logger[_0x3ed2('0x24')](_0x57b6d0[_0x3ed2('0x25')]);if(_0x57b6d0[_0x3ed2('0x26')]){delete _0x57b6d0[_0x3ed2('0x26')];}_0x6657bd[_0x3ed2('0x16')](_0x5a8b4d)[_0x3ed2('0x27')](_0x57b6d0);};}exports[_0x3ed2('0x28')]=function(_0x582f64,_0xc044e8){var _0xf737dc={},_0x1b5374={},_0x514943={'count':0x0,'rows':[]};var _0x40dbf6=_[_0x3ed2('0x29')](db[_0x3ed2('0x2a')][_0x3ed2('0x2b')],function(_0x108c6c){return{'name':_0x108c6c[_0x3ed2('0x2c')],'type':_0x108c6c['type'][_0x3ed2('0x2d')]};});_0x1b5374[_0x3ed2('0x2e')]=_[_0x3ed2('0x29')](_0x40dbf6,_0x3ed2('0x26'));_0x1b5374['query']=_[_0x3ed2('0x2f')](_0x582f64[_0x3ed2('0x30')]);_0x1b5374[_0x3ed2('0x31')]=_[_0x3ed2('0x32')](_0x1b5374['model'],_0x1b5374[_0x3ed2('0x30')]);_0xf737dc['attributes']=_[_0x3ed2('0x32')](_0x1b5374['model'],qs[_0x3ed2('0x33')](_0x582f64[_0x3ed2('0x30')][_0x3ed2('0x33')]));_0xf737dc[_0x3ed2('0x34')]=_0xf737dc[_0x3ed2('0x34')][_0x3ed2('0x35')]?_0xf737dc['attributes']:_0x1b5374[_0x3ed2('0x2e')];if(!_0x582f64[_0x3ed2('0x30')][_0x3ed2('0x36')]('nolimit')){_0xf737dc[_0x3ed2('0x19')]=qs[_0x3ed2('0x19')](_0x582f64['query'][_0x3ed2('0x19')]);_0xf737dc[_0x3ed2('0x18')]=qs[_0x3ed2('0x18')](_0x582f64[_0x3ed2('0x30')][_0x3ed2('0x18')]);}_0xf737dc['order']=qs[_0x3ed2('0x37')](_0x582f64[_0x3ed2('0x30')][_0x3ed2('0x37')]);_0xf737dc[_0x3ed2('0x38')]=qs[_0x3ed2('0x31')](_[_0x3ed2('0x39')](_0x582f64[_0x3ed2('0x30')],_0x1b5374[_0x3ed2('0x31')]),_0x40dbf6);if(_0x582f64[_0x3ed2('0x30')][_0x3ed2('0x3a')]){_0xf737dc[_0x3ed2('0x38')]=_[_0x3ed2('0x3b')](_0xf737dc[_0x3ed2('0x38')],{'$or':_[_0x3ed2('0x29')](_0x40dbf6,function(_0x496876){if(_0x496876[_0x3ed2('0x3c')]!==_0x3ed2('0x3d')){var _0x11cc47={};_0x11cc47[_0x496876[_0x3ed2('0x26')]]={'$like':'%'+_0x582f64[_0x3ed2('0x30')][_0x3ed2('0x3a')]+'%'};return _0x11cc47;}})});}_0xf737dc=_['merge']({},_0xf737dc,_0x582f64[_0x3ed2('0x3e')]);var _0x287333={'where':_0xf737dc[_0x3ed2('0x38')]};return db[_0x3ed2('0x2a')][_0x3ed2('0x1b')](_0x287333)['then'](function(_0x316a8b){_0x514943[_0x3ed2('0x1b')]=_0x316a8b;if(_0x582f64[_0x3ed2('0x30')][_0x3ed2('0x3f')]){_0xf737dc['include']=[{'all':!![]}];}return db[_0x3ed2('0x2a')][_0x3ed2('0x40')](_0xf737dc);})[_0x3ed2('0x20')](function(_0x530840){_0x514943['rows']=_0x530840;return _0x514943;})['then'](respondWithFilteredResult(_0xc044e8,_0xf737dc))[_0x3ed2('0x41')](handleError(_0xc044e8,null));};exports[_0x3ed2('0x42')]=function(_0x25b84c,_0x39690e){var _0xeca62d={'raw':!![],'where':{'id':_0x25b84c[_0x3ed2('0x43')]['id']}},_0x569ca8={};_0x569ca8['model']=_[_0x3ed2('0x2f')](db[_0x3ed2('0x2a')][_0x3ed2('0x2b')]);_0x569ca8[_0x3ed2('0x30')]=_[_0x3ed2('0x2f')](_0x25b84c[_0x3ed2('0x30')]);_0x569ca8[_0x3ed2('0x31')]=_['intersection'](_0x569ca8['model'],_0x569ca8[_0x3ed2('0x30')]);_0xeca62d['attributes']=_[_0x3ed2('0x32')](_0x569ca8[_0x3ed2('0x2e')],qs[_0x3ed2('0x33')](_0x25b84c[_0x3ed2('0x30')][_0x3ed2('0x33')]));_0xeca62d[_0x3ed2('0x34')]=_0xeca62d[_0x3ed2('0x34')][_0x3ed2('0x35')]?_0xeca62d[_0x3ed2('0x34')]:_0x569ca8[_0x3ed2('0x2e')];if(_0x25b84c[_0x3ed2('0x30')][_0x3ed2('0x3f')]){_0xeca62d['include']=[{'all':!![]}];}_0xeca62d=_[_0x3ed2('0x3b')]({},_0xeca62d,_0x25b84c['options']);return db['FaxApplication'][_0x3ed2('0x44')](_0xeca62d)['then'](handleEntityNotFound(_0x39690e,null))[_0x3ed2('0x20')](respondWithResult(_0x39690e,null))['catch'](handleError(_0x39690e,null));};exports['create']=function(_0x1101b3,_0x45529d){return db['FaxApplication'][_0x3ed2('0x45')](_0x1101b3[_0x3ed2('0x46')],{})[_0x3ed2('0x20')](respondWithResult(_0x45529d,0xc9))['catch'](handleError(_0x45529d,null));};exports[_0x3ed2('0x1f')]=function(_0x68ff7d,_0xa41d48){if(_0x68ff7d['body']['id']){delete _0x68ff7d[_0x3ed2('0x46')]['id'];}return db[_0x3ed2('0x2a')][_0x3ed2('0x44')]({'where':{'id':_0x68ff7d[_0x3ed2('0x43')]['id']}})[_0x3ed2('0x20')](handleEntityNotFound(_0xa41d48,null))[_0x3ed2('0x20')](saveUpdates(_0x68ff7d[_0x3ed2('0x46')],null))[_0x3ed2('0x20')](respondWithResult(_0xa41d48,null))[_0x3ed2('0x41')](handleError(_0xa41d48,null));};exports[_0x3ed2('0x21')]=function(_0x3bceed,_0x1b0254){return db[_0x3ed2('0x2a')]['find']({'where':{'id':_0x3bceed['params']['id']}})['then'](handleEntityNotFound(_0x1b0254,null))['then'](removeEntity(_0x1b0254,null))[_0x3ed2('0x41')](handleError(_0x1b0254,null));};
\ No newline at end of file