Built motion from commit 449495f6.|2.6.27
[motion2.git] / server / api / voiceDialReport / voiceDialReport.controller.js
index ae77079..956babf 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc5ff=['params','intersection','catch','body','find','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','mustache','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','querystring','papaparse','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../mysqldb','sendStatus','status','end','json','offset','limit','apply','reject','save','then','destroy','stack','name','map','rawAttributes','fieldName','type','key','model','query','keys','filters','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','filter','merge','VIRTUAL','options','VoiceDialReport','count','includeAll','include','findAll','rows','show'];(function(_0x235f7f,_0x5ea1a0){var _0x33ea79=function(_0x114e4c){while(--_0x114e4c){_0x235f7f['push'](_0x235f7f['shift']());}};_0x33ea79(++_0x5ea1a0);}(_0xc5ff,0x169));var _0xfc5f=function(_0x9d0c86,_0x54ef56){_0x9d0c86=_0x9d0c86-0x0;var _0x49cec8=_0xc5ff[_0x9d0c86];return _0x49cec8;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0xfc5f('0x0'));var rimraf=require(_0xfc5f('0x1'));var zipdir=require(_0xfc5f('0x2'));var jsonpatch=require(_0xfc5f('0x3'));var rp=require(_0xfc5f('0x4'));var moment=require('moment');var BPromise=require('bluebird');var Mustache=require(_0xfc5f('0x5'));var util=require('util');var path=require(_0xfc5f('0x6'));var sox=require(_0xfc5f('0x7'));var csv=require(_0xfc5f('0x8'));var ejs=require(_0xfc5f('0x9'));var fs=require('fs');var _=require(_0xfc5f('0xa'));var squel=require(_0xfc5f('0xb'));var crypto=require(_0xfc5f('0xc'));var jsforce=require(_0xfc5f('0xd'));var deskjs=require('desk.js');var toCsv=require(_0xfc5f('0x8'));var querystring=require(_0xfc5f('0xe'));var Papa=require(_0xfc5f('0xf'));var Redis=require(_0xfc5f('0x10'));var authService=require('../../components/auth/service');var qs=require(_0xfc5f('0x11'));var as=require(_0xfc5f('0x12'));var hardwareService=require(_0xfc5f('0x13'));var logger=require(_0xfc5f('0x14'))(_0xfc5f('0x15'));var utils=require(_0xfc5f('0x16'));var config=require('../../config/environment');var licenseUtil=require('../../config/license/util');var db=require(_0xfc5f('0x17'))['db'];function respondWithStatusCode(_0x927476,_0x1aba93){_0x1aba93=_0x1aba93||0xcc;return function(_0x5915ac){if(_0x5915ac){return _0x927476[_0xfc5f('0x18')](_0x1aba93);}return _0x927476[_0xfc5f('0x19')](_0x1aba93)[_0xfc5f('0x1a')]();};}function respondWithResult(_0x488457,_0x2e1f42){_0x2e1f42=_0x2e1f42||0xc8;return function(_0x2a2ce8){if(_0x2a2ce8){return _0x488457[_0xfc5f('0x19')](_0x2e1f42)[_0xfc5f('0x1b')](_0x2a2ce8);}};}function respondWithFilteredResult(_0x2e6752,_0x578955){return function(_0x13cd33){if(_0x13cd33){var _0x331f1d=_0x13cd33['count'],_0x23a872=_0x578955[_0xfc5f('0x1c')],_0xb6cc25=_0x578955['offset']+_0x578955[_0xfc5f('0x1d')],_0x15cab1;if(_0xb6cc25>=_0x331f1d){_0xb6cc25=_0x331f1d;_0x15cab1=0xc8;}else{_0x15cab1=0xce;}_0x2e6752['status'](_0x15cab1);return _0x2e6752['set']('Content-Range',_0x23a872+'-'+_0xb6cc25+'/'+_0x331f1d)[_0xfc5f('0x1b')](_0x13cd33);}return null;};}function patchUpdates(_0x4cabda){return function(_0x5821ab){try{jsonpatch[_0xfc5f('0x1e')](_0x5821ab,_0x4cabda,!![]);}catch(_0x11e30b){return BPromise[_0xfc5f('0x1f')](_0x11e30b);}return _0x5821ab[_0xfc5f('0x20')]();};}function saveUpdates(_0x1752a2,_0x1f2f29){return function(_0x211cce){if(_0x211cce){return _0x211cce['update'](_0x1752a2)[_0xfc5f('0x21')](function(_0x58feef){return _0x58feef;});}return null;};}function removeEntity(_0x1858d9,_0x4bd5ab){return function(_0x350d46){if(_0x350d46){return _0x350d46[_0xfc5f('0x22')]()['then'](function(){_0x1858d9['status'](0xcc)[_0xfc5f('0x1a')]();});}};}function handleEntityNotFound(_0x2bd041,_0x92c4ee){return function(_0x34ad13){if(!_0x34ad13){_0x2bd041['sendStatus'](0x194);}return _0x34ad13;};}function handleError(_0x3aec73,_0x141f1d){_0x141f1d=_0x141f1d||0x1f4;return function(_0x4aa7e3){logger['error'](_0x4aa7e3[_0xfc5f('0x23')]);if(_0x4aa7e3[_0xfc5f('0x24')]){delete _0x4aa7e3['name'];}_0x3aec73['status'](_0x141f1d)['send'](_0x4aa7e3);};}exports['index']=function(_0x518389,_0x1e307f){var _0x313587={},_0x50088c={},_0x475d62={'count':0x0,'rows':[]};var _0x1fb3dc=_[_0xfc5f('0x25')](db['VoiceDialReport'][_0xfc5f('0x26')],function(_0x59f973){return{'name':_0x59f973[_0xfc5f('0x27')],'type':_0x59f973[_0xfc5f('0x28')][_0xfc5f('0x29')]};});_0x50088c[_0xfc5f('0x2a')]=_[_0xfc5f('0x25')](_0x1fb3dc,_0xfc5f('0x24'));_0x50088c[_0xfc5f('0x2b')]=_[_0xfc5f('0x2c')](_0x518389[_0xfc5f('0x2b')]);_0x50088c[_0xfc5f('0x2d')]=_['intersection'](_0x50088c[_0xfc5f('0x2a')],_0x50088c[_0xfc5f('0x2b')]);_0x313587[_0xfc5f('0x2e')]=_['intersection'](_0x50088c['model'],qs[_0xfc5f('0x2f')](_0x518389['query'][_0xfc5f('0x2f')]));_0x313587[_0xfc5f('0x2e')]=_0x313587['attributes'][_0xfc5f('0x30')]?_0x313587[_0xfc5f('0x2e')]:_0x50088c['model'];if(!_0x518389[_0xfc5f('0x2b')][_0xfc5f('0x31')](_0xfc5f('0x32'))){_0x313587[_0xfc5f('0x1d')]=qs[_0xfc5f('0x1d')](_0x518389['query'][_0xfc5f('0x1d')]);_0x313587[_0xfc5f('0x1c')]=qs['offset'](_0x518389['query'][_0xfc5f('0x1c')]);}_0x313587[_0xfc5f('0x33')]=qs[_0xfc5f('0x34')](_0x518389[_0xfc5f('0x2b')][_0xfc5f('0x34')]);_0x313587[_0xfc5f('0x35')]=qs[_0xfc5f('0x2d')](_['pick'](_0x518389[_0xfc5f('0x2b')],_0x50088c[_0xfc5f('0x2d')]),_0x1fb3dc);if(_0x518389[_0xfc5f('0x2b')][_0xfc5f('0x36')]){_0x313587[_0xfc5f('0x35')]=_[_0xfc5f('0x37')](_0x313587['where'],{'$or':_['map'](_0x1fb3dc,function(_0x484973){if(_0x484973['type']!==_0xfc5f('0x38')){var _0x1ec60f={};_0x1ec60f[_0x484973[_0xfc5f('0x24')]]={'$like':'%'+_0x518389[_0xfc5f('0x2b')]['filter']+'%'};return _0x1ec60f;}})});}_0x313587=_['merge']({},_0x313587,_0x518389[_0xfc5f('0x39')]);var _0x2c2c15={'where':_0x313587['where']};return db[_0xfc5f('0x3a')][_0xfc5f('0x3b')](_0x2c2c15)[_0xfc5f('0x21')](function(_0x45ea5a){_0x475d62['count']=_0x45ea5a;if(_0x518389[_0xfc5f('0x2b')][_0xfc5f('0x3c')]){_0x313587[_0xfc5f('0x3d')]=[{'all':!![]}];}return db[_0xfc5f('0x3a')][_0xfc5f('0x3e')](_0x313587);})['then'](function(_0x27020e){_0x475d62[_0xfc5f('0x3f')]=_0x27020e;return _0x475d62;})[_0xfc5f('0x21')](respondWithFilteredResult(_0x1e307f,_0x313587))['catch'](handleError(_0x1e307f,null));};exports[_0xfc5f('0x40')]=function(_0x312d84,_0x85d5e6){var _0x2c691f={'raw':!![],'where':{'id':_0x312d84[_0xfc5f('0x41')]['id']}},_0x3e5ab7={};_0x3e5ab7['model']=_[_0xfc5f('0x2c')](db[_0xfc5f('0x3a')]['rawAttributes']);_0x3e5ab7[_0xfc5f('0x2b')]=_[_0xfc5f('0x2c')](_0x312d84[_0xfc5f('0x2b')]);_0x3e5ab7[_0xfc5f('0x2d')]=_[_0xfc5f('0x42')](_0x3e5ab7[_0xfc5f('0x2a')],_0x3e5ab7['query']);_0x2c691f[_0xfc5f('0x2e')]=_[_0xfc5f('0x42')](_0x3e5ab7[_0xfc5f('0x2a')],qs['fields'](_0x312d84[_0xfc5f('0x2b')][_0xfc5f('0x2f')]));_0x2c691f[_0xfc5f('0x2e')]=_0x2c691f['attributes'][_0xfc5f('0x30')]?_0x2c691f[_0xfc5f('0x2e')]:_0x3e5ab7['model'];if(_0x312d84[_0xfc5f('0x2b')]['includeAll']){_0x2c691f['include']=[{'all':!![]}];}_0x2c691f=_[_0xfc5f('0x37')]({},_0x2c691f,_0x312d84[_0xfc5f('0x39')]);return db[_0xfc5f('0x3a')]['find'](_0x2c691f)[_0xfc5f('0x21')](handleEntityNotFound(_0x85d5e6,null))['then'](respondWithResult(_0x85d5e6,null))[_0xfc5f('0x43')](handleError(_0x85d5e6,null));};exports['create']=function(_0x367c9d,_0x4be856){return db[_0xfc5f('0x3a')]['create'](_0x367c9d[_0xfc5f('0x44')],{})[_0xfc5f('0x21')](respondWithResult(_0x4be856,0xc9))[_0xfc5f('0x43')](handleError(_0x4be856,null));};exports['update']=function(_0x33579f,_0x4632d3){if(_0x33579f[_0xfc5f('0x44')]['id']){delete _0x33579f[_0xfc5f('0x44')]['id'];}return db['VoiceDialReport'][_0xfc5f('0x45')]({'where':{'id':_0x33579f[_0xfc5f('0x41')]['id']}})[_0xfc5f('0x21')](handleEntityNotFound(_0x4632d3,null))[_0xfc5f('0x21')](saveUpdates(_0x33579f[_0xfc5f('0x44')],null))['then'](respondWithResult(_0x4632d3,null))[_0xfc5f('0x43')](handleError(_0x4632d3,null));};exports[_0xfc5f('0x22')]=function(_0x3fd2d,_0x541738){return db[_0xfc5f('0x3a')][_0xfc5f('0x45')]({'where':{'id':_0x3fd2d[_0xfc5f('0x41')]['id']}})['then'](handleEntityNotFound(_0x541738,null))[_0xfc5f('0x21')](removeEntity(_0x541738,null))[_0xfc5f('0x43')](handleError(_0x541738,null));};exports[_0xfc5f('0x46')]=function(_0x1527f8,_0x4239e5){return db[_0xfc5f('0x3a')][_0xfc5f('0x46')]()[_0xfc5f('0x21')](respondWithResult(_0x4239e5,null))['catch'](handleError(_0x4239e5,null));};
\ No newline at end of file
+var _0xb7b8=['json','apply','reject','update','then','stack','name','send','index','VoiceDialReport','rawAttributes','fieldName','type','key','model','map','keys','filters','intersection','fields','query','attributes','length','hasOwnProperty','nolimit','limit','sort','where','merge','VIRTUAL','options','include','rows','catch','show','includeAll','find','create','body','params','destroy','describe','eml-format','rimraf','zip-dir','fast-json-patch','moment','bluebird','util','ejs','squel','crypto','jsforce','desk.js','to-csv','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','end','status','undefined','count','offset','set'];(function(_0x2237a0,_0x31031d){var _0x382009=function(_0x5bedaf){while(--_0x5bedaf){_0x2237a0['push'](_0x2237a0['shift']());}};_0x382009(++_0x31031d);}(_0xb7b8,0x74));var _0x8b7b=function(_0x548177,_0x5d2611){_0x548177=_0x548177-0x0;var _0x541f4e=_0xb7b8[_0x548177];return _0x541f4e;};'use strict';var emlformat=require(_0x8b7b('0x0'));var rimraf=require(_0x8b7b('0x1'));var zipdir=require(_0x8b7b('0x2'));var jsonpatch=require(_0x8b7b('0x3'));var rp=require('request-promise');var moment=require(_0x8b7b('0x4'));var BPromise=require(_0x8b7b('0x5'));var Mustache=require('mustache');var util=require(_0x8b7b('0x6'));var path=require('path');var sox=require('sox');var csv=require('to-csv');var ejs=require(_0x8b7b('0x7'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require('lodash');var squel=require(_0x8b7b('0x8'));var crypto=require(_0x8b7b('0x9'));var jsforce=require(_0x8b7b('0xa'));var deskjs=require(_0x8b7b('0xb'));var toCsv=require(_0x8b7b('0xc'));var querystring=require('querystring');var Papa=require(_0x8b7b('0xd'));var Redis=require(_0x8b7b('0xe'));var authService=require(_0x8b7b('0xf'));var qs=require(_0x8b7b('0x10'));var as=require(_0x8b7b('0x11'));var hardwareService=require(_0x8b7b('0x12'));var logger=require(_0x8b7b('0x13'))(_0x8b7b('0x14'));var utils=require(_0x8b7b('0x15'));var config=require(_0x8b7b('0x16'));var licenseUtil=require(_0x8b7b('0x17'));var db=require(_0x8b7b('0x18'))['db'];function respondWithStatusCode(_0x575b75,_0x1a0931){_0x1a0931=_0x1a0931||0xcc;return function(_0x9d46c){if(_0x9d46c){return _0x575b75[_0x8b7b('0x19')](_0x1a0931);}return _0x575b75['status'](_0x1a0931)[_0x8b7b('0x1a')]();};}function respondWithResult(_0x27e375,_0x272a6f){_0x272a6f=_0x272a6f||0xc8;return function(_0x455bf3){if(_0x455bf3){return _0x27e375[_0x8b7b('0x1b')](_0x272a6f)['json'](_0x455bf3);}};}function respondWithFilteredResult(_0x5b59c7,_0x47ae52){return function(_0x34b42d){if(_0x34b42d){var _0x13a284=typeof _0x47ae52['offset']===_0x8b7b('0x1c')&&typeof _0x47ae52['limit']==='undefined';var _0x595833=_0x34b42d[_0x8b7b('0x1d')];var _0x3ee2d=_0x13a284?0x0:_0x47ae52['offset'];var _0x9b4ea3=_0x13a284?_0x34b42d['count']:_0x47ae52[_0x8b7b('0x1e')]+_0x47ae52['limit'];var _0x58618d;if(_0x9b4ea3>=_0x595833){_0x9b4ea3=_0x595833;_0x58618d=0xc8;}else{_0x58618d=0xce;}_0x5b59c7['status'](_0x58618d);return _0x5b59c7[_0x8b7b('0x1f')]('Content-Range',_0x3ee2d+'-'+_0x9b4ea3+'/'+_0x595833)[_0x8b7b('0x20')](_0x34b42d);}return null;};}function patchUpdates(_0x817e24){return function(_0x2c4b71){try{jsonpatch[_0x8b7b('0x21')](_0x2c4b71,_0x817e24,!![]);}catch(_0x394fdb){return BPromise[_0x8b7b('0x22')](_0x394fdb);}return _0x2c4b71['save']();};}function saveUpdates(_0x31b21f,_0x4a1d36){return function(_0x39e45e){if(_0x39e45e){return _0x39e45e[_0x8b7b('0x23')](_0x31b21f)[_0x8b7b('0x24')](function(_0x76caa6){return _0x76caa6;});}return null;};}function removeEntity(_0xd2e0c9,_0x58a43f){return function(_0x32007e){if(_0x32007e){return _0x32007e['destroy']()[_0x8b7b('0x24')](function(){_0xd2e0c9[_0x8b7b('0x1b')](0xcc)[_0x8b7b('0x1a')]();});}};}function handleEntityNotFound(_0x451bad,_0x1d9166){return function(_0xd1cc31){if(!_0xd1cc31){_0x451bad['sendStatus'](0x194);}return _0xd1cc31;};}function handleError(_0x25f0eb,_0x16afe7){_0x16afe7=_0x16afe7||0x1f4;return function(_0x1d678a){logger['error'](_0x1d678a[_0x8b7b('0x25')]);if(_0x1d678a['name']){delete _0x1d678a[_0x8b7b('0x26')];}_0x25f0eb[_0x8b7b('0x1b')](_0x16afe7)[_0x8b7b('0x27')](_0x1d678a);};}exports[_0x8b7b('0x28')]=function(_0x3c875a,_0x14206f){var _0x3e701a={},_0x5b3d87={},_0x6d2cfe={'count':0x0,'rows':[]};var _0x31b7dc=_['map'](db[_0x8b7b('0x29')][_0x8b7b('0x2a')],function(_0x3c6922){return{'name':_0x3c6922[_0x8b7b('0x2b')],'type':_0x3c6922[_0x8b7b('0x2c')][_0x8b7b('0x2d')]};});_0x5b3d87[_0x8b7b('0x2e')]=_[_0x8b7b('0x2f')](_0x31b7dc,_0x8b7b('0x26'));_0x5b3d87['query']=_[_0x8b7b('0x30')](_0x3c875a['query']);_0x5b3d87[_0x8b7b('0x31')]=_['intersection'](_0x5b3d87[_0x8b7b('0x2e')],_0x5b3d87['query']);_0x3e701a['attributes']=_[_0x8b7b('0x32')](_0x5b3d87[_0x8b7b('0x2e')],qs[_0x8b7b('0x33')](_0x3c875a[_0x8b7b('0x34')][_0x8b7b('0x33')]));_0x3e701a['attributes']=_0x3e701a[_0x8b7b('0x35')][_0x8b7b('0x36')]?_0x3e701a[_0x8b7b('0x35')]:_0x5b3d87['model'];if(!_0x3c875a[_0x8b7b('0x34')][_0x8b7b('0x37')](_0x8b7b('0x38'))){_0x3e701a[_0x8b7b('0x39')]=qs[_0x8b7b('0x39')](_0x3c875a[_0x8b7b('0x34')][_0x8b7b('0x39')]);_0x3e701a[_0x8b7b('0x1e')]=qs[_0x8b7b('0x1e')](_0x3c875a[_0x8b7b('0x34')]['offset']);}_0x3e701a['order']=qs[_0x8b7b('0x3a')](_0x3c875a[_0x8b7b('0x34')][_0x8b7b('0x3a')]);_0x3e701a[_0x8b7b('0x3b')]=qs[_0x8b7b('0x31')](_['pick'](_0x3c875a[_0x8b7b('0x34')],_0x5b3d87[_0x8b7b('0x31')]),_0x31b7dc);if(_0x3c875a[_0x8b7b('0x34')]['filter']){_0x3e701a['where']=_[_0x8b7b('0x3c')](_0x3e701a['where'],{'$or':_['map'](_0x31b7dc,function(_0xced43f){if(_0xced43f[_0x8b7b('0x2c')]!==_0x8b7b('0x3d')){var _0x1604bd={};_0x1604bd[_0xced43f[_0x8b7b('0x26')]]={'$like':'%'+_0x3c875a['query']['filter']+'%'};return _0x1604bd;}})});}_0x3e701a=_['merge']({},_0x3e701a,_0x3c875a[_0x8b7b('0x3e')]);var _0x19e916={'where':_0x3e701a[_0x8b7b('0x3b')]};return db[_0x8b7b('0x29')][_0x8b7b('0x1d')](_0x19e916)[_0x8b7b('0x24')](function(_0x15170b){_0x6d2cfe[_0x8b7b('0x1d')]=_0x15170b;if(_0x3c875a['query']['includeAll']){_0x3e701a[_0x8b7b('0x3f')]=[{'all':!![]}];}return db[_0x8b7b('0x29')]['findAll'](_0x3e701a);})[_0x8b7b('0x24')](function(_0x5565e0){_0x6d2cfe[_0x8b7b('0x40')]=_0x5565e0;return _0x6d2cfe;})[_0x8b7b('0x24')](respondWithFilteredResult(_0x14206f,_0x3e701a))[_0x8b7b('0x41')](handleError(_0x14206f,null));};exports[_0x8b7b('0x42')]=function(_0x4a80bd,_0x7c93f0){var _0x3a7547={'raw':!![],'where':{'id':_0x4a80bd['params']['id']}},_0x477917={};_0x477917[_0x8b7b('0x2e')]=_['keys'](db['VoiceDialReport'][_0x8b7b('0x2a')]);_0x477917[_0x8b7b('0x34')]=_[_0x8b7b('0x30')](_0x4a80bd[_0x8b7b('0x34')]);_0x477917[_0x8b7b('0x31')]=_[_0x8b7b('0x32')](_0x477917[_0x8b7b('0x2e')],_0x477917['query']);_0x3a7547[_0x8b7b('0x35')]=_[_0x8b7b('0x32')](_0x477917[_0x8b7b('0x2e')],qs[_0x8b7b('0x33')](_0x4a80bd[_0x8b7b('0x34')][_0x8b7b('0x33')]));_0x3a7547[_0x8b7b('0x35')]=_0x3a7547[_0x8b7b('0x35')][_0x8b7b('0x36')]?_0x3a7547['attributes']:_0x477917[_0x8b7b('0x2e')];if(_0x4a80bd[_0x8b7b('0x34')][_0x8b7b('0x43')]){_0x3a7547[_0x8b7b('0x3f')]=[{'all':!![]}];}_0x3a7547=_[_0x8b7b('0x3c')]({},_0x3a7547,_0x4a80bd[_0x8b7b('0x3e')]);return db['VoiceDialReport'][_0x8b7b('0x44')](_0x3a7547)[_0x8b7b('0x24')](handleEntityNotFound(_0x7c93f0,null))[_0x8b7b('0x24')](respondWithResult(_0x7c93f0,null))['catch'](handleError(_0x7c93f0,null));};exports[_0x8b7b('0x45')]=function(_0x11a460,_0x25647d){return db['VoiceDialReport'][_0x8b7b('0x45')](_0x11a460[_0x8b7b('0x46')],{})[_0x8b7b('0x24')](respondWithResult(_0x25647d,0xc9))[_0x8b7b('0x41')](handleError(_0x25647d,null));};exports[_0x8b7b('0x23')]=function(_0x2b6cbf,_0x139407){if(_0x2b6cbf[_0x8b7b('0x46')]['id']){delete _0x2b6cbf['body']['id'];}return db[_0x8b7b('0x29')]['find']({'where':{'id':_0x2b6cbf[_0x8b7b('0x47')]['id']}})[_0x8b7b('0x24')](handleEntityNotFound(_0x139407,null))['then'](saveUpdates(_0x2b6cbf[_0x8b7b('0x46')],null))['then'](respondWithResult(_0x139407,null))['catch'](handleError(_0x139407,null));};exports[_0x8b7b('0x48')]=function(_0x28419a,_0x17e227){return db[_0x8b7b('0x29')][_0x8b7b('0x44')]({'where':{'id':_0x28419a[_0x8b7b('0x47')]['id']}})[_0x8b7b('0x24')](handleEntityNotFound(_0x17e227,null))['then'](removeEntity(_0x17e227,null))['catch'](handleError(_0x17e227,null));};exports[_0x8b7b('0x49')]=function(_0x4f9194,_0x3c76bd){return db[_0x8b7b('0x29')][_0x8b7b('0x49')]()[_0x8b7b('0x24')](respondWithResult(_0x3c76bd,null))[_0x8b7b('0x41')](handleError(_0x3c76bd,null));};
\ No newline at end of file