Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / mailTransferReport / mailTransferReport.controller.js
index 547254b..f749cd7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xab95=['attributes','length','nolimit','order','sort','where','pick','filter','merge','options','includeAll','include','findAll','rows','catch','params','find','create','body','update','describe','html-pdf','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','path','sox','to-csv','ejs','lodash','squel','crypto','desk.js','querystring','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','status','json','count','offset','limit','set','apply','save','then','end','error','name','send','index','map','MailTransferReport','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','fields'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0xab95,0xaf));var _0x5ab9=function(_0x2d25ea,_0x5c3ab5){_0x2d25ea=_0x2d25ea-0x0;var _0x2699b6=_0xab95[_0x2d25ea];return _0x2699b6;};'use strict';var pdf=require(_0x5ab9('0x0'));var emlformat=require(_0x5ab9('0x1'));var rimraf=require(_0x5ab9('0x2'));var zipdir=require(_0x5ab9('0x3'));var jsonpatch=require(_0x5ab9('0x4'));var rp=require(_0x5ab9('0x5'));var moment=require(_0x5ab9('0x6'));var BPromise=require(_0x5ab9('0x7'));var Mustache=require('mustache');var util=require('util');var path=require(_0x5ab9('0x8'));var sox=require(_0x5ab9('0x9'));var csv=require(_0x5ab9('0xa'));var ejs=require(_0x5ab9('0xb'));var fs=require('fs');var _=require(_0x5ab9('0xc'));var squel=require(_0x5ab9('0xd'));var crypto=require(_0x5ab9('0xe'));var jsforce=require('jsforce');var deskjs=require(_0x5ab9('0xf'));var toCsv=require(_0x5ab9('0xa'));var querystring=require(_0x5ab9('0x10'));var Papa=require(_0x5ab9('0x11'));var Redis=require(_0x5ab9('0x12'));var authService=require(_0x5ab9('0x13'));var qs=require(_0x5ab9('0x14'));var as=require(_0x5ab9('0x15'));var hardwareService=require(_0x5ab9('0x16'));var logger=require(_0x5ab9('0x17'))(_0x5ab9('0x18'));var utils=require(_0x5ab9('0x19'));var config=require(_0x5ab9('0x1a'));var licenseUtil=require(_0x5ab9('0x1b'));var db=require(_0x5ab9('0x1c'))['db'];function respondWithStatusCode(_0x2f6119,_0x15d980){_0x15d980=_0x15d980||0xcc;return function(_0x268249){if(_0x268249){return _0x2f6119[_0x5ab9('0x1d')](_0x15d980);}return _0x2f6119[_0x5ab9('0x1e')](_0x15d980)['end']();};}function respondWithResult(_0x9e3d31,_0x1b9d9c){_0x1b9d9c=_0x1b9d9c||0xc8;return function(_0xe8395b){if(_0xe8395b){return _0x9e3d31['status'](_0x1b9d9c)[_0x5ab9('0x1f')](_0xe8395b);}};}function respondWithFilteredResult(_0x3bac85,_0x413ec9){return function(_0x259d7d){if(_0x259d7d){var _0x2a4e5b=_0x259d7d[_0x5ab9('0x20')],_0x74bb2b=_0x413ec9[_0x5ab9('0x21')],_0x1ec738=_0x413ec9[_0x5ab9('0x21')]+_0x413ec9[_0x5ab9('0x22')],_0x3c84f4;if(_0x1ec738>=_0x2a4e5b){_0x1ec738=_0x2a4e5b;_0x3c84f4=0xc8;}else{_0x3c84f4=0xce;}_0x3bac85[_0x5ab9('0x1e')](_0x3c84f4);return _0x3bac85[_0x5ab9('0x23')]('Content-Range',_0x74bb2b+'-'+_0x1ec738+'/'+_0x2a4e5b)['json'](_0x259d7d);}return null;};}function patchUpdates(_0x10d378){return function(_0x345f39){try{jsonpatch[_0x5ab9('0x24')](_0x345f39,_0x10d378,!![]);}catch(_0x11948c){return BPromise['reject'](_0x11948c);}return _0x345f39[_0x5ab9('0x25')]();};}function saveUpdates(_0x18fbcb,_0x43af6e){return function(_0x56feea){if(_0x56feea){return _0x56feea['update'](_0x18fbcb)[_0x5ab9('0x26')](function(_0x1a05fa){return _0x1a05fa;});}return null;};}function removeEntity(_0x177c6b,_0x3817fb){return function(_0x2b351b){if(_0x2b351b){return _0x2b351b['destroy']()[_0x5ab9('0x26')](function(){_0x177c6b[_0x5ab9('0x1e')](0xcc)[_0x5ab9('0x27')]();});}};}function handleEntityNotFound(_0x1d187b,_0x16a1ca){return function(_0x27468d){if(!_0x27468d){_0x1d187b[_0x5ab9('0x1d')](0x194);}return _0x27468d;};}function handleError(_0x42a408,_0x2b4a02){_0x2b4a02=_0x2b4a02||0x1f4;return function(_0x3d0cae){logger[_0x5ab9('0x28')](_0x3d0cae['stack']);if(_0x3d0cae[_0x5ab9('0x29')]){delete _0x3d0cae[_0x5ab9('0x29')];}_0x42a408[_0x5ab9('0x1e')](_0x2b4a02)[_0x5ab9('0x2a')](_0x3d0cae);};}exports[_0x5ab9('0x2b')]=function(_0x358edf,_0x40dcf4){var _0x476cba={},_0x7eabb9={},_0x22b576={'count':0x0,'rows':[]};var _0x42277a=_[_0x5ab9('0x2c')](db[_0x5ab9('0x2d')][_0x5ab9('0x2e')],function(_0x6c2dcc){return{'name':_0x6c2dcc[_0x5ab9('0x2f')],'type':_0x6c2dcc[_0x5ab9('0x30')][_0x5ab9('0x31')]};});_0x7eabb9[_0x5ab9('0x32')]=_[_0x5ab9('0x2c')](_0x42277a,_0x5ab9('0x29'));_0x7eabb9[_0x5ab9('0x33')]=_[_0x5ab9('0x34')](_0x358edf['query']);_0x7eabb9[_0x5ab9('0x35')]=_['intersection'](_0x7eabb9[_0x5ab9('0x32')],_0x7eabb9[_0x5ab9('0x33')]);_0x476cba['attributes']=_[_0x5ab9('0x36')](_0x7eabb9[_0x5ab9('0x32')],qs[_0x5ab9('0x37')](_0x358edf[_0x5ab9('0x33')]['fields']));_0x476cba['attributes']=_0x476cba[_0x5ab9('0x38')][_0x5ab9('0x39')]?_0x476cba[_0x5ab9('0x38')]:_0x7eabb9[_0x5ab9('0x32')];if(!_0x358edf['query']['hasOwnProperty'](_0x5ab9('0x3a'))){_0x476cba[_0x5ab9('0x22')]=qs['limit'](_0x358edf[_0x5ab9('0x33')][_0x5ab9('0x22')]);_0x476cba[_0x5ab9('0x21')]=qs[_0x5ab9('0x21')](_0x358edf[_0x5ab9('0x33')][_0x5ab9('0x21')]);}_0x476cba[_0x5ab9('0x3b')]=qs['sort'](_0x358edf['query'][_0x5ab9('0x3c')]);_0x476cba[_0x5ab9('0x3d')]=qs[_0x5ab9('0x35')](_[_0x5ab9('0x3e')](_0x358edf[_0x5ab9('0x33')],_0x7eabb9[_0x5ab9('0x35')]),_0x42277a);if(_0x358edf[_0x5ab9('0x33')][_0x5ab9('0x3f')]){_0x476cba[_0x5ab9('0x3d')]=_[_0x5ab9('0x40')](_0x476cba[_0x5ab9('0x3d')],{'$or':_[_0x5ab9('0x2c')](_0x42277a,function(_0x13637b){if(_0x13637b['type']!=='VIRTUAL'){var _0x39ef6c={};_0x39ef6c[_0x13637b[_0x5ab9('0x29')]]={'$like':'%'+_0x358edf[_0x5ab9('0x33')][_0x5ab9('0x3f')]+'%'};return _0x39ef6c;}})});}_0x476cba=_['merge']({},_0x476cba,_0x358edf[_0x5ab9('0x41')]);var _0x551053={'where':_0x476cba[_0x5ab9('0x3d')]};return db[_0x5ab9('0x2d')][_0x5ab9('0x20')](_0x551053)[_0x5ab9('0x26')](function(_0x24eba0){_0x22b576['count']=_0x24eba0;if(_0x358edf[_0x5ab9('0x33')][_0x5ab9('0x42')]){_0x476cba[_0x5ab9('0x43')]=[{'all':!![]}];}return db[_0x5ab9('0x2d')][_0x5ab9('0x44')](_0x476cba);})[_0x5ab9('0x26')](function(_0x180ead){_0x22b576[_0x5ab9('0x45')]=_0x180ead;return _0x22b576;})[_0x5ab9('0x26')](respondWithFilteredResult(_0x40dcf4,_0x476cba))[_0x5ab9('0x46')](handleError(_0x40dcf4,null));};exports['show']=function(_0x331a12,_0x385b3b){var _0x12d0b0={'raw':!![],'where':{'id':_0x331a12[_0x5ab9('0x47')]['id']}},_0x42b7aa={};_0x42b7aa['model']=_[_0x5ab9('0x34')](db[_0x5ab9('0x2d')][_0x5ab9('0x2e')]);_0x42b7aa[_0x5ab9('0x33')]=_[_0x5ab9('0x34')](_0x331a12[_0x5ab9('0x33')]);_0x42b7aa['filters']=_[_0x5ab9('0x36')](_0x42b7aa['model'],_0x42b7aa['query']);_0x12d0b0[_0x5ab9('0x38')]=_[_0x5ab9('0x36')](_0x42b7aa[_0x5ab9('0x32')],qs[_0x5ab9('0x37')](_0x331a12['query']['fields']));_0x12d0b0[_0x5ab9('0x38')]=_0x12d0b0[_0x5ab9('0x38')][_0x5ab9('0x39')]?_0x12d0b0[_0x5ab9('0x38')]:_0x42b7aa[_0x5ab9('0x32')];if(_0x331a12[_0x5ab9('0x33')]['includeAll']){_0x12d0b0[_0x5ab9('0x43')]=[{'all':!![]}];}_0x12d0b0=_[_0x5ab9('0x40')]({},_0x12d0b0,_0x331a12[_0x5ab9('0x41')]);return db[_0x5ab9('0x2d')][_0x5ab9('0x48')](_0x12d0b0)['then'](handleEntityNotFound(_0x385b3b,null))[_0x5ab9('0x26')](respondWithResult(_0x385b3b,null))[_0x5ab9('0x46')](handleError(_0x385b3b,null));};exports[_0x5ab9('0x49')]=function(_0x239172,_0x4ac292){return db[_0x5ab9('0x2d')][_0x5ab9('0x49')](_0x239172[_0x5ab9('0x4a')],{})['then'](respondWithResult(_0x4ac292,0xc9))[_0x5ab9('0x46')](handleError(_0x4ac292,null));};exports[_0x5ab9('0x4b')]=function(_0x3f2497,_0x755c1d){if(_0x3f2497[_0x5ab9('0x4a')]['id']){delete _0x3f2497['body']['id'];}return db[_0x5ab9('0x2d')][_0x5ab9('0x48')]({'where':{'id':_0x3f2497['params']['id']}})[_0x5ab9('0x26')](handleEntityNotFound(_0x755c1d,null))[_0x5ab9('0x26')](saveUpdates(_0x3f2497[_0x5ab9('0x4a')],null))[_0x5ab9('0x26')](respondWithResult(_0x755c1d,null))[_0x5ab9('0x46')](handleError(_0x755c1d,null));};exports['destroy']=function(_0x489c28,_0x531b5){return db[_0x5ab9('0x2d')][_0x5ab9('0x48')]({'where':{'id':_0x489c28[_0x5ab9('0x47')]['id']}})[_0x5ab9('0x26')](handleEntityNotFound(_0x531b5,null))[_0x5ab9('0x26')](removeEntity(_0x531b5,null))['catch'](handleError(_0x531b5,null));};exports[_0x5ab9('0x4c')]=function(_0xee3073,_0x92b3d6){return db[_0x5ab9('0x2d')]['describe']()[_0x5ab9('0x26')](respondWithResult(_0x92b3d6,null))[_0x5ab9('0x46')](handleError(_0x92b3d6,null));};
\ No newline at end of file
+var _0xbbf9=['body','describe','eml-format','rimraf','zip-dir','fast-json-patch','moment','mustache','util','sox','to-csv','fs-extra','lodash','squel','jsforce','desk.js','querystring','papaparse','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','status','offset','undefined','count','limit','set','apply','reject','save','update','then','destroy','end','error','stack','index','MailTransferReport','fieldName','map','query','keys','filters','intersection','model','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','merge','VIRTUAL','filter','include','findAll','rows','show','params','rawAttributes','includeAll','options','find','catch','create'];(function(_0x393d22,_0x44385a){var _0x11f436=function(_0x2b3d37){while(--_0x2b3d37){_0x393d22['push'](_0x393d22['shift']());}};_0x11f436(++_0x44385a);}(_0xbbf9,0x1b2));var _0x9bbf=function(_0x31922d,_0x35f27b){_0x31922d=_0x31922d-0x0;var _0x255700=_0xbbf9[_0x31922d];return _0x255700;};'use strict';var emlformat=require(_0x9bbf('0x0'));var rimraf=require(_0x9bbf('0x1'));var zipdir=require(_0x9bbf('0x2'));var jsonpatch=require(_0x9bbf('0x3'));var rp=require('request-promise');var moment=require(_0x9bbf('0x4'));var BPromise=require('bluebird');var Mustache=require(_0x9bbf('0x5'));var util=require(_0x9bbf('0x6'));var path=require('path');var sox=require(_0x9bbf('0x7'));var csv=require(_0x9bbf('0x8'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0x9bbf('0x9'));var _=require(_0x9bbf('0xa'));var squel=require(_0x9bbf('0xb'));var crypto=require('crypto');var jsforce=require(_0x9bbf('0xc'));var deskjs=require(_0x9bbf('0xd'));var toCsv=require('to-csv');var querystring=require(_0x9bbf('0xe'));var Papa=require(_0x9bbf('0xf'));var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require(_0x9bbf('0x10'));var hardwareService=require(_0x9bbf('0x11'));var logger=require(_0x9bbf('0x12'))(_0x9bbf('0x13'));var utils=require(_0x9bbf('0x14'));var config=require(_0x9bbf('0x15'));var licenseUtil=require(_0x9bbf('0x16'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x35836b,_0x565345){_0x565345=_0x565345||0xcc;return function(_0x180dbd){if(_0x180dbd){return _0x35836b['sendStatus'](_0x565345);}return _0x35836b[_0x9bbf('0x17')](_0x565345)['end']();};}function respondWithResult(_0x4ace3b,_0xab4321){_0xab4321=_0xab4321||0xc8;return function(_0x2dfbf8){if(_0x2dfbf8){return _0x4ace3b[_0x9bbf('0x17')](_0xab4321)['json'](_0x2dfbf8);}};}function respondWithFilteredResult(_0x258308,_0x142eb5){return function(_0x5743b0){if(_0x5743b0){var _0x3cad83=typeof _0x142eb5[_0x9bbf('0x18')]===_0x9bbf('0x19')&&typeof _0x142eb5['limit']===_0x9bbf('0x19');var _0x40b9ed=_0x5743b0[_0x9bbf('0x1a')];var _0x5d443d=_0x3cad83?0x0:_0x142eb5[_0x9bbf('0x18')];var _0x137817=_0x3cad83?_0x5743b0['count']:_0x142eb5[_0x9bbf('0x18')]+_0x142eb5[_0x9bbf('0x1b')];var _0x1cc877;if(_0x137817>=_0x40b9ed){_0x137817=_0x40b9ed;_0x1cc877=0xc8;}else{_0x1cc877=0xce;}_0x258308['status'](_0x1cc877);return _0x258308[_0x9bbf('0x1c')]('Content-Range',_0x5d443d+'-'+_0x137817+'/'+_0x40b9ed)['json'](_0x5743b0);}return null;};}function patchUpdates(_0x323edf){return function(_0x47e6b9){try{jsonpatch[_0x9bbf('0x1d')](_0x47e6b9,_0x323edf,!![]);}catch(_0x468963){return BPromise[_0x9bbf('0x1e')](_0x468963);}return _0x47e6b9[_0x9bbf('0x1f')]();};}function saveUpdates(_0x4f886d,_0x44316e){return function(_0x4688e6){if(_0x4688e6){return _0x4688e6[_0x9bbf('0x20')](_0x4f886d)[_0x9bbf('0x21')](function(_0x1190a4){return _0x1190a4;});}return null;};}function removeEntity(_0x4c2e87,_0x3a8ce5){return function(_0x519a1f){if(_0x519a1f){return _0x519a1f[_0x9bbf('0x22')]()[_0x9bbf('0x21')](function(){_0x4c2e87[_0x9bbf('0x17')](0xcc)[_0x9bbf('0x23')]();});}};}function handleEntityNotFound(_0x42e711,_0xf7b0eb){return function(_0x43618b){if(!_0x43618b){_0x42e711['sendStatus'](0x194);}return _0x43618b;};}function handleError(_0x258622,_0x41c328){_0x41c328=_0x41c328||0x1f4;return function(_0x50f10a){logger[_0x9bbf('0x24')](_0x50f10a[_0x9bbf('0x25')]);if(_0x50f10a['name']){delete _0x50f10a['name'];}_0x258622[_0x9bbf('0x17')](_0x41c328)['send'](_0x50f10a);};}exports[_0x9bbf('0x26')]=function(_0x341a29,_0x738ccc){var _0x32d12e={},_0x5e19c5={},_0x50f187={'count':0x0,'rows':[]};var _0x11e045=_['map'](db[_0x9bbf('0x27')]['rawAttributes'],function(_0x1baa27){return{'name':_0x1baa27[_0x9bbf('0x28')],'type':_0x1baa27['type']['key']};});_0x5e19c5['model']=_[_0x9bbf('0x29')](_0x11e045,'name');_0x5e19c5[_0x9bbf('0x2a')]=_[_0x9bbf('0x2b')](_0x341a29[_0x9bbf('0x2a')]);_0x5e19c5[_0x9bbf('0x2c')]=_[_0x9bbf('0x2d')](_0x5e19c5[_0x9bbf('0x2e')],_0x5e19c5[_0x9bbf('0x2a')]);_0x32d12e[_0x9bbf('0x2f')]=_[_0x9bbf('0x2d')](_0x5e19c5[_0x9bbf('0x2e')],qs[_0x9bbf('0x30')](_0x341a29[_0x9bbf('0x2a')][_0x9bbf('0x30')]));_0x32d12e[_0x9bbf('0x2f')]=_0x32d12e[_0x9bbf('0x2f')][_0x9bbf('0x31')]?_0x32d12e[_0x9bbf('0x2f')]:_0x5e19c5[_0x9bbf('0x2e')];if(!_0x341a29[_0x9bbf('0x2a')][_0x9bbf('0x32')](_0x9bbf('0x33'))){_0x32d12e['limit']=qs[_0x9bbf('0x1b')](_0x341a29[_0x9bbf('0x2a')][_0x9bbf('0x1b')]);_0x32d12e['offset']=qs[_0x9bbf('0x18')](_0x341a29[_0x9bbf('0x2a')]['offset']);}_0x32d12e[_0x9bbf('0x34')]=qs[_0x9bbf('0x35')](_0x341a29[_0x9bbf('0x2a')]['sort']);_0x32d12e[_0x9bbf('0x36')]=qs[_0x9bbf('0x2c')](_[_0x9bbf('0x37')](_0x341a29[_0x9bbf('0x2a')],_0x5e19c5[_0x9bbf('0x2c')]),_0x11e045);if(_0x341a29[_0x9bbf('0x2a')]['filter']){_0x32d12e[_0x9bbf('0x36')]=_[_0x9bbf('0x38')](_0x32d12e[_0x9bbf('0x36')],{'$or':_['map'](_0x11e045,function(_0x4f19e1){if(_0x4f19e1['type']!==_0x9bbf('0x39')){var _0xd8ecc={};_0xd8ecc[_0x4f19e1['name']]={'$like':'%'+_0x341a29[_0x9bbf('0x2a')][_0x9bbf('0x3a')]+'%'};return _0xd8ecc;}})});}_0x32d12e=_[_0x9bbf('0x38')]({},_0x32d12e,_0x341a29['options']);var _0x2fdb9a={'where':_0x32d12e[_0x9bbf('0x36')]};return db[_0x9bbf('0x27')][_0x9bbf('0x1a')](_0x2fdb9a)[_0x9bbf('0x21')](function(_0x3b3ca5){_0x50f187['count']=_0x3b3ca5;if(_0x341a29['query']['includeAll']){_0x32d12e[_0x9bbf('0x3b')]=[{'all':!![]}];}return db[_0x9bbf('0x27')][_0x9bbf('0x3c')](_0x32d12e);})['then'](function(_0x4b9abf){_0x50f187[_0x9bbf('0x3d')]=_0x4b9abf;return _0x50f187;})[_0x9bbf('0x21')](respondWithFilteredResult(_0x738ccc,_0x32d12e))['catch'](handleError(_0x738ccc,null));};exports[_0x9bbf('0x3e')]=function(_0x3bb27e,_0x5bbdc4){var _0x3378c0={'raw':!![],'where':{'id':_0x3bb27e[_0x9bbf('0x3f')]['id']}},_0x1c92fa={};_0x1c92fa[_0x9bbf('0x2e')]=_['keys'](db[_0x9bbf('0x27')][_0x9bbf('0x40')]);_0x1c92fa['query']=_[_0x9bbf('0x2b')](_0x3bb27e[_0x9bbf('0x2a')]);_0x1c92fa['filters']=_[_0x9bbf('0x2d')](_0x1c92fa[_0x9bbf('0x2e')],_0x1c92fa[_0x9bbf('0x2a')]);_0x3378c0[_0x9bbf('0x2f')]=_[_0x9bbf('0x2d')](_0x1c92fa['model'],qs['fields'](_0x3bb27e[_0x9bbf('0x2a')][_0x9bbf('0x30')]));_0x3378c0[_0x9bbf('0x2f')]=_0x3378c0[_0x9bbf('0x2f')]['length']?_0x3378c0[_0x9bbf('0x2f')]:_0x1c92fa[_0x9bbf('0x2e')];if(_0x3bb27e[_0x9bbf('0x2a')][_0x9bbf('0x41')]){_0x3378c0['include']=[{'all':!![]}];}_0x3378c0=_[_0x9bbf('0x38')]({},_0x3378c0,_0x3bb27e[_0x9bbf('0x42')]);return db[_0x9bbf('0x27')][_0x9bbf('0x43')](_0x3378c0)[_0x9bbf('0x21')](handleEntityNotFound(_0x5bbdc4,null))[_0x9bbf('0x21')](respondWithResult(_0x5bbdc4,null))[_0x9bbf('0x44')](handleError(_0x5bbdc4,null));};exports[_0x9bbf('0x45')]=function(_0x4283da,_0x58c5b4){return db[_0x9bbf('0x27')][_0x9bbf('0x45')](_0x4283da[_0x9bbf('0x46')],{})['then'](respondWithResult(_0x58c5b4,0xc9))[_0x9bbf('0x44')](handleError(_0x58c5b4,null));};exports[_0x9bbf('0x20')]=function(_0x3b6822,_0x15062b){if(_0x3b6822[_0x9bbf('0x46')]['id']){delete _0x3b6822['body']['id'];}return db[_0x9bbf('0x27')][_0x9bbf('0x43')]({'where':{'id':_0x3b6822[_0x9bbf('0x3f')]['id']}})[_0x9bbf('0x21')](handleEntityNotFound(_0x15062b,null))[_0x9bbf('0x21')](saveUpdates(_0x3b6822[_0x9bbf('0x46')],null))['then'](respondWithResult(_0x15062b,null))[_0x9bbf('0x44')](handleError(_0x15062b,null));};exports[_0x9bbf('0x22')]=function(_0x1146e4,_0x104a09){return db[_0x9bbf('0x27')][_0x9bbf('0x43')]({'where':{'id':_0x1146e4[_0x9bbf('0x3f')]['id']}})[_0x9bbf('0x21')](handleEntityNotFound(_0x104a09,null))[_0x9bbf('0x21')](removeEntity(_0x104a09,null))[_0x9bbf('0x44')](handleError(_0x104a09,null));};exports[_0x9bbf('0x47')]=function(_0x44e3d8,_0x3ec4cc){return db[_0x9bbf('0x27')]['describe']()[_0x9bbf('0x21')](respondWithResult(_0x3ec4cc,null))['catch'](handleError(_0x3ec4cc,null));};
\ No newline at end of file