Built motion from commit 0900f080.|2.5.45
[motion2.git] / server / api / voiceDialReport / voiceDialReport.controller.js
index 115020f..878ce2c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0f0b=['mustache','to-csv','lodash','crypto','jsforce','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','end','offset','apply','update','then','error','stack','name','send','index','map','VoiceDialReport','rawAttributes','fieldName','key','query','keys','filters','model','attributes','intersection','fields','length','limit','where','pick','filter','merge','type','VIRTUAL','options','count','includeAll','findAll','rows','show','include','find','catch','create','body','params','destroy','describe','html-pdf','rimraf','fast-json-patch','request-promise','bluebird'];(function(_0x1008d2,_0x1e1c1a){var _0x2c44dc=function(_0x5ec270){while(--_0x5ec270){_0x1008d2['push'](_0x1008d2['shift']());}};_0x2c44dc(++_0x1e1c1a);}(_0x0f0b,0x18d));var _0xb0f0=function(_0x4cb6f2,_0x3426c5){_0x4cb6f2=_0x4cb6f2-0x0;var _0x156155=_0x0f0b[_0x4cb6f2];return _0x156155;};'use strict';var pdf=require(_0xb0f0('0x0'));var emlformat=require('eml-format');var rimraf=require(_0xb0f0('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0xb0f0('0x2'));var rp=require(_0xb0f0('0x3'));var moment=require('moment');var BPromise=require(_0xb0f0('0x4'));var Mustache=require(_0xb0f0('0x5'));var util=require('util');var path=require('path');var sox=require('sox');var csv=require(_0xb0f0('0x6'));var ejs=require('ejs');var fs=require('fs');var _=require(_0xb0f0('0x7'));var squel=require('squel');var crypto=require(_0xb0f0('0x8'));var jsforce=require(_0xb0f0('0x9'));var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require(_0xb0f0('0xa'));var Papa=require(_0xb0f0('0xb'));var Redis=require(_0xb0f0('0xc'));var authService=require(_0xb0f0('0xd'));var qs=require(_0xb0f0('0xe'));var as=require(_0xb0f0('0xf'));var hardwareService=require(_0xb0f0('0x10'));var logger=require(_0xb0f0('0x11'))('api');var utils=require(_0xb0f0('0x12'));var config=require(_0xb0f0('0x13'));var licenseUtil=require(_0xb0f0('0x14'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x44a4e6,_0x2fef82){_0x2fef82=_0x2fef82||0xcc;return function(_0xc249ab){if(_0xc249ab){return _0x44a4e6[_0xb0f0('0x15')](_0x2fef82);}return _0x44a4e6[_0xb0f0('0x16')](_0x2fef82)[_0xb0f0('0x17')]();};}function respondWithResult(_0x354e3f,_0x5d140b){_0x5d140b=_0x5d140b||0xc8;return function(_0x54c95d){if(_0x54c95d){return _0x354e3f[_0xb0f0('0x16')](_0x5d140b)['json'](_0x54c95d);}};}function respondWithFilteredResult(_0x3a23,_0x3aaf59){return function(_0x393c02){if(_0x393c02){var _0x3997ff=_0x393c02['count'],_0x15a506=_0x3aaf59[_0xb0f0('0x18')],_0x3b207f=_0x3aaf59[_0xb0f0('0x18')]+_0x3aaf59['limit'],_0x36402b;if(_0x3b207f>=_0x3997ff){_0x3b207f=_0x3997ff;_0x36402b=0xc8;}else{_0x36402b=0xce;}_0x3a23[_0xb0f0('0x16')](_0x36402b);return _0x3a23['set']('Content-Range',_0x15a506+'-'+_0x3b207f+'/'+_0x3997ff)['json'](_0x393c02);}return null;};}function patchUpdates(_0x56ba0e){return function(_0x385655){try{jsonpatch[_0xb0f0('0x19')](_0x385655,_0x56ba0e,!![]);}catch(_0x424bc8){return BPromise['reject'](_0x424bc8);}return _0x385655['save']();};}function saveUpdates(_0x41b75c,_0xb7a37b){return function(_0x3e3110){if(_0x3e3110){return _0x3e3110[_0xb0f0('0x1a')](_0x41b75c)[_0xb0f0('0x1b')](function(_0x15e029){return _0x15e029;});}return null;};}function removeEntity(_0x509728,_0x596998){return function(_0x5ae9bc){if(_0x5ae9bc){return _0x5ae9bc['destroy']()['then'](function(){_0x509728[_0xb0f0('0x16')](0xcc)[_0xb0f0('0x17')]();});}};}function handleEntityNotFound(_0x192922,_0x14b81a){return function(_0x35460b){if(!_0x35460b){_0x192922['sendStatus'](0x194);}return _0x35460b;};}function handleError(_0x4f242a,_0x20dac2){_0x20dac2=_0x20dac2||0x1f4;return function(_0x396326){logger[_0xb0f0('0x1c')](_0x396326[_0xb0f0('0x1d')]);if(_0x396326[_0xb0f0('0x1e')]){delete _0x396326[_0xb0f0('0x1e')];}_0x4f242a['status'](_0x20dac2)[_0xb0f0('0x1f')](_0x396326);};}exports[_0xb0f0('0x20')]=function(_0x285269,_0x5e818e){var _0x1e33e4={},_0x105919={},_0x2e9da7={'count':0x0,'rows':[]};var _0x556620=_[_0xb0f0('0x21')](db[_0xb0f0('0x22')][_0xb0f0('0x23')],function(_0x169684){return{'name':_0x169684[_0xb0f0('0x24')],'type':_0x169684['type'][_0xb0f0('0x25')]};});_0x105919['model']=_[_0xb0f0('0x21')](_0x556620,_0xb0f0('0x1e'));_0x105919[_0xb0f0('0x26')]=_[_0xb0f0('0x27')](_0x285269['query']);_0x105919[_0xb0f0('0x28')]=_['intersection'](_0x105919[_0xb0f0('0x29')],_0x105919[_0xb0f0('0x26')]);_0x1e33e4[_0xb0f0('0x2a')]=_[_0xb0f0('0x2b')](_0x105919[_0xb0f0('0x29')],qs[_0xb0f0('0x2c')](_0x285269[_0xb0f0('0x26')]['fields']));_0x1e33e4['attributes']=_0x1e33e4[_0xb0f0('0x2a')][_0xb0f0('0x2d')]?_0x1e33e4['attributes']:_0x105919[_0xb0f0('0x29')];if(!_0x285269['query']['hasOwnProperty']('nolimit')){_0x1e33e4['limit']=qs[_0xb0f0('0x2e')](_0x285269[_0xb0f0('0x26')][_0xb0f0('0x2e')]);_0x1e33e4[_0xb0f0('0x18')]=qs[_0xb0f0('0x18')](_0x285269[_0xb0f0('0x26')]['offset']);}_0x1e33e4['order']=qs['sort'](_0x285269['query']['sort']);_0x1e33e4[_0xb0f0('0x2f')]=qs[_0xb0f0('0x28')](_[_0xb0f0('0x30')](_0x285269[_0xb0f0('0x26')],_0x105919[_0xb0f0('0x28')]),_0x556620);if(_0x285269[_0xb0f0('0x26')][_0xb0f0('0x31')]){_0x1e33e4[_0xb0f0('0x2f')]=_[_0xb0f0('0x32')](_0x1e33e4[_0xb0f0('0x2f')],{'$or':_[_0xb0f0('0x21')](_0x556620,function(_0x4a2b9e){if(_0x4a2b9e[_0xb0f0('0x33')]!==_0xb0f0('0x34')){var _0x270a22={};_0x270a22[_0x4a2b9e[_0xb0f0('0x1e')]]={'$like':'%'+_0x285269['query'][_0xb0f0('0x31')]+'%'};return _0x270a22;}})});}_0x1e33e4=_[_0xb0f0('0x32')]({},_0x1e33e4,_0x285269[_0xb0f0('0x35')]);var _0x34fd6a={'where':_0x1e33e4['where']};return db[_0xb0f0('0x22')][_0xb0f0('0x36')](_0x34fd6a)['then'](function(_0x4b2930){_0x2e9da7[_0xb0f0('0x36')]=_0x4b2930;if(_0x285269[_0xb0f0('0x26')][_0xb0f0('0x37')]){_0x1e33e4['include']=[{'all':!![]}];}return db['VoiceDialReport'][_0xb0f0('0x38')](_0x1e33e4);})['then'](function(_0x21e9cc){_0x2e9da7[_0xb0f0('0x39')]=_0x21e9cc;return _0x2e9da7;})['then'](respondWithFilteredResult(_0x5e818e,_0x1e33e4))['catch'](handleError(_0x5e818e,null));};exports[_0xb0f0('0x3a')]=function(_0x481e70,_0x4b85ff){var _0xc77562={'raw':!![],'where':{'id':_0x481e70['params']['id']}},_0x31fc09={};_0x31fc09[_0xb0f0('0x29')]=_[_0xb0f0('0x27')](db[_0xb0f0('0x22')][_0xb0f0('0x23')]);_0x31fc09[_0xb0f0('0x26')]=_['keys'](_0x481e70['query']);_0x31fc09[_0xb0f0('0x28')]=_['intersection'](_0x31fc09[_0xb0f0('0x29')],_0x31fc09[_0xb0f0('0x26')]);_0xc77562[_0xb0f0('0x2a')]=_['intersection'](_0x31fc09[_0xb0f0('0x29')],qs[_0xb0f0('0x2c')](_0x481e70[_0xb0f0('0x26')][_0xb0f0('0x2c')]));_0xc77562[_0xb0f0('0x2a')]=_0xc77562['attributes'][_0xb0f0('0x2d')]?_0xc77562[_0xb0f0('0x2a')]:_0x31fc09[_0xb0f0('0x29')];if(_0x481e70[_0xb0f0('0x26')][_0xb0f0('0x37')]){_0xc77562[_0xb0f0('0x3b')]=[{'all':!![]}];}_0xc77562=_[_0xb0f0('0x32')]({},_0xc77562,_0x481e70[_0xb0f0('0x35')]);return db[_0xb0f0('0x22')][_0xb0f0('0x3c')](_0xc77562)[_0xb0f0('0x1b')](handleEntityNotFound(_0x4b85ff,null))[_0xb0f0('0x1b')](respondWithResult(_0x4b85ff,null))[_0xb0f0('0x3d')](handleError(_0x4b85ff,null));};exports[_0xb0f0('0x3e')]=function(_0x846b30,_0x58892e){return db[_0xb0f0('0x22')]['create'](_0x846b30[_0xb0f0('0x3f')],{})[_0xb0f0('0x1b')](respondWithResult(_0x58892e,0xc9))[_0xb0f0('0x3d')](handleError(_0x58892e,null));};exports[_0xb0f0('0x1a')]=function(_0x168062,_0x57f86f){if(_0x168062[_0xb0f0('0x3f')]['id']){delete _0x168062[_0xb0f0('0x3f')]['id'];}return db['VoiceDialReport']['find']({'where':{'id':_0x168062[_0xb0f0('0x40')]['id']}})[_0xb0f0('0x1b')](handleEntityNotFound(_0x57f86f,null))[_0xb0f0('0x1b')](saveUpdates(_0x168062[_0xb0f0('0x3f')],null))[_0xb0f0('0x1b')](respondWithResult(_0x57f86f,null))['catch'](handleError(_0x57f86f,null));};exports[_0xb0f0('0x41')]=function(_0x3b7f19,_0x223b32){return db[_0xb0f0('0x22')][_0xb0f0('0x3c')]({'where':{'id':_0x3b7f19['params']['id']}})['then'](handleEntityNotFound(_0x223b32,null))[_0xb0f0('0x1b')](removeEntity(_0x223b32,null))[_0xb0f0('0x3d')](handleError(_0x223b32,null));};exports[_0xb0f0('0x42')]=function(_0x1a6e4b,_0x3cc4f5){return db[_0xb0f0('0x22')]['describe']()['then'](respondWithResult(_0x3cc4f5,null))[_0xb0f0('0x3d')](handleError(_0x3cc4f5,null));};
\ No newline at end of file
+var _0xa904=['set','reject','save','update','then','destroy','end','sendStatus','error','name','send','index','map','VoiceDialReport','rawAttributes','type','key','model','query','keys','attributes','intersection','fields','length','order','sort','where','filters','pick','merge','VIRTUAL','filter','includeAll','include','findAll','rows','catch','show','params','options','create','body','find','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','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'];(function(_0x5436a1,_0x43ce08){var _0x46c586=function(_0x622b2b){while(--_0x622b2b){_0x5436a1['push'](_0x5436a1['shift']());}};_0x46c586(++_0x43ce08);}(_0xa904,0x1b7));var _0x4a90=function(_0x28fbe3,_0x4ac6f8){_0x28fbe3=_0x28fbe3-0x0;var _0x45db6a=_0xa904[_0x28fbe3];return _0x45db6a;};'use strict';var emlformat=require(_0x4a90('0x0'));var rimraf=require(_0x4a90('0x1'));var zipdir=require(_0x4a90('0x2'));var jsonpatch=require(_0x4a90('0x3'));var rp=require(_0x4a90('0x4'));var moment=require(_0x4a90('0x5'));var BPromise=require(_0x4a90('0x6'));var Mustache=require(_0x4a90('0x7'));var util=require(_0x4a90('0x8'));var path=require(_0x4a90('0x9'));var sox=require('sox');var csv=require(_0x4a90('0xa'));var ejs=require(_0x4a90('0xb'));var fs=require('fs');var fs_extra=require(_0x4a90('0xc'));var _=require(_0x4a90('0xd'));var squel=require(_0x4a90('0xe'));var crypto=require(_0x4a90('0xf'));var jsforce=require(_0x4a90('0x10'));var deskjs=require(_0x4a90('0x11'));var toCsv=require(_0x4a90('0xa'));var querystring=require('querystring');var Papa=require(_0x4a90('0x12'));var Redis=require(_0x4a90('0x13'));var authService=require(_0x4a90('0x14'));var qs=require(_0x4a90('0x15'));var as=require(_0x4a90('0x16'));var hardwareService=require(_0x4a90('0x17'));var logger=require(_0x4a90('0x18'))(_0x4a90('0x19'));var utils=require('../../config/utils');var config=require(_0x4a90('0x1a'));var licenseUtil=require(_0x4a90('0x1b'));var db=require(_0x4a90('0x1c'))['db'];function respondWithStatusCode(_0x26aa44,_0x48e830){_0x48e830=_0x48e830||0xcc;return function(_0x5849cf){if(_0x5849cf){return _0x26aa44['sendStatus'](_0x48e830);}return _0x26aa44[_0x4a90('0x1d')](_0x48e830)['end']();};}function respondWithResult(_0x46be8a,_0xa4369f){_0xa4369f=_0xa4369f||0xc8;return function(_0x574266){if(_0x574266){return _0x46be8a[_0x4a90('0x1d')](_0xa4369f)[_0x4a90('0x1e')](_0x574266);}};}function respondWithFilteredResult(_0x44187a,_0x35ea09){return function(_0x4f4024){if(_0x4f4024){var _0xb789c6=typeof _0x35ea09['offset']===_0x4a90('0x1f')&&typeof _0x35ea09[_0x4a90('0x20')]===_0x4a90('0x1f');var _0x434561=_0x4f4024[_0x4a90('0x21')];var _0x440c27=_0xb789c6?0x0:_0x35ea09[_0x4a90('0x22')];var _0x2e5b40=_0xb789c6?_0x4f4024[_0x4a90('0x21')]:_0x35ea09[_0x4a90('0x22')]+_0x35ea09[_0x4a90('0x20')];var _0x4532a8;if(_0x2e5b40>=_0x434561){_0x2e5b40=_0x434561;_0x4532a8=0xc8;}else{_0x4532a8=0xce;}_0x44187a[_0x4a90('0x1d')](_0x4532a8);return _0x44187a[_0x4a90('0x23')]('Content-Range',_0x440c27+'-'+_0x2e5b40+'/'+_0x434561)[_0x4a90('0x1e')](_0x4f4024);}return null;};}function patchUpdates(_0x2584ce){return function(_0x27b979){try{jsonpatch['apply'](_0x27b979,_0x2584ce,!![]);}catch(_0x1bbb56){return BPromise[_0x4a90('0x24')](_0x1bbb56);}return _0x27b979[_0x4a90('0x25')]();};}function saveUpdates(_0x4602f5,_0x4e8c94){return function(_0x549896){if(_0x549896){return _0x549896[_0x4a90('0x26')](_0x4602f5)[_0x4a90('0x27')](function(_0xcb023e){return _0xcb023e;});}return null;};}function removeEntity(_0x40aa54,_0x4bc2c8){return function(_0x1165c8){if(_0x1165c8){return _0x1165c8[_0x4a90('0x28')]()[_0x4a90('0x27')](function(){_0x40aa54[_0x4a90('0x1d')](0xcc)[_0x4a90('0x29')]();});}};}function handleEntityNotFound(_0x9b2dfd,_0x5e9f9f){return function(_0x581fd6){if(!_0x581fd6){_0x9b2dfd[_0x4a90('0x2a')](0x194);}return _0x581fd6;};}function handleError(_0x265c7a,_0x23b7a2){_0x23b7a2=_0x23b7a2||0x1f4;return function(_0x9c1c82){logger[_0x4a90('0x2b')](_0x9c1c82['stack']);if(_0x9c1c82['name']){delete _0x9c1c82[_0x4a90('0x2c')];}_0x265c7a[_0x4a90('0x1d')](_0x23b7a2)[_0x4a90('0x2d')](_0x9c1c82);};}exports[_0x4a90('0x2e')]=function(_0x31ec43,_0x16a053){var _0x16e41a={},_0x5f0277={},_0x6019b6={'count':0x0,'rows':[]};var _0x113ec9=_[_0x4a90('0x2f')](db[_0x4a90('0x30')][_0x4a90('0x31')],function(_0x55ff4e){return{'name':_0x55ff4e['fieldName'],'type':_0x55ff4e[_0x4a90('0x32')][_0x4a90('0x33')]};});_0x5f0277[_0x4a90('0x34')]=_[_0x4a90('0x2f')](_0x113ec9,_0x4a90('0x2c'));_0x5f0277[_0x4a90('0x35')]=_[_0x4a90('0x36')](_0x31ec43[_0x4a90('0x35')]);_0x5f0277['filters']=_['intersection'](_0x5f0277[_0x4a90('0x34')],_0x5f0277['query']);_0x16e41a[_0x4a90('0x37')]=_[_0x4a90('0x38')](_0x5f0277['model'],qs[_0x4a90('0x39')](_0x31ec43[_0x4a90('0x35')][_0x4a90('0x39')]));_0x16e41a[_0x4a90('0x37')]=_0x16e41a[_0x4a90('0x37')][_0x4a90('0x3a')]?_0x16e41a[_0x4a90('0x37')]:_0x5f0277['model'];if(!_0x31ec43[_0x4a90('0x35')]['hasOwnProperty']('nolimit')){_0x16e41a[_0x4a90('0x20')]=qs['limit'](_0x31ec43[_0x4a90('0x35')][_0x4a90('0x20')]);_0x16e41a[_0x4a90('0x22')]=qs[_0x4a90('0x22')](_0x31ec43[_0x4a90('0x35')][_0x4a90('0x22')]);}_0x16e41a[_0x4a90('0x3b')]=qs[_0x4a90('0x3c')](_0x31ec43[_0x4a90('0x35')][_0x4a90('0x3c')]);_0x16e41a[_0x4a90('0x3d')]=qs[_0x4a90('0x3e')](_[_0x4a90('0x3f')](_0x31ec43[_0x4a90('0x35')],_0x5f0277['filters']),_0x113ec9);if(_0x31ec43[_0x4a90('0x35')]['filter']){_0x16e41a['where']=_[_0x4a90('0x40')](_0x16e41a[_0x4a90('0x3d')],{'$or':_[_0x4a90('0x2f')](_0x113ec9,function(_0x20f774){if(_0x20f774[_0x4a90('0x32')]!==_0x4a90('0x41')){var _0x1fbd9d={};_0x1fbd9d[_0x20f774[_0x4a90('0x2c')]]={'$like':'%'+_0x31ec43[_0x4a90('0x35')][_0x4a90('0x42')]+'%'};return _0x1fbd9d;}})});}_0x16e41a=_[_0x4a90('0x40')]({},_0x16e41a,_0x31ec43['options']);var _0x4b4e3d={'where':_0x16e41a[_0x4a90('0x3d')]};return db[_0x4a90('0x30')]['count'](_0x4b4e3d)[_0x4a90('0x27')](function(_0x47d070){_0x6019b6[_0x4a90('0x21')]=_0x47d070;if(_0x31ec43[_0x4a90('0x35')][_0x4a90('0x43')]){_0x16e41a[_0x4a90('0x44')]=[{'all':!![]}];}return db[_0x4a90('0x30')][_0x4a90('0x45')](_0x16e41a);})[_0x4a90('0x27')](function(_0x47ab4e){_0x6019b6[_0x4a90('0x46')]=_0x47ab4e;return _0x6019b6;})['then'](respondWithFilteredResult(_0x16a053,_0x16e41a))[_0x4a90('0x47')](handleError(_0x16a053,null));};exports[_0x4a90('0x48')]=function(_0x1e0648,_0x56361e){var _0x377bca={'raw':!![],'where':{'id':_0x1e0648[_0x4a90('0x49')]['id']}},_0x4c0a46={};_0x4c0a46[_0x4a90('0x34')]=_['keys'](db['VoiceDialReport'][_0x4a90('0x31')]);_0x4c0a46[_0x4a90('0x35')]=_[_0x4a90('0x36')](_0x1e0648[_0x4a90('0x35')]);_0x4c0a46['filters']=_[_0x4a90('0x38')](_0x4c0a46[_0x4a90('0x34')],_0x4c0a46[_0x4a90('0x35')]);_0x377bca[_0x4a90('0x37')]=_[_0x4a90('0x38')](_0x4c0a46['model'],qs[_0x4a90('0x39')](_0x1e0648['query'][_0x4a90('0x39')]));_0x377bca[_0x4a90('0x37')]=_0x377bca[_0x4a90('0x37')]['length']?_0x377bca[_0x4a90('0x37')]:_0x4c0a46[_0x4a90('0x34')];if(_0x1e0648['query']['includeAll']){_0x377bca[_0x4a90('0x44')]=[{'all':!![]}];}_0x377bca=_[_0x4a90('0x40')]({},_0x377bca,_0x1e0648[_0x4a90('0x4a')]);return db['VoiceDialReport']['find'](_0x377bca)[_0x4a90('0x27')](handleEntityNotFound(_0x56361e,null))[_0x4a90('0x27')](respondWithResult(_0x56361e,null))[_0x4a90('0x47')](handleError(_0x56361e,null));};exports[_0x4a90('0x4b')]=function(_0x589b04,_0x377421){return db[_0x4a90('0x30')][_0x4a90('0x4b')](_0x589b04['body'],{})[_0x4a90('0x27')](respondWithResult(_0x377421,0xc9))[_0x4a90('0x47')](handleError(_0x377421,null));};exports[_0x4a90('0x26')]=function(_0x5c3ff0,_0xce55c1){if(_0x5c3ff0[_0x4a90('0x4c')]['id']){delete _0x5c3ff0['body']['id'];}return db[_0x4a90('0x30')][_0x4a90('0x4d')]({'where':{'id':_0x5c3ff0[_0x4a90('0x49')]['id']}})[_0x4a90('0x27')](handleEntityNotFound(_0xce55c1,null))[_0x4a90('0x27')](saveUpdates(_0x5c3ff0[_0x4a90('0x4c')],null))[_0x4a90('0x27')](respondWithResult(_0xce55c1,null))[_0x4a90('0x47')](handleError(_0xce55c1,null));};exports[_0x4a90('0x28')]=function(_0x417528,_0x2d4149){return db[_0x4a90('0x30')][_0x4a90('0x4d')]({'where':{'id':_0x417528[_0x4a90('0x49')]['id']}})[_0x4a90('0x27')](handleEntityNotFound(_0x2d4149,null))[_0x4a90('0x27')](removeEntity(_0x2d4149,null))[_0x4a90('0x47')](handleError(_0x2d4149,null));};exports[_0x4a90('0x4e')]=function(_0x24ab93,_0x310861){return db[_0x4a90('0x30')]['describe']()[_0x4a90('0x27')](respondWithResult(_0x310861,null))[_0x4a90('0x47')](handleError(_0x310861,null));};
\ No newline at end of file