Built motion from commit da24aabd.|2.6.20
[motion2.git] / server / api / faxQueueReport / faxQueueReport.controller.js
index 941e4dd..d87c42c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbf83=['fast-json-patch','request-promise','moment','bluebird','path','sox','to-csv','ejs','squel','crypto','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/utils','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','undefined','limit','count','Content-Range','apply','save','then','destroy','error','stack','name','send','index','map','FaxQueueReport','type','key','query','model','attributes','intersection','fields','hasOwnProperty','sort','where','filters','pick','filter','merge','VIRTUAL','includeAll','include','findAll','catch','show','keys','options','find','create','update','body','params','describe','eml-format','zip-dir'];(function(_0x3b380d,_0x4bf247){var _0x54502b=function(_0x35d207){while(--_0x35d207){_0x3b380d['push'](_0x3b380d['shift']());}};_0x54502b(++_0x4bf247);}(_0xbf83,0x11e));var _0x3bf8=function(_0x5874c6,_0x36d84d){_0x5874c6=_0x5874c6-0x0;var _0x40bd9f=_0xbf83[_0x5874c6];return _0x40bd9f;};'use strict';var emlformat=require(_0x3bf8('0x0'));var rimraf=require('rimraf');var zipdir=require(_0x3bf8('0x1'));var jsonpatch=require(_0x3bf8('0x2'));var rp=require(_0x3bf8('0x3'));var moment=require(_0x3bf8('0x4'));var BPromise=require(_0x3bf8('0x5'));var Mustache=require('mustache');var util=require('util');var path=require(_0x3bf8('0x6'));var sox=require(_0x3bf8('0x7'));var csv=require(_0x3bf8('0x8'));var ejs=require(_0x3bf8('0x9'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require('lodash');var squel=require(_0x3bf8('0xa'));var crypto=require(_0x3bf8('0xb'));var jsforce=require('jsforce');var deskjs=require(_0x3bf8('0xc'));var toCsv=require('to-csv');var querystring=require(_0x3bf8('0xd'));var Papa=require(_0x3bf8('0xe'));var Redis=require(_0x3bf8('0xf'));var authService=require(_0x3bf8('0x10'));var qs=require(_0x3bf8('0x11'));var as=require(_0x3bf8('0x12'));var hardwareService=require(_0x3bf8('0x13'));var logger=require('../../config/logger')(_0x3bf8('0x14'));var utils=require(_0x3bf8('0x15'));var config=require('../../config/environment');var licenseUtil=require(_0x3bf8('0x16'));var db=require(_0x3bf8('0x17'))['db'];function respondWithStatusCode(_0x35d61f,_0x3e0be6){_0x3e0be6=_0x3e0be6||0xcc;return function(_0x3fa34c){if(_0x3fa34c){return _0x35d61f[_0x3bf8('0x18')](_0x3e0be6);}return _0x35d61f[_0x3bf8('0x19')](_0x3e0be6)[_0x3bf8('0x1a')]();};}function respondWithResult(_0x1b0338,_0xfd8a89){_0xfd8a89=_0xfd8a89||0xc8;return function(_0x5ada93){if(_0x5ada93){return _0x1b0338['status'](_0xfd8a89)[_0x3bf8('0x1b')](_0x5ada93);}};}function respondWithFilteredResult(_0x3d18f9,_0x45607c){return function(_0x1506b5){if(_0x1506b5){var _0x5a9f6d=typeof _0x45607c[_0x3bf8('0x1c')]===_0x3bf8('0x1d')&&typeof _0x45607c[_0x3bf8('0x1e')]===_0x3bf8('0x1d');var _0x8a85b4=_0x1506b5[_0x3bf8('0x1f')];var _0x857603=_0x5a9f6d?0x0:_0x45607c[_0x3bf8('0x1c')];var _0x2f80fa=_0x5a9f6d?_0x1506b5[_0x3bf8('0x1f')]:_0x45607c[_0x3bf8('0x1c')]+_0x45607c['limit'];var _0x3cb734;if(_0x2f80fa>=_0x8a85b4){_0x2f80fa=_0x8a85b4;_0x3cb734=0xc8;}else{_0x3cb734=0xce;}_0x3d18f9[_0x3bf8('0x19')](_0x3cb734);return _0x3d18f9['set'](_0x3bf8('0x20'),_0x857603+'-'+_0x2f80fa+'/'+_0x8a85b4)['json'](_0x1506b5);}return null;};}function patchUpdates(_0xc7e00d){return function(_0x5e1d15){try{jsonpatch[_0x3bf8('0x21')](_0x5e1d15,_0xc7e00d,!![]);}catch(_0x1f290c){return BPromise['reject'](_0x1f290c);}return _0x5e1d15[_0x3bf8('0x22')]();};}function saveUpdates(_0x324b85,_0x3db52f){return function(_0x36f1b9){if(_0x36f1b9){return _0x36f1b9['update'](_0x324b85)[_0x3bf8('0x23')](function(_0x5699c1){return _0x5699c1;});}return null;};}function removeEntity(_0xee1dc9,_0x583d62){return function(_0x556b43){if(_0x556b43){return _0x556b43[_0x3bf8('0x24')]()[_0x3bf8('0x23')](function(){_0xee1dc9[_0x3bf8('0x19')](0xcc)[_0x3bf8('0x1a')]();});}};}function handleEntityNotFound(_0x3245e2,_0x2419cc){return function(_0x306b91){if(!_0x306b91){_0x3245e2[_0x3bf8('0x18')](0x194);}return _0x306b91;};}function handleError(_0x190d87,_0xf8072b){_0xf8072b=_0xf8072b||0x1f4;return function(_0x143e8a){logger[_0x3bf8('0x25')](_0x143e8a[_0x3bf8('0x26')]);if(_0x143e8a[_0x3bf8('0x27')]){delete _0x143e8a[_0x3bf8('0x27')];}_0x190d87['status'](_0xf8072b)[_0x3bf8('0x28')](_0x143e8a);};}exports[_0x3bf8('0x29')]=function(_0x5bfae5,_0x2615a5){var _0x3b4773={},_0x55cccc={},_0x487ba2={'count':0x0,'rows':[]};var _0x37d6fd=_[_0x3bf8('0x2a')](db[_0x3bf8('0x2b')]['rawAttributes'],function(_0x20c53b){return{'name':_0x20c53b['fieldName'],'type':_0x20c53b[_0x3bf8('0x2c')][_0x3bf8('0x2d')]};});_0x55cccc['model']=_['map'](_0x37d6fd,'name');_0x55cccc[_0x3bf8('0x2e')]=_['keys'](_0x5bfae5[_0x3bf8('0x2e')]);_0x55cccc['filters']=_['intersection'](_0x55cccc[_0x3bf8('0x2f')],_0x55cccc[_0x3bf8('0x2e')]);_0x3b4773[_0x3bf8('0x30')]=_[_0x3bf8('0x31')](_0x55cccc['model'],qs[_0x3bf8('0x32')](_0x5bfae5[_0x3bf8('0x2e')][_0x3bf8('0x32')]));_0x3b4773['attributes']=_0x3b4773['attributes']['length']?_0x3b4773['attributes']:_0x55cccc[_0x3bf8('0x2f')];if(!_0x5bfae5[_0x3bf8('0x2e')][_0x3bf8('0x33')]('nolimit')){_0x3b4773[_0x3bf8('0x1e')]=qs[_0x3bf8('0x1e')](_0x5bfae5['query']['limit']);_0x3b4773[_0x3bf8('0x1c')]=qs[_0x3bf8('0x1c')](_0x5bfae5[_0x3bf8('0x2e')][_0x3bf8('0x1c')]);}_0x3b4773['order']=qs[_0x3bf8('0x34')](_0x5bfae5['query']['sort']);_0x3b4773[_0x3bf8('0x35')]=qs[_0x3bf8('0x36')](_[_0x3bf8('0x37')](_0x5bfae5['query'],_0x55cccc[_0x3bf8('0x36')]),_0x37d6fd);if(_0x5bfae5[_0x3bf8('0x2e')][_0x3bf8('0x38')]){_0x3b4773[_0x3bf8('0x35')]=_[_0x3bf8('0x39')](_0x3b4773[_0x3bf8('0x35')],{'$or':_[_0x3bf8('0x2a')](_0x37d6fd,function(_0x337a97){if(_0x337a97[_0x3bf8('0x2c')]!==_0x3bf8('0x3a')){var _0x44d89b={};_0x44d89b[_0x337a97['name']]={'$like':'%'+_0x5bfae5['query'][_0x3bf8('0x38')]+'%'};return _0x44d89b;}})});}_0x3b4773=_[_0x3bf8('0x39')]({},_0x3b4773,_0x5bfae5['options']);var _0x55788e={'where':_0x3b4773[_0x3bf8('0x35')]};return db[_0x3bf8('0x2b')][_0x3bf8('0x1f')](_0x55788e)[_0x3bf8('0x23')](function(_0x25a3b2){_0x487ba2[_0x3bf8('0x1f')]=_0x25a3b2;if(_0x5bfae5[_0x3bf8('0x2e')][_0x3bf8('0x3b')]){_0x3b4773[_0x3bf8('0x3c')]=[{'all':!![]}];}return db['FaxQueueReport'][_0x3bf8('0x3d')](_0x3b4773);})[_0x3bf8('0x23')](function(_0xb92101){_0x487ba2['rows']=_0xb92101;return _0x487ba2;})[_0x3bf8('0x23')](respondWithFilteredResult(_0x2615a5,_0x3b4773))[_0x3bf8('0x3e')](handleError(_0x2615a5,null));};exports[_0x3bf8('0x3f')]=function(_0x513b27,_0x31a662){var _0x51eb9d={'raw':!![],'where':{'id':_0x513b27['params']['id']}},_0x298644={};_0x298644[_0x3bf8('0x2f')]=_[_0x3bf8('0x40')](db[_0x3bf8('0x2b')]['rawAttributes']);_0x298644[_0x3bf8('0x2e')]=_[_0x3bf8('0x40')](_0x513b27[_0x3bf8('0x2e')]);_0x298644[_0x3bf8('0x36')]=_[_0x3bf8('0x31')](_0x298644[_0x3bf8('0x2f')],_0x298644[_0x3bf8('0x2e')]);_0x51eb9d[_0x3bf8('0x30')]=_[_0x3bf8('0x31')](_0x298644[_0x3bf8('0x2f')],qs[_0x3bf8('0x32')](_0x513b27['query'][_0x3bf8('0x32')]));_0x51eb9d[_0x3bf8('0x30')]=_0x51eb9d[_0x3bf8('0x30')]['length']?_0x51eb9d[_0x3bf8('0x30')]:_0x298644[_0x3bf8('0x2f')];if(_0x513b27[_0x3bf8('0x2e')][_0x3bf8('0x3b')]){_0x51eb9d['include']=[{'all':!![]}];}_0x51eb9d=_[_0x3bf8('0x39')]({},_0x51eb9d,_0x513b27[_0x3bf8('0x41')]);return db[_0x3bf8('0x2b')][_0x3bf8('0x42')](_0x51eb9d)['then'](handleEntityNotFound(_0x31a662,null))['then'](respondWithResult(_0x31a662,null))[_0x3bf8('0x3e')](handleError(_0x31a662,null));};exports[_0x3bf8('0x43')]=function(_0x1ff860,_0x2a3b43){return db[_0x3bf8('0x2b')][_0x3bf8('0x43')](_0x1ff860['body'],{})[_0x3bf8('0x23')](respondWithResult(_0x2a3b43,0xc9))['catch'](handleError(_0x2a3b43,null));};exports[_0x3bf8('0x44')]=function(_0x3ebf9a,_0x5843df){if(_0x3ebf9a[_0x3bf8('0x45')]['id']){delete _0x3ebf9a[_0x3bf8('0x45')]['id'];}return db[_0x3bf8('0x2b')][_0x3bf8('0x42')]({'where':{'id':_0x3ebf9a[_0x3bf8('0x46')]['id']}})['then'](handleEntityNotFound(_0x5843df,null))[_0x3bf8('0x23')](saveUpdates(_0x3ebf9a[_0x3bf8('0x45')],null))[_0x3bf8('0x23')](respondWithResult(_0x5843df,null))[_0x3bf8('0x3e')](handleError(_0x5843df,null));};exports['destroy']=function(_0x4f13b5,_0x11804b){return db[_0x3bf8('0x2b')][_0x3bf8('0x42')]({'where':{'id':_0x4f13b5[_0x3bf8('0x46')]['id']}})[_0x3bf8('0x23')](handleEntityNotFound(_0x11804b,null))[_0x3bf8('0x23')](removeEntity(_0x11804b,null))[_0x3bf8('0x3e')](handleError(_0x11804b,null));};exports[_0x3bf8('0x47')]=function(_0x230070,_0x301a67){return db[_0x3bf8('0x2b')][_0x3bf8('0x47')]()[_0x3bf8('0x23')](respondWithResult(_0x301a67,null))[_0x3bf8('0x3e')](handleError(_0x301a67,null));};
\ No newline at end of file
+var _0xdb13=['query','filters','intersection','attributes','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','VIRTUAL','options','FaxQueueReport','includeAll','findAll','rows','catch','show','params','rawAttributes','fields','include','find','create','body','describe','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','util','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../config/environment','sendStatus','status','json','undefined','limit','count','offset','set','Content-Range','apply','reject','save','update','then','destroy','end','error','stack','name','send','map','fieldName','type','key','model','keys'];(function(_0x452ac2,_0x45f034){var _0x5a589a=function(_0x3c3fe8){while(--_0x3c3fe8){_0x452ac2['push'](_0x452ac2['shift']());}};_0x5a589a(++_0x45f034);}(_0xdb13,0x10c));var _0x3db1=function(_0x3b2807,_0x4a4160){_0x3b2807=_0x3b2807-0x0;var _0x4c26f5=_0xdb13[_0x3b2807];return _0x4c26f5;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x3db1('0x0'));var zipdir=require(_0x3db1('0x1'));var jsonpatch=require(_0x3db1('0x2'));var rp=require(_0x3db1('0x3'));var moment=require(_0x3db1('0x4'));var BPromise=require(_0x3db1('0x5'));var Mustache=require('mustache');var util=require(_0x3db1('0x6'));var path=require(_0x3db1('0x7'));var sox=require(_0x3db1('0x8'));var csv=require(_0x3db1('0x9'));var ejs=require(_0x3db1('0xa'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x3db1('0xb'));var squel=require(_0x3db1('0xc'));var crypto=require(_0x3db1('0xd'));var jsforce=require(_0x3db1('0xe'));var deskjs=require(_0x3db1('0xf'));var toCsv=require(_0x3db1('0x9'));var querystring=require(_0x3db1('0x10'));var Papa=require(_0x3db1('0x11'));var Redis=require(_0x3db1('0x12'));var authService=require(_0x3db1('0x13'));var qs=require(_0x3db1('0x14'));var as=require(_0x3db1('0x15'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x3db1('0x16'))(_0x3db1('0x17'));var utils=require(_0x3db1('0x18'));var config=require(_0x3db1('0x19'));var licenseUtil=require('../../config/license/util');var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x13d3cd,_0x12a973){_0x12a973=_0x12a973||0xcc;return function(_0x35954c){if(_0x35954c){return _0x13d3cd[_0x3db1('0x1a')](_0x12a973);}return _0x13d3cd[_0x3db1('0x1b')](_0x12a973)['end']();};}function respondWithResult(_0x59667f,_0x528650){_0x528650=_0x528650||0xc8;return function(_0x5f1633){if(_0x5f1633){return _0x59667f[_0x3db1('0x1b')](_0x528650)[_0x3db1('0x1c')](_0x5f1633);}};}function respondWithFilteredResult(_0x10be63,_0x2b4038){return function(_0xe390b3){if(_0xe390b3){var _0x24d8d6=typeof _0x2b4038['offset']===_0x3db1('0x1d')&&typeof _0x2b4038[_0x3db1('0x1e')]==='undefined';var _0x2d76e9=_0xe390b3[_0x3db1('0x1f')];var _0x549a0e=_0x24d8d6?0x0:_0x2b4038[_0x3db1('0x20')];var _0x5f3203=_0x24d8d6?_0xe390b3[_0x3db1('0x1f')]:_0x2b4038[_0x3db1('0x20')]+_0x2b4038[_0x3db1('0x1e')];var _0x435a76;if(_0x5f3203>=_0x2d76e9){_0x5f3203=_0x2d76e9;_0x435a76=0xc8;}else{_0x435a76=0xce;}_0x10be63['status'](_0x435a76);return _0x10be63[_0x3db1('0x21')](_0x3db1('0x22'),_0x549a0e+'-'+_0x5f3203+'/'+_0x2d76e9)[_0x3db1('0x1c')](_0xe390b3);}return null;};}function patchUpdates(_0x5ae404){return function(_0x365d65){try{jsonpatch[_0x3db1('0x23')](_0x365d65,_0x5ae404,!![]);}catch(_0x3eeca8){return BPromise[_0x3db1('0x24')](_0x3eeca8);}return _0x365d65[_0x3db1('0x25')]();};}function saveUpdates(_0x347555,_0x12f970){return function(_0x3a84aa){if(_0x3a84aa){return _0x3a84aa[_0x3db1('0x26')](_0x347555)[_0x3db1('0x27')](function(_0x3ad8f6){return _0x3ad8f6;});}return null;};}function removeEntity(_0x1ae9af,_0x1ee0c6){return function(_0x47c187){if(_0x47c187){return _0x47c187[_0x3db1('0x28')]()['then'](function(){_0x1ae9af[_0x3db1('0x1b')](0xcc)[_0x3db1('0x29')]();});}};}function handleEntityNotFound(_0x2263c6,_0x58b990){return function(_0x218f71){if(!_0x218f71){_0x2263c6[_0x3db1('0x1a')](0x194);}return _0x218f71;};}function handleError(_0x9792ff,_0x8ba38c){_0x8ba38c=_0x8ba38c||0x1f4;return function(_0x5bd826){logger[_0x3db1('0x2a')](_0x5bd826[_0x3db1('0x2b')]);if(_0x5bd826['name']){delete _0x5bd826[_0x3db1('0x2c')];}_0x9792ff[_0x3db1('0x1b')](_0x8ba38c)[_0x3db1('0x2d')](_0x5bd826);};}exports['index']=function(_0x2d139d,_0x226846){var _0x4164eb={},_0x51ec2f={},_0x4d0572={'count':0x0,'rows':[]};var _0xa731b3=_[_0x3db1('0x2e')](db['FaxQueueReport']['rawAttributes'],function(_0x2d8930){return{'name':_0x2d8930[_0x3db1('0x2f')],'type':_0x2d8930[_0x3db1('0x30')][_0x3db1('0x31')]};});_0x51ec2f[_0x3db1('0x32')]=_[_0x3db1('0x2e')](_0xa731b3,_0x3db1('0x2c'));_0x51ec2f['query']=_[_0x3db1('0x33')](_0x2d139d[_0x3db1('0x34')]);_0x51ec2f[_0x3db1('0x35')]=_[_0x3db1('0x36')](_0x51ec2f[_0x3db1('0x32')],_0x51ec2f[_0x3db1('0x34')]);_0x4164eb[_0x3db1('0x37')]=_[_0x3db1('0x36')](_0x51ec2f[_0x3db1('0x32')],qs['fields'](_0x2d139d[_0x3db1('0x34')]['fields']));_0x4164eb['attributes']=_0x4164eb[_0x3db1('0x37')]['length']?_0x4164eb[_0x3db1('0x37')]:_0x51ec2f['model'];if(!_0x2d139d[_0x3db1('0x34')][_0x3db1('0x38')](_0x3db1('0x39'))){_0x4164eb['limit']=qs['limit'](_0x2d139d['query'][_0x3db1('0x1e')]);_0x4164eb[_0x3db1('0x20')]=qs[_0x3db1('0x20')](_0x2d139d[_0x3db1('0x34')]['offset']);}_0x4164eb[_0x3db1('0x3a')]=qs[_0x3db1('0x3b')](_0x2d139d[_0x3db1('0x34')][_0x3db1('0x3b')]);_0x4164eb[_0x3db1('0x3c')]=qs[_0x3db1('0x35')](_[_0x3db1('0x3d')](_0x2d139d['query'],_0x51ec2f['filters']),_0xa731b3);if(_0x2d139d[_0x3db1('0x34')][_0x3db1('0x3e')]){_0x4164eb[_0x3db1('0x3c')]=_[_0x3db1('0x3f')](_0x4164eb[_0x3db1('0x3c')],{'$or':_['map'](_0xa731b3,function(_0x48fb83){if(_0x48fb83[_0x3db1('0x30')]!==_0x3db1('0x40')){var _0x3d0f20={};_0x3d0f20[_0x48fb83[_0x3db1('0x2c')]]={'$like':'%'+_0x2d139d['query'][_0x3db1('0x3e')]+'%'};return _0x3d0f20;}})});}_0x4164eb=_[_0x3db1('0x3f')]({},_0x4164eb,_0x2d139d[_0x3db1('0x41')]);var _0x594910={'where':_0x4164eb['where']};return db[_0x3db1('0x42')][_0x3db1('0x1f')](_0x594910)[_0x3db1('0x27')](function(_0x4da38d){_0x4d0572['count']=_0x4da38d;if(_0x2d139d[_0x3db1('0x34')][_0x3db1('0x43')]){_0x4164eb['include']=[{'all':!![]}];}return db[_0x3db1('0x42')][_0x3db1('0x44')](_0x4164eb);})[_0x3db1('0x27')](function(_0x511527){_0x4d0572[_0x3db1('0x45')]=_0x511527;return _0x4d0572;})['then'](respondWithFilteredResult(_0x226846,_0x4164eb))[_0x3db1('0x46')](handleError(_0x226846,null));};exports[_0x3db1('0x47')]=function(_0x405eba,_0x414269){var _0x1bd8c1={'raw':!![],'where':{'id':_0x405eba[_0x3db1('0x48')]['id']}},_0x432804={};_0x432804[_0x3db1('0x32')]=_[_0x3db1('0x33')](db[_0x3db1('0x42')][_0x3db1('0x49')]);_0x432804[_0x3db1('0x34')]=_[_0x3db1('0x33')](_0x405eba[_0x3db1('0x34')]);_0x432804[_0x3db1('0x35')]=_['intersection'](_0x432804[_0x3db1('0x32')],_0x432804[_0x3db1('0x34')]);_0x1bd8c1[_0x3db1('0x37')]=_[_0x3db1('0x36')](_0x432804['model'],qs['fields'](_0x405eba[_0x3db1('0x34')][_0x3db1('0x4a')]));_0x1bd8c1[_0x3db1('0x37')]=_0x1bd8c1[_0x3db1('0x37')]['length']?_0x1bd8c1[_0x3db1('0x37')]:_0x432804['model'];if(_0x405eba[_0x3db1('0x34')]['includeAll']){_0x1bd8c1[_0x3db1('0x4b')]=[{'all':!![]}];}_0x1bd8c1=_[_0x3db1('0x3f')]({},_0x1bd8c1,_0x405eba['options']);return db[_0x3db1('0x42')][_0x3db1('0x4c')](_0x1bd8c1)[_0x3db1('0x27')](handleEntityNotFound(_0x414269,null))[_0x3db1('0x27')](respondWithResult(_0x414269,null))[_0x3db1('0x46')](handleError(_0x414269,null));};exports[_0x3db1('0x4d')]=function(_0x45682a,_0x2c0946){return db[_0x3db1('0x42')]['create'](_0x45682a[_0x3db1('0x4e')],{})['then'](respondWithResult(_0x2c0946,0xc9))[_0x3db1('0x46')](handleError(_0x2c0946,null));};exports[_0x3db1('0x26')]=function(_0xb34b3e,_0x5c7c6a){if(_0xb34b3e[_0x3db1('0x4e')]['id']){delete _0xb34b3e['body']['id'];}return db[_0x3db1('0x42')][_0x3db1('0x4c')]({'where':{'id':_0xb34b3e[_0x3db1('0x48')]['id']}})[_0x3db1('0x27')](handleEntityNotFound(_0x5c7c6a,null))[_0x3db1('0x27')](saveUpdates(_0xb34b3e[_0x3db1('0x4e')],null))[_0x3db1('0x27')](respondWithResult(_0x5c7c6a,null))['catch'](handleError(_0x5c7c6a,null));};exports[_0x3db1('0x28')]=function(_0x2e60a0,_0x2c7e97){return db[_0x3db1('0x42')]['find']({'where':{'id':_0x2e60a0[_0x3db1('0x48')]['id']}})[_0x3db1('0x27')](handleEntityNotFound(_0x2c7e97,null))['then'](removeEntity(_0x2c7e97,null))[_0x3db1('0x46')](handleError(_0x2c7e97,null));};exports[_0x3db1('0x4f')]=function(_0x3675fa,_0x27cf50){return db[_0x3db1('0x42')][_0x3db1('0x4f')]()[_0x3db1('0x27')](respondWithResult(_0x27cf50,null))[_0x3db1('0x46')](handleError(_0x27cf50,null));};
\ No newline at end of file