Built motion from commit b5413ace.|2.6.9
[motion2.git] / server / api / voiceTransferReport / voiceTransferReport.controller.js
index a26426d..989f553 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbf38=['../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','json','count','offset','limit','Content-Range','apply','destroy','then','end','error','stack','name','send','index','VoiceTransferReport','fieldName','type','key','model','map','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','order','sort','where','filter','VIRTUAL','options','include','rows','catch','show','params','rawAttributes','includeAll','merge','create','body','update','find','html-pdf','rimraf','fast-json-patch','request-promise','moment','bluebird','mustache','util','sox','to-csv','ejs','lodash','squel','crypto','jsforce','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs'];(function(_0x1eb9a2,_0x1b8f63){var _0x5aa1ee=function(_0x3b39bc){while(--_0x3b39bc){_0x1eb9a2['push'](_0x1eb9a2['shift']());}};_0x5aa1ee(++_0x1b8f63);}(_0xbf38,0x118));var _0x8bf3=function(_0x7a8ee9,_0x39028f){_0x7a8ee9=_0x7a8ee9-0x0;var _0x30e5a7=_0xbf38[_0x7a8ee9];return _0x30e5a7;};'use strict';var pdf=require(_0x8bf3('0x0'));var emlformat=require('eml-format');var rimraf=require(_0x8bf3('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0x8bf3('0x2'));var rp=require(_0x8bf3('0x3'));var moment=require(_0x8bf3('0x4'));var BPromise=require(_0x8bf3('0x5'));var Mustache=require(_0x8bf3('0x6'));var util=require(_0x8bf3('0x7'));var path=require('path');var sox=require(_0x8bf3('0x8'));var csv=require(_0x8bf3('0x9'));var ejs=require(_0x8bf3('0xa'));var fs=require('fs');var _=require(_0x8bf3('0xb'));var squel=require(_0x8bf3('0xc'));var crypto=require(_0x8bf3('0xd'));var jsforce=require(_0x8bf3('0xe'));var deskjs=require('desk.js');var toCsv=require(_0x8bf3('0x9'));var querystring=require(_0x8bf3('0xf'));var Papa=require(_0x8bf3('0x10'));var Redis=require(_0x8bf3('0x11'));var authService=require(_0x8bf3('0x12'));var qs=require(_0x8bf3('0x13'));var as=require(_0x8bf3('0x14'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x8bf3('0x15'))(_0x8bf3('0x16'));var utils=require(_0x8bf3('0x17'));var config=require(_0x8bf3('0x18'));var licenseUtil=require(_0x8bf3('0x19'));var db=require(_0x8bf3('0x1a'))['db'];function respondWithStatusCode(_0x2f3e48,_0x30831c){_0x30831c=_0x30831c||0xcc;return function(_0x41cdda){if(_0x41cdda){return _0x2f3e48[_0x8bf3('0x1b')](_0x30831c);}return _0x2f3e48[_0x8bf3('0x1c')](_0x30831c)['end']();};}function respondWithResult(_0x338165,_0x264168){_0x264168=_0x264168||0xc8;return function(_0x4acc62){if(_0x4acc62){return _0x338165[_0x8bf3('0x1c')](_0x264168)[_0x8bf3('0x1d')](_0x4acc62);}};}function respondWithFilteredResult(_0x533c8d,_0x2ec636){return function(_0x38776b){if(_0x38776b){var _0x1ca69e=_0x38776b[_0x8bf3('0x1e')],_0x9ea987=_0x2ec636[_0x8bf3('0x1f')],_0x5b6fa2=_0x2ec636[_0x8bf3('0x1f')]+_0x2ec636[_0x8bf3('0x20')],_0x5d721a;if(_0x5b6fa2>=_0x1ca69e){_0x5b6fa2=_0x1ca69e;_0x5d721a=0xc8;}else{_0x5d721a=0xce;}_0x533c8d[_0x8bf3('0x1c')](_0x5d721a);return _0x533c8d['set'](_0x8bf3('0x21'),_0x9ea987+'-'+_0x5b6fa2+'/'+_0x1ca69e)[_0x8bf3('0x1d')](_0x38776b);}return null;};}function patchUpdates(_0x2f4e15){return function(_0x4398fa){try{jsonpatch[_0x8bf3('0x22')](_0x4398fa,_0x2f4e15,!![]);}catch(_0x4bb453){return BPromise['reject'](_0x4bb453);}return _0x4398fa['save']();};}function saveUpdates(_0xfe755f,_0x3f0687){return function(_0x2f301e){if(_0x2f301e){return _0x2f301e['update'](_0xfe755f)['then'](function(_0x4c9567){return _0x4c9567;});}return null;};}function removeEntity(_0x4ce9af,_0x3a7f16){return function(_0x3ec4fd){if(_0x3ec4fd){return _0x3ec4fd[_0x8bf3('0x23')]()[_0x8bf3('0x24')](function(){_0x4ce9af[_0x8bf3('0x1c')](0xcc)[_0x8bf3('0x25')]();});}};}function handleEntityNotFound(_0x2699b8,_0x291c1d){return function(_0x3ac8d6){if(!_0x3ac8d6){_0x2699b8[_0x8bf3('0x1b')](0x194);}return _0x3ac8d6;};}function handleError(_0x2ca912,_0x132acf){_0x132acf=_0x132acf||0x1f4;return function(_0x437792){logger[_0x8bf3('0x26')](_0x437792[_0x8bf3('0x27')]);if(_0x437792[_0x8bf3('0x28')]){delete _0x437792[_0x8bf3('0x28')];}_0x2ca912[_0x8bf3('0x1c')](_0x132acf)[_0x8bf3('0x29')](_0x437792);};}exports[_0x8bf3('0x2a')]=function(_0x257c77,_0x21336a){var _0x5988d1={},_0x217bc3={},_0xcf9f4b={'count':0x0,'rows':[]};var _0x42d3f8=_['map'](db[_0x8bf3('0x2b')]['rawAttributes'],function(_0x55cd84){return{'name':_0x55cd84[_0x8bf3('0x2c')],'type':_0x55cd84[_0x8bf3('0x2d')][_0x8bf3('0x2e')]};});_0x217bc3[_0x8bf3('0x2f')]=_[_0x8bf3('0x30')](_0x42d3f8,_0x8bf3('0x28'));_0x217bc3[_0x8bf3('0x31')]=_[_0x8bf3('0x32')](_0x257c77[_0x8bf3('0x31')]);_0x217bc3[_0x8bf3('0x33')]=_[_0x8bf3('0x34')](_0x217bc3[_0x8bf3('0x2f')],_0x217bc3[_0x8bf3('0x31')]);_0x5988d1[_0x8bf3('0x35')]=_[_0x8bf3('0x34')](_0x217bc3['model'],qs['fields'](_0x257c77[_0x8bf3('0x31')][_0x8bf3('0x36')]));_0x5988d1['attributes']=_0x5988d1[_0x8bf3('0x35')][_0x8bf3('0x37')]?_0x5988d1[_0x8bf3('0x35')]:_0x217bc3[_0x8bf3('0x2f')];if(!_0x257c77[_0x8bf3('0x31')][_0x8bf3('0x38')]('nolimit')){_0x5988d1[_0x8bf3('0x20')]=qs[_0x8bf3('0x20')](_0x257c77[_0x8bf3('0x31')][_0x8bf3('0x20')]);_0x5988d1['offset']=qs['offset'](_0x257c77[_0x8bf3('0x31')][_0x8bf3('0x1f')]);}_0x5988d1[_0x8bf3('0x39')]=qs[_0x8bf3('0x3a')](_0x257c77[_0x8bf3('0x31')]['sort']);_0x5988d1[_0x8bf3('0x3b')]=qs[_0x8bf3('0x33')](_['pick'](_0x257c77[_0x8bf3('0x31')],_0x217bc3[_0x8bf3('0x33')]),_0x42d3f8);if(_0x257c77[_0x8bf3('0x31')][_0x8bf3('0x3c')]){_0x5988d1[_0x8bf3('0x3b')]=_['merge'](_0x5988d1[_0x8bf3('0x3b')],{'$or':_[_0x8bf3('0x30')](_0x42d3f8,function(_0x442791){if(_0x442791[_0x8bf3('0x2d')]!==_0x8bf3('0x3d')){var _0xfe395a={};_0xfe395a[_0x442791[_0x8bf3('0x28')]]={'$like':'%'+_0x257c77['query'][_0x8bf3('0x3c')]+'%'};return _0xfe395a;}})});}_0x5988d1=_['merge']({},_0x5988d1,_0x257c77[_0x8bf3('0x3e')]);var _0x39c39c={'where':_0x5988d1[_0x8bf3('0x3b')]};return db[_0x8bf3('0x2b')][_0x8bf3('0x1e')](_0x39c39c)[_0x8bf3('0x24')](function(_0x5c43f7){_0xcf9f4b[_0x8bf3('0x1e')]=_0x5c43f7;if(_0x257c77[_0x8bf3('0x31')]['includeAll']){_0x5988d1[_0x8bf3('0x3f')]=[{'all':!![]}];}return db[_0x8bf3('0x2b')]['findAll'](_0x5988d1);})[_0x8bf3('0x24')](function(_0x25ae23){_0xcf9f4b[_0x8bf3('0x40')]=_0x25ae23;return _0xcf9f4b;})[_0x8bf3('0x24')](respondWithFilteredResult(_0x21336a,_0x5988d1))[_0x8bf3('0x41')](handleError(_0x21336a,null));};exports[_0x8bf3('0x42')]=function(_0x504510,_0xb56dc2){var _0x42acb2={'raw':!![],'where':{'id':_0x504510[_0x8bf3('0x43')]['id']}},_0x191994={};_0x191994[_0x8bf3('0x2f')]=_[_0x8bf3('0x32')](db['VoiceTransferReport'][_0x8bf3('0x44')]);_0x191994[_0x8bf3('0x31')]=_[_0x8bf3('0x32')](_0x504510['query']);_0x191994[_0x8bf3('0x33')]=_[_0x8bf3('0x34')](_0x191994[_0x8bf3('0x2f')],_0x191994['query']);_0x42acb2[_0x8bf3('0x35')]=_[_0x8bf3('0x34')](_0x191994[_0x8bf3('0x2f')],qs[_0x8bf3('0x36')](_0x504510[_0x8bf3('0x31')][_0x8bf3('0x36')]));_0x42acb2[_0x8bf3('0x35')]=_0x42acb2['attributes']['length']?_0x42acb2['attributes']:_0x191994['model'];if(_0x504510[_0x8bf3('0x31')][_0x8bf3('0x45')]){_0x42acb2[_0x8bf3('0x3f')]=[{'all':!![]}];}_0x42acb2=_[_0x8bf3('0x46')]({},_0x42acb2,_0x504510[_0x8bf3('0x3e')]);return db[_0x8bf3('0x2b')]['find'](_0x42acb2)['then'](handleEntityNotFound(_0xb56dc2,null))[_0x8bf3('0x24')](respondWithResult(_0xb56dc2,null))['catch'](handleError(_0xb56dc2,null));};exports[_0x8bf3('0x47')]=function(_0x28d988,_0x4a98f0){return db[_0x8bf3('0x2b')][_0x8bf3('0x47')](_0x28d988[_0x8bf3('0x48')],{})['then'](respondWithResult(_0x4a98f0,0xc9))[_0x8bf3('0x41')](handleError(_0x4a98f0,null));};exports[_0x8bf3('0x49')]=function(_0x48e2dd,_0x23f002){if(_0x48e2dd[_0x8bf3('0x48')]['id']){delete _0x48e2dd[_0x8bf3('0x48')]['id'];}return db[_0x8bf3('0x2b')][_0x8bf3('0x4a')]({'where':{'id':_0x48e2dd[_0x8bf3('0x43')]['id']}})[_0x8bf3('0x24')](handleEntityNotFound(_0x23f002,null))[_0x8bf3('0x24')](saveUpdates(_0x48e2dd[_0x8bf3('0x48')],null))[_0x8bf3('0x24')](respondWithResult(_0x23f002,null))['catch'](handleError(_0x23f002,null));};exports[_0x8bf3('0x23')]=function(_0x55398f,_0x2c0a13){return db[_0x8bf3('0x2b')][_0x8bf3('0x4a')]({'where':{'id':_0x55398f[_0x8bf3('0x43')]['id']}})[_0x8bf3('0x24')](handleEntityNotFound(_0x2c0a13,null))['then'](removeEntity(_0x2c0a13,null))[_0x8bf3('0x41')](handleError(_0x2c0a13,null));};
\ No newline at end of file
+var _0xa6a0=['rows','show','params','options','find','catch','create','update','body','describe','eml-format','rimraf','zip-dir','request-promise','moment','bluebird','util','path','sox','ejs','lodash','squel','crypto','jsforce','desk.js','to-csv','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/utils','../../mysqldb','sendStatus','status','end','json','offset','undefined','count','limit','Content-Range','apply','reject','save','destroy','then','error','stack','name','send','rawAttributes','fieldName','type','key','model','map','keys','query','filters','intersection','attributes','fields','length','hasOwnProperty','order','sort','where','filter','merge','VoiceTransferReport','includeAll','include','findAll'];(function(_0x417570,_0x414ca3){var _0x11087e=function(_0x1cfec7){while(--_0x1cfec7){_0x417570['push'](_0x417570['shift']());}};_0x11087e(++_0x414ca3);}(_0xa6a0,0x1cc));var _0x0a6a=function(_0x167cc1,_0x56ef5a){_0x167cc1=_0x167cc1-0x0;var _0x10bc4b=_0xa6a0[_0x167cc1];return _0x10bc4b;};'use strict';var emlformat=require(_0x0a6a('0x0'));var rimraf=require(_0x0a6a('0x1'));var zipdir=require(_0x0a6a('0x2'));var jsonpatch=require('fast-json-patch');var rp=require(_0x0a6a('0x3'));var moment=require(_0x0a6a('0x4'));var BPromise=require(_0x0a6a('0x5'));var Mustache=require('mustache');var util=require(_0x0a6a('0x6'));var path=require(_0x0a6a('0x7'));var sox=require(_0x0a6a('0x8'));var csv=require('to-csv');var ejs=require(_0x0a6a('0x9'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x0a6a('0xa'));var squel=require(_0x0a6a('0xb'));var crypto=require(_0x0a6a('0xc'));var jsforce=require(_0x0a6a('0xd'));var deskjs=require(_0x0a6a('0xe'));var toCsv=require(_0x0a6a('0xf'));var querystring=require('querystring');var Papa=require(_0x0a6a('0x10'));var Redis=require(_0x0a6a('0x11'));var authService=require(_0x0a6a('0x12'));var qs=require(_0x0a6a('0x13'));var as=require(_0x0a6a('0x14'));var hardwareService=require(_0x0a6a('0x15'));var logger=require('../../config/logger')('api');var utils=require(_0x0a6a('0x16'));var config=require('../../config/environment');var licenseUtil=require('../../config/license/util');var db=require(_0x0a6a('0x17'))['db'];function respondWithStatusCode(_0x2ad54d,_0x402927){_0x402927=_0x402927||0xcc;return function(_0x5d19cf){if(_0x5d19cf){return _0x2ad54d[_0x0a6a('0x18')](_0x402927);}return _0x2ad54d[_0x0a6a('0x19')](_0x402927)[_0x0a6a('0x1a')]();};}function respondWithResult(_0x3cde77,_0x5b5e55){_0x5b5e55=_0x5b5e55||0xc8;return function(_0x4d4acd){if(_0x4d4acd){return _0x3cde77['status'](_0x5b5e55)[_0x0a6a('0x1b')](_0x4d4acd);}};}function respondWithFilteredResult(_0x4b10a7,_0x110a7a){return function(_0x10ba2f){if(_0x10ba2f){var _0x82f514=typeof _0x110a7a[_0x0a6a('0x1c')]===_0x0a6a('0x1d')&&typeof _0x110a7a['limit']===_0x0a6a('0x1d');var _0x551c07=_0x10ba2f[_0x0a6a('0x1e')];var _0x66312a=_0x82f514?0x0:_0x110a7a['offset'];var _0x5355bf=_0x82f514?_0x10ba2f['count']:_0x110a7a['offset']+_0x110a7a[_0x0a6a('0x1f')];var _0x4a755a;if(_0x5355bf>=_0x551c07){_0x5355bf=_0x551c07;_0x4a755a=0xc8;}else{_0x4a755a=0xce;}_0x4b10a7[_0x0a6a('0x19')](_0x4a755a);return _0x4b10a7['set'](_0x0a6a('0x20'),_0x66312a+'-'+_0x5355bf+'/'+_0x551c07)[_0x0a6a('0x1b')](_0x10ba2f);}return null;};}function patchUpdates(_0x110e81){return function(_0x3fde14){try{jsonpatch[_0x0a6a('0x21')](_0x3fde14,_0x110e81,!![]);}catch(_0x3d1c02){return BPromise[_0x0a6a('0x22')](_0x3d1c02);}return _0x3fde14[_0x0a6a('0x23')]();};}function saveUpdates(_0x2abd21,_0x6b5e78){return function(_0x454f95){if(_0x454f95){return _0x454f95['update'](_0x2abd21)['then'](function(_0xeb7837){return _0xeb7837;});}return null;};}function removeEntity(_0x124da6,_0x5a87ee){return function(_0x434278){if(_0x434278){return _0x434278[_0x0a6a('0x24')]()[_0x0a6a('0x25')](function(){_0x124da6[_0x0a6a('0x19')](0xcc)['end']();});}};}function handleEntityNotFound(_0x52c079,_0x525a06){return function(_0xfc33c9){if(!_0xfc33c9){_0x52c079[_0x0a6a('0x18')](0x194);}return _0xfc33c9;};}function handleError(_0x526605,_0x2e2c32){_0x2e2c32=_0x2e2c32||0x1f4;return function(_0x559787){logger[_0x0a6a('0x26')](_0x559787[_0x0a6a('0x27')]);if(_0x559787[_0x0a6a('0x28')]){delete _0x559787['name'];}_0x526605[_0x0a6a('0x19')](_0x2e2c32)[_0x0a6a('0x29')](_0x559787);};}exports['index']=function(_0x4e4a76,_0x556537){var _0x3317aa={},_0x4fe490={},_0x1cce5c={'count':0x0,'rows':[]};var _0x1939be=_['map'](db['VoiceTransferReport'][_0x0a6a('0x2a')],function(_0x4c33b4){return{'name':_0x4c33b4[_0x0a6a('0x2b')],'type':_0x4c33b4[_0x0a6a('0x2c')][_0x0a6a('0x2d')]};});_0x4fe490[_0x0a6a('0x2e')]=_[_0x0a6a('0x2f')](_0x1939be,_0x0a6a('0x28'));_0x4fe490['query']=_[_0x0a6a('0x30')](_0x4e4a76[_0x0a6a('0x31')]);_0x4fe490[_0x0a6a('0x32')]=_[_0x0a6a('0x33')](_0x4fe490[_0x0a6a('0x2e')],_0x4fe490['query']);_0x3317aa[_0x0a6a('0x34')]=_[_0x0a6a('0x33')](_0x4fe490[_0x0a6a('0x2e')],qs[_0x0a6a('0x35')](_0x4e4a76[_0x0a6a('0x31')][_0x0a6a('0x35')]));_0x3317aa['attributes']=_0x3317aa['attributes'][_0x0a6a('0x36')]?_0x3317aa[_0x0a6a('0x34')]:_0x4fe490[_0x0a6a('0x2e')];if(!_0x4e4a76['query'][_0x0a6a('0x37')]('nolimit')){_0x3317aa[_0x0a6a('0x1f')]=qs[_0x0a6a('0x1f')](_0x4e4a76[_0x0a6a('0x31')][_0x0a6a('0x1f')]);_0x3317aa['offset']=qs[_0x0a6a('0x1c')](_0x4e4a76[_0x0a6a('0x31')]['offset']);}_0x3317aa[_0x0a6a('0x38')]=qs['sort'](_0x4e4a76['query'][_0x0a6a('0x39')]);_0x3317aa[_0x0a6a('0x3a')]=qs[_0x0a6a('0x32')](_['pick'](_0x4e4a76[_0x0a6a('0x31')],_0x4fe490[_0x0a6a('0x32')]),_0x1939be);if(_0x4e4a76[_0x0a6a('0x31')][_0x0a6a('0x3b')]){_0x3317aa[_0x0a6a('0x3a')]=_[_0x0a6a('0x3c')](_0x3317aa[_0x0a6a('0x3a')],{'$or':_[_0x0a6a('0x2f')](_0x1939be,function(_0x4451b1){if(_0x4451b1[_0x0a6a('0x2c')]!=='VIRTUAL'){var _0xb0609b={};_0xb0609b[_0x4451b1['name']]={'$like':'%'+_0x4e4a76[_0x0a6a('0x31')][_0x0a6a('0x3b')]+'%'};return _0xb0609b;}})});}_0x3317aa=_[_0x0a6a('0x3c')]({},_0x3317aa,_0x4e4a76['options']);var _0x14d0a7={'where':_0x3317aa[_0x0a6a('0x3a')]};return db[_0x0a6a('0x3d')][_0x0a6a('0x1e')](_0x14d0a7)['then'](function(_0x46cc38){_0x1cce5c['count']=_0x46cc38;if(_0x4e4a76['query'][_0x0a6a('0x3e')]){_0x3317aa[_0x0a6a('0x3f')]=[{'all':!![]}];}return db['VoiceTransferReport'][_0x0a6a('0x40')](_0x3317aa);})[_0x0a6a('0x25')](function(_0x18bdf0){_0x1cce5c[_0x0a6a('0x41')]=_0x18bdf0;return _0x1cce5c;})[_0x0a6a('0x25')](respondWithFilteredResult(_0x556537,_0x3317aa))['catch'](handleError(_0x556537,null));};exports[_0x0a6a('0x42')]=function(_0x1787d4,_0x461144){var _0x396389={'raw':!![],'where':{'id':_0x1787d4[_0x0a6a('0x43')]['id']}},_0x5fefec={};_0x5fefec[_0x0a6a('0x2e')]=_[_0x0a6a('0x30')](db[_0x0a6a('0x3d')][_0x0a6a('0x2a')]);_0x5fefec[_0x0a6a('0x31')]=_[_0x0a6a('0x30')](_0x1787d4[_0x0a6a('0x31')]);_0x5fefec['filters']=_[_0x0a6a('0x33')](_0x5fefec[_0x0a6a('0x2e')],_0x5fefec[_0x0a6a('0x31')]);_0x396389['attributes']=_[_0x0a6a('0x33')](_0x5fefec[_0x0a6a('0x2e')],qs[_0x0a6a('0x35')](_0x1787d4[_0x0a6a('0x31')][_0x0a6a('0x35')]));_0x396389['attributes']=_0x396389[_0x0a6a('0x34')][_0x0a6a('0x36')]?_0x396389['attributes']:_0x5fefec[_0x0a6a('0x2e')];if(_0x1787d4[_0x0a6a('0x31')][_0x0a6a('0x3e')]){_0x396389['include']=[{'all':!![]}];}_0x396389=_[_0x0a6a('0x3c')]({},_0x396389,_0x1787d4[_0x0a6a('0x44')]);return db[_0x0a6a('0x3d')][_0x0a6a('0x45')](_0x396389)['then'](handleEntityNotFound(_0x461144,null))['then'](respondWithResult(_0x461144,null))[_0x0a6a('0x46')](handleError(_0x461144,null));};exports[_0x0a6a('0x47')]=function(_0xe34ed0,_0x4cff40){return db[_0x0a6a('0x3d')]['create'](_0xe34ed0['body'],{})['then'](respondWithResult(_0x4cff40,0xc9))[_0x0a6a('0x46')](handleError(_0x4cff40,null));};exports[_0x0a6a('0x48')]=function(_0xa52e72,_0x3a9ba7){if(_0xa52e72[_0x0a6a('0x49')]['id']){delete _0xa52e72['body']['id'];}return db[_0x0a6a('0x3d')]['find']({'where':{'id':_0xa52e72[_0x0a6a('0x43')]['id']}})[_0x0a6a('0x25')](handleEntityNotFound(_0x3a9ba7,null))['then'](saveUpdates(_0xa52e72[_0x0a6a('0x49')],null))['then'](respondWithResult(_0x3a9ba7,null))[_0x0a6a('0x46')](handleError(_0x3a9ba7,null));};exports['destroy']=function(_0xba7c8b,_0x1fcca4){return db[_0x0a6a('0x3d')]['find']({'where':{'id':_0xba7c8b[_0x0a6a('0x43')]['id']}})[_0x0a6a('0x25')](handleEntityNotFound(_0x1fcca4,null))['then'](removeEntity(_0x1fcca4,null))[_0x0a6a('0x46')](handleError(_0x1fcca4,null));};exports[_0x0a6a('0x4a')]=function(_0x133480,_0x579196){return db['VoiceTransferReport'][_0x0a6a('0x4a')]()[_0x0a6a('0x25')](respondWithResult(_0x579196,null))['catch'](handleError(_0x579196,null));};
\ No newline at end of file