Built motion from commit d1eab355.|2.6.28
[motion2.git] / server / api / voiceDialReport / voiceDialReport.controller.js
index a73abc6..9d6503e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x18cf=['querystring','papaparse','ioredis','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','json','offset','undefined','limit','count','set','Content-Range','apply','save','update','destroy','then','error','name','send','index','map','VoiceDialReport','fieldName','type','key','model','query','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','pick','merge','where','options','includeAll','include','findAll','rows','show','params','keys','rawAttributes','find','create','body','catch','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','jsforce','desk.js'];(function(_0xaa0309,_0x1c8008){var _0x5de7ce=function(_0x3aa6ae){while(--_0x3aa6ae){_0xaa0309['push'](_0xaa0309['shift']());}};_0x5de7ce(++_0x1c8008);}(_0x18cf,0x1c9));var _0xf18c=function(_0x40d719,_0x935891){_0x40d719=_0x40d719-0x0;var _0x5713a2=_0x18cf[_0x40d719];return _0x5713a2;};'use strict';var emlformat=require(_0xf18c('0x0'));var rimraf=require(_0xf18c('0x1'));var zipdir=require(_0xf18c('0x2'));var jsonpatch=require(_0xf18c('0x3'));var rp=require(_0xf18c('0x4'));var moment=require(_0xf18c('0x5'));var BPromise=require(_0xf18c('0x6'));var Mustache=require('mustache');var util=require(_0xf18c('0x7'));var path=require(_0xf18c('0x8'));var sox=require(_0xf18c('0x9'));var csv=require(_0xf18c('0xa'));var ejs=require(_0xf18c('0xb'));var fs=require('fs');var fs_extra=require(_0xf18c('0xc'));var _=require(_0xf18c('0xd'));var squel=require(_0xf18c('0xe'));var crypto=require('crypto');var jsforce=require(_0xf18c('0xf'));var deskjs=require(_0xf18c('0x10'));var toCsv=require(_0xf18c('0xa'));var querystring=require(_0xf18c('0x11'));var Papa=require(_0xf18c('0x12'));var Redis=require(_0xf18c('0x13'));var authService=require('../../components/auth/service');var qs=require(_0xf18c('0x14'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xf18c('0x15'));var logger=require(_0xf18c('0x16'))(_0xf18c('0x17'));var utils=require(_0xf18c('0x18'));var config=require(_0xf18c('0x19'));var licenseUtil=require('../../config/license/util');var db=require(_0xf18c('0x1a'))['db'];function respondWithStatusCode(_0x18423b,_0x265a2b){_0x265a2b=_0x265a2b||0xcc;return function(_0x1324a0){if(_0x1324a0){return _0x18423b[_0xf18c('0x1b')](_0x265a2b);}return _0x18423b[_0xf18c('0x1c')](_0x265a2b)[_0xf18c('0x1d')]();};}function respondWithResult(_0x477d1a,_0x3ddb10){_0x3ddb10=_0x3ddb10||0xc8;return function(_0x582f61){if(_0x582f61){return _0x477d1a[_0xf18c('0x1c')](_0x3ddb10)[_0xf18c('0x1e')](_0x582f61);}};}function respondWithFilteredResult(_0x1b21b1,_0x3f868d){return function(_0x5eb761){if(_0x5eb761){var _0x374dba=typeof _0x3f868d[_0xf18c('0x1f')]===_0xf18c('0x20')&&typeof _0x3f868d[_0xf18c('0x21')]==='undefined';var _0x4bdda4=_0x5eb761[_0xf18c('0x22')];var _0x5ab29e=_0x374dba?0x0:_0x3f868d[_0xf18c('0x1f')];var _0x29762d=_0x374dba?_0x5eb761[_0xf18c('0x22')]:_0x3f868d['offset']+_0x3f868d['limit'];var _0x114703;if(_0x29762d>=_0x4bdda4){_0x29762d=_0x4bdda4;_0x114703=0xc8;}else{_0x114703=0xce;}_0x1b21b1[_0xf18c('0x1c')](_0x114703);return _0x1b21b1[_0xf18c('0x23')](_0xf18c('0x24'),_0x5ab29e+'-'+_0x29762d+'/'+_0x4bdda4)['json'](_0x5eb761);}return null;};}function patchUpdates(_0x4d5dbd){return function(_0x2fafad){try{jsonpatch[_0xf18c('0x25')](_0x2fafad,_0x4d5dbd,!![]);}catch(_0x1c6c8a){return BPromise['reject'](_0x1c6c8a);}return _0x2fafad[_0xf18c('0x26')]();};}function saveUpdates(_0xb71399,_0x1765ff){return function(_0x55d552){if(_0x55d552){return _0x55d552[_0xf18c('0x27')](_0xb71399)['then'](function(_0x237ea5){return _0x237ea5;});}return null;};}function removeEntity(_0x493e1e,_0x2ca1b0){return function(_0x26ee97){if(_0x26ee97){return _0x26ee97[_0xf18c('0x28')]()[_0xf18c('0x29')](function(){_0x493e1e['status'](0xcc)[_0xf18c('0x1d')]();});}};}function handleEntityNotFound(_0x19cfb9,_0x361b9c){return function(_0x19ca81){if(!_0x19ca81){_0x19cfb9[_0xf18c('0x1b')](0x194);}return _0x19ca81;};}function handleError(_0x1f1d06,_0x109a29){_0x109a29=_0x109a29||0x1f4;return function(_0x5237e6){logger[_0xf18c('0x2a')](_0x5237e6['stack']);if(_0x5237e6[_0xf18c('0x2b')]){delete _0x5237e6[_0xf18c('0x2b')];}_0x1f1d06[_0xf18c('0x1c')](_0x109a29)[_0xf18c('0x2c')](_0x5237e6);};}exports[_0xf18c('0x2d')]=function(_0x139269,_0xef2652){var _0x35aeb7={},_0x12e69b={},_0x409422={'count':0x0,'rows':[]};var _0x451b80=_[_0xf18c('0x2e')](db[_0xf18c('0x2f')]['rawAttributes'],function(_0x48b51a){return{'name':_0x48b51a[_0xf18c('0x30')],'type':_0x48b51a[_0xf18c('0x31')][_0xf18c('0x32')]};});_0x12e69b[_0xf18c('0x33')]=_[_0xf18c('0x2e')](_0x451b80,_0xf18c('0x2b'));_0x12e69b[_0xf18c('0x34')]=_['keys'](_0x139269[_0xf18c('0x34')]);_0x12e69b[_0xf18c('0x35')]=_[_0xf18c('0x36')](_0x12e69b[_0xf18c('0x33')],_0x12e69b['query']);_0x35aeb7[_0xf18c('0x37')]=_[_0xf18c('0x36')](_0x12e69b[_0xf18c('0x33')],qs['fields'](_0x139269[_0xf18c('0x34')][_0xf18c('0x38')]));_0x35aeb7['attributes']=_0x35aeb7[_0xf18c('0x37')][_0xf18c('0x39')]?_0x35aeb7['attributes']:_0x12e69b[_0xf18c('0x33')];if(!_0x139269['query'][_0xf18c('0x3a')](_0xf18c('0x3b'))){_0x35aeb7[_0xf18c('0x21')]=qs['limit'](_0x139269[_0xf18c('0x34')][_0xf18c('0x21')]);_0x35aeb7[_0xf18c('0x1f')]=qs['offset'](_0x139269['query']['offset']);}_0x35aeb7[_0xf18c('0x3c')]=qs['sort'](_0x139269[_0xf18c('0x34')][_0xf18c('0x3d')]);_0x35aeb7['where']=qs[_0xf18c('0x35')](_[_0xf18c('0x3e')](_0x139269['query'],_0x12e69b[_0xf18c('0x35')]),_0x451b80);if(_0x139269[_0xf18c('0x34')]['filter']){_0x35aeb7['where']=_[_0xf18c('0x3f')](_0x35aeb7[_0xf18c('0x40')],{'$or':_[_0xf18c('0x2e')](_0x451b80,function(_0x1370ef){if(_0x1370ef['type']!=='VIRTUAL'){var _0x1658e3={};_0x1658e3[_0x1370ef['name']]={'$like':'%'+_0x139269[_0xf18c('0x34')]['filter']+'%'};return _0x1658e3;}})});}_0x35aeb7=_[_0xf18c('0x3f')]({},_0x35aeb7,_0x139269[_0xf18c('0x41')]);var _0x203f69={'where':_0x35aeb7[_0xf18c('0x40')]};return db[_0xf18c('0x2f')][_0xf18c('0x22')](_0x203f69)[_0xf18c('0x29')](function(_0xc27c11){_0x409422[_0xf18c('0x22')]=_0xc27c11;if(_0x139269['query'][_0xf18c('0x42')]){_0x35aeb7[_0xf18c('0x43')]=[{'all':!![]}];}return db[_0xf18c('0x2f')][_0xf18c('0x44')](_0x35aeb7);})['then'](function(_0x5a8fa4){_0x409422[_0xf18c('0x45')]=_0x5a8fa4;return _0x409422;})['then'](respondWithFilteredResult(_0xef2652,_0x35aeb7))['catch'](handleError(_0xef2652,null));};exports[_0xf18c('0x46')]=function(_0x353e5b,_0x59e576){var _0x4476ec={'raw':!![],'where':{'id':_0x353e5b[_0xf18c('0x47')]['id']}},_0x46fe7a={};_0x46fe7a[_0xf18c('0x33')]=_[_0xf18c('0x48')](db[_0xf18c('0x2f')][_0xf18c('0x49')]);_0x46fe7a[_0xf18c('0x34')]=_['keys'](_0x353e5b[_0xf18c('0x34')]);_0x46fe7a[_0xf18c('0x35')]=_[_0xf18c('0x36')](_0x46fe7a[_0xf18c('0x33')],_0x46fe7a[_0xf18c('0x34')]);_0x4476ec[_0xf18c('0x37')]=_[_0xf18c('0x36')](_0x46fe7a['model'],qs[_0xf18c('0x38')](_0x353e5b[_0xf18c('0x34')][_0xf18c('0x38')]));_0x4476ec[_0xf18c('0x37')]=_0x4476ec[_0xf18c('0x37')][_0xf18c('0x39')]?_0x4476ec[_0xf18c('0x37')]:_0x46fe7a[_0xf18c('0x33')];if(_0x353e5b[_0xf18c('0x34')][_0xf18c('0x42')]){_0x4476ec[_0xf18c('0x43')]=[{'all':!![]}];}_0x4476ec=_[_0xf18c('0x3f')]({},_0x4476ec,_0x353e5b[_0xf18c('0x41')]);return db[_0xf18c('0x2f')][_0xf18c('0x4a')](_0x4476ec)['then'](handleEntityNotFound(_0x59e576,null))[_0xf18c('0x29')](respondWithResult(_0x59e576,null))['catch'](handleError(_0x59e576,null));};exports[_0xf18c('0x4b')]=function(_0x1c2feb,_0x4c4a14){return db[_0xf18c('0x2f')]['create'](_0x1c2feb[_0xf18c('0x4c')],{})['then'](respondWithResult(_0x4c4a14,0xc9))[_0xf18c('0x4d')](handleError(_0x4c4a14,null));};exports['update']=function(_0x4d2773,_0x14277a){if(_0x4d2773[_0xf18c('0x4c')]['id']){delete _0x4d2773['body']['id'];}return db[_0xf18c('0x2f')][_0xf18c('0x4a')]({'where':{'id':_0x4d2773[_0xf18c('0x47')]['id']}})[_0xf18c('0x29')](handleEntityNotFound(_0x14277a,null))[_0xf18c('0x29')](saveUpdates(_0x4d2773[_0xf18c('0x4c')],null))[_0xf18c('0x29')](respondWithResult(_0x14277a,null))[_0xf18c('0x4d')](handleError(_0x14277a,null));};exports[_0xf18c('0x28')]=function(_0x668b4d,_0x348f75){return db[_0xf18c('0x2f')][_0xf18c('0x4a')]({'where':{'id':_0x668b4d['params']['id']}})['then'](handleEntityNotFound(_0x348f75,null))['then'](removeEntity(_0x348f75,null))[_0xf18c('0x4d')](handleError(_0x348f75,null));};exports[_0xf18c('0x4e')]=function(_0x5d895a,_0x2772a4){return db[_0xf18c('0x2f')][_0xf18c('0x4e')]()[_0xf18c('0x29')](respondWithResult(_0x2772a4,null))[_0xf18c('0x4d')](handleError(_0x2772a4,null));};
\ No newline at end of file
+var _0xb892=['type','key','model','map','query','intersection','fields','attributes','nolimit','sort','where','filters','pick','VIRTUAL','filter','options','includeAll','include','findAll','catch','params','keys','length','merge','create','body','find','describe','eml-format','rimraf','fast-json-patch','bluebird','mustache','util','sox','to-csv','fs-extra','lodash','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','json','limit','undefined','count','offset','set','Content-Range','apply','reject','save','update','then','destroy','end','error','stack','name','index','VoiceDialReport','rawAttributes','fieldName'];(function(_0x26b80e,_0x5c9333){var _0x84a8a8=function(_0x2e5b4a){while(--_0x2e5b4a){_0x26b80e['push'](_0x26b80e['shift']());}};_0x84a8a8(++_0x5c9333);}(_0xb892,0x1d2));var _0x2b89=function(_0x22f8ab,_0x15d8ff){_0x22f8ab=_0x22f8ab-0x0;var _0x2a70e5=_0xb892[_0x22f8ab];return _0x2a70e5;};'use strict';var emlformat=require(_0x2b89('0x0'));var rimraf=require(_0x2b89('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0x2b89('0x2'));var rp=require('request-promise');var moment=require('moment');var BPromise=require(_0x2b89('0x3'));var Mustache=require(_0x2b89('0x4'));var util=require(_0x2b89('0x5'));var path=require('path');var sox=require(_0x2b89('0x6'));var csv=require(_0x2b89('0x7'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x2b89('0x8'));var _=require(_0x2b89('0x9'));var squel=require('squel');var crypto=require('crypto');var jsforce=require('jsforce');var deskjs=require(_0x2b89('0xa'));var toCsv=require(_0x2b89('0x7'));var querystring=require(_0x2b89('0xb'));var Papa=require(_0x2b89('0xc'));var Redis=require(_0x2b89('0xd'));var authService=require(_0x2b89('0xe'));var qs=require(_0x2b89('0xf'));var as=require(_0x2b89('0x10'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x2b89('0x11'))(_0x2b89('0x12'));var utils=require(_0x2b89('0x13'));var config=require(_0x2b89('0x14'));var licenseUtil=require('../../config/license/util');var db=require(_0x2b89('0x15'))['db'];function respondWithStatusCode(_0x5868cd,_0x4c2af0){_0x4c2af0=_0x4c2af0||0xcc;return function(_0xa1d066){if(_0xa1d066){return _0x5868cd[_0x2b89('0x16')](_0x4c2af0);}return _0x5868cd[_0x2b89('0x17')](_0x4c2af0)['end']();};}function respondWithResult(_0x15b4a7,_0x9f2fc6){_0x9f2fc6=_0x9f2fc6||0xc8;return function(_0x14e576){if(_0x14e576){return _0x15b4a7['status'](_0x9f2fc6)[_0x2b89('0x18')](_0x14e576);}};}function respondWithFilteredResult(_0x1b0f15,_0xc1bac7){return function(_0x5747ab){if(_0x5747ab){var _0x45a60a=typeof _0xc1bac7['offset']==='undefined'&&typeof _0xc1bac7[_0x2b89('0x19')]===_0x2b89('0x1a');var _0x4bbeb5=_0x5747ab[_0x2b89('0x1b')];var _0x388f8b=_0x45a60a?0x0:_0xc1bac7[_0x2b89('0x1c')];var _0x1880c4=_0x45a60a?_0x5747ab['count']:_0xc1bac7[_0x2b89('0x1c')]+_0xc1bac7[_0x2b89('0x19')];var _0x4523fe;if(_0x1880c4>=_0x4bbeb5){_0x1880c4=_0x4bbeb5;_0x4523fe=0xc8;}else{_0x4523fe=0xce;}_0x1b0f15[_0x2b89('0x17')](_0x4523fe);return _0x1b0f15[_0x2b89('0x1d')](_0x2b89('0x1e'),_0x388f8b+'-'+_0x1880c4+'/'+_0x4bbeb5)[_0x2b89('0x18')](_0x5747ab);}return null;};}function patchUpdates(_0x11e578){return function(_0xd84fef){try{jsonpatch[_0x2b89('0x1f')](_0xd84fef,_0x11e578,!![]);}catch(_0x2be5c5){return BPromise[_0x2b89('0x20')](_0x2be5c5);}return _0xd84fef[_0x2b89('0x21')]();};}function saveUpdates(_0x5a3c2a,_0x220f46){return function(_0x9d80c){if(_0x9d80c){return _0x9d80c[_0x2b89('0x22')](_0x5a3c2a)[_0x2b89('0x23')](function(_0x3b6233){return _0x3b6233;});}return null;};}function removeEntity(_0x4f22f9,_0x18eb18){return function(_0x17475f){if(_0x17475f){return _0x17475f[_0x2b89('0x24')]()[_0x2b89('0x23')](function(){_0x4f22f9[_0x2b89('0x17')](0xcc)[_0x2b89('0x25')]();});}};}function handleEntityNotFound(_0x5dbf23,_0x54c45e){return function(_0x56b963){if(!_0x56b963){_0x5dbf23[_0x2b89('0x16')](0x194);}return _0x56b963;};}function handleError(_0x49a8dd,_0x112ccd){_0x112ccd=_0x112ccd||0x1f4;return function(_0x35c078){logger[_0x2b89('0x26')](_0x35c078[_0x2b89('0x27')]);if(_0x35c078[_0x2b89('0x28')]){delete _0x35c078[_0x2b89('0x28')];}_0x49a8dd[_0x2b89('0x17')](_0x112ccd)['send'](_0x35c078);};}exports[_0x2b89('0x29')]=function(_0x2d3b72,_0x1774f0){var _0x1907c7={},_0x4dea6c={},_0x4ee990={'count':0x0,'rows':[]};var _0x10d024=_['map'](db[_0x2b89('0x2a')][_0x2b89('0x2b')],function(_0x44b9ae){return{'name':_0x44b9ae[_0x2b89('0x2c')],'type':_0x44b9ae[_0x2b89('0x2d')][_0x2b89('0x2e')]};});_0x4dea6c[_0x2b89('0x2f')]=_[_0x2b89('0x30')](_0x10d024,_0x2b89('0x28'));_0x4dea6c[_0x2b89('0x31')]=_['keys'](_0x2d3b72[_0x2b89('0x31')]);_0x4dea6c['filters']=_[_0x2b89('0x32')](_0x4dea6c[_0x2b89('0x2f')],_0x4dea6c[_0x2b89('0x31')]);_0x1907c7['attributes']=_[_0x2b89('0x32')](_0x4dea6c[_0x2b89('0x2f')],qs[_0x2b89('0x33')](_0x2d3b72['query']['fields']));_0x1907c7[_0x2b89('0x34')]=_0x1907c7[_0x2b89('0x34')]['length']?_0x1907c7[_0x2b89('0x34')]:_0x4dea6c[_0x2b89('0x2f')];if(!_0x2d3b72['query']['hasOwnProperty'](_0x2b89('0x35'))){_0x1907c7[_0x2b89('0x19')]=qs[_0x2b89('0x19')](_0x2d3b72[_0x2b89('0x31')][_0x2b89('0x19')]);_0x1907c7['offset']=qs[_0x2b89('0x1c')](_0x2d3b72[_0x2b89('0x31')][_0x2b89('0x1c')]);}_0x1907c7['order']=qs[_0x2b89('0x36')](_0x2d3b72['query'][_0x2b89('0x36')]);_0x1907c7[_0x2b89('0x37')]=qs[_0x2b89('0x38')](_[_0x2b89('0x39')](_0x2d3b72[_0x2b89('0x31')],_0x4dea6c[_0x2b89('0x38')]),_0x10d024);if(_0x2d3b72[_0x2b89('0x31')]['filter']){_0x1907c7[_0x2b89('0x37')]=_['merge'](_0x1907c7['where'],{'$or':_['map'](_0x10d024,function(_0x24f484){if(_0x24f484[_0x2b89('0x2d')]!==_0x2b89('0x3a')){var _0x210cb3={};_0x210cb3[_0x24f484[_0x2b89('0x28')]]={'$like':'%'+_0x2d3b72[_0x2b89('0x31')][_0x2b89('0x3b')]+'%'};return _0x210cb3;}})});}_0x1907c7=_['merge']({},_0x1907c7,_0x2d3b72[_0x2b89('0x3c')]);var _0x2761bd={'where':_0x1907c7[_0x2b89('0x37')]};return db[_0x2b89('0x2a')][_0x2b89('0x1b')](_0x2761bd)[_0x2b89('0x23')](function(_0x316f29){_0x4ee990['count']=_0x316f29;if(_0x2d3b72[_0x2b89('0x31')][_0x2b89('0x3d')]){_0x1907c7[_0x2b89('0x3e')]=[{'all':!![]}];}return db[_0x2b89('0x2a')][_0x2b89('0x3f')](_0x1907c7);})[_0x2b89('0x23')](function(_0xc78b48){_0x4ee990['rows']=_0xc78b48;return _0x4ee990;})['then'](respondWithFilteredResult(_0x1774f0,_0x1907c7))[_0x2b89('0x40')](handleError(_0x1774f0,null));};exports['show']=function(_0x5826d4,_0x7eec72){var _0x3480b1={'raw':!![],'where':{'id':_0x5826d4[_0x2b89('0x41')]['id']}},_0x26283b={};_0x26283b[_0x2b89('0x2f')]=_['keys'](db[_0x2b89('0x2a')][_0x2b89('0x2b')]);_0x26283b[_0x2b89('0x31')]=_[_0x2b89('0x42')](_0x5826d4['query']);_0x26283b[_0x2b89('0x38')]=_[_0x2b89('0x32')](_0x26283b[_0x2b89('0x2f')],_0x26283b[_0x2b89('0x31')]);_0x3480b1[_0x2b89('0x34')]=_[_0x2b89('0x32')](_0x26283b[_0x2b89('0x2f')],qs['fields'](_0x5826d4[_0x2b89('0x31')]['fields']));_0x3480b1['attributes']=_0x3480b1['attributes'][_0x2b89('0x43')]?_0x3480b1[_0x2b89('0x34')]:_0x26283b[_0x2b89('0x2f')];if(_0x5826d4['query'][_0x2b89('0x3d')]){_0x3480b1[_0x2b89('0x3e')]=[{'all':!![]}];}_0x3480b1=_[_0x2b89('0x44')]({},_0x3480b1,_0x5826d4[_0x2b89('0x3c')]);return db[_0x2b89('0x2a')]['find'](_0x3480b1)['then'](handleEntityNotFound(_0x7eec72,null))[_0x2b89('0x23')](respondWithResult(_0x7eec72,null))[_0x2b89('0x40')](handleError(_0x7eec72,null));};exports[_0x2b89('0x45')]=function(_0x3998c6,_0x480612){return db[_0x2b89('0x2a')][_0x2b89('0x45')](_0x3998c6[_0x2b89('0x46')],{})[_0x2b89('0x23')](respondWithResult(_0x480612,0xc9))[_0x2b89('0x40')](handleError(_0x480612,null));};exports['update']=function(_0x3cf036,_0x39f210){if(_0x3cf036[_0x2b89('0x46')]['id']){delete _0x3cf036['body']['id'];}return db['VoiceDialReport'][_0x2b89('0x47')]({'where':{'id':_0x3cf036['params']['id']}})[_0x2b89('0x23')](handleEntityNotFound(_0x39f210,null))[_0x2b89('0x23')](saveUpdates(_0x3cf036[_0x2b89('0x46')],null))[_0x2b89('0x23')](respondWithResult(_0x39f210,null))[_0x2b89('0x40')](handleError(_0x39f210,null));};exports[_0x2b89('0x24')]=function(_0x33b190,_0x151193){return db[_0x2b89('0x2a')][_0x2b89('0x47')]({'where':{'id':_0x33b190[_0x2b89('0x41')]['id']}})[_0x2b89('0x23')](handleEntityNotFound(_0x151193,null))[_0x2b89('0x23')](removeEntity(_0x151193,null))[_0x2b89('0x40')](handleError(_0x151193,null));};exports['describe']=function(_0x58a5ee,_0x283a6c){return db[_0x2b89('0x2a')][_0x2b89('0x48')]()[_0x2b89('0x23')](respondWithResult(_0x283a6c,null))['catch'](handleError(_0x283a6c,null));};
\ No newline at end of file