Built motion from commit b5413ace.|2.6.9
[motion2.git] / server / api / voiceQueuesLog / voiceQueuesLog.controller.js
index b1615b1..6fdbd96 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbd83=['fieldName','key','model','query','keys','filters','intersection','attributes','fields','length','hasOwnProperty','nolimit','sort','pick','filter','merge','where','count','includeAll','rows','catch','show','params','include','options','find','update','body','eml-format','rimraf','zip-dir','fast-json-patch','moment','bluebird','mustache','util','path','sox','ejs','fs-extra','lodash','crypto','jsforce','desk.js','to-csv','querystring','ioredis','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','status','end','json','offset','undefined','limit','set','Content-Range','apply','reject','save','then','destroy','sendStatus','stack','name','send','index','map','VoiceQueuesLog'];(function(_0x2755a5,_0x392163){var _0x2317d3=function(_0x2f2f4e){while(--_0x2f2f4e){_0x2755a5['push'](_0x2755a5['shift']());}};_0x2317d3(++_0x392163);}(_0xbd83,0x66));var _0x3bd8=function(_0x1857c6,_0x48840c){_0x1857c6=_0x1857c6-0x0;var _0x51011c=_0xbd83[_0x1857c6];return _0x51011c;};'use strict';var emlformat=require(_0x3bd8('0x0'));var rimraf=require(_0x3bd8('0x1'));var zipdir=require(_0x3bd8('0x2'));var jsonpatch=require(_0x3bd8('0x3'));var rp=require('request-promise');var moment=require(_0x3bd8('0x4'));var BPromise=require(_0x3bd8('0x5'));var Mustache=require(_0x3bd8('0x6'));var util=require(_0x3bd8('0x7'));var path=require(_0x3bd8('0x8'));var sox=require(_0x3bd8('0x9'));var csv=require('to-csv');var ejs=require(_0x3bd8('0xa'));var fs=require('fs');var fs_extra=require(_0x3bd8('0xb'));var _=require(_0x3bd8('0xc'));var squel=require('squel');var crypto=require(_0x3bd8('0xd'));var jsforce=require(_0x3bd8('0xe'));var deskjs=require(_0x3bd8('0xf'));var toCsv=require(_0x3bd8('0x10'));var querystring=require(_0x3bd8('0x11'));var Papa=require('papaparse');var Redis=require(_0x3bd8('0x12'));var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require(_0x3bd8('0x13'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x3bd8('0x14'))(_0x3bd8('0x15'));var utils=require(_0x3bd8('0x16'));var config=require(_0x3bd8('0x17'));var licenseUtil=require(_0x3bd8('0x18'));var db=require(_0x3bd8('0x19'))['db'];function respondWithStatusCode(_0x442e28,_0x134080){_0x134080=_0x134080||0xcc;return function(_0x21c807){if(_0x21c807){return _0x442e28['sendStatus'](_0x134080);}return _0x442e28[_0x3bd8('0x1a')](_0x134080)[_0x3bd8('0x1b')]();};}function respondWithResult(_0x4f6748,_0x3023d6){_0x3023d6=_0x3023d6||0xc8;return function(_0x18f2c4){if(_0x18f2c4){return _0x4f6748[_0x3bd8('0x1a')](_0x3023d6)[_0x3bd8('0x1c')](_0x18f2c4);}};}function respondWithFilteredResult(_0x50d829,_0xe4c3c6){return function(_0x1878d4){if(_0x1878d4){var _0x7b1ff9=typeof _0xe4c3c6[_0x3bd8('0x1d')]===_0x3bd8('0x1e')&&typeof _0xe4c3c6[_0x3bd8('0x1f')]==='undefined';var _0x388f42=_0x1878d4['count'];var _0x134b14=_0x7b1ff9?0x0:_0xe4c3c6[_0x3bd8('0x1d')];var _0x449d8e=_0x7b1ff9?_0x1878d4['count']:_0xe4c3c6[_0x3bd8('0x1d')]+_0xe4c3c6[_0x3bd8('0x1f')];var _0x53e87a;if(_0x449d8e>=_0x388f42){_0x449d8e=_0x388f42;_0x53e87a=0xc8;}else{_0x53e87a=0xce;}_0x50d829[_0x3bd8('0x1a')](_0x53e87a);return _0x50d829[_0x3bd8('0x20')](_0x3bd8('0x21'),_0x134b14+'-'+_0x449d8e+'/'+_0x388f42)['json'](_0x1878d4);}return null;};}function patchUpdates(_0x43b5c0){return function(_0x46a891){try{jsonpatch[_0x3bd8('0x22')](_0x46a891,_0x43b5c0,!![]);}catch(_0x376f88){return BPromise[_0x3bd8('0x23')](_0x376f88);}return _0x46a891[_0x3bd8('0x24')]();};}function saveUpdates(_0x6b17d8,_0x141ab5){return function(_0x33cb17){if(_0x33cb17){return _0x33cb17['update'](_0x6b17d8)[_0x3bd8('0x25')](function(_0x2955a1){return _0x2955a1;});}return null;};}function removeEntity(_0x2f8ce1,_0x101fef){return function(_0x469877){if(_0x469877){return _0x469877[_0x3bd8('0x26')]()[_0x3bd8('0x25')](function(){_0x2f8ce1[_0x3bd8('0x1a')](0xcc)['end']();});}};}function handleEntityNotFound(_0x1c67bf,_0x11a627){return function(_0xe5537e){if(!_0xe5537e){_0x1c67bf[_0x3bd8('0x27')](0x194);}return _0xe5537e;};}function handleError(_0x20a2be,_0x2565b){_0x2565b=_0x2565b||0x1f4;return function(_0x183965){logger['error'](_0x183965[_0x3bd8('0x28')]);if(_0x183965[_0x3bd8('0x29')]){delete _0x183965['name'];}_0x20a2be[_0x3bd8('0x1a')](_0x2565b)[_0x3bd8('0x2a')](_0x183965);};}exports[_0x3bd8('0x2b')]=function(_0x21d604,_0x581e46){var _0x5db8e3={},_0xc53fb4={},_0x19127a={'count':0x0,'rows':[]};var _0x1e8111=_[_0x3bd8('0x2c')](db[_0x3bd8('0x2d')]['rawAttributes'],function(_0x5b686f){return{'name':_0x5b686f[_0x3bd8('0x2e')],'type':_0x5b686f['type'][_0x3bd8('0x2f')]};});_0xc53fb4[_0x3bd8('0x30')]=_['map'](_0x1e8111,_0x3bd8('0x29'));_0xc53fb4[_0x3bd8('0x31')]=_[_0x3bd8('0x32')](_0x21d604['query']);_0xc53fb4[_0x3bd8('0x33')]=_[_0x3bd8('0x34')](_0xc53fb4[_0x3bd8('0x30')],_0xc53fb4['query']);_0x5db8e3[_0x3bd8('0x35')]=_[_0x3bd8('0x34')](_0xc53fb4[_0x3bd8('0x30')],qs[_0x3bd8('0x36')](_0x21d604['query'][_0x3bd8('0x36')]));_0x5db8e3[_0x3bd8('0x35')]=_0x5db8e3[_0x3bd8('0x35')][_0x3bd8('0x37')]?_0x5db8e3[_0x3bd8('0x35')]:_0xc53fb4['model'];if(!_0x21d604['query'][_0x3bd8('0x38')](_0x3bd8('0x39'))){_0x5db8e3[_0x3bd8('0x1f')]=qs[_0x3bd8('0x1f')](_0x21d604[_0x3bd8('0x31')][_0x3bd8('0x1f')]);_0x5db8e3[_0x3bd8('0x1d')]=qs['offset'](_0x21d604[_0x3bd8('0x31')][_0x3bd8('0x1d')]);}_0x5db8e3['order']=qs[_0x3bd8('0x3a')](_0x21d604[_0x3bd8('0x31')]['sort']);_0x5db8e3['where']=qs[_0x3bd8('0x33')](_[_0x3bd8('0x3b')](_0x21d604[_0x3bd8('0x31')],_0xc53fb4['filters']),_0x1e8111);if(_0x21d604['query'][_0x3bd8('0x3c')]){_0x5db8e3['where']=_[_0x3bd8('0x3d')](_0x5db8e3[_0x3bd8('0x3e')],{'$or':_[_0x3bd8('0x2c')](_0x1e8111,function(_0xb22548){if(_0xb22548['type']!=='VIRTUAL'){var _0x2c92eb={};_0x2c92eb[_0xb22548[_0x3bd8('0x29')]]={'$like':'%'+_0x21d604[_0x3bd8('0x31')][_0x3bd8('0x3c')]+'%'};return _0x2c92eb;}})});}_0x5db8e3=_[_0x3bd8('0x3d')]({},_0x5db8e3,_0x21d604['options']);var _0x52f94f={'where':_0x5db8e3[_0x3bd8('0x3e')]};return db[_0x3bd8('0x2d')][_0x3bd8('0x3f')](_0x52f94f)['then'](function(_0x58bb01){_0x19127a[_0x3bd8('0x3f')]=_0x58bb01;if(_0x21d604[_0x3bd8('0x31')][_0x3bd8('0x40')]){_0x5db8e3['include']=[{'all':!![]}];}return db[_0x3bd8('0x2d')]['findAll'](_0x5db8e3);})['then'](function(_0x5c6b0f){_0x19127a[_0x3bd8('0x41')]=_0x5c6b0f;return _0x19127a;})[_0x3bd8('0x25')](respondWithFilteredResult(_0x581e46,_0x5db8e3))[_0x3bd8('0x42')](handleError(_0x581e46,null));};exports[_0x3bd8('0x43')]=function(_0x48ec66,_0x518e02){var _0x59e808={'raw':!![],'where':{'id':_0x48ec66[_0x3bd8('0x44')]['id']}},_0x4b8024={};_0x4b8024[_0x3bd8('0x30')]=_[_0x3bd8('0x32')](db[_0x3bd8('0x2d')]['rawAttributes']);_0x4b8024[_0x3bd8('0x31')]=_['keys'](_0x48ec66[_0x3bd8('0x31')]);_0x4b8024[_0x3bd8('0x33')]=_[_0x3bd8('0x34')](_0x4b8024[_0x3bd8('0x30')],_0x4b8024[_0x3bd8('0x31')]);_0x59e808[_0x3bd8('0x35')]=_[_0x3bd8('0x34')](_0x4b8024[_0x3bd8('0x30')],qs[_0x3bd8('0x36')](_0x48ec66[_0x3bd8('0x31')][_0x3bd8('0x36')]));_0x59e808['attributes']=_0x59e808['attributes'][_0x3bd8('0x37')]?_0x59e808[_0x3bd8('0x35')]:_0x4b8024[_0x3bd8('0x30')];if(_0x48ec66[_0x3bd8('0x31')][_0x3bd8('0x40')]){_0x59e808[_0x3bd8('0x45')]=[{'all':!![]}];}_0x59e808=_[_0x3bd8('0x3d')]({},_0x59e808,_0x48ec66[_0x3bd8('0x46')]);return db['VoiceQueuesLog'][_0x3bd8('0x47')](_0x59e808)[_0x3bd8('0x25')](handleEntityNotFound(_0x518e02,null))[_0x3bd8('0x25')](respondWithResult(_0x518e02,null))['catch'](handleError(_0x518e02,null));};exports['create']=function(_0x3e177e,_0x1e6730){return db[_0x3bd8('0x2d')]['create'](_0x3e177e['body'],{})[_0x3bd8('0x25')](respondWithResult(_0x1e6730,0xc9))['catch'](handleError(_0x1e6730,null));};exports[_0x3bd8('0x48')]=function(_0x2aacff,_0x1bdbb3){if(_0x2aacff['body']['id']){delete _0x2aacff[_0x3bd8('0x49')]['id'];}return db['VoiceQueuesLog'][_0x3bd8('0x47')]({'where':{'id':_0x2aacff['params']['id']}})[_0x3bd8('0x25')](handleEntityNotFound(_0x1bdbb3,null))['then'](saveUpdates(_0x2aacff['body'],null))['then'](respondWithResult(_0x1bdbb3,null))[_0x3bd8('0x42')](handleError(_0x1bdbb3,null));};exports[_0x3bd8('0x26')]=function(_0xea7ebf,_0x2f094e){return db[_0x3bd8('0x2d')][_0x3bd8('0x47')]({'where':{'id':_0xea7ebf[_0x3bd8('0x44')]['id']}})['then'](handleEntityNotFound(_0x2f094e,null))[_0x3bd8('0x25')](removeEntity(_0x2f094e,null))[_0x3bd8('0x42')](handleError(_0x2f094e,null));};
\ No newline at end of file
+var _0xb4ff=['options','VoiceQueuesLog','includeAll','findAll','rows','show','params','rawAttributes','length','include','catch','create','body','find','eml-format','rimraf','zip-dir','fast-json-patch','moment','bluebird','util','sox','to-csv','ejs','fs-extra','lodash','crypto','jsforce','desk.js','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','json','offset','undefined','limit','count','set','apply','update','then','destroy','end','error','stack','name','send','map','fieldName','type','key','model','keys','filters','query','attributes','intersection','fields','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','VIRTUAL'];(function(_0x387777,_0x356171){var _0x3f84c0=function(_0x4d4423){while(--_0x4d4423){_0x387777['push'](_0x387777['shift']());}};_0x3f84c0(++_0x356171);}(_0xb4ff,0xef));var _0xfb4f=function(_0x3acfbc,_0x2455e5){_0x3acfbc=_0x3acfbc-0x0;var _0x1a05d4=_0xb4ff[_0x3acfbc];return _0x1a05d4;};'use strict';var emlformat=require(_0xfb4f('0x0'));var rimraf=require(_0xfb4f('0x1'));var zipdir=require(_0xfb4f('0x2'));var jsonpatch=require(_0xfb4f('0x3'));var rp=require('request-promise');var moment=require(_0xfb4f('0x4'));var BPromise=require(_0xfb4f('0x5'));var Mustache=require('mustache');var util=require(_0xfb4f('0x6'));var path=require('path');var sox=require(_0xfb4f('0x7'));var csv=require(_0xfb4f('0x8'));var ejs=require(_0xfb4f('0x9'));var fs=require('fs');var fs_extra=require(_0xfb4f('0xa'));var _=require(_0xfb4f('0xb'));var squel=require('squel');var crypto=require(_0xfb4f('0xc'));var jsforce=require(_0xfb4f('0xd'));var deskjs=require(_0xfb4f('0xe'));var toCsv=require('to-csv');var querystring=require('querystring');var Papa=require(_0xfb4f('0xf'));var Redis=require('ioredis');var authService=require(_0xfb4f('0x10'));var qs=require(_0xfb4f('0x11'));var as=require(_0xfb4f('0x12'));var hardwareService=require(_0xfb4f('0x13'));var logger=require(_0xfb4f('0x14'))('api');var utils=require(_0xfb4f('0x15'));var config=require(_0xfb4f('0x16'));var licenseUtil=require(_0xfb4f('0x17'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x468d33,_0x4f3082){_0x4f3082=_0x4f3082||0xcc;return function(_0x246b3b){if(_0x246b3b){return _0x468d33[_0xfb4f('0x18')](_0x4f3082);}return _0x468d33[_0xfb4f('0x19')](_0x4f3082)['end']();};}function respondWithResult(_0x4d5ccf,_0x50642a){_0x50642a=_0x50642a||0xc8;return function(_0x48aac5){if(_0x48aac5){return _0x4d5ccf[_0xfb4f('0x19')](_0x50642a)[_0xfb4f('0x1a')](_0x48aac5);}};}function respondWithFilteredResult(_0x2b08be,_0x42d1d3){return function(_0x3381a8){if(_0x3381a8){var _0x5e5e36=typeof _0x42d1d3[_0xfb4f('0x1b')]===_0xfb4f('0x1c')&&typeof _0x42d1d3[_0xfb4f('0x1d')]===_0xfb4f('0x1c');var _0x37bf6c=_0x3381a8[_0xfb4f('0x1e')];var _0x1b1b00=_0x5e5e36?0x0:_0x42d1d3[_0xfb4f('0x1b')];var _0x80bdd4=_0x5e5e36?_0x3381a8[_0xfb4f('0x1e')]:_0x42d1d3[_0xfb4f('0x1b')]+_0x42d1d3[_0xfb4f('0x1d')];var _0x3a44d2;if(_0x80bdd4>=_0x37bf6c){_0x80bdd4=_0x37bf6c;_0x3a44d2=0xc8;}else{_0x3a44d2=0xce;}_0x2b08be[_0xfb4f('0x19')](_0x3a44d2);return _0x2b08be[_0xfb4f('0x1f')]('Content-Range',_0x1b1b00+'-'+_0x80bdd4+'/'+_0x37bf6c)[_0xfb4f('0x1a')](_0x3381a8);}return null;};}function patchUpdates(_0x299f93){return function(_0x174cbc){try{jsonpatch[_0xfb4f('0x20')](_0x174cbc,_0x299f93,!![]);}catch(_0x154e36){return BPromise['reject'](_0x154e36);}return _0x174cbc['save']();};}function saveUpdates(_0x3a660e,_0x58f355){return function(_0x3903fa){if(_0x3903fa){return _0x3903fa[_0xfb4f('0x21')](_0x3a660e)[_0xfb4f('0x22')](function(_0x81861){return _0x81861;});}return null;};}function removeEntity(_0x18cc77,_0x59ff87){return function(_0x5dd208){if(_0x5dd208){return _0x5dd208[_0xfb4f('0x23')]()['then'](function(){_0x18cc77['status'](0xcc)[_0xfb4f('0x24')]();});}};}function handleEntityNotFound(_0x36c08f,_0x593afd){return function(_0x22f276){if(!_0x22f276){_0x36c08f['sendStatus'](0x194);}return _0x22f276;};}function handleError(_0x447b9a,_0x4104e8){_0x4104e8=_0x4104e8||0x1f4;return function(_0x65909b){logger[_0xfb4f('0x25')](_0x65909b[_0xfb4f('0x26')]);if(_0x65909b[_0xfb4f('0x27')]){delete _0x65909b[_0xfb4f('0x27')];}_0x447b9a[_0xfb4f('0x19')](_0x4104e8)[_0xfb4f('0x28')](_0x65909b);};}exports['index']=function(_0x370eee,_0x204b84){var _0x441ad6={},_0x5b2e57={},_0x7de1a5={'count':0x0,'rows':[]};var _0x1a37fc=_[_0xfb4f('0x29')](db['VoiceQueuesLog']['rawAttributes'],function(_0x153df1){return{'name':_0x153df1[_0xfb4f('0x2a')],'type':_0x153df1[_0xfb4f('0x2b')][_0xfb4f('0x2c')]};});_0x5b2e57[_0xfb4f('0x2d')]=_['map'](_0x1a37fc,'name');_0x5b2e57['query']=_[_0xfb4f('0x2e')](_0x370eee['query']);_0x5b2e57[_0xfb4f('0x2f')]=_['intersection'](_0x5b2e57[_0xfb4f('0x2d')],_0x5b2e57[_0xfb4f('0x30')]);_0x441ad6[_0xfb4f('0x31')]=_[_0xfb4f('0x32')](_0x5b2e57[_0xfb4f('0x2d')],qs[_0xfb4f('0x33')](_0x370eee['query'][_0xfb4f('0x33')]));_0x441ad6[_0xfb4f('0x31')]=_0x441ad6[_0xfb4f('0x31')]['length']?_0x441ad6[_0xfb4f('0x31')]:_0x5b2e57['model'];if(!_0x370eee[_0xfb4f('0x30')][_0xfb4f('0x34')](_0xfb4f('0x35'))){_0x441ad6[_0xfb4f('0x1d')]=qs[_0xfb4f('0x1d')](_0x370eee[_0xfb4f('0x30')][_0xfb4f('0x1d')]);_0x441ad6[_0xfb4f('0x1b')]=qs[_0xfb4f('0x1b')](_0x370eee[_0xfb4f('0x30')][_0xfb4f('0x1b')]);}_0x441ad6[_0xfb4f('0x36')]=qs[_0xfb4f('0x37')](_0x370eee['query'][_0xfb4f('0x37')]);_0x441ad6[_0xfb4f('0x38')]=qs[_0xfb4f('0x2f')](_[_0xfb4f('0x39')](_0x370eee[_0xfb4f('0x30')],_0x5b2e57[_0xfb4f('0x2f')]),_0x1a37fc);if(_0x370eee['query'][_0xfb4f('0x3a')]){_0x441ad6['where']=_[_0xfb4f('0x3b')](_0x441ad6['where'],{'$or':_[_0xfb4f('0x29')](_0x1a37fc,function(_0xe8fbce){if(_0xe8fbce[_0xfb4f('0x2b')]!==_0xfb4f('0x3c')){var _0x51c44a={};_0x51c44a[_0xe8fbce[_0xfb4f('0x27')]]={'$like':'%'+_0x370eee['query'][_0xfb4f('0x3a')]+'%'};return _0x51c44a;}})});}_0x441ad6=_['merge']({},_0x441ad6,_0x370eee[_0xfb4f('0x3d')]);var _0x3a13ae={'where':_0x441ad6[_0xfb4f('0x38')]};return db[_0xfb4f('0x3e')][_0xfb4f('0x1e')](_0x3a13ae)['then'](function(_0x22864b){_0x7de1a5[_0xfb4f('0x1e')]=_0x22864b;if(_0x370eee[_0xfb4f('0x30')][_0xfb4f('0x3f')]){_0x441ad6['include']=[{'all':!![]}];}return db['VoiceQueuesLog'][_0xfb4f('0x40')](_0x441ad6);})[_0xfb4f('0x22')](function(_0x5d9b4c){_0x7de1a5[_0xfb4f('0x41')]=_0x5d9b4c;return _0x7de1a5;})[_0xfb4f('0x22')](respondWithFilteredResult(_0x204b84,_0x441ad6))['catch'](handleError(_0x204b84,null));};exports[_0xfb4f('0x42')]=function(_0x368c40,_0x2a30ed){var _0x2f4479={'raw':!![],'where':{'id':_0x368c40[_0xfb4f('0x43')]['id']}},_0x34723f={};_0x34723f['model']=_['keys'](db[_0xfb4f('0x3e')][_0xfb4f('0x44')]);_0x34723f[_0xfb4f('0x30')]=_[_0xfb4f('0x2e')](_0x368c40[_0xfb4f('0x30')]);_0x34723f[_0xfb4f('0x2f')]=_[_0xfb4f('0x32')](_0x34723f[_0xfb4f('0x2d')],_0x34723f[_0xfb4f('0x30')]);_0x2f4479[_0xfb4f('0x31')]=_[_0xfb4f('0x32')](_0x34723f[_0xfb4f('0x2d')],qs['fields'](_0x368c40[_0xfb4f('0x30')][_0xfb4f('0x33')]));_0x2f4479['attributes']=_0x2f4479['attributes'][_0xfb4f('0x45')]?_0x2f4479['attributes']:_0x34723f[_0xfb4f('0x2d')];if(_0x368c40[_0xfb4f('0x30')][_0xfb4f('0x3f')]){_0x2f4479[_0xfb4f('0x46')]=[{'all':!![]}];}_0x2f4479=_[_0xfb4f('0x3b')]({},_0x2f4479,_0x368c40[_0xfb4f('0x3d')]);return db['VoiceQueuesLog']['find'](_0x2f4479)[_0xfb4f('0x22')](handleEntityNotFound(_0x2a30ed,null))[_0xfb4f('0x22')](respondWithResult(_0x2a30ed,null))[_0xfb4f('0x47')](handleError(_0x2a30ed,null));};exports[_0xfb4f('0x48')]=function(_0x287066,_0x46cf69){return db[_0xfb4f('0x3e')][_0xfb4f('0x48')](_0x287066[_0xfb4f('0x49')],{})[_0xfb4f('0x22')](respondWithResult(_0x46cf69,0xc9))[_0xfb4f('0x47')](handleError(_0x46cf69,null));};exports[_0xfb4f('0x21')]=function(_0x4efe25,_0xe83155){if(_0x4efe25[_0xfb4f('0x49')]['id']){delete _0x4efe25[_0xfb4f('0x49')]['id'];}return db[_0xfb4f('0x3e')]['find']({'where':{'id':_0x4efe25[_0xfb4f('0x43')]['id']}})['then'](handleEntityNotFound(_0xe83155,null))['then'](saveUpdates(_0x4efe25[_0xfb4f('0x49')],null))[_0xfb4f('0x22')](respondWithResult(_0xe83155,null))['catch'](handleError(_0xe83155,null));};exports[_0xfb4f('0x23')]=function(_0xf2895e,_0x15e8dd){return db[_0xfb4f('0x3e')][_0xfb4f('0x4a')]({'where':{'id':_0xf2895e[_0xfb4f('0x43')]['id']}})['then'](handleEntityNotFound(_0x15e8dd,null))[_0xfb4f('0x22')](removeEntity(_0x15e8dd,null))[_0xfb4f('0x47')](handleError(_0x15e8dd,null));};
\ No newline at end of file