Built motion from commit 449495f6.|2.6.27
[motion2.git] / server / api / voiceDialReport / voiceDialReport.controller.js
index af20127..956babf 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9a18=['find','create','body','describe','eml-format','zip-dir','request-promise','moment','bluebird','mustache','path','sox','to-csv','ejs','fs-extra','squel','crypto','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/environment','../../config/license/util','../../mysqldb','status','end','json','offset','undefined','limit','count','set','Content-Range','apply','reject','save','update','then','destroy','error','name','send','index','VoiceDialReport','rawAttributes','type','key','model','map','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','filter','merge','options','includeAll','include','findAll','rows','catch','show','params'];(function(_0x37a109,_0x8295f2){var _0x3f1e54=function(_0x461614){while(--_0x461614){_0x37a109['push'](_0x37a109['shift']());}};_0x3f1e54(++_0x8295f2);}(_0x9a18,0x9c));var _0x89a1=function(_0x832d4d,_0x563175){_0x832d4d=_0x832d4d-0x0;var _0x44317e=_0x9a18[_0x832d4d];return _0x44317e;};'use strict';var emlformat=require(_0x89a1('0x0'));var rimraf=require('rimraf');var zipdir=require(_0x89a1('0x1'));var jsonpatch=require('fast-json-patch');var rp=require(_0x89a1('0x2'));var moment=require(_0x89a1('0x3'));var BPromise=require(_0x89a1('0x4'));var Mustache=require(_0x89a1('0x5'));var util=require('util');var path=require(_0x89a1('0x6'));var sox=require(_0x89a1('0x7'));var csv=require(_0x89a1('0x8'));var ejs=require(_0x89a1('0x9'));var fs=require('fs');var fs_extra=require(_0x89a1('0xa'));var _=require('lodash');var squel=require(_0x89a1('0xb'));var crypto=require(_0x89a1('0xc'));var jsforce=require('jsforce');var deskjs=require(_0x89a1('0xd'));var toCsv=require('to-csv');var querystring=require(_0x89a1('0xe'));var Papa=require(_0x89a1('0xf'));var Redis=require(_0x89a1('0x10'));var authService=require(_0x89a1('0x11'));var qs=require(_0x89a1('0x12'));var as=require(_0x89a1('0x13'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x89a1('0x14'))(_0x89a1('0x15'));var utils=require('../../config/utils');var config=require(_0x89a1('0x16'));var licenseUtil=require(_0x89a1('0x17'));var db=require(_0x89a1('0x18'))['db'];function respondWithStatusCode(_0x4ba116,_0x3dcab3){_0x3dcab3=_0x3dcab3||0xcc;return function(_0x27984f){if(_0x27984f){return _0x4ba116['sendStatus'](_0x3dcab3);}return _0x4ba116[_0x89a1('0x19')](_0x3dcab3)[_0x89a1('0x1a')]();};}function respondWithResult(_0x123bfd,_0x361760){_0x361760=_0x361760||0xc8;return function(_0x210eeb){if(_0x210eeb){return _0x123bfd[_0x89a1('0x19')](_0x361760)[_0x89a1('0x1b')](_0x210eeb);}};}function respondWithFilteredResult(_0x48811c,_0x5c49f3){return function(_0x2702c4){if(_0x2702c4){var _0x54e5a1=typeof _0x5c49f3[_0x89a1('0x1c')]===_0x89a1('0x1d')&&typeof _0x5c49f3[_0x89a1('0x1e')]==='undefined';var _0xcb28dc=_0x2702c4[_0x89a1('0x1f')];var _0x52ef15=_0x54e5a1?0x0:_0x5c49f3['offset'];var _0x5bfd4=_0x54e5a1?_0x2702c4[_0x89a1('0x1f')]:_0x5c49f3[_0x89a1('0x1c')]+_0x5c49f3[_0x89a1('0x1e')];var _0x599026;if(_0x5bfd4>=_0xcb28dc){_0x5bfd4=_0xcb28dc;_0x599026=0xc8;}else{_0x599026=0xce;}_0x48811c['status'](_0x599026);return _0x48811c[_0x89a1('0x20')](_0x89a1('0x21'),_0x52ef15+'-'+_0x5bfd4+'/'+_0xcb28dc)['json'](_0x2702c4);}return null;};}function patchUpdates(_0x40499e){return function(_0x31af94){try{jsonpatch[_0x89a1('0x22')](_0x31af94,_0x40499e,!![]);}catch(_0x454dfe){return BPromise[_0x89a1('0x23')](_0x454dfe);}return _0x31af94[_0x89a1('0x24')]();};}function saveUpdates(_0x459941,_0x535e1c){return function(_0x47f5a9){if(_0x47f5a9){return _0x47f5a9[_0x89a1('0x25')](_0x459941)[_0x89a1('0x26')](function(_0x2b1141){return _0x2b1141;});}return null;};}function removeEntity(_0x2a2b3b,_0xd46821){return function(_0x23c230){if(_0x23c230){return _0x23c230[_0x89a1('0x27')]()[_0x89a1('0x26')](function(){_0x2a2b3b[_0x89a1('0x19')](0xcc)[_0x89a1('0x1a')]();});}};}function handleEntityNotFound(_0x1d99e3,_0x2f2a5c){return function(_0x50e912){if(!_0x50e912){_0x1d99e3['sendStatus'](0x194);}return _0x50e912;};}function handleError(_0x1252d2,_0x42d35e){_0x42d35e=_0x42d35e||0x1f4;return function(_0x5ea53a){logger[_0x89a1('0x28')](_0x5ea53a['stack']);if(_0x5ea53a[_0x89a1('0x29')]){delete _0x5ea53a[_0x89a1('0x29')];}_0x1252d2[_0x89a1('0x19')](_0x42d35e)[_0x89a1('0x2a')](_0x5ea53a);};}exports[_0x89a1('0x2b')]=function(_0x451448,_0x34965b){var _0x479865={},_0x52bcfc={},_0x59b881={'count':0x0,'rows':[]};var _0x4aaf90=_['map'](db[_0x89a1('0x2c')][_0x89a1('0x2d')],function(_0x1c8412){return{'name':_0x1c8412['fieldName'],'type':_0x1c8412[_0x89a1('0x2e')][_0x89a1('0x2f')]};});_0x52bcfc[_0x89a1('0x30')]=_[_0x89a1('0x31')](_0x4aaf90,_0x89a1('0x29'));_0x52bcfc[_0x89a1('0x32')]=_[_0x89a1('0x33')](_0x451448[_0x89a1('0x32')]);_0x52bcfc[_0x89a1('0x34')]=_[_0x89a1('0x35')](_0x52bcfc[_0x89a1('0x30')],_0x52bcfc[_0x89a1('0x32')]);_0x479865[_0x89a1('0x36')]=_[_0x89a1('0x35')](_0x52bcfc[_0x89a1('0x30')],qs[_0x89a1('0x37')](_0x451448[_0x89a1('0x32')][_0x89a1('0x37')]));_0x479865[_0x89a1('0x36')]=_0x479865[_0x89a1('0x36')][_0x89a1('0x38')]?_0x479865[_0x89a1('0x36')]:_0x52bcfc[_0x89a1('0x30')];if(!_0x451448[_0x89a1('0x32')][_0x89a1('0x39')](_0x89a1('0x3a'))){_0x479865[_0x89a1('0x1e')]=qs[_0x89a1('0x1e')](_0x451448['query']['limit']);_0x479865[_0x89a1('0x1c')]=qs[_0x89a1('0x1c')](_0x451448['query'][_0x89a1('0x1c')]);}_0x479865[_0x89a1('0x3b')]=qs['sort'](_0x451448[_0x89a1('0x32')][_0x89a1('0x3c')]);_0x479865[_0x89a1('0x3d')]=qs[_0x89a1('0x34')](_['pick'](_0x451448['query'],_0x52bcfc[_0x89a1('0x34')]),_0x4aaf90);if(_0x451448[_0x89a1('0x32')][_0x89a1('0x3e')]){_0x479865[_0x89a1('0x3d')]=_[_0x89a1('0x3f')](_0x479865[_0x89a1('0x3d')],{'$or':_[_0x89a1('0x31')](_0x4aaf90,function(_0x26118f){if(_0x26118f[_0x89a1('0x2e')]!=='VIRTUAL'){var _0x4ee44b={};_0x4ee44b[_0x26118f['name']]={'$like':'%'+_0x451448[_0x89a1('0x32')][_0x89a1('0x3e')]+'%'};return _0x4ee44b;}})});}_0x479865=_['merge']({},_0x479865,_0x451448[_0x89a1('0x40')]);var _0x429b33={'where':_0x479865[_0x89a1('0x3d')]};return db[_0x89a1('0x2c')][_0x89a1('0x1f')](_0x429b33)[_0x89a1('0x26')](function(_0x33b7c8){_0x59b881['count']=_0x33b7c8;if(_0x451448[_0x89a1('0x32')][_0x89a1('0x41')]){_0x479865[_0x89a1('0x42')]=[{'all':!![]}];}return db[_0x89a1('0x2c')][_0x89a1('0x43')](_0x479865);})[_0x89a1('0x26')](function(_0x1534c7){_0x59b881[_0x89a1('0x44')]=_0x1534c7;return _0x59b881;})[_0x89a1('0x26')](respondWithFilteredResult(_0x34965b,_0x479865))[_0x89a1('0x45')](handleError(_0x34965b,null));};exports[_0x89a1('0x46')]=function(_0x331ba7,_0x55795b){var _0x142119={'raw':!![],'where':{'id':_0x331ba7[_0x89a1('0x47')]['id']}},_0xe7d6cb={};_0xe7d6cb[_0x89a1('0x30')]=_[_0x89a1('0x33')](db[_0x89a1('0x2c')][_0x89a1('0x2d')]);_0xe7d6cb[_0x89a1('0x32')]=_['keys'](_0x331ba7['query']);_0xe7d6cb[_0x89a1('0x34')]=_['intersection'](_0xe7d6cb[_0x89a1('0x30')],_0xe7d6cb[_0x89a1('0x32')]);_0x142119[_0x89a1('0x36')]=_['intersection'](_0xe7d6cb[_0x89a1('0x30')],qs[_0x89a1('0x37')](_0x331ba7[_0x89a1('0x32')]['fields']));_0x142119[_0x89a1('0x36')]=_0x142119[_0x89a1('0x36')][_0x89a1('0x38')]?_0x142119[_0x89a1('0x36')]:_0xe7d6cb[_0x89a1('0x30')];if(_0x331ba7[_0x89a1('0x32')][_0x89a1('0x41')]){_0x142119[_0x89a1('0x42')]=[{'all':!![]}];}_0x142119=_[_0x89a1('0x3f')]({},_0x142119,_0x331ba7[_0x89a1('0x40')]);return db[_0x89a1('0x2c')][_0x89a1('0x48')](_0x142119)['then'](handleEntityNotFound(_0x55795b,null))['then'](respondWithResult(_0x55795b,null))[_0x89a1('0x45')](handleError(_0x55795b,null));};exports[_0x89a1('0x49')]=function(_0x24bf7a,_0x267575){return db['VoiceDialReport'][_0x89a1('0x49')](_0x24bf7a['body'],{})[_0x89a1('0x26')](respondWithResult(_0x267575,0xc9))[_0x89a1('0x45')](handleError(_0x267575,null));};exports[_0x89a1('0x25')]=function(_0x4053f4,_0x178223){if(_0x4053f4[_0x89a1('0x4a')]['id']){delete _0x4053f4[_0x89a1('0x4a')]['id'];}return db[_0x89a1('0x2c')][_0x89a1('0x48')]({'where':{'id':_0x4053f4[_0x89a1('0x47')]['id']}})[_0x89a1('0x26')](handleEntityNotFound(_0x178223,null))['then'](saveUpdates(_0x4053f4['body'],null))[_0x89a1('0x26')](respondWithResult(_0x178223,null))[_0x89a1('0x45')](handleError(_0x178223,null));};exports[_0x89a1('0x27')]=function(_0x5d9669,_0x5a952d){return db[_0x89a1('0x2c')][_0x89a1('0x48')]({'where':{'id':_0x5d9669[_0x89a1('0x47')]['id']}})[_0x89a1('0x26')](handleEntityNotFound(_0x5a952d,null))[_0x89a1('0x26')](removeEntity(_0x5a952d,null))[_0x89a1('0x45')](handleError(_0x5a952d,null));};exports[_0x89a1('0x4b')]=function(_0x5ddbfd,_0x3f3ddb){return db[_0x89a1('0x2c')]['describe']()['then'](respondWithResult(_0x3f3ddb,null))['catch'](handleError(_0x3f3ddb,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