Built motion from commit 511216ff.|2.6.34
[motion2.git] / server / api / mailTransferReport / mailTransferReport.controller.js
index 0287270..ad938f5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8bf4=['map','MailTransferReport','rawAttributes','type','key','model','query','attributes','intersection','fields','length','hasOwnProperty','nolimit','where','pick','filters','filter','merge','VIRTUAL','options','includeAll','include','findAll','rows','show','params','keys','find','catch','create','body','describe','zip-dir','fast-json-patch','request-promise','moment','bluebird','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/license/util','../../mysqldb','status','json','offset','undefined','limit','count','reject','save','update','destroy','then','end','sendStatus','error','stack','name','send','index'];(function(_0x951e48,_0x422d87){var _0x334df0=function(_0x42c9df){while(--_0x42c9df){_0x951e48['push'](_0x951e48['shift']());}};_0x334df0(++_0x422d87);}(_0x8bf4,0x158));var _0x48bf=function(_0x2cbb74,_0x241c10){_0x2cbb74=_0x2cbb74-0x0;var _0xa6d18=_0x8bf4[_0x2cbb74];return _0xa6d18;};'use strict';var emlformat=require('eml-format');var rimraf=require('rimraf');var zipdir=require(_0x48bf('0x0'));var jsonpatch=require(_0x48bf('0x1'));var rp=require(_0x48bf('0x2'));var moment=require(_0x48bf('0x3'));var BPromise=require(_0x48bf('0x4'));var Mustache=require('mustache');var util=require(_0x48bf('0x5'));var path=require(_0x48bf('0x6'));var sox=require(_0x48bf('0x7'));var csv=require(_0x48bf('0x8'));var ejs=require(_0x48bf('0x9'));var fs=require('fs');var fs_extra=require(_0x48bf('0xa'));var _=require(_0x48bf('0xb'));var squel=require(_0x48bf('0xc'));var crypto=require(_0x48bf('0xd'));var jsforce=require(_0x48bf('0xe'));var deskjs=require(_0x48bf('0xf'));var toCsv=require(_0x48bf('0x8'));var querystring=require(_0x48bf('0x10'));var Papa=require(_0x48bf('0x11'));var Redis=require(_0x48bf('0x12'));var authService=require(_0x48bf('0x13'));var qs=require(_0x48bf('0x14'));var as=require(_0x48bf('0x15'));var hardwareService=require(_0x48bf('0x16'));var logger=require(_0x48bf('0x17'))(_0x48bf('0x18'));var utils=require(_0x48bf('0x19'));var config=require('../../config/environment');var licenseUtil=require(_0x48bf('0x1a'));var db=require(_0x48bf('0x1b'))['db'];function respondWithStatusCode(_0x24df2d,_0x5a0aa8){_0x5a0aa8=_0x5a0aa8||0xcc;return function(_0x314df5){if(_0x314df5){return _0x24df2d['sendStatus'](_0x5a0aa8);}return _0x24df2d['status'](_0x5a0aa8)['end']();};}function respondWithResult(_0x33c342,_0x2efbaf){_0x2efbaf=_0x2efbaf||0xc8;return function(_0x1d8439){if(_0x1d8439){return _0x33c342[_0x48bf('0x1c')](_0x2efbaf)[_0x48bf('0x1d')](_0x1d8439);}};}function respondWithFilteredResult(_0x2af5b6,_0x14b4ff){return function(_0x6a93af){if(_0x6a93af){var _0x49540a=typeof _0x14b4ff[_0x48bf('0x1e')]===_0x48bf('0x1f')&&typeof _0x14b4ff[_0x48bf('0x20')]==='undefined';var _0x1b53f7=_0x6a93af[_0x48bf('0x21')];var _0x4cd244=_0x49540a?0x0:_0x14b4ff[_0x48bf('0x1e')];var _0x2edace=_0x49540a?_0x6a93af[_0x48bf('0x21')]:_0x14b4ff[_0x48bf('0x1e')]+_0x14b4ff[_0x48bf('0x20')];var _0xd394af;if(_0x2edace>=_0x1b53f7){_0x2edace=_0x1b53f7;_0xd394af=0xc8;}else{_0xd394af=0xce;}_0x2af5b6[_0x48bf('0x1c')](_0xd394af);return _0x2af5b6['set']('Content-Range',_0x4cd244+'-'+_0x2edace+'/'+_0x1b53f7)[_0x48bf('0x1d')](_0x6a93af);}return null;};}function patchUpdates(_0x16fd78){return function(_0x526c5c){try{jsonpatch['apply'](_0x526c5c,_0x16fd78,!![]);}catch(_0x2859a7){return BPromise[_0x48bf('0x22')](_0x2859a7);}return _0x526c5c[_0x48bf('0x23')]();};}function saveUpdates(_0x2d94e6,_0x1d49b2){return function(_0x24b099){if(_0x24b099){return _0x24b099[_0x48bf('0x24')](_0x2d94e6)['then'](function(_0x533893){return _0x533893;});}return null;};}function removeEntity(_0x144ba1,_0x1f5630){return function(_0x18183f){if(_0x18183f){return _0x18183f[_0x48bf('0x25')]()[_0x48bf('0x26')](function(){_0x144ba1[_0x48bf('0x1c')](0xcc)[_0x48bf('0x27')]();});}};}function handleEntityNotFound(_0x5ad6df,_0x73c0ff){return function(_0x1c8636){if(!_0x1c8636){_0x5ad6df[_0x48bf('0x28')](0x194);}return _0x1c8636;};}function handleError(_0x26375e,_0x372486){_0x372486=_0x372486||0x1f4;return function(_0x25238b){logger[_0x48bf('0x29')](_0x25238b[_0x48bf('0x2a')]);if(_0x25238b['name']){delete _0x25238b[_0x48bf('0x2b')];}_0x26375e[_0x48bf('0x1c')](_0x372486)[_0x48bf('0x2c')](_0x25238b);};}exports[_0x48bf('0x2d')]=function(_0x487313,_0x4ecdb8){var _0xbe18ed={},_0x15fa96={},_0x3a7d99={'count':0x0,'rows':[]};var _0x536942=_[_0x48bf('0x2e')](db[_0x48bf('0x2f')][_0x48bf('0x30')],function(_0x2db0a9){return{'name':_0x2db0a9['fieldName'],'type':_0x2db0a9[_0x48bf('0x31')][_0x48bf('0x32')]};});_0x15fa96[_0x48bf('0x33')]=_[_0x48bf('0x2e')](_0x536942,_0x48bf('0x2b'));_0x15fa96[_0x48bf('0x34')]=_['keys'](_0x487313[_0x48bf('0x34')]);_0x15fa96['filters']=_['intersection'](_0x15fa96['model'],_0x15fa96[_0x48bf('0x34')]);_0xbe18ed[_0x48bf('0x35')]=_[_0x48bf('0x36')](_0x15fa96[_0x48bf('0x33')],qs[_0x48bf('0x37')](_0x487313['query'][_0x48bf('0x37')]));_0xbe18ed['attributes']=_0xbe18ed[_0x48bf('0x35')][_0x48bf('0x38')]?_0xbe18ed[_0x48bf('0x35')]:_0x15fa96[_0x48bf('0x33')];if(!_0x487313[_0x48bf('0x34')][_0x48bf('0x39')](_0x48bf('0x3a'))){_0xbe18ed[_0x48bf('0x20')]=qs[_0x48bf('0x20')](_0x487313[_0x48bf('0x34')][_0x48bf('0x20')]);_0xbe18ed[_0x48bf('0x1e')]=qs[_0x48bf('0x1e')](_0x487313[_0x48bf('0x34')]['offset']);}_0xbe18ed['order']=qs['sort'](_0x487313['query']['sort']);_0xbe18ed[_0x48bf('0x3b')]=qs['filters'](_[_0x48bf('0x3c')](_0x487313[_0x48bf('0x34')],_0x15fa96[_0x48bf('0x3d')]),_0x536942);if(_0x487313['query'][_0x48bf('0x3e')]){_0xbe18ed[_0x48bf('0x3b')]=_[_0x48bf('0x3f')](_0xbe18ed[_0x48bf('0x3b')],{'$or':_['map'](_0x536942,function(_0x42541f){if(_0x42541f[_0x48bf('0x31')]!==_0x48bf('0x40')){var _0x5e67f7={};_0x5e67f7[_0x42541f[_0x48bf('0x2b')]]={'$like':'%'+_0x487313[_0x48bf('0x34')][_0x48bf('0x3e')]+'%'};return _0x5e67f7;}})});}_0xbe18ed=_[_0x48bf('0x3f')]({},_0xbe18ed,_0x487313[_0x48bf('0x41')]);var _0x1296c7={'where':_0xbe18ed[_0x48bf('0x3b')]};return db['MailTransferReport'][_0x48bf('0x21')](_0x1296c7)['then'](function(_0x422f7f){_0x3a7d99[_0x48bf('0x21')]=_0x422f7f;if(_0x487313[_0x48bf('0x34')][_0x48bf('0x42')]){_0xbe18ed[_0x48bf('0x43')]=[{'all':!![]}];}return db[_0x48bf('0x2f')][_0x48bf('0x44')](_0xbe18ed);})[_0x48bf('0x26')](function(_0xaa8d3d){_0x3a7d99[_0x48bf('0x45')]=_0xaa8d3d;return _0x3a7d99;})['then'](respondWithFilteredResult(_0x4ecdb8,_0xbe18ed))['catch'](handleError(_0x4ecdb8,null));};exports[_0x48bf('0x46')]=function(_0x3fcf14,_0x5ac602){var _0x2ec9ad={'raw':!![],'where':{'id':_0x3fcf14[_0x48bf('0x47')]['id']}},_0x1191b6={};_0x1191b6['model']=_[_0x48bf('0x48')](db['MailTransferReport'][_0x48bf('0x30')]);_0x1191b6[_0x48bf('0x34')]=_['keys'](_0x3fcf14[_0x48bf('0x34')]);_0x1191b6[_0x48bf('0x3d')]=_[_0x48bf('0x36')](_0x1191b6[_0x48bf('0x33')],_0x1191b6[_0x48bf('0x34')]);_0x2ec9ad[_0x48bf('0x35')]=_[_0x48bf('0x36')](_0x1191b6[_0x48bf('0x33')],qs[_0x48bf('0x37')](_0x3fcf14[_0x48bf('0x34')][_0x48bf('0x37')]));_0x2ec9ad['attributes']=_0x2ec9ad[_0x48bf('0x35')]['length']?_0x2ec9ad[_0x48bf('0x35')]:_0x1191b6[_0x48bf('0x33')];if(_0x3fcf14[_0x48bf('0x34')][_0x48bf('0x42')]){_0x2ec9ad[_0x48bf('0x43')]=[{'all':!![]}];}_0x2ec9ad=_[_0x48bf('0x3f')]({},_0x2ec9ad,_0x3fcf14[_0x48bf('0x41')]);return db[_0x48bf('0x2f')][_0x48bf('0x49')](_0x2ec9ad)[_0x48bf('0x26')](handleEntityNotFound(_0x5ac602,null))[_0x48bf('0x26')](respondWithResult(_0x5ac602,null))[_0x48bf('0x4a')](handleError(_0x5ac602,null));};exports[_0x48bf('0x4b')]=function(_0x2d49d9,_0x214b00){return db[_0x48bf('0x2f')]['create'](_0x2d49d9[_0x48bf('0x4c')],{})[_0x48bf('0x26')](respondWithResult(_0x214b00,0xc9))['catch'](handleError(_0x214b00,null));};exports[_0x48bf('0x24')]=function(_0x2a21e6,_0xddfdec){if(_0x2a21e6['body']['id']){delete _0x2a21e6[_0x48bf('0x4c')]['id'];}return db[_0x48bf('0x2f')][_0x48bf('0x49')]({'where':{'id':_0x2a21e6[_0x48bf('0x47')]['id']}})[_0x48bf('0x26')](handleEntityNotFound(_0xddfdec,null))[_0x48bf('0x26')](saveUpdates(_0x2a21e6[_0x48bf('0x4c')],null))['then'](respondWithResult(_0xddfdec,null))[_0x48bf('0x4a')](handleError(_0xddfdec,null));};exports[_0x48bf('0x25')]=function(_0x2cfa86,_0x1bcc52){return db[_0x48bf('0x2f')]['find']({'where':{'id':_0x2cfa86['params']['id']}})[_0x48bf('0x26')](handleEntityNotFound(_0x1bcc52,null))[_0x48bf('0x26')](removeEntity(_0x1bcc52,null))[_0x48bf('0x4a')](handleError(_0x1bcc52,null));};exports['describe']=function(_0x504441,_0x9990b9){return db[_0x48bf('0x2f')][_0x48bf('0x4d')]()[_0x48bf('0x26')](respondWithResult(_0x9990b9,null))[_0x48bf('0x4a')](handleError(_0x9990b9,null));};
\ No newline at end of file
+var _0x9ad2=['lodash','squel','jsforce','desk.js','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','limit','count','set','Content-Range','apply','reject','save','update','destroy','error','stack','name','send','index','map','MailTransferReport','rawAttributes','type','key','model','query','keys','filters','intersection','attributes','fields','length','nolimit','order','sort','pick','filter','where','merge','includeAll','findAll','rows','then','catch','include','options','find','body','params','describe','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','path','sox','ejs','fs-extra'];(function(_0x2cc7a8,_0xd13a33){var _0x131c53=function(_0x553320){while(--_0x553320){_0x2cc7a8['push'](_0x2cc7a8['shift']());}};_0x131c53(++_0xd13a33);}(_0x9ad2,0x1c4));var _0x29ad=function(_0x5af25d,_0x5f0091){_0x5af25d=_0x5af25d-0x0;var _0x430703=_0x9ad2[_0x5af25d];return _0x430703;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x29ad('0x0'));var zipdir=require(_0x29ad('0x1'));var jsonpatch=require(_0x29ad('0x2'));var rp=require(_0x29ad('0x3'));var moment=require(_0x29ad('0x4'));var BPromise=require(_0x29ad('0x5'));var Mustache=require('mustache');var util=require('util');var path=require(_0x29ad('0x6'));var sox=require(_0x29ad('0x7'));var csv=require('to-csv');var ejs=require(_0x29ad('0x8'));var fs=require('fs');var fs_extra=require(_0x29ad('0x9'));var _=require(_0x29ad('0xa'));var squel=require(_0x29ad('0xb'));var crypto=require('crypto');var jsforce=require(_0x29ad('0xc'));var deskjs=require(_0x29ad('0xd'));var toCsv=require(_0x29ad('0xe'));var querystring=require(_0x29ad('0xf'));var Papa=require(_0x29ad('0x10'));var Redis=require(_0x29ad('0x11'));var authService=require(_0x29ad('0x12'));var qs=require(_0x29ad('0x13'));var as=require(_0x29ad('0x14'));var hardwareService=require(_0x29ad('0x15'));var logger=require(_0x29ad('0x16'))(_0x29ad('0x17'));var utils=require(_0x29ad('0x18'));var config=require('../../config/environment');var licenseUtil=require(_0x29ad('0x19'));var db=require(_0x29ad('0x1a'))['db'];function respondWithStatusCode(_0x75b17b,_0x381767){_0x381767=_0x381767||0xcc;return function(_0x2582ea){if(_0x2582ea){return _0x75b17b[_0x29ad('0x1b')](_0x381767);}return _0x75b17b[_0x29ad('0x1c')](_0x381767)[_0x29ad('0x1d')]();};}function respondWithResult(_0x5b3b05,_0x46ccce){_0x46ccce=_0x46ccce||0xc8;return function(_0x43c577){if(_0x43c577){return _0x5b3b05['status'](_0x46ccce)[_0x29ad('0x1e')](_0x43c577);}};}function respondWithFilteredResult(_0x2cb7b1,_0x1a7cd2){return function(_0x5015b0){if(_0x5015b0){var _0x4a0af3=typeof _0x1a7cd2[_0x29ad('0x1f')]==='undefined'&&typeof _0x1a7cd2[_0x29ad('0x20')]==='undefined';var _0x500291=_0x5015b0[_0x29ad('0x21')];var _0x302b99=_0x4a0af3?0x0:_0x1a7cd2['offset'];var _0x3beb1e=_0x4a0af3?_0x5015b0[_0x29ad('0x21')]:_0x1a7cd2['offset']+_0x1a7cd2[_0x29ad('0x20')];var _0x1b1050;if(_0x3beb1e>=_0x500291){_0x3beb1e=_0x500291;_0x1b1050=0xc8;}else{_0x1b1050=0xce;}_0x2cb7b1[_0x29ad('0x1c')](_0x1b1050);return _0x2cb7b1[_0x29ad('0x22')](_0x29ad('0x23'),_0x302b99+'-'+_0x3beb1e+'/'+_0x500291)[_0x29ad('0x1e')](_0x5015b0);}return null;};}function patchUpdates(_0x17884d){return function(_0x421d1f){try{jsonpatch[_0x29ad('0x24')](_0x421d1f,_0x17884d,!![]);}catch(_0x426440){return BPromise[_0x29ad('0x25')](_0x426440);}return _0x421d1f[_0x29ad('0x26')]();};}function saveUpdates(_0x1c94a5,_0x4e83f9){return function(_0x20dc2f){if(_0x20dc2f){return _0x20dc2f[_0x29ad('0x27')](_0x1c94a5)['then'](function(_0x44a8e4){return _0x44a8e4;});}return null;};}function removeEntity(_0x32c8d2,_0x1ef34a){return function(_0x425b53){if(_0x425b53){return _0x425b53[_0x29ad('0x28')]()['then'](function(){_0x32c8d2['status'](0xcc)[_0x29ad('0x1d')]();});}};}function handleEntityNotFound(_0x1589d7,_0x34d73a){return function(_0x3e33db){if(!_0x3e33db){_0x1589d7[_0x29ad('0x1b')](0x194);}return _0x3e33db;};}function handleError(_0x380ebb,_0x44f8c9){_0x44f8c9=_0x44f8c9||0x1f4;return function(_0x434973){logger[_0x29ad('0x29')](_0x434973[_0x29ad('0x2a')]);if(_0x434973[_0x29ad('0x2b')]){delete _0x434973['name'];}_0x380ebb[_0x29ad('0x1c')](_0x44f8c9)[_0x29ad('0x2c')](_0x434973);};}exports[_0x29ad('0x2d')]=function(_0x2b78da,_0x1f2d48){var _0x5841e6={},_0xd65dc9={},_0x35520f={'count':0x0,'rows':[]};var _0x51d801=_[_0x29ad('0x2e')](db[_0x29ad('0x2f')][_0x29ad('0x30')],function(_0x56206d){return{'name':_0x56206d['fieldName'],'type':_0x56206d[_0x29ad('0x31')][_0x29ad('0x32')]};});_0xd65dc9[_0x29ad('0x33')]=_[_0x29ad('0x2e')](_0x51d801,_0x29ad('0x2b'));_0xd65dc9[_0x29ad('0x34')]=_[_0x29ad('0x35')](_0x2b78da[_0x29ad('0x34')]);_0xd65dc9[_0x29ad('0x36')]=_[_0x29ad('0x37')](_0xd65dc9[_0x29ad('0x33')],_0xd65dc9['query']);_0x5841e6[_0x29ad('0x38')]=_['intersection'](_0xd65dc9['model'],qs[_0x29ad('0x39')](_0x2b78da['query']['fields']));_0x5841e6[_0x29ad('0x38')]=_0x5841e6[_0x29ad('0x38')][_0x29ad('0x3a')]?_0x5841e6[_0x29ad('0x38')]:_0xd65dc9[_0x29ad('0x33')];if(!_0x2b78da[_0x29ad('0x34')]['hasOwnProperty'](_0x29ad('0x3b'))){_0x5841e6['limit']=qs[_0x29ad('0x20')](_0x2b78da[_0x29ad('0x34')]['limit']);_0x5841e6[_0x29ad('0x1f')]=qs[_0x29ad('0x1f')](_0x2b78da[_0x29ad('0x34')][_0x29ad('0x1f')]);}_0x5841e6[_0x29ad('0x3c')]=qs[_0x29ad('0x3d')](_0x2b78da[_0x29ad('0x34')][_0x29ad('0x3d')]);_0x5841e6['where']=qs[_0x29ad('0x36')](_[_0x29ad('0x3e')](_0x2b78da['query'],_0xd65dc9[_0x29ad('0x36')]),_0x51d801);if(_0x2b78da[_0x29ad('0x34')][_0x29ad('0x3f')]){_0x5841e6[_0x29ad('0x40')]=_[_0x29ad('0x41')](_0x5841e6[_0x29ad('0x40')],{'$or':_[_0x29ad('0x2e')](_0x51d801,function(_0x1e2a4c){if(_0x1e2a4c[_0x29ad('0x31')]!=='VIRTUAL'){var _0x34d88b={};_0x34d88b[_0x1e2a4c[_0x29ad('0x2b')]]={'$like':'%'+_0x2b78da['query'][_0x29ad('0x3f')]+'%'};return _0x34d88b;}})});}_0x5841e6=_['merge']({},_0x5841e6,_0x2b78da['options']);var _0x1dcd50={'where':_0x5841e6[_0x29ad('0x40')]};return db[_0x29ad('0x2f')][_0x29ad('0x21')](_0x1dcd50)['then'](function(_0x20212a){_0x35520f['count']=_0x20212a;if(_0x2b78da[_0x29ad('0x34')][_0x29ad('0x42')]){_0x5841e6['include']=[{'all':!![]}];}return db['MailTransferReport'][_0x29ad('0x43')](_0x5841e6);})['then'](function(_0x4e7085){_0x35520f[_0x29ad('0x44')]=_0x4e7085;return _0x35520f;})[_0x29ad('0x45')](respondWithFilteredResult(_0x1f2d48,_0x5841e6))[_0x29ad('0x46')](handleError(_0x1f2d48,null));};exports['show']=function(_0x1525ec,_0x5a890b){var _0x2addf1={'raw':!![],'where':{'id':_0x1525ec['params']['id']}},_0x1009ad={};_0x1009ad[_0x29ad('0x33')]=_[_0x29ad('0x35')](db[_0x29ad('0x2f')][_0x29ad('0x30')]);_0x1009ad[_0x29ad('0x34')]=_[_0x29ad('0x35')](_0x1525ec[_0x29ad('0x34')]);_0x1009ad[_0x29ad('0x36')]=_[_0x29ad('0x37')](_0x1009ad[_0x29ad('0x33')],_0x1009ad[_0x29ad('0x34')]);_0x2addf1[_0x29ad('0x38')]=_[_0x29ad('0x37')](_0x1009ad[_0x29ad('0x33')],qs['fields'](_0x1525ec[_0x29ad('0x34')]['fields']));_0x2addf1[_0x29ad('0x38')]=_0x2addf1['attributes'][_0x29ad('0x3a')]?_0x2addf1[_0x29ad('0x38')]:_0x1009ad[_0x29ad('0x33')];if(_0x1525ec['query'][_0x29ad('0x42')]){_0x2addf1[_0x29ad('0x47')]=[{'all':!![]}];}_0x2addf1=_[_0x29ad('0x41')]({},_0x2addf1,_0x1525ec[_0x29ad('0x48')]);return db[_0x29ad('0x2f')][_0x29ad('0x49')](_0x2addf1)[_0x29ad('0x45')](handleEntityNotFound(_0x5a890b,null))['then'](respondWithResult(_0x5a890b,null))[_0x29ad('0x46')](handleError(_0x5a890b,null));};exports['create']=function(_0x5414c6,_0x22575a){return db[_0x29ad('0x2f')]['create'](_0x5414c6[_0x29ad('0x4a')],{})[_0x29ad('0x45')](respondWithResult(_0x22575a,0xc9))[_0x29ad('0x46')](handleError(_0x22575a,null));};exports[_0x29ad('0x27')]=function(_0x325ef0,_0x1267e3){if(_0x325ef0[_0x29ad('0x4a')]['id']){delete _0x325ef0[_0x29ad('0x4a')]['id'];}return db[_0x29ad('0x2f')][_0x29ad('0x49')]({'where':{'id':_0x325ef0['params']['id']}})[_0x29ad('0x45')](handleEntityNotFound(_0x1267e3,null))[_0x29ad('0x45')](saveUpdates(_0x325ef0[_0x29ad('0x4a')],null))[_0x29ad('0x45')](respondWithResult(_0x1267e3,null))['catch'](handleError(_0x1267e3,null));};exports[_0x29ad('0x28')]=function(_0x23e2c6,_0x28bb21){return db[_0x29ad('0x2f')][_0x29ad('0x49')]({'where':{'id':_0x23e2c6[_0x29ad('0x4b')]['id']}})[_0x29ad('0x45')](handleEntityNotFound(_0x28bb21,null))[_0x29ad('0x45')](removeEntity(_0x28bb21,null))['catch'](handleError(_0x28bb21,null));};exports[_0x29ad('0x4c')]=function(_0xcc5aab,_0x19cc58){return db[_0x29ad('0x2f')]['describe']()[_0x29ad('0x45')](respondWithResult(_0x19cc58,null))[_0x29ad('0x46')](handleError(_0x19cc58,null));};
\ No newline at end of file