Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / whatsappTransferReport / whatsappTransferReport.controller.js
index 2603682..2bdd2ea 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5d17=['offset','limit','set','Content-Range','reject','save','update','destroy','then','sendStatus','error','stack','name','send','index','map','WhatsappTransferReport','rawAttributes','fieldName','type','model','keys','filters','intersection','query','attributes','fields','length','hasOwnProperty','nolimit','order','sort','pick','filter','where','count','includeAll','include','findAll','merge','options','find','create','catch','body','params','describe','html-pdf','eml-format','rimraf','fast-json-patch','request-promise','moment','mustache','util','path','ejs','lodash','squel','crypto','jsforce','to-csv','papaparse','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/license/util','../../mysqldb','status','end','json'];(function(_0x544ddd,_0x37b675){var _0x476e58=function(_0x3e2432){while(--_0x3e2432){_0x544ddd['push'](_0x544ddd['shift']());}};_0x476e58(++_0x37b675);}(_0x5d17,0x110));var _0x75d1=function(_0x43371b,_0x1cb4cf){_0x43371b=_0x43371b-0x0;var _0x19cd26=_0x5d17[_0x43371b];return _0x19cd26;};'use strict';var pdf=require(_0x75d1('0x0'));var emlformat=require(_0x75d1('0x1'));var rimraf=require(_0x75d1('0x2'));var zipdir=require('zip-dir');var jsonpatch=require(_0x75d1('0x3'));var rp=require(_0x75d1('0x4'));var moment=require(_0x75d1('0x5'));var BPromise=require('bluebird');var Mustache=require(_0x75d1('0x6'));var util=require(_0x75d1('0x7'));var path=require(_0x75d1('0x8'));var sox=require('sox');var csv=require('to-csv');var ejs=require(_0x75d1('0x9'));var fs=require('fs');var _=require(_0x75d1('0xa'));var squel=require(_0x75d1('0xb'));var crypto=require(_0x75d1('0xc'));var jsforce=require(_0x75d1('0xd'));var deskjs=require('desk.js');var toCsv=require(_0x75d1('0xe'));var querystring=require('querystring');var Papa=require(_0x75d1('0xf'));var Redis=require(_0x75d1('0x10'));var authService=require('../../components/auth/service');var qs=require(_0x75d1('0x11'));var as=require(_0x75d1('0x12'));var hardwareService=require(_0x75d1('0x13'));var logger=require(_0x75d1('0x14'))(_0x75d1('0x15'));var utils=require(_0x75d1('0x16'));var config=require('../../config/environment');var licenseUtil=require(_0x75d1('0x17'));var db=require(_0x75d1('0x18'))['db'];function respondWithStatusCode(_0x2765ee,_0x17874c){_0x17874c=_0x17874c||0xcc;return function(_0x3f499d){if(_0x3f499d){return _0x2765ee['sendStatus'](_0x17874c);}return _0x2765ee[_0x75d1('0x19')](_0x17874c)[_0x75d1('0x1a')]();};}function respondWithResult(_0x4f3907,_0x317062){_0x317062=_0x317062||0xc8;return function(_0x5b6a29){if(_0x5b6a29){return _0x4f3907['status'](_0x317062)[_0x75d1('0x1b')](_0x5b6a29);}};}function respondWithFilteredResult(_0x17a331,_0x1b4d12){return function(_0x39e26a){if(_0x39e26a){var _0xf9fc5a=_0x39e26a['count'],_0x3ab9d4=_0x1b4d12[_0x75d1('0x1c')],_0x2cf926=_0x1b4d12[_0x75d1('0x1c')]+_0x1b4d12[_0x75d1('0x1d')],_0x38c8aa;if(_0x2cf926>=_0xf9fc5a){_0x2cf926=_0xf9fc5a;_0x38c8aa=0xc8;}else{_0x38c8aa=0xce;}_0x17a331[_0x75d1('0x19')](_0x38c8aa);return _0x17a331[_0x75d1('0x1e')](_0x75d1('0x1f'),_0x3ab9d4+'-'+_0x2cf926+'/'+_0xf9fc5a)[_0x75d1('0x1b')](_0x39e26a);}return null;};}function patchUpdates(_0x364ab6){return function(_0x3f4a5b){try{jsonpatch['apply'](_0x3f4a5b,_0x364ab6,!![]);}catch(_0x21bedf){return BPromise[_0x75d1('0x20')](_0x21bedf);}return _0x3f4a5b[_0x75d1('0x21')]();};}function saveUpdates(_0x2c4716,_0xc56a92){return function(_0xa7395e){if(_0xa7395e){return _0xa7395e[_0x75d1('0x22')](_0x2c4716)['then'](function(_0x24ddfe){return _0x24ddfe;});}return null;};}function removeEntity(_0xcb63a7,_0x378c1b){return function(_0x56b984){if(_0x56b984){return _0x56b984[_0x75d1('0x23')]()[_0x75d1('0x24')](function(){_0xcb63a7[_0x75d1('0x19')](0xcc)['end']();});}};}function handleEntityNotFound(_0x43e909,_0x2889b7){return function(_0x18d66d){if(!_0x18d66d){_0x43e909[_0x75d1('0x25')](0x194);}return _0x18d66d;};}function handleError(_0x1c528f,_0x151e33){_0x151e33=_0x151e33||0x1f4;return function(_0x121fa7){logger[_0x75d1('0x26')](_0x121fa7[_0x75d1('0x27')]);if(_0x121fa7['name']){delete _0x121fa7[_0x75d1('0x28')];}_0x1c528f[_0x75d1('0x19')](_0x151e33)[_0x75d1('0x29')](_0x121fa7);};}exports[_0x75d1('0x2a')]=function(_0x8239eb,_0x1df9b3){var _0x27c360={},_0x3ad05e={},_0x395b11={'count':0x0,'rows':[]};var _0x249619=_[_0x75d1('0x2b')](db[_0x75d1('0x2c')][_0x75d1('0x2d')],function(_0xdbe48c){return{'name':_0xdbe48c[_0x75d1('0x2e')],'type':_0xdbe48c[_0x75d1('0x2f')]['key']};});_0x3ad05e[_0x75d1('0x30')]=_['map'](_0x249619,_0x75d1('0x28'));_0x3ad05e['query']=_[_0x75d1('0x31')](_0x8239eb['query']);_0x3ad05e[_0x75d1('0x32')]=_[_0x75d1('0x33')](_0x3ad05e[_0x75d1('0x30')],_0x3ad05e[_0x75d1('0x34')]);_0x27c360[_0x75d1('0x35')]=_[_0x75d1('0x33')](_0x3ad05e[_0x75d1('0x30')],qs[_0x75d1('0x36')](_0x8239eb[_0x75d1('0x34')][_0x75d1('0x36')]));_0x27c360[_0x75d1('0x35')]=_0x27c360[_0x75d1('0x35')][_0x75d1('0x37')]?_0x27c360[_0x75d1('0x35')]:_0x3ad05e[_0x75d1('0x30')];if(!_0x8239eb[_0x75d1('0x34')][_0x75d1('0x38')](_0x75d1('0x39'))){_0x27c360[_0x75d1('0x1d')]=qs['limit'](_0x8239eb[_0x75d1('0x34')][_0x75d1('0x1d')]);_0x27c360[_0x75d1('0x1c')]=qs[_0x75d1('0x1c')](_0x8239eb[_0x75d1('0x34')][_0x75d1('0x1c')]);}_0x27c360[_0x75d1('0x3a')]=qs[_0x75d1('0x3b')](_0x8239eb['query'][_0x75d1('0x3b')]);_0x27c360['where']=qs[_0x75d1('0x32')](_[_0x75d1('0x3c')](_0x8239eb[_0x75d1('0x34')],_0x3ad05e[_0x75d1('0x32')]),_0x249619);if(_0x8239eb[_0x75d1('0x34')][_0x75d1('0x3d')]){_0x27c360[_0x75d1('0x3e')]=_['merge'](_0x27c360[_0x75d1('0x3e')],{'$or':_[_0x75d1('0x2b')](_0x249619,function(_0xcac028){if(_0xcac028[_0x75d1('0x2f')]!=='VIRTUAL'){var _0x5783cf={};_0x5783cf[_0xcac028[_0x75d1('0x28')]]={'$like':'%'+_0x8239eb['query']['filter']+'%'};return _0x5783cf;}})});}_0x27c360=_['merge']({},_0x27c360,_0x8239eb['options']);var _0x4bb6db={'where':_0x27c360['where']};return db[_0x75d1('0x2c')][_0x75d1('0x3f')](_0x4bb6db)[_0x75d1('0x24')](function(_0xd92c1e){_0x395b11['count']=_0xd92c1e;if(_0x8239eb['query'][_0x75d1('0x40')]){_0x27c360[_0x75d1('0x41')]=[{'all':!![]}];}return db[_0x75d1('0x2c')][_0x75d1('0x42')](_0x27c360);})[_0x75d1('0x24')](function(_0x12798f){_0x395b11['rows']=_0x12798f;return _0x395b11;})[_0x75d1('0x24')](respondWithFilteredResult(_0x1df9b3,_0x27c360))['catch'](handleError(_0x1df9b3,null));};exports['show']=function(_0x1c684b,_0x2c914e){var _0x414edf={'raw':!![],'where':{'id':_0x1c684b['params']['id']}},_0x572e22={};_0x572e22[_0x75d1('0x30')]=_[_0x75d1('0x31')](db[_0x75d1('0x2c')][_0x75d1('0x2d')]);_0x572e22[_0x75d1('0x34')]=_[_0x75d1('0x31')](_0x1c684b[_0x75d1('0x34')]);_0x572e22['filters']=_[_0x75d1('0x33')](_0x572e22[_0x75d1('0x30')],_0x572e22[_0x75d1('0x34')]);_0x414edf[_0x75d1('0x35')]=_[_0x75d1('0x33')](_0x572e22[_0x75d1('0x30')],qs['fields'](_0x1c684b[_0x75d1('0x34')][_0x75d1('0x36')]));_0x414edf['attributes']=_0x414edf['attributes'][_0x75d1('0x37')]?_0x414edf[_0x75d1('0x35')]:_0x572e22[_0x75d1('0x30')];if(_0x1c684b[_0x75d1('0x34')][_0x75d1('0x40')]){_0x414edf['include']=[{'all':!![]}];}_0x414edf=_[_0x75d1('0x43')]({},_0x414edf,_0x1c684b[_0x75d1('0x44')]);return db['WhatsappTransferReport'][_0x75d1('0x45')](_0x414edf)[_0x75d1('0x24')](handleEntityNotFound(_0x2c914e,null))[_0x75d1('0x24')](respondWithResult(_0x2c914e,null))['catch'](handleError(_0x2c914e,null));};exports[_0x75d1('0x46')]=function(_0x4211a7,_0x1afc29){return db['WhatsappTransferReport'][_0x75d1('0x46')](_0x4211a7['body'],{})[_0x75d1('0x24')](respondWithResult(_0x1afc29,0xc9))[_0x75d1('0x47')](handleError(_0x1afc29,null));};exports[_0x75d1('0x22')]=function(_0x1878ed,_0x1fabaa){if(_0x1878ed[_0x75d1('0x48')]['id']){delete _0x1878ed[_0x75d1('0x48')]['id'];}return db[_0x75d1('0x2c')]['find']({'where':{'id':_0x1878ed[_0x75d1('0x49')]['id']}})['then'](handleEntityNotFound(_0x1fabaa,null))[_0x75d1('0x24')](saveUpdates(_0x1878ed[_0x75d1('0x48')],null))['then'](respondWithResult(_0x1fabaa,null))['catch'](handleError(_0x1fabaa,null));};exports[_0x75d1('0x23')]=function(_0x5e66e3,_0xe624b2){return db['WhatsappTransferReport']['find']({'where':{'id':_0x5e66e3[_0x75d1('0x49')]['id']}})[_0x75d1('0x24')](handleEntityNotFound(_0xe624b2,null))[_0x75d1('0x24')](removeEntity(_0xe624b2,null))[_0x75d1('0x47')](handleError(_0xe624b2,null));};exports[_0x75d1('0x4a')]=function(_0x3b649d,_0x4c1efa){return db[_0x75d1('0x2c')][_0x75d1('0x4a')]()[_0x75d1('0x24')](respondWithResult(_0x4c1efa,null))[_0x75d1('0x47')](handleError(_0x4c1efa,null));};
\ No newline at end of file
+var _0x9f21=['options','WhatsappTransferReport','includeAll','include','findAll','rows','catch','params','rawAttributes','create','body','find','destroy','describe','eml-format','rimraf','fast-json-patch','request-promise','moment','bluebird','util','to-csv','ejs','fs-extra','squel','crypto','jsforce','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','json','offset','limit','undefined','count','Content-Range','reject','update','then','stack','name','send','index','map','fieldName','type','key','model','query','keys','filters','intersection','fields','attributes','length','hasOwnProperty','nolimit','order','sort','pick','filter','where','merge'];(function(_0x4fde08,_0x463a36){var _0x12e725=function(_0x2670c5){while(--_0x2670c5){_0x4fde08['push'](_0x4fde08['shift']());}};_0x12e725(++_0x463a36);}(_0x9f21,0xa0));var _0x19f2=function(_0x4ec13d,_0x358a8f){_0x4ec13d=_0x4ec13d-0x0;var _0x3c3fa7=_0x9f21[_0x4ec13d];return _0x3c3fa7;};'use strict';var emlformat=require(_0x19f2('0x0'));var rimraf=require(_0x19f2('0x1'));var zipdir=require('zip-dir');var jsonpatch=require(_0x19f2('0x2'));var rp=require(_0x19f2('0x3'));var moment=require(_0x19f2('0x4'));var BPromise=require(_0x19f2('0x5'));var Mustache=require('mustache');var util=require(_0x19f2('0x6'));var path=require('path');var sox=require('sox');var csv=require(_0x19f2('0x7'));var ejs=require(_0x19f2('0x8'));var fs=require('fs');var fs_extra=require(_0x19f2('0x9'));var _=require('lodash');var squel=require(_0x19f2('0xa'));var crypto=require(_0x19f2('0xb'));var jsforce=require(_0x19f2('0xc'));var deskjs=require('desk.js');var toCsv=require(_0x19f2('0x7'));var querystring=require('querystring');var Papa=require(_0x19f2('0xd'));var Redis=require(_0x19f2('0xe'));var authService=require(_0x19f2('0xf'));var qs=require(_0x19f2('0x10'));var as=require(_0x19f2('0x11'));var hardwareService=require(_0x19f2('0x12'));var logger=require('../../config/logger')(_0x19f2('0x13'));var utils=require(_0x19f2('0x14'));var config=require(_0x19f2('0x15'));var licenseUtil=require('../../config/license/util');var db=require(_0x19f2('0x16'))['db'];function respondWithStatusCode(_0x10f7d2,_0x1e2b32){_0x1e2b32=_0x1e2b32||0xcc;return function(_0x565b60){if(_0x565b60){return _0x10f7d2[_0x19f2('0x17')](_0x1e2b32);}return _0x10f7d2[_0x19f2('0x18')](_0x1e2b32)[_0x19f2('0x19')]();};}function respondWithResult(_0x1bd4f1,_0x57ad3d){_0x57ad3d=_0x57ad3d||0xc8;return function(_0x15b85a){if(_0x15b85a){return _0x1bd4f1[_0x19f2('0x18')](_0x57ad3d)[_0x19f2('0x1a')](_0x15b85a);}};}function respondWithFilteredResult(_0x5df181,_0x2cabeb){return function(_0x35f4c4){if(_0x35f4c4){var _0x323432=typeof _0x2cabeb[_0x19f2('0x1b')]==='undefined'&&typeof _0x2cabeb[_0x19f2('0x1c')]===_0x19f2('0x1d');var _0x2e9134=_0x35f4c4[_0x19f2('0x1e')];var _0x3362eb=_0x323432?0x0:_0x2cabeb[_0x19f2('0x1b')];var _0x3a5ddc=_0x323432?_0x35f4c4['count']:_0x2cabeb[_0x19f2('0x1b')]+_0x2cabeb[_0x19f2('0x1c')];var _0x4fb151;if(_0x3a5ddc>=_0x2e9134){_0x3a5ddc=_0x2e9134;_0x4fb151=0xc8;}else{_0x4fb151=0xce;}_0x5df181[_0x19f2('0x18')](_0x4fb151);return _0x5df181['set'](_0x19f2('0x1f'),_0x3362eb+'-'+_0x3a5ddc+'/'+_0x2e9134)['json'](_0x35f4c4);}return null;};}function patchUpdates(_0x5147fc){return function(_0x2c0fc9){try{jsonpatch['apply'](_0x2c0fc9,_0x5147fc,!![]);}catch(_0x3f1ae3){return BPromise[_0x19f2('0x20')](_0x3f1ae3);}return _0x2c0fc9['save']();};}function saveUpdates(_0x3e4cfd,_0x16aa8c){return function(_0x3a6d89){if(_0x3a6d89){return _0x3a6d89[_0x19f2('0x21')](_0x3e4cfd)['then'](function(_0x3ea711){return _0x3ea711;});}return null;};}function removeEntity(_0x1a5ef9,_0x23e86c){return function(_0x525ba0){if(_0x525ba0){return _0x525ba0['destroy']()[_0x19f2('0x22')](function(){_0x1a5ef9[_0x19f2('0x18')](0xcc)['end']();});}};}function handleEntityNotFound(_0x18407d,_0x56c8cf){return function(_0xf38ac){if(!_0xf38ac){_0x18407d[_0x19f2('0x17')](0x194);}return _0xf38ac;};}function handleError(_0x14b66d,_0x1352d3){_0x1352d3=_0x1352d3||0x1f4;return function(_0x549734){logger['error'](_0x549734[_0x19f2('0x23')]);if(_0x549734['name']){delete _0x549734[_0x19f2('0x24')];}_0x14b66d[_0x19f2('0x18')](_0x1352d3)[_0x19f2('0x25')](_0x549734);};}exports[_0x19f2('0x26')]=function(_0x4af447,_0x52df84){var _0xbd23da={},_0x2f6c13={},_0x3f5a3a={'count':0x0,'rows':[]};var _0x19365f=_[_0x19f2('0x27')](db['WhatsappTransferReport']['rawAttributes'],function(_0x2694f7){return{'name':_0x2694f7[_0x19f2('0x28')],'type':_0x2694f7[_0x19f2('0x29')][_0x19f2('0x2a')]};});_0x2f6c13[_0x19f2('0x2b')]=_[_0x19f2('0x27')](_0x19365f,_0x19f2('0x24'));_0x2f6c13[_0x19f2('0x2c')]=_[_0x19f2('0x2d')](_0x4af447[_0x19f2('0x2c')]);_0x2f6c13[_0x19f2('0x2e')]=_[_0x19f2('0x2f')](_0x2f6c13[_0x19f2('0x2b')],_0x2f6c13['query']);_0xbd23da['attributes']=_[_0x19f2('0x2f')](_0x2f6c13[_0x19f2('0x2b')],qs[_0x19f2('0x30')](_0x4af447['query'][_0x19f2('0x30')]));_0xbd23da[_0x19f2('0x31')]=_0xbd23da[_0x19f2('0x31')][_0x19f2('0x32')]?_0xbd23da['attributes']:_0x2f6c13[_0x19f2('0x2b')];if(!_0x4af447[_0x19f2('0x2c')][_0x19f2('0x33')](_0x19f2('0x34'))){_0xbd23da[_0x19f2('0x1c')]=qs[_0x19f2('0x1c')](_0x4af447[_0x19f2('0x2c')][_0x19f2('0x1c')]);_0xbd23da[_0x19f2('0x1b')]=qs[_0x19f2('0x1b')](_0x4af447[_0x19f2('0x2c')][_0x19f2('0x1b')]);}_0xbd23da[_0x19f2('0x35')]=qs['sort'](_0x4af447[_0x19f2('0x2c')][_0x19f2('0x36')]);_0xbd23da['where']=qs[_0x19f2('0x2e')](_[_0x19f2('0x37')](_0x4af447[_0x19f2('0x2c')],_0x2f6c13['filters']),_0x19365f);if(_0x4af447['query'][_0x19f2('0x38')]){_0xbd23da[_0x19f2('0x39')]=_[_0x19f2('0x3a')](_0xbd23da[_0x19f2('0x39')],{'$or':_[_0x19f2('0x27')](_0x19365f,function(_0x2c741d){if(_0x2c741d[_0x19f2('0x29')]!=='VIRTUAL'){var _0x5ebe34={};_0x5ebe34[_0x2c741d['name']]={'$like':'%'+_0x4af447['query'][_0x19f2('0x38')]+'%'};return _0x5ebe34;}})});}_0xbd23da=_[_0x19f2('0x3a')]({},_0xbd23da,_0x4af447[_0x19f2('0x3b')]);var _0x59b8be={'where':_0xbd23da[_0x19f2('0x39')]};return db[_0x19f2('0x3c')][_0x19f2('0x1e')](_0x59b8be)[_0x19f2('0x22')](function(_0x2b6fb6){_0x3f5a3a[_0x19f2('0x1e')]=_0x2b6fb6;if(_0x4af447[_0x19f2('0x2c')][_0x19f2('0x3d')]){_0xbd23da[_0x19f2('0x3e')]=[{'all':!![]}];}return db[_0x19f2('0x3c')][_0x19f2('0x3f')](_0xbd23da);})[_0x19f2('0x22')](function(_0x435a95){_0x3f5a3a[_0x19f2('0x40')]=_0x435a95;return _0x3f5a3a;})[_0x19f2('0x22')](respondWithFilteredResult(_0x52df84,_0xbd23da))[_0x19f2('0x41')](handleError(_0x52df84,null));};exports['show']=function(_0x3b8aff,_0x5257b3){var _0x41bfe5={'raw':!![],'where':{'id':_0x3b8aff[_0x19f2('0x42')]['id']}},_0x4530ba={};_0x4530ba['model']=_[_0x19f2('0x2d')](db[_0x19f2('0x3c')][_0x19f2('0x43')]);_0x4530ba[_0x19f2('0x2c')]=_[_0x19f2('0x2d')](_0x3b8aff[_0x19f2('0x2c')]);_0x4530ba[_0x19f2('0x2e')]=_['intersection'](_0x4530ba['model'],_0x4530ba[_0x19f2('0x2c')]);_0x41bfe5['attributes']=_['intersection'](_0x4530ba['model'],qs['fields'](_0x3b8aff[_0x19f2('0x2c')][_0x19f2('0x30')]));_0x41bfe5['attributes']=_0x41bfe5['attributes'][_0x19f2('0x32')]?_0x41bfe5['attributes']:_0x4530ba[_0x19f2('0x2b')];if(_0x3b8aff[_0x19f2('0x2c')][_0x19f2('0x3d')]){_0x41bfe5[_0x19f2('0x3e')]=[{'all':!![]}];}_0x41bfe5=_[_0x19f2('0x3a')]({},_0x41bfe5,_0x3b8aff['options']);return db[_0x19f2('0x3c')]['find'](_0x41bfe5)[_0x19f2('0x22')](handleEntityNotFound(_0x5257b3,null))[_0x19f2('0x22')](respondWithResult(_0x5257b3,null))[_0x19f2('0x41')](handleError(_0x5257b3,null));};exports[_0x19f2('0x44')]=function(_0x15c7e3,_0x4d96a6){return db[_0x19f2('0x3c')][_0x19f2('0x44')](_0x15c7e3[_0x19f2('0x45')],{})[_0x19f2('0x22')](respondWithResult(_0x4d96a6,0xc9))[_0x19f2('0x41')](handleError(_0x4d96a6,null));};exports['update']=function(_0x10297f,_0x471b87){if(_0x10297f[_0x19f2('0x45')]['id']){delete _0x10297f[_0x19f2('0x45')]['id'];}return db['WhatsappTransferReport'][_0x19f2('0x46')]({'where':{'id':_0x10297f[_0x19f2('0x42')]['id']}})[_0x19f2('0x22')](handleEntityNotFound(_0x471b87,null))[_0x19f2('0x22')](saveUpdates(_0x10297f[_0x19f2('0x45')],null))[_0x19f2('0x22')](respondWithResult(_0x471b87,null))[_0x19f2('0x41')](handleError(_0x471b87,null));};exports[_0x19f2('0x47')]=function(_0x369d38,_0xb3495f){return db[_0x19f2('0x3c')][_0x19f2('0x46')]({'where':{'id':_0x369d38[_0x19f2('0x42')]['id']}})[_0x19f2('0x22')](handleEntityNotFound(_0xb3495f,null))['then'](removeEntity(_0xb3495f,null))[_0x19f2('0x41')](handleError(_0xb3495f,null));};exports[_0x19f2('0x48')]=function(_0x327163,_0x3199d4){return db[_0x19f2('0x3c')][_0x19f2('0x48')]()[_0x19f2('0x22')](respondWithResult(_0x3199d4,null))[_0x19f2('0x41')](handleError(_0x3199d4,null));};
\ No newline at end of file