Built motion from commit 936e8062.|2.5.33
[motion2.git] / server / api / voiceTransferReport / voiceTransferReport.controller.js
index a26426d..90d0fea 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 _0x3c5f=['../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','json','offset','undefined','limit','count','Content-Range','apply','reject','save','update','then','destroy','error','stack','name','index','map','VoiceTransferReport','fieldName','type','model','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','sort','where','pick','filter','merge','options','includeAll','include','rows','catch','show','params','find','create','body','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','mustache','util','ejs','lodash','crypto','to-csv','querystring','papaparse'];(function(_0x373872,_0x3abddf){var _0xd664ff=function(_0x3dea28){while(--_0x3dea28){_0x373872['push'](_0x373872['shift']());}};_0xd664ff(++_0x3abddf);}(_0x3c5f,0xc4));var _0xf3c5=function(_0x5ead2b,_0x24735e){_0x5ead2b=_0x5ead2b-0x0;var _0x38d0b5=_0x3c5f[_0x5ead2b];return _0x38d0b5;};'use strict';var emlformat=require(_0xf3c5('0x0'));var rimraf=require(_0xf3c5('0x1'));var zipdir=require(_0xf3c5('0x2'));var jsonpatch=require(_0xf3c5('0x3'));var rp=require(_0xf3c5('0x4'));var moment=require(_0xf3c5('0x5'));var BPromise=require('bluebird');var Mustache=require(_0xf3c5('0x6'));var util=require(_0xf3c5('0x7'));var path=require('path');var sox=require('sox');var csv=require('to-csv');var ejs=require(_0xf3c5('0x8'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0xf3c5('0x9'));var squel=require('squel');var crypto=require(_0xf3c5('0xa'));var jsforce=require('jsforce');var deskjs=require('desk.js');var toCsv=require(_0xf3c5('0xb'));var querystring=require(_0xf3c5('0xc'));var Papa=require(_0xf3c5('0xd'));var Redis=require('ioredis');var authService=require(_0xf3c5('0xe'));var qs=require(_0xf3c5('0xf'));var as=require(_0xf3c5('0x10'));var hardwareService=require('../../config/license/hardware');var logger=require(_0xf3c5('0x11'))('api');var utils=require(_0xf3c5('0x12'));var config=require(_0xf3c5('0x13'));var licenseUtil=require(_0xf3c5('0x14'));var db=require(_0xf3c5('0x15'))['db'];function respondWithStatusCode(_0xad1f40,_0x77d32a){_0x77d32a=_0x77d32a||0xcc;return function(_0x26cd78){if(_0x26cd78){return _0xad1f40[_0xf3c5('0x16')](_0x77d32a);}return _0xad1f40[_0xf3c5('0x17')](_0x77d32a)['end']();};}function respondWithResult(_0x145699,_0x449b5e){_0x449b5e=_0x449b5e||0xc8;return function(_0x1e8731){if(_0x1e8731){return _0x145699['status'](_0x449b5e)[_0xf3c5('0x18')](_0x1e8731);}};}function respondWithFilteredResult(_0x1b29e7,_0x372a64){return function(_0x45d7a7){if(_0x45d7a7){var _0x2ed36b=typeof _0x372a64[_0xf3c5('0x19')]===_0xf3c5('0x1a')&&typeof _0x372a64[_0xf3c5('0x1b')]==='undefined';var _0x51fd95=_0x45d7a7[_0xf3c5('0x1c')];var _0x11ce18=_0x2ed36b?0x0:_0x372a64[_0xf3c5('0x19')];var _0x545b55=_0x2ed36b?_0x45d7a7[_0xf3c5('0x1c')]:_0x372a64[_0xf3c5('0x19')]+_0x372a64[_0xf3c5('0x1b')];var _0x5875a2;if(_0x545b55>=_0x51fd95){_0x545b55=_0x51fd95;_0x5875a2=0xc8;}else{_0x5875a2=0xce;}_0x1b29e7[_0xf3c5('0x17')](_0x5875a2);return _0x1b29e7['set'](_0xf3c5('0x1d'),_0x11ce18+'-'+_0x545b55+'/'+_0x51fd95)['json'](_0x45d7a7);}return null;};}function patchUpdates(_0x5f021f){return function(_0x518c86){try{jsonpatch[_0xf3c5('0x1e')](_0x518c86,_0x5f021f,!![]);}catch(_0x31e720){return BPromise[_0xf3c5('0x1f')](_0x31e720);}return _0x518c86[_0xf3c5('0x20')]();};}function saveUpdates(_0x39de6c,_0x52e170){return function(_0x5a01b7){if(_0x5a01b7){return _0x5a01b7[_0xf3c5('0x21')](_0x39de6c)[_0xf3c5('0x22')](function(_0x4fe6ef){return _0x4fe6ef;});}return null;};}function removeEntity(_0x12bef7,_0x1c81bf){return function(_0x38fccd){if(_0x38fccd){return _0x38fccd[_0xf3c5('0x23')]()['then'](function(){_0x12bef7[_0xf3c5('0x17')](0xcc)['end']();});}};}function handleEntityNotFound(_0x8b7812,_0x202174){return function(_0x126bb0){if(!_0x126bb0){_0x8b7812[_0xf3c5('0x16')](0x194);}return _0x126bb0;};}function handleError(_0x5f4712,_0xccb057){_0xccb057=_0xccb057||0x1f4;return function(_0x1915a5){logger[_0xf3c5('0x24')](_0x1915a5[_0xf3c5('0x25')]);if(_0x1915a5[_0xf3c5('0x26')]){delete _0x1915a5[_0xf3c5('0x26')];}_0x5f4712['status'](_0xccb057)['send'](_0x1915a5);};}exports[_0xf3c5('0x27')]=function(_0x3c9bc5,_0x322452){var _0xc4ddb3={},_0xda4cf2={},_0x3b0308={'count':0x0,'rows':[]};var _0x7c7423=_[_0xf3c5('0x28')](db[_0xf3c5('0x29')]['rawAttributes'],function(_0xaf4019){return{'name':_0xaf4019[_0xf3c5('0x2a')],'type':_0xaf4019[_0xf3c5('0x2b')]['key']};});_0xda4cf2[_0xf3c5('0x2c')]=_[_0xf3c5('0x28')](_0x7c7423,_0xf3c5('0x26'));_0xda4cf2[_0xf3c5('0x2d')]=_[_0xf3c5('0x2e')](_0x3c9bc5[_0xf3c5('0x2d')]);_0xda4cf2[_0xf3c5('0x2f')]=_[_0xf3c5('0x30')](_0xda4cf2[_0xf3c5('0x2c')],_0xda4cf2[_0xf3c5('0x2d')]);_0xc4ddb3[_0xf3c5('0x31')]=_[_0xf3c5('0x30')](_0xda4cf2['model'],qs[_0xf3c5('0x32')](_0x3c9bc5[_0xf3c5('0x2d')][_0xf3c5('0x32')]));_0xc4ddb3[_0xf3c5('0x31')]=_0xc4ddb3[_0xf3c5('0x31')][_0xf3c5('0x33')]?_0xc4ddb3[_0xf3c5('0x31')]:_0xda4cf2['model'];if(!_0x3c9bc5[_0xf3c5('0x2d')][_0xf3c5('0x34')](_0xf3c5('0x35'))){_0xc4ddb3[_0xf3c5('0x1b')]=qs[_0xf3c5('0x1b')](_0x3c9bc5[_0xf3c5('0x2d')][_0xf3c5('0x1b')]);_0xc4ddb3[_0xf3c5('0x19')]=qs['offset'](_0x3c9bc5[_0xf3c5('0x2d')][_0xf3c5('0x19')]);}_0xc4ddb3['order']=qs[_0xf3c5('0x36')](_0x3c9bc5['query'][_0xf3c5('0x36')]);_0xc4ddb3[_0xf3c5('0x37')]=qs[_0xf3c5('0x2f')](_[_0xf3c5('0x38')](_0x3c9bc5['query'],_0xda4cf2[_0xf3c5('0x2f')]),_0x7c7423);if(_0x3c9bc5[_0xf3c5('0x2d')][_0xf3c5('0x39')]){_0xc4ddb3[_0xf3c5('0x37')]=_[_0xf3c5('0x3a')](_0xc4ddb3[_0xf3c5('0x37')],{'$or':_[_0xf3c5('0x28')](_0x7c7423,function(_0x1c751c){if(_0x1c751c[_0xf3c5('0x2b')]!=='VIRTUAL'){var _0xfb927={};_0xfb927[_0x1c751c[_0xf3c5('0x26')]]={'$like':'%'+_0x3c9bc5[_0xf3c5('0x2d')]['filter']+'%'};return _0xfb927;}})});}_0xc4ddb3=_[_0xf3c5('0x3a')]({},_0xc4ddb3,_0x3c9bc5[_0xf3c5('0x3b')]);var _0x4a673a={'where':_0xc4ddb3[_0xf3c5('0x37')]};return db[_0xf3c5('0x29')][_0xf3c5('0x1c')](_0x4a673a)[_0xf3c5('0x22')](function(_0x5df5e4){_0x3b0308[_0xf3c5('0x1c')]=_0x5df5e4;if(_0x3c9bc5[_0xf3c5('0x2d')][_0xf3c5('0x3c')]){_0xc4ddb3[_0xf3c5('0x3d')]=[{'all':!![]}];}return db[_0xf3c5('0x29')]['findAll'](_0xc4ddb3);})[_0xf3c5('0x22')](function(_0x1bdcaa){_0x3b0308[_0xf3c5('0x3e')]=_0x1bdcaa;return _0x3b0308;})['then'](respondWithFilteredResult(_0x322452,_0xc4ddb3))[_0xf3c5('0x3f')](handleError(_0x322452,null));};exports[_0xf3c5('0x40')]=function(_0x929ae,_0x141473){var _0x8a127a={'raw':!![],'where':{'id':_0x929ae[_0xf3c5('0x41')]['id']}},_0xe2c161={};_0xe2c161[_0xf3c5('0x2c')]=_[_0xf3c5('0x2e')](db['VoiceTransferReport']['rawAttributes']);_0xe2c161['query']=_['keys'](_0x929ae[_0xf3c5('0x2d')]);_0xe2c161[_0xf3c5('0x2f')]=_['intersection'](_0xe2c161[_0xf3c5('0x2c')],_0xe2c161[_0xf3c5('0x2d')]);_0x8a127a[_0xf3c5('0x31')]=_[_0xf3c5('0x30')](_0xe2c161['model'],qs[_0xf3c5('0x32')](_0x929ae[_0xf3c5('0x2d')][_0xf3c5('0x32')]));_0x8a127a[_0xf3c5('0x31')]=_0x8a127a[_0xf3c5('0x31')]['length']?_0x8a127a['attributes']:_0xe2c161[_0xf3c5('0x2c')];if(_0x929ae[_0xf3c5('0x2d')]['includeAll']){_0x8a127a[_0xf3c5('0x3d')]=[{'all':!![]}];}_0x8a127a=_[_0xf3c5('0x3a')]({},_0x8a127a,_0x929ae['options']);return db[_0xf3c5('0x29')][_0xf3c5('0x42')](_0x8a127a)[_0xf3c5('0x22')](handleEntityNotFound(_0x141473,null))[_0xf3c5('0x22')](respondWithResult(_0x141473,null))[_0xf3c5('0x3f')](handleError(_0x141473,null));};exports[_0xf3c5('0x43')]=function(_0x59b92f,_0x319258){return db[_0xf3c5('0x29')][_0xf3c5('0x43')](_0x59b92f[_0xf3c5('0x44')],{})[_0xf3c5('0x22')](respondWithResult(_0x319258,0xc9))[_0xf3c5('0x3f')](handleError(_0x319258,null));};exports[_0xf3c5('0x21')]=function(_0x71bad9,_0x4c5c4b){if(_0x71bad9[_0xf3c5('0x44')]['id']){delete _0x71bad9['body']['id'];}return db[_0xf3c5('0x29')][_0xf3c5('0x42')]({'where':{'id':_0x71bad9['params']['id']}})[_0xf3c5('0x22')](handleEntityNotFound(_0x4c5c4b,null))[_0xf3c5('0x22')](saveUpdates(_0x71bad9[_0xf3c5('0x44')],null))[_0xf3c5('0x22')](respondWithResult(_0x4c5c4b,null))[_0xf3c5('0x3f')](handleError(_0x4c5c4b,null));};exports[_0xf3c5('0x23')]=function(_0x4b3953,_0x56c53d){return db['VoiceTransferReport'][_0xf3c5('0x42')]({'where':{'id':_0x4b3953[_0xf3c5('0x41')]['id']}})['then'](handleEntityNotFound(_0x56c53d,null))[_0xf3c5('0x22')](removeEntity(_0x56c53d,null))[_0xf3c5('0x3f')](handleError(_0x56c53d,null));};exports['describe']=function(_0x34f1df,_0x23267e){return db[_0xf3c5('0x29')][_0xf3c5('0x45')]()[_0xf3c5('0x22')](respondWithResult(_0x23267e,null))['catch'](handleError(_0x23267e,null));};
\ No newline at end of file