Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / voiceDialReport / voiceDialReport.controller.js
index 7b1ea70..7fb0f28 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2f49=['end','json','offset','undefined','limit','count','set','Content-Range','apply','reject','save','sendStatus','error','stack','name','render','merge','contact','message','agent','interaction','index','rawAttributes','fieldName','key','model','query','keys','filters','intersection','fields','attributes','length','nolimit','sort','where','pick','type','VIRTUAL','VoiceDialReport','then','includeAll','include','rows','catch','show','params','options','find','create','body','destroy','describe','eml-format','rimraf','fast-json-patch','request-promise','moment','path','sox','fs-extra','squel','crypto','to-csv','querystring','papaparse','ioredis','../../components/auth/service','api','../../config/utils','../../config/license/util','../../mysqldb','status'];(function(_0x3fd4c7,_0x2256fa){var _0x38905e=function(_0x208c78){while(--_0x208c78){_0x3fd4c7['push'](_0x3fd4c7['shift']());}};_0x38905e(++_0x2256fa);}(_0x2f49,0x7e));var _0x92f4=function(_0x2eb3d0,_0x57ae7f){_0x2eb3d0=_0x2eb3d0-0x0;var _0x492b0c=_0x2f49[_0x2eb3d0];return _0x492b0c;};'use strict';var emlformat=require(_0x92f4('0x0'));var rimraf=require(_0x92f4('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0x92f4('0x2'));var rp=require(_0x92f4('0x3'));var moment=require(_0x92f4('0x4'));var BPromise=require('bluebird');var Mustache=require('mustache');var util=require('util');var path=require(_0x92f4('0x5'));var sox=require(_0x92f4('0x6'));var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x92f4('0x7'));var _=require('lodash');var squel=require(_0x92f4('0x8'));var crypto=require(_0x92f4('0x9'));var jsforce=require('jsforce');var deskjs=require('desk.js');var toCsv=require(_0x92f4('0xa'));var querystring=require(_0x92f4('0xb'));var Papa=require(_0x92f4('0xc'));var Redis=require(_0x92f4('0xd'));var authService=require(_0x92f4('0xe'));var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require('../../config/logger')(_0x92f4('0xf'));var utils=require(_0x92f4('0x10'));var config=require('../../config/environment');var licenseUtil=require(_0x92f4('0x11'));var db=require(_0x92f4('0x12'))['db'];function respondWithStatusCode(_0xbbed7a,_0x5c2448){_0x5c2448=_0x5c2448||0xcc;return function(_0x45431e){if(_0x45431e){return _0xbbed7a['sendStatus'](_0x5c2448);}return _0xbbed7a[_0x92f4('0x13')](_0x5c2448)[_0x92f4('0x14')]();};}function respondWithResult(_0x1434a4,_0x1ed751){_0x1ed751=_0x1ed751||0xc8;return function(_0x25c19a){if(_0x25c19a){return _0x1434a4['status'](_0x1ed751)[_0x92f4('0x15')](_0x25c19a);}};}function respondWithFilteredResult(_0x1a68b0,_0x2f0450){return function(_0x2948f4){if(_0x2948f4){var _0x2fdbdf=typeof _0x2f0450[_0x92f4('0x16')]===_0x92f4('0x17')&&typeof _0x2f0450[_0x92f4('0x18')]==='undefined';var _0x6b15fa=_0x2948f4[_0x92f4('0x19')];var _0x459c94=_0x2fdbdf?0x0:_0x2f0450[_0x92f4('0x16')];var _0x193f52=_0x2fdbdf?_0x2948f4[_0x92f4('0x19')]:_0x2f0450[_0x92f4('0x16')]+_0x2f0450['limit'];var _0x5487ff;if(_0x193f52>=_0x6b15fa){_0x193f52=_0x6b15fa;_0x5487ff=0xc8;}else{_0x5487ff=0xce;}_0x1a68b0['status'](_0x5487ff);return _0x1a68b0[_0x92f4('0x1a')](_0x92f4('0x1b'),_0x459c94+'-'+_0x193f52+'/'+_0x6b15fa)[_0x92f4('0x15')](_0x2948f4);}return null;};}function patchUpdates(_0x40d882){return function(_0x43ddc7){try{jsonpatch[_0x92f4('0x1c')](_0x43ddc7,_0x40d882,!![]);}catch(_0x1bb08c){return BPromise[_0x92f4('0x1d')](_0x1bb08c);}return _0x43ddc7[_0x92f4('0x1e')]();};}function saveUpdates(_0x2fd7df,_0x3705f8){return function(_0x496d67){if(_0x496d67){return _0x496d67['update'](_0x2fd7df)['then'](function(_0x3597ae){return _0x3597ae;});}return null;};}function removeEntity(_0x2f2f05,_0x2d8bcf){return function(_0xde8367){if(_0xde8367){return _0xde8367['destroy']()['then'](function(){_0x2f2f05[_0x92f4('0x13')](0xcc)['end']();});}};}function handleEntityNotFound(_0xd74b83,_0x7b5c00){return function(_0x240e63){if(!_0x240e63){_0xd74b83[_0x92f4('0x1f')](0x194);}return _0x240e63;};}function handleError(_0x41ed4b,_0xe807c3){_0xe807c3=_0xe807c3||0x1f4;return function(_0x25fe55){logger[_0x92f4('0x20')](_0x25fe55[_0x92f4('0x21')]);if(_0x25fe55[_0x92f4('0x22')]){delete _0x25fe55[_0x92f4('0x22')];}_0x41ed4b[_0x92f4('0x13')](_0xe807c3)['send'](_0x25fe55);};}function getMustacheRender(_0x227dd2,_0x244ca2){return Mustache[_0x92f4('0x23')](_0x227dd2,_[_0x92f4('0x24')](_0x244ca2['body'],{'contact':_0x244ca2[_0x92f4('0x25')],'message':_0x244ca2[_0x92f4('0x26')],'agent':_0x244ca2[_0x92f4('0x27')],'interaction':_0x244ca2[_0x92f4('0x28')],'account':_0x244ca2['account']}))||'';}exports[_0x92f4('0x29')]=function(_0x52e22f,_0x383799){var _0x8d9e19={},_0x5a3fc3={},_0x125f79={'count':0x0,'rows':[]};var _0x4ccfcc=_['map'](db['VoiceDialReport'][_0x92f4('0x2a')],function(_0x4afef8){return{'name':_0x4afef8[_0x92f4('0x2b')],'type':_0x4afef8['type'][_0x92f4('0x2c')]};});_0x5a3fc3[_0x92f4('0x2d')]=_['map'](_0x4ccfcc,_0x92f4('0x22'));_0x5a3fc3[_0x92f4('0x2e')]=_[_0x92f4('0x2f')](_0x52e22f[_0x92f4('0x2e')]);_0x5a3fc3[_0x92f4('0x30')]=_[_0x92f4('0x31')](_0x5a3fc3[_0x92f4('0x2d')],_0x5a3fc3[_0x92f4('0x2e')]);_0x8d9e19['attributes']=_[_0x92f4('0x31')](_0x5a3fc3[_0x92f4('0x2d')],qs[_0x92f4('0x32')](_0x52e22f[_0x92f4('0x2e')][_0x92f4('0x32')]));_0x8d9e19['attributes']=_0x8d9e19[_0x92f4('0x33')][_0x92f4('0x34')]?_0x8d9e19[_0x92f4('0x33')]:_0x5a3fc3[_0x92f4('0x2d')];if(!_0x52e22f[_0x92f4('0x2e')]['hasOwnProperty'](_0x92f4('0x35'))){_0x8d9e19[_0x92f4('0x18')]=qs[_0x92f4('0x18')](_0x52e22f[_0x92f4('0x2e')][_0x92f4('0x18')]);_0x8d9e19[_0x92f4('0x16')]=qs[_0x92f4('0x16')](_0x52e22f['query']['offset']);}_0x8d9e19['order']=qs[_0x92f4('0x36')](_0x52e22f[_0x92f4('0x2e')][_0x92f4('0x36')]);_0x8d9e19[_0x92f4('0x37')]=qs[_0x92f4('0x30')](_[_0x92f4('0x38')](_0x52e22f[_0x92f4('0x2e')],_0x5a3fc3['filters']),_0x4ccfcc);if(_0x52e22f[_0x92f4('0x2e')]['filter']){_0x8d9e19['where']=_['merge'](_0x8d9e19['where'],{'$or':_['map'](_0x4ccfcc,function(_0x837e03){if(_0x837e03[_0x92f4('0x39')]!==_0x92f4('0x3a')){var _0x4f0dd9={};_0x4f0dd9[_0x837e03[_0x92f4('0x22')]]={'$like':'%'+_0x52e22f[_0x92f4('0x2e')]['filter']+'%'};return _0x4f0dd9;}})});}_0x8d9e19=_['merge']({},_0x8d9e19,_0x52e22f['options']);var _0x446ee7={'where':_0x8d9e19[_0x92f4('0x37')]};return db[_0x92f4('0x3b')]['count'](_0x446ee7)[_0x92f4('0x3c')](function(_0x2edde2){_0x125f79[_0x92f4('0x19')]=_0x2edde2;if(_0x52e22f['query'][_0x92f4('0x3d')]){_0x8d9e19[_0x92f4('0x3e')]=[{'all':!![]}];}return db[_0x92f4('0x3b')]['findAll'](_0x8d9e19);})[_0x92f4('0x3c')](function(_0x4d877d){_0x125f79[_0x92f4('0x3f')]=_0x4d877d;return _0x125f79;})[_0x92f4('0x3c')](respondWithFilteredResult(_0x383799,_0x8d9e19))[_0x92f4('0x40')](handleError(_0x383799,null));};exports[_0x92f4('0x41')]=function(_0x551eac,_0x16ceb4){var _0x1f517f={'raw':!![],'where':{'id':_0x551eac[_0x92f4('0x42')]['id']}},_0x1c7e17={};_0x1c7e17[_0x92f4('0x2d')]=_[_0x92f4('0x2f')](db[_0x92f4('0x3b')]['rawAttributes']);_0x1c7e17[_0x92f4('0x2e')]=_[_0x92f4('0x2f')](_0x551eac['query']);_0x1c7e17[_0x92f4('0x30')]=_[_0x92f4('0x31')](_0x1c7e17[_0x92f4('0x2d')],_0x1c7e17[_0x92f4('0x2e')]);_0x1f517f[_0x92f4('0x33')]=_[_0x92f4('0x31')](_0x1c7e17[_0x92f4('0x2d')],qs['fields'](_0x551eac[_0x92f4('0x2e')][_0x92f4('0x32')]));_0x1f517f[_0x92f4('0x33')]=_0x1f517f['attributes'][_0x92f4('0x34')]?_0x1f517f['attributes']:_0x1c7e17['model'];if(_0x551eac['query'][_0x92f4('0x3d')]){_0x1f517f[_0x92f4('0x3e')]=[{'all':!![]}];}_0x1f517f=_['merge']({},_0x1f517f,_0x551eac[_0x92f4('0x43')]);return db['VoiceDialReport'][_0x92f4('0x44')](_0x1f517f)[_0x92f4('0x3c')](handleEntityNotFound(_0x16ceb4,null))['then'](respondWithResult(_0x16ceb4,null))[_0x92f4('0x40')](handleError(_0x16ceb4,null));};exports['create']=function(_0x14056f,_0x3fd5a3){return db[_0x92f4('0x3b')][_0x92f4('0x45')](_0x14056f[_0x92f4('0x46')],{})['then'](respondWithResult(_0x3fd5a3,0xc9))['catch'](handleError(_0x3fd5a3,null));};exports['update']=function(_0x4c870d,_0x57cf7a){if(_0x4c870d[_0x92f4('0x46')]['id']){delete _0x4c870d[_0x92f4('0x46')]['id'];}return db[_0x92f4('0x3b')]['find']({'where':{'id':_0x4c870d[_0x92f4('0x42')]['id']}})['then'](handleEntityNotFound(_0x57cf7a,null))[_0x92f4('0x3c')](saveUpdates(_0x4c870d[_0x92f4('0x46')],null))['then'](respondWithResult(_0x57cf7a,null))[_0x92f4('0x40')](handleError(_0x57cf7a,null));};exports[_0x92f4('0x47')]=function(_0x32d1ad,_0x541692){return db[_0x92f4('0x3b')][_0x92f4('0x44')]({'where':{'id':_0x32d1ad[_0x92f4('0x42')]['id']}})[_0x92f4('0x3c')](handleEntityNotFound(_0x541692,null))[_0x92f4('0x3c')](removeEntity(_0x541692,null))['catch'](handleError(_0x541692,null));};exports[_0x92f4('0x48')]=function(_0x1ab5d0,_0x577546){return db['VoiceDialReport']['describe']()[_0x92f4('0x3c')](respondWithResult(_0x577546,null))['catch'](handleError(_0x577546,null));};
\ No newline at end of file
+var _0x333a=['save','update','then','destroy','error','stack','name','send','body','contact','account','index','map','VoiceDialReport','fieldName','type','key','model','query','keys','attributes','intersection','fields','length','hasOwnProperty','order','sort','where','filters','pick','filter','merge','VIRTUAL','options','includeAll','include','findAll','rows','catch','show','rawAttributes','find','create','params','describe','eml-format','rimraf','zip-dir','fast-json-patch','moment','bluebird','mustache','util','ejs','fs-extra','lodash','squel','crypto','jsforce','to-csv','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/utils','../../config/environment','../../config/license/util','status','end','json','undefined','limit','count','offset','set','Content-Range','apply','reject'];(function(_0x2dc6f3,_0x5b9e78){var _0x12493f=function(_0x406318){while(--_0x406318){_0x2dc6f3['push'](_0x2dc6f3['shift']());}};_0x12493f(++_0x5b9e78);}(_0x333a,0xcd));var _0xa333=function(_0x26fcf9,_0xb00d93){_0x26fcf9=_0x26fcf9-0x0;var _0x4cf3ba=_0x333a[_0x26fcf9];return _0x4cf3ba;};'use strict';var emlformat=require(_0xa333('0x0'));var rimraf=require(_0xa333('0x1'));var zipdir=require(_0xa333('0x2'));var jsonpatch=require(_0xa333('0x3'));var rp=require('request-promise');var moment=require(_0xa333('0x4'));var BPromise=require(_0xa333('0x5'));var Mustache=require(_0xa333('0x6'));var util=require(_0xa333('0x7'));var path=require('path');var sox=require('sox');var csv=require('to-csv');var ejs=require(_0xa333('0x8'));var fs=require('fs');var fs_extra=require(_0xa333('0x9'));var _=require(_0xa333('0xa'));var squel=require(_0xa333('0xb'));var crypto=require(_0xa333('0xc'));var jsforce=require(_0xa333('0xd'));var deskjs=require('desk.js');var toCsv=require(_0xa333('0xe'));var querystring=require('querystring');var Papa=require(_0xa333('0xf'));var Redis=require('ioredis');var authService=require(_0xa333('0x10'));var qs=require(_0xa333('0x11'));var as=require(_0xa333('0x12'));var hardwareService=require(_0xa333('0x13'));var logger=require('../../config/logger')(_0xa333('0x14'));var utils=require(_0xa333('0x15'));var config=require(_0xa333('0x16'));var licenseUtil=require(_0xa333('0x17'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x144cfd,_0x20e91a){_0x20e91a=_0x20e91a||0xcc;return function(_0x482e0a){if(_0x482e0a){return _0x144cfd['sendStatus'](_0x20e91a);}return _0x144cfd[_0xa333('0x18')](_0x20e91a)[_0xa333('0x19')]();};}function respondWithResult(_0x234ffe,_0x5a6872){_0x5a6872=_0x5a6872||0xc8;return function(_0xe1b5e3){if(_0xe1b5e3){return _0x234ffe[_0xa333('0x18')](_0x5a6872)[_0xa333('0x1a')](_0xe1b5e3);}};}function respondWithFilteredResult(_0x4494a2,_0x48964e){return function(_0x216ae1){if(_0x216ae1){var _0x1396b1=typeof _0x48964e['offset']===_0xa333('0x1b')&&typeof _0x48964e[_0xa333('0x1c')]===_0xa333('0x1b');var _0xdf59e0=_0x216ae1[_0xa333('0x1d')];var _0x25a77b=_0x1396b1?0x0:_0x48964e['offset'];var _0x133e42=_0x1396b1?_0x216ae1['count']:_0x48964e[_0xa333('0x1e')]+_0x48964e[_0xa333('0x1c')];var _0x386319;if(_0x133e42>=_0xdf59e0){_0x133e42=_0xdf59e0;_0x386319=0xc8;}else{_0x386319=0xce;}_0x4494a2[_0xa333('0x18')](_0x386319);return _0x4494a2[_0xa333('0x1f')](_0xa333('0x20'),_0x25a77b+'-'+_0x133e42+'/'+_0xdf59e0)[_0xa333('0x1a')](_0x216ae1);}return null;};}function patchUpdates(_0xaea76e){return function(_0x272292){try{jsonpatch[_0xa333('0x21')](_0x272292,_0xaea76e,!![]);}catch(_0x5baf56){return BPromise[_0xa333('0x22')](_0x5baf56);}return _0x272292[_0xa333('0x23')]();};}function saveUpdates(_0xcf9374,_0x2a918e){return function(_0x42d04e){if(_0x42d04e){return _0x42d04e[_0xa333('0x24')](_0xcf9374)[_0xa333('0x25')](function(_0x5ed204){return _0x5ed204;});}return null;};}function removeEntity(_0x251898,_0x11af4e){return function(_0xba19bf){if(_0xba19bf){return _0xba19bf[_0xa333('0x26')]()['then'](function(){_0x251898[_0xa333('0x18')](0xcc)[_0xa333('0x19')]();});}};}function handleEntityNotFound(_0x4f1664,_0xa17c63){return function(_0x485f70){if(!_0x485f70){_0x4f1664['sendStatus'](0x194);}return _0x485f70;};}function handleError(_0xbe45b2,_0x84f2f6){_0x84f2f6=_0x84f2f6||0x1f4;return function(_0x127211){logger[_0xa333('0x27')](_0x127211[_0xa333('0x28')]);if(_0x127211[_0xa333('0x29')]){delete _0x127211[_0xa333('0x29')];}_0xbe45b2[_0xa333('0x18')](_0x84f2f6)[_0xa333('0x2a')](_0x127211);};}function getMustacheRender(_0x327695,_0x22cab7){return Mustache['render'](_0x327695,_['merge'](_0x22cab7[_0xa333('0x2b')],{'contact':_0x22cab7[_0xa333('0x2c')],'message':_0x22cab7['message'],'agent':_0x22cab7['agent'],'interaction':_0x22cab7['interaction'],'account':_0x22cab7[_0xa333('0x2d')]}))||'';}exports[_0xa333('0x2e')]=function(_0x15b885,_0x2a8e7d){var _0x1c51a4={},_0x2de4b9={},_0x26fcbb={'count':0x0,'rows':[]};var _0x4529b0=_[_0xa333('0x2f')](db[_0xa333('0x30')]['rawAttributes'],function(_0xe6100c){return{'name':_0xe6100c[_0xa333('0x31')],'type':_0xe6100c[_0xa333('0x32')][_0xa333('0x33')]};});_0x2de4b9[_0xa333('0x34')]=_[_0xa333('0x2f')](_0x4529b0,_0xa333('0x29'));_0x2de4b9[_0xa333('0x35')]=_[_0xa333('0x36')](_0x15b885[_0xa333('0x35')]);_0x2de4b9['filters']=_['intersection'](_0x2de4b9[_0xa333('0x34')],_0x2de4b9[_0xa333('0x35')]);_0x1c51a4[_0xa333('0x37')]=_[_0xa333('0x38')](_0x2de4b9[_0xa333('0x34')],qs[_0xa333('0x39')](_0x15b885['query'][_0xa333('0x39')]));_0x1c51a4[_0xa333('0x37')]=_0x1c51a4[_0xa333('0x37')][_0xa333('0x3a')]?_0x1c51a4['attributes']:_0x2de4b9[_0xa333('0x34')];if(!_0x15b885[_0xa333('0x35')][_0xa333('0x3b')]('nolimit')){_0x1c51a4[_0xa333('0x1c')]=qs[_0xa333('0x1c')](_0x15b885[_0xa333('0x35')][_0xa333('0x1c')]);_0x1c51a4['offset']=qs[_0xa333('0x1e')](_0x15b885['query'][_0xa333('0x1e')]);}_0x1c51a4[_0xa333('0x3c')]=qs[_0xa333('0x3d')](_0x15b885[_0xa333('0x35')][_0xa333('0x3d')]);_0x1c51a4[_0xa333('0x3e')]=qs[_0xa333('0x3f')](_[_0xa333('0x40')](_0x15b885[_0xa333('0x35')],_0x2de4b9[_0xa333('0x3f')]),_0x4529b0);if(_0x15b885['query'][_0xa333('0x41')]){_0x1c51a4[_0xa333('0x3e')]=_[_0xa333('0x42')](_0x1c51a4['where'],{'$or':_[_0xa333('0x2f')](_0x4529b0,function(_0x2f9858){if(_0x2f9858[_0xa333('0x32')]!==_0xa333('0x43')){var _0x422f36={};_0x422f36[_0x2f9858[_0xa333('0x29')]]={'$like':'%'+_0x15b885[_0xa333('0x35')][_0xa333('0x41')]+'%'};return _0x422f36;}})});}_0x1c51a4=_[_0xa333('0x42')]({},_0x1c51a4,_0x15b885[_0xa333('0x44')]);var _0x3bb24d={'where':_0x1c51a4[_0xa333('0x3e')]};return db[_0xa333('0x30')][_0xa333('0x1d')](_0x3bb24d)[_0xa333('0x25')](function(_0x2b445d){_0x26fcbb[_0xa333('0x1d')]=_0x2b445d;if(_0x15b885[_0xa333('0x35')][_0xa333('0x45')]){_0x1c51a4[_0xa333('0x46')]=[{'all':!![]}];}return db['VoiceDialReport'][_0xa333('0x47')](_0x1c51a4);})['then'](function(_0x2e57e6){_0x26fcbb[_0xa333('0x48')]=_0x2e57e6;return _0x26fcbb;})['then'](respondWithFilteredResult(_0x2a8e7d,_0x1c51a4))[_0xa333('0x49')](handleError(_0x2a8e7d,null));};exports[_0xa333('0x4a')]=function(_0x375544,_0x44f9b4){var _0x4b6f25={'raw':!![],'where':{'id':_0x375544['params']['id']}},_0x2f2331={};_0x2f2331[_0xa333('0x34')]=_[_0xa333('0x36')](db['VoiceDialReport'][_0xa333('0x4b')]);_0x2f2331[_0xa333('0x35')]=_['keys'](_0x375544[_0xa333('0x35')]);_0x2f2331['filters']=_[_0xa333('0x38')](_0x2f2331[_0xa333('0x34')],_0x2f2331['query']);_0x4b6f25[_0xa333('0x37')]=_['intersection'](_0x2f2331['model'],qs[_0xa333('0x39')](_0x375544[_0xa333('0x35')][_0xa333('0x39')]));_0x4b6f25[_0xa333('0x37')]=_0x4b6f25[_0xa333('0x37')]['length']?_0x4b6f25[_0xa333('0x37')]:_0x2f2331['model'];if(_0x375544[_0xa333('0x35')][_0xa333('0x45')]){_0x4b6f25[_0xa333('0x46')]=[{'all':!![]}];}_0x4b6f25=_[_0xa333('0x42')]({},_0x4b6f25,_0x375544[_0xa333('0x44')]);return db[_0xa333('0x30')][_0xa333('0x4c')](_0x4b6f25)[_0xa333('0x25')](handleEntityNotFound(_0x44f9b4,null))['then'](respondWithResult(_0x44f9b4,null))[_0xa333('0x49')](handleError(_0x44f9b4,null));};exports[_0xa333('0x4d')]=function(_0x488b70,_0x31eed4){return db[_0xa333('0x30')][_0xa333('0x4d')](_0x488b70[_0xa333('0x2b')],{})['then'](respondWithResult(_0x31eed4,0xc9))[_0xa333('0x49')](handleError(_0x31eed4,null));};exports[_0xa333('0x24')]=function(_0x1f5a6a,_0x54cd51){if(_0x1f5a6a[_0xa333('0x2b')]['id']){delete _0x1f5a6a[_0xa333('0x2b')]['id'];}return db['VoiceDialReport'][_0xa333('0x4c')]({'where':{'id':_0x1f5a6a[_0xa333('0x4e')]['id']}})[_0xa333('0x25')](handleEntityNotFound(_0x54cd51,null))['then'](saveUpdates(_0x1f5a6a[_0xa333('0x2b')],null))[_0xa333('0x25')](respondWithResult(_0x54cd51,null))[_0xa333('0x49')](handleError(_0x54cd51,null));};exports[_0xa333('0x26')]=function(_0x345ea9,_0x1df6d1){return db[_0xa333('0x30')][_0xa333('0x4c')]({'where':{'id':_0x345ea9[_0xa333('0x4e')]['id']}})[_0xa333('0x25')](handleEntityNotFound(_0x1df6d1,null))[_0xa333('0x25')](removeEntity(_0x1df6d1,null))[_0xa333('0x49')](handleError(_0x1df6d1,null));};exports[_0xa333('0x4f')]=function(_0xc2d6b2,_0x57365e){return db[_0xa333('0x30')][_0xa333('0x4f')]()[_0xa333('0x25')](respondWithResult(_0x57365e,null))[_0xa333('0x49')](handleError(_0x57365e,null));};
\ No newline at end of file