Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / voiceDialReport / voiceDialReport.controller.js
index 5eb779d..386b598 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf358=['fast-json-patch','request-promise','moment','bluebird','mustache','util','path','ejs','squel','crypto','jsforce','desk.js','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','sendStatus','status','json','count','offset','limit','set','apply','reject','save','update','destroy','then','end','error','stack','name','send','VoiceDialReport','rawAttributes','fieldName','type','key','model','query','filters','intersection','fields','attributes','nolimit','order','sort','where','pick','filter','merge','map','VIRTUAL','options','catch','show','keys','length','includeAll','include','find','create','body','params','describe','eml-format','rimraf'];(function(_0x1d0fa0,_0x4b9319){var _0x3e4c27=function(_0x1a1be5){while(--_0x1a1be5){_0x1d0fa0['push'](_0x1d0fa0['shift']());}};_0x3e4c27(++_0x4b9319);}(_0xf358,0x17a));var _0x8f35=function(_0x1aefad,_0x23de54){_0x1aefad=_0x1aefad-0x0;var _0x30f502=_0xf358[_0x1aefad];return _0x30f502;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0x8f35('0x0'));var rimraf=require(_0x8f35('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0x8f35('0x2'));var rp=require(_0x8f35('0x3'));var moment=require(_0x8f35('0x4'));var BPromise=require(_0x8f35('0x5'));var Mustache=require(_0x8f35('0x6'));var util=require(_0x8f35('0x7'));var path=require(_0x8f35('0x8'));var sox=require('sox');var csv=require('to-csv');var ejs=require(_0x8f35('0x9'));var fs=require('fs');var _=require('lodash');var squel=require(_0x8f35('0xa'));var crypto=require(_0x8f35('0xb'));var jsforce=require(_0x8f35('0xc'));var deskjs=require(_0x8f35('0xd'));var toCsv=require(_0x8f35('0xe'));var querystring=require(_0x8f35('0xf'));var Papa=require(_0x8f35('0x10'));var Redis=require(_0x8f35('0x11'));var authService=require(_0x8f35('0x12'));var qs=require(_0x8f35('0x13'));var as=require(_0x8f35('0x14'));var hardwareService=require(_0x8f35('0x15'));var logger=require(_0x8f35('0x16'))(_0x8f35('0x17'));var utils=require(_0x8f35('0x18'));var config=require(_0x8f35('0x19'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0xfa80fe,_0xcf36b1){_0xcf36b1=_0xcf36b1||0xcc;return function(_0x1b0f9b){if(_0x1b0f9b){return _0xfa80fe[_0x8f35('0x1a')](_0xcf36b1);}return _0xfa80fe[_0x8f35('0x1b')](_0xcf36b1)['end']();};}function respondWithResult(_0x26d0fa,_0x5e1ffc){_0x5e1ffc=_0x5e1ffc||0xc8;return function(_0x54e38b){if(_0x54e38b){return _0x26d0fa['status'](_0x5e1ffc)[_0x8f35('0x1c')](_0x54e38b);}};}function respondWithFilteredResult(_0x3a634f,_0x1306df){return function(_0xeae6ae){if(_0xeae6ae){var _0x277a2c=_0xeae6ae[_0x8f35('0x1d')],_0x7a8f52=_0x1306df['offset'],_0x21a57f=_0x1306df[_0x8f35('0x1e')]+_0x1306df[_0x8f35('0x1f')],_0x3553a6;if(_0x21a57f>=_0x277a2c){_0x21a57f=_0x277a2c;_0x3553a6=0xc8;}else{_0x3553a6=0xce;}_0x3a634f[_0x8f35('0x1b')](_0x3553a6);return _0x3a634f[_0x8f35('0x20')]('Content-Range',_0x7a8f52+'-'+_0x21a57f+'/'+_0x277a2c)[_0x8f35('0x1c')](_0xeae6ae);}return null;};}function patchUpdates(_0x2c878d){return function(_0x5f45dd){try{jsonpatch[_0x8f35('0x21')](_0x5f45dd,_0x2c878d,!![]);}catch(_0x4269ae){return BPromise[_0x8f35('0x22')](_0x4269ae);}return _0x5f45dd[_0x8f35('0x23')]();};}function saveUpdates(_0x56f295,_0x5b82f2){return function(_0x59f2dd){if(_0x59f2dd){return _0x59f2dd[_0x8f35('0x24')](_0x56f295)['then'](function(_0x2eb4a0){return _0x2eb4a0;});}return null;};}function removeEntity(_0xa3a05d,_0x47a845){return function(_0x59e95d){if(_0x59e95d){return _0x59e95d[_0x8f35('0x25')]()[_0x8f35('0x26')](function(){_0xa3a05d[_0x8f35('0x1b')](0xcc)[_0x8f35('0x27')]();});}};}function handleEntityNotFound(_0x3fd688,_0xc705){return function(_0x1ff258){if(!_0x1ff258){_0x3fd688[_0x8f35('0x1a')](0x194);}return _0x1ff258;};}function handleError(_0xc09d43,_0x1114ea){_0x1114ea=_0x1114ea||0x1f4;return function(_0x12b66c){logger[_0x8f35('0x28')](_0x12b66c[_0x8f35('0x29')]);if(_0x12b66c['name']){delete _0x12b66c[_0x8f35('0x2a')];}_0xc09d43['status'](_0x1114ea)[_0x8f35('0x2b')](_0x12b66c);};}exports['index']=function(_0x28632e,_0xfb3b78){var _0x32dc86={},_0x5a7daf={},_0x4cadf0={'count':0x0,'rows':[]};var _0x394df=_['map'](db[_0x8f35('0x2c')][_0x8f35('0x2d')],function(_0x31a495){return{'name':_0x31a495[_0x8f35('0x2e')],'type':_0x31a495[_0x8f35('0x2f')][_0x8f35('0x30')]};});_0x5a7daf[_0x8f35('0x31')]=_['map'](_0x394df,_0x8f35('0x2a'));_0x5a7daf['query']=_['keys'](_0x28632e[_0x8f35('0x32')]);_0x5a7daf[_0x8f35('0x33')]=_[_0x8f35('0x34')](_0x5a7daf['model'],_0x5a7daf['query']);_0x32dc86['attributes']=_[_0x8f35('0x34')](_0x5a7daf['model'],qs[_0x8f35('0x35')](_0x28632e['query'][_0x8f35('0x35')]));_0x32dc86[_0x8f35('0x36')]=_0x32dc86['attributes']['length']?_0x32dc86['attributes']:_0x5a7daf[_0x8f35('0x31')];if(!_0x28632e['query']['hasOwnProperty'](_0x8f35('0x37'))){_0x32dc86['limit']=qs[_0x8f35('0x1f')](_0x28632e[_0x8f35('0x32')][_0x8f35('0x1f')]);_0x32dc86[_0x8f35('0x1e')]=qs[_0x8f35('0x1e')](_0x28632e[_0x8f35('0x32')][_0x8f35('0x1e')]);}_0x32dc86[_0x8f35('0x38')]=qs[_0x8f35('0x39')](_0x28632e['query']['sort']);_0x32dc86[_0x8f35('0x3a')]=qs['filters'](_[_0x8f35('0x3b')](_0x28632e[_0x8f35('0x32')],_0x5a7daf['filters']));if(_0x28632e[_0x8f35('0x32')][_0x8f35('0x3c')]){_0x32dc86[_0x8f35('0x3a')]=_[_0x8f35('0x3d')](_0x32dc86[_0x8f35('0x3a')],{'$or':_[_0x8f35('0x3e')](_0x394df,function(_0x320d87){if(_0x320d87[_0x8f35('0x2f')]!==_0x8f35('0x3f')){var _0x1b088c={};_0x1b088c[_0x320d87[_0x8f35('0x2a')]]={'$like':'%'+_0x28632e[_0x8f35('0x32')][_0x8f35('0x3c')]+'%'};return _0x1b088c;}})});}_0x32dc86=_[_0x8f35('0x3d')]({},_0x32dc86,_0x28632e[_0x8f35('0x40')]);var _0x155d0a={'where':_0x32dc86[_0x8f35('0x3a')]};return db['VoiceDialReport'][_0x8f35('0x1d')](_0x155d0a)[_0x8f35('0x26')](function(_0x4a98b7){_0x4cadf0[_0x8f35('0x1d')]=_0x4a98b7;if(_0x28632e[_0x8f35('0x32')]['includeAll']){_0x32dc86['include']=[{'all':!![]}];}return db[_0x8f35('0x2c')]['findAll'](_0x32dc86);})['then'](function(_0x3a6040){_0x4cadf0['rows']=_0x3a6040;return _0x4cadf0;})[_0x8f35('0x26')](respondWithFilteredResult(_0xfb3b78,_0x32dc86))[_0x8f35('0x41')](handleError(_0xfb3b78,null));};exports[_0x8f35('0x42')]=function(_0x29ad79,_0x47dd0f){var _0x2bc70c={'raw':!![],'where':{'id':_0x29ad79['params']['id']}},_0x30d30c={};_0x30d30c['model']=_[_0x8f35('0x43')](db[_0x8f35('0x2c')][_0x8f35('0x2d')]);_0x30d30c[_0x8f35('0x32')]=_['keys'](_0x29ad79['query']);_0x30d30c['filters']=_[_0x8f35('0x34')](_0x30d30c[_0x8f35('0x31')],_0x30d30c[_0x8f35('0x32')]);_0x2bc70c[_0x8f35('0x36')]=_['intersection'](_0x30d30c['model'],qs[_0x8f35('0x35')](_0x29ad79[_0x8f35('0x32')]['fields']));_0x2bc70c[_0x8f35('0x36')]=_0x2bc70c[_0x8f35('0x36')][_0x8f35('0x44')]?_0x2bc70c['attributes']:_0x30d30c[_0x8f35('0x31')];if(_0x29ad79[_0x8f35('0x32')][_0x8f35('0x45')]){_0x2bc70c[_0x8f35('0x46')]=[{'all':!![]}];}_0x2bc70c=_[_0x8f35('0x3d')]({},_0x2bc70c,_0x29ad79[_0x8f35('0x40')]);return db[_0x8f35('0x2c')][_0x8f35('0x47')](_0x2bc70c)['then'](handleEntityNotFound(_0x47dd0f,null))[_0x8f35('0x26')](respondWithResult(_0x47dd0f,null))['catch'](handleError(_0x47dd0f,null));};exports[_0x8f35('0x48')]=function(_0x3c1249,_0x1e69fa){return db[_0x8f35('0x2c')][_0x8f35('0x48')](_0x3c1249[_0x8f35('0x49')],{})['then'](respondWithResult(_0x1e69fa,0xc9))[_0x8f35('0x41')](handleError(_0x1e69fa,null));};exports['update']=function(_0x576c50,_0x42d1e3){if(_0x576c50[_0x8f35('0x49')]['id']){delete _0x576c50[_0x8f35('0x49')]['id'];}return db[_0x8f35('0x2c')][_0x8f35('0x47')]({'where':{'id':_0x576c50[_0x8f35('0x4a')]['id']}})[_0x8f35('0x26')](handleEntityNotFound(_0x42d1e3,null))['then'](saveUpdates(_0x576c50['body'],null))[_0x8f35('0x26')](respondWithResult(_0x42d1e3,null))[_0x8f35('0x41')](handleError(_0x42d1e3,null));};exports[_0x8f35('0x25')]=function(_0x430505,_0x16a41f){return db[_0x8f35('0x2c')][_0x8f35('0x47')]({'where':{'id':_0x430505[_0x8f35('0x4a')]['id']}})['then'](handleEntityNotFound(_0x16a41f,null))['then'](removeEntity(_0x16a41f,null))[_0x8f35('0x41')](handleError(_0x16a41f,null));};exports[_0x8f35('0x4b')]=function(_0x1ec4ea,_0x41e5ad){return db[_0x8f35('0x2c')]['describe']()[_0x8f35('0x26')](respondWithResult(_0x41e5ad,null))[_0x8f35('0x41')](handleError(_0x41e5ad,null));};
\ No newline at end of file
+var _0xacc5=['stack','name','send','index','map','VoiceDialReport','rawAttributes','fieldName','type','key','model','query','filters','intersection','attributes','fields','hasOwnProperty','sort','pick','filter','where','merge','VIRTUAL','options','includeAll','rows','show','params','keys','length','include','catch','create','body','find','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','mustache','util','path','sox','to-csv','fs-extra','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','end','status','json','offset','undefined','limit','count','set','Content-Range','save','update','then','destroy','error'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xacc5,0x15c));var _0x5acc=function(_0x59ee6f,_0x450239){_0x59ee6f=_0x59ee6f-0x0;var _0x4c0979=_0xacc5[_0x59ee6f];return _0x4c0979;};'use strict';var emlformat=require(_0x5acc('0x0'));var rimraf=require(_0x5acc('0x1'));var zipdir=require(_0x5acc('0x2'));var jsonpatch=require(_0x5acc('0x3'));var rp=require(_0x5acc('0x4'));var moment=require(_0x5acc('0x5'));var BPromise=require('bluebird');var Mustache=require(_0x5acc('0x6'));var util=require(_0x5acc('0x7'));var path=require(_0x5acc('0x8'));var sox=require(_0x5acc('0x9'));var csv=require(_0x5acc('0xa'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x5acc('0xb'));var _=require('lodash');var squel=require(_0x5acc('0xc'));var crypto=require(_0x5acc('0xd'));var jsforce=require(_0x5acc('0xe'));var deskjs=require(_0x5acc('0xf'));var toCsv=require(_0x5acc('0xa'));var querystring=require(_0x5acc('0x10'));var Papa=require(_0x5acc('0x11'));var Redis=require(_0x5acc('0x12'));var authService=require('../../components/auth/service');var qs=require(_0x5acc('0x13'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x5acc('0x14'));var logger=require(_0x5acc('0x15'))(_0x5acc('0x16'));var utils=require(_0x5acc('0x17'));var config=require(_0x5acc('0x18'));var licenseUtil=require(_0x5acc('0x19'));var db=require(_0x5acc('0x1a'))['db'];function respondWithStatusCode(_0x52268c,_0x55e411){_0x55e411=_0x55e411||0xcc;return function(_0x3ed967){if(_0x3ed967){return _0x52268c[_0x5acc('0x1b')](_0x55e411);}return _0x52268c['status'](_0x55e411)[_0x5acc('0x1c')]();};}function respondWithResult(_0x36706b,_0x504d0b){_0x504d0b=_0x504d0b||0xc8;return function(_0x6a9b16){if(_0x6a9b16){return _0x36706b[_0x5acc('0x1d')](_0x504d0b)[_0x5acc('0x1e')](_0x6a9b16);}};}function respondWithFilteredResult(_0x2acf94,_0x1bd31a){return function(_0x1de419){if(_0x1de419){var _0x105c43=typeof _0x1bd31a[_0x5acc('0x1f')]===_0x5acc('0x20')&&typeof _0x1bd31a[_0x5acc('0x21')]===_0x5acc('0x20');var _0x39322b=_0x1de419[_0x5acc('0x22')];var _0x884a46=_0x105c43?0x0:_0x1bd31a[_0x5acc('0x1f')];var _0x3f5d13=_0x105c43?_0x1de419[_0x5acc('0x22')]:_0x1bd31a['offset']+_0x1bd31a[_0x5acc('0x21')];var _0x285fe5;if(_0x3f5d13>=_0x39322b){_0x3f5d13=_0x39322b;_0x285fe5=0xc8;}else{_0x285fe5=0xce;}_0x2acf94[_0x5acc('0x1d')](_0x285fe5);return _0x2acf94[_0x5acc('0x23')](_0x5acc('0x24'),_0x884a46+'-'+_0x3f5d13+'/'+_0x39322b)[_0x5acc('0x1e')](_0x1de419);}return null;};}function patchUpdates(_0xf9452a){return function(_0x2cb52d){try{jsonpatch['apply'](_0x2cb52d,_0xf9452a,!![]);}catch(_0x3a4b62){return BPromise['reject'](_0x3a4b62);}return _0x2cb52d[_0x5acc('0x25')]();};}function saveUpdates(_0x4ebb3a,_0x56f7c7){return function(_0x5cb301){if(_0x5cb301){return _0x5cb301[_0x5acc('0x26')](_0x4ebb3a)[_0x5acc('0x27')](function(_0x5dacab){return _0x5dacab;});}return null;};}function removeEntity(_0xd52649,_0x53b1e2){return function(_0x175237){if(_0x175237){return _0x175237[_0x5acc('0x28')]()['then'](function(){_0xd52649[_0x5acc('0x1d')](0xcc)[_0x5acc('0x1c')]();});}};}function handleEntityNotFound(_0x1f7faa,_0x21e08c){return function(_0x2ba7bf){if(!_0x2ba7bf){_0x1f7faa['sendStatus'](0x194);}return _0x2ba7bf;};}function handleError(_0x3dc0ee,_0x59cafe){_0x59cafe=_0x59cafe||0x1f4;return function(_0x472a3e){logger[_0x5acc('0x29')](_0x472a3e[_0x5acc('0x2a')]);if(_0x472a3e[_0x5acc('0x2b')]){delete _0x472a3e[_0x5acc('0x2b')];}_0x3dc0ee[_0x5acc('0x1d')](_0x59cafe)[_0x5acc('0x2c')](_0x472a3e);};}exports[_0x5acc('0x2d')]=function(_0x254785,_0x3ae70f){var _0x56d9ae={},_0xe51bdb={},_0x2f181b={'count':0x0,'rows':[]};var _0x28c187=_[_0x5acc('0x2e')](db[_0x5acc('0x2f')][_0x5acc('0x30')],function(_0x2b8d3e){return{'name':_0x2b8d3e[_0x5acc('0x31')],'type':_0x2b8d3e[_0x5acc('0x32')][_0x5acc('0x33')]};});_0xe51bdb[_0x5acc('0x34')]=_[_0x5acc('0x2e')](_0x28c187,'name');_0xe51bdb[_0x5acc('0x35')]=_['keys'](_0x254785[_0x5acc('0x35')]);_0xe51bdb[_0x5acc('0x36')]=_[_0x5acc('0x37')](_0xe51bdb[_0x5acc('0x34')],_0xe51bdb[_0x5acc('0x35')]);_0x56d9ae[_0x5acc('0x38')]=_[_0x5acc('0x37')](_0xe51bdb['model'],qs[_0x5acc('0x39')](_0x254785[_0x5acc('0x35')][_0x5acc('0x39')]));_0x56d9ae[_0x5acc('0x38')]=_0x56d9ae[_0x5acc('0x38')]['length']?_0x56d9ae[_0x5acc('0x38')]:_0xe51bdb[_0x5acc('0x34')];if(!_0x254785[_0x5acc('0x35')][_0x5acc('0x3a')]('nolimit')){_0x56d9ae[_0x5acc('0x21')]=qs[_0x5acc('0x21')](_0x254785['query'][_0x5acc('0x21')]);_0x56d9ae[_0x5acc('0x1f')]=qs[_0x5acc('0x1f')](_0x254785['query']['offset']);}_0x56d9ae['order']=qs['sort'](_0x254785['query'][_0x5acc('0x3b')]);_0x56d9ae['where']=qs[_0x5acc('0x36')](_[_0x5acc('0x3c')](_0x254785['query'],_0xe51bdb[_0x5acc('0x36')]),_0x28c187);if(_0x254785[_0x5acc('0x35')][_0x5acc('0x3d')]){_0x56d9ae[_0x5acc('0x3e')]=_[_0x5acc('0x3f')](_0x56d9ae[_0x5acc('0x3e')],{'$or':_[_0x5acc('0x2e')](_0x28c187,function(_0x3f4148){if(_0x3f4148['type']!==_0x5acc('0x40')){var _0x787ab0={};_0x787ab0[_0x3f4148[_0x5acc('0x2b')]]={'$like':'%'+_0x254785[_0x5acc('0x35')][_0x5acc('0x3d')]+'%'};return _0x787ab0;}})});}_0x56d9ae=_[_0x5acc('0x3f')]({},_0x56d9ae,_0x254785[_0x5acc('0x41')]);var _0x1c439b={'where':_0x56d9ae[_0x5acc('0x3e')]};return db[_0x5acc('0x2f')]['count'](_0x1c439b)[_0x5acc('0x27')](function(_0x3a798){_0x2f181b[_0x5acc('0x22')]=_0x3a798;if(_0x254785[_0x5acc('0x35')][_0x5acc('0x42')]){_0x56d9ae['include']=[{'all':!![]}];}return db['VoiceDialReport']['findAll'](_0x56d9ae);})[_0x5acc('0x27')](function(_0x5ba337){_0x2f181b[_0x5acc('0x43')]=_0x5ba337;return _0x2f181b;})['then'](respondWithFilteredResult(_0x3ae70f,_0x56d9ae))['catch'](handleError(_0x3ae70f,null));};exports[_0x5acc('0x44')]=function(_0x419812,_0x475d26){var _0x34d288={'raw':!![],'where':{'id':_0x419812[_0x5acc('0x45')]['id']}},_0xe9fbea={};_0xe9fbea[_0x5acc('0x34')]=_['keys'](db[_0x5acc('0x2f')]['rawAttributes']);_0xe9fbea[_0x5acc('0x35')]=_[_0x5acc('0x46')](_0x419812[_0x5acc('0x35')]);_0xe9fbea[_0x5acc('0x36')]=_[_0x5acc('0x37')](_0xe9fbea[_0x5acc('0x34')],_0xe9fbea['query']);_0x34d288[_0x5acc('0x38')]=_[_0x5acc('0x37')](_0xe9fbea['model'],qs[_0x5acc('0x39')](_0x419812[_0x5acc('0x35')][_0x5acc('0x39')]));_0x34d288[_0x5acc('0x38')]=_0x34d288['attributes'][_0x5acc('0x47')]?_0x34d288[_0x5acc('0x38')]:_0xe9fbea[_0x5acc('0x34')];if(_0x419812['query'][_0x5acc('0x42')]){_0x34d288[_0x5acc('0x48')]=[{'all':!![]}];}_0x34d288=_[_0x5acc('0x3f')]({},_0x34d288,_0x419812['options']);return db['VoiceDialReport']['find'](_0x34d288)[_0x5acc('0x27')](handleEntityNotFound(_0x475d26,null))[_0x5acc('0x27')](respondWithResult(_0x475d26,null))[_0x5acc('0x49')](handleError(_0x475d26,null));};exports[_0x5acc('0x4a')]=function(_0x5e2812,_0x5cb0a4){return db[_0x5acc('0x2f')][_0x5acc('0x4a')](_0x5e2812[_0x5acc('0x4b')],{})[_0x5acc('0x27')](respondWithResult(_0x5cb0a4,0xc9))[_0x5acc('0x49')](handleError(_0x5cb0a4,null));};exports[_0x5acc('0x26')]=function(_0x4c9c4c,_0x4e64e3){if(_0x4c9c4c['body']['id']){delete _0x4c9c4c[_0x5acc('0x4b')]['id'];}return db[_0x5acc('0x2f')][_0x5acc('0x4c')]({'where':{'id':_0x4c9c4c[_0x5acc('0x45')]['id']}})['then'](handleEntityNotFound(_0x4e64e3,null))[_0x5acc('0x27')](saveUpdates(_0x4c9c4c[_0x5acc('0x4b')],null))['then'](respondWithResult(_0x4e64e3,null))[_0x5acc('0x49')](handleError(_0x4e64e3,null));};exports['destroy']=function(_0x44b2bd,_0xba9491){return db['VoiceDialReport']['find']({'where':{'id':_0x44b2bd[_0x5acc('0x45')]['id']}})['then'](handleEntityNotFound(_0xba9491,null))[_0x5acc('0x27')](removeEntity(_0xba9491,null))[_0x5acc('0x49')](handleError(_0xba9491,null));};exports[_0x5acc('0x4d')]=function(_0x10bd20,_0x3020b8){return db[_0x5acc('0x2f')]['describe']()[_0x5acc('0x27')](respondWithResult(_0x3020b8,null))[_0x5acc('0x49')](handleError(_0x3020b8,null));};
\ No newline at end of file