Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / mailTransferReport / mailTransferReport.controller.js
index 752a719..28c9677 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbc9a=['offset','undefined','limit','count','Content-Range','reject','update','then','error','stack','name','send','map','MailTransferReport','rawAttributes','type','query','keys','filters','intersection','model','attributes','fields','length','nolimit','sort','where','pick','VIRTUAL','filter','merge','options','includeAll','include','findAll','rows','find','catch','create','body','params','describe','request-promise','moment','mustache','util','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','querystring','../../components/parsers/qs','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json'];(function(_0x4ea413,_0x51ff3a){var _0x51cf25=function(_0x3c6456){while(--_0x3c6456){_0x4ea413['push'](_0x4ea413['shift']());}};_0x51cf25(++_0x51ff3a);}(_0xbc9a,0xf3));var _0xabc9=function(_0x322522,_0x4db288){_0x322522=_0x322522-0x0;var _0x293bcf=_0xbc9a[_0x322522];return _0x293bcf;};'use strict';var emlformat=require('eml-format');var rimraf=require('rimraf');var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require(_0xabc9('0x0'));var moment=require(_0xabc9('0x1'));var BPromise=require('bluebird');var Mustache=require(_0xabc9('0x2'));var util=require(_0xabc9('0x3'));var path=require('path');var sox=require(_0xabc9('0x4'));var csv=require(_0xabc9('0x5'));var ejs=require(_0xabc9('0x6'));var fs=require('fs');var fs_extra=require(_0xabc9('0x7'));var _=require(_0xabc9('0x8'));var squel=require(_0xabc9('0x9'));var crypto=require(_0xabc9('0xa'));var jsforce=require(_0xabc9('0xb'));var deskjs=require(_0xabc9('0xc'));var toCsv=require(_0xabc9('0x5'));var querystring=require(_0xabc9('0xd'));var Papa=require('papaparse');var Redis=require('ioredis');var authService=require('../../components/auth/service');var qs=require(_0xabc9('0xe'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require(_0xabc9('0xf'))(_0xabc9('0x10'));var utils=require(_0xabc9('0x11'));var config=require(_0xabc9('0x12'));var licenseUtil=require(_0xabc9('0x13'));var db=require(_0xabc9('0x14'))['db'];function respondWithStatusCode(_0x3653f9,_0x29b0eb){_0x29b0eb=_0x29b0eb||0xcc;return function(_0x5bca86){if(_0x5bca86){return _0x3653f9[_0xabc9('0x15')](_0x29b0eb);}return _0x3653f9[_0xabc9('0x16')](_0x29b0eb)[_0xabc9('0x17')]();};}function respondWithResult(_0x423993,_0x1dae02){_0x1dae02=_0x1dae02||0xc8;return function(_0x5bdff8){if(_0x5bdff8){return _0x423993['status'](_0x1dae02)[_0xabc9('0x18')](_0x5bdff8);}};}function respondWithFilteredResult(_0x5d40a5,_0x4b8004){return function(_0x5dc1c2){if(_0x5dc1c2){var _0x450118=typeof _0x4b8004[_0xabc9('0x19')]===_0xabc9('0x1a')&&typeof _0x4b8004[_0xabc9('0x1b')]===_0xabc9('0x1a');var _0x52e25c=_0x5dc1c2[_0xabc9('0x1c')];var _0x2a2707=_0x450118?0x0:_0x4b8004[_0xabc9('0x19')];var _0xaac8f0=_0x450118?_0x5dc1c2[_0xabc9('0x1c')]:_0x4b8004[_0xabc9('0x19')]+_0x4b8004['limit'];var _0x1aa44a;if(_0xaac8f0>=_0x52e25c){_0xaac8f0=_0x52e25c;_0x1aa44a=0xc8;}else{_0x1aa44a=0xce;}_0x5d40a5['status'](_0x1aa44a);return _0x5d40a5['set'](_0xabc9('0x1d'),_0x2a2707+'-'+_0xaac8f0+'/'+_0x52e25c)['json'](_0x5dc1c2);}return null;};}function patchUpdates(_0x3b22ea){return function(_0x4c4d2c){try{jsonpatch['apply'](_0x4c4d2c,_0x3b22ea,!![]);}catch(_0x583ece){return BPromise[_0xabc9('0x1e')](_0x583ece);}return _0x4c4d2c['save']();};}function saveUpdates(_0x2d9cf7,_0x299589){return function(_0x51e78a){if(_0x51e78a){return _0x51e78a[_0xabc9('0x1f')](_0x2d9cf7)[_0xabc9('0x20')](function(_0x179c75){return _0x179c75;});}return null;};}function removeEntity(_0x28a9a9,_0x11992f){return function(_0x42febe){if(_0x42febe){return _0x42febe['destroy']()[_0xabc9('0x20')](function(){_0x28a9a9[_0xabc9('0x16')](0xcc)[_0xabc9('0x17')]();});}};}function handleEntityNotFound(_0x447f8a,_0x492d17){return function(_0x58ee25){if(!_0x58ee25){_0x447f8a['sendStatus'](0x194);}return _0x58ee25;};}function handleError(_0x4784ef,_0x109df9){_0x109df9=_0x109df9||0x1f4;return function(_0x3109fc){logger[_0xabc9('0x21')](_0x3109fc[_0xabc9('0x22')]);if(_0x3109fc[_0xabc9('0x23')]){delete _0x3109fc[_0xabc9('0x23')];}_0x4784ef[_0xabc9('0x16')](_0x109df9)[_0xabc9('0x24')](_0x3109fc);};}exports['index']=function(_0x5851f0,_0x142288){var _0x539471={},_0x10dde2={},_0x57de05={'count':0x0,'rows':[]};var _0x46bb4e=_[_0xabc9('0x25')](db[_0xabc9('0x26')][_0xabc9('0x27')],function(_0x4bcc66){return{'name':_0x4bcc66['fieldName'],'type':_0x4bcc66[_0xabc9('0x28')]['key']};});_0x10dde2['model']=_[_0xabc9('0x25')](_0x46bb4e,_0xabc9('0x23'));_0x10dde2[_0xabc9('0x29')]=_[_0xabc9('0x2a')](_0x5851f0['query']);_0x10dde2[_0xabc9('0x2b')]=_[_0xabc9('0x2c')](_0x10dde2[_0xabc9('0x2d')],_0x10dde2[_0xabc9('0x29')]);_0x539471[_0xabc9('0x2e')]=_[_0xabc9('0x2c')](_0x10dde2[_0xabc9('0x2d')],qs[_0xabc9('0x2f')](_0x5851f0[_0xabc9('0x29')]['fields']));_0x539471[_0xabc9('0x2e')]=_0x539471[_0xabc9('0x2e')][_0xabc9('0x30')]?_0x539471[_0xabc9('0x2e')]:_0x10dde2[_0xabc9('0x2d')];if(!_0x5851f0[_0xabc9('0x29')]['hasOwnProperty'](_0xabc9('0x31'))){_0x539471[_0xabc9('0x1b')]=qs[_0xabc9('0x1b')](_0x5851f0[_0xabc9('0x29')][_0xabc9('0x1b')]);_0x539471[_0xabc9('0x19')]=qs[_0xabc9('0x19')](_0x5851f0[_0xabc9('0x29')][_0xabc9('0x19')]);}_0x539471['order']=qs[_0xabc9('0x32')](_0x5851f0[_0xabc9('0x29')][_0xabc9('0x32')]);_0x539471[_0xabc9('0x33')]=qs[_0xabc9('0x2b')](_[_0xabc9('0x34')](_0x5851f0['query'],_0x10dde2[_0xabc9('0x2b')]),_0x46bb4e);if(_0x5851f0['query']['filter']){_0x539471[_0xabc9('0x33')]=_['merge'](_0x539471[_0xabc9('0x33')],{'$or':_[_0xabc9('0x25')](_0x46bb4e,function(_0x4407fe){if(_0x4407fe[_0xabc9('0x28')]!==_0xabc9('0x35')){var _0x3fdd57={};_0x3fdd57[_0x4407fe[_0xabc9('0x23')]]={'$like':'%'+_0x5851f0[_0xabc9('0x29')][_0xabc9('0x36')]+'%'};return _0x3fdd57;}})});}_0x539471=_[_0xabc9('0x37')]({},_0x539471,_0x5851f0[_0xabc9('0x38')]);var _0x4932b4={'where':_0x539471[_0xabc9('0x33')]};return db['MailTransferReport'][_0xabc9('0x1c')](_0x4932b4)['then'](function(_0x19444a){_0x57de05[_0xabc9('0x1c')]=_0x19444a;if(_0x5851f0[_0xabc9('0x29')][_0xabc9('0x39')]){_0x539471[_0xabc9('0x3a')]=[{'all':!![]}];}return db['MailTransferReport'][_0xabc9('0x3b')](_0x539471);})[_0xabc9('0x20')](function(_0x1d5402){_0x57de05[_0xabc9('0x3c')]=_0x1d5402;return _0x57de05;})[_0xabc9('0x20')](respondWithFilteredResult(_0x142288,_0x539471))['catch'](handleError(_0x142288,null));};exports['show']=function(_0x2a079a,_0x108324){var _0x48c154={'raw':!![],'where':{'id':_0x2a079a['params']['id']}},_0x1ed873={};_0x1ed873[_0xabc9('0x2d')]=_[_0xabc9('0x2a')](db[_0xabc9('0x26')]['rawAttributes']);_0x1ed873[_0xabc9('0x29')]=_['keys'](_0x2a079a['query']);_0x1ed873[_0xabc9('0x2b')]=_[_0xabc9('0x2c')](_0x1ed873[_0xabc9('0x2d')],_0x1ed873[_0xabc9('0x29')]);_0x48c154[_0xabc9('0x2e')]=_[_0xabc9('0x2c')](_0x1ed873[_0xabc9('0x2d')],qs[_0xabc9('0x2f')](_0x2a079a[_0xabc9('0x29')][_0xabc9('0x2f')]));_0x48c154['attributes']=_0x48c154[_0xabc9('0x2e')][_0xabc9('0x30')]?_0x48c154['attributes']:_0x1ed873[_0xabc9('0x2d')];if(_0x2a079a[_0xabc9('0x29')]['includeAll']){_0x48c154[_0xabc9('0x3a')]=[{'all':!![]}];}_0x48c154=_[_0xabc9('0x37')]({},_0x48c154,_0x2a079a[_0xabc9('0x38')]);return db['MailTransferReport'][_0xabc9('0x3d')](_0x48c154)['then'](handleEntityNotFound(_0x108324,null))[_0xabc9('0x20')](respondWithResult(_0x108324,null))[_0xabc9('0x3e')](handleError(_0x108324,null));};exports[_0xabc9('0x3f')]=function(_0x4f8c6f,_0x5e143b){return db[_0xabc9('0x26')][_0xabc9('0x3f')](_0x4f8c6f[_0xabc9('0x40')],{})[_0xabc9('0x20')](respondWithResult(_0x5e143b,0xc9))['catch'](handleError(_0x5e143b,null));};exports[_0xabc9('0x1f')]=function(_0x3f389d,_0x4f3fe6){if(_0x3f389d[_0xabc9('0x40')]['id']){delete _0x3f389d['body']['id'];}return db[_0xabc9('0x26')][_0xabc9('0x3d')]({'where':{'id':_0x3f389d['params']['id']}})['then'](handleEntityNotFound(_0x4f3fe6,null))[_0xabc9('0x20')](saveUpdates(_0x3f389d['body'],null))[_0xabc9('0x20')](respondWithResult(_0x4f3fe6,null))[_0xabc9('0x3e')](handleError(_0x4f3fe6,null));};exports['destroy']=function(_0x4aea5b,_0x13602d){return db[_0xabc9('0x26')]['find']({'where':{'id':_0x4aea5b[_0xabc9('0x41')]['id']}})['then'](handleEntityNotFound(_0x13602d,null))[_0xabc9('0x20')](removeEntity(_0x13602d,null))[_0xabc9('0x3e')](handleError(_0x13602d,null));};exports['describe']=function(_0x1b2c12,_0xa4bcb5){return db[_0xabc9('0x26')][_0xabc9('0x42')]()['then'](respondWithResult(_0xa4bcb5,null))[_0xabc9('0x3e')](handleError(_0xa4bcb5,null));};
\ No newline at end of file
+var _0xf423=['util','path','sox','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/license/util','status','end','offset','undefined','limit','count','set','reject','save','update','destroy','then','sendStatus','stack','name','send','index','map','rawAttributes','fieldName','type','key','keys','query','filters','model','attributes','intersection','fields','length','hasOwnProperty','order','sort','where','pick','filter','merge','options','includeAll','findAll','rows','catch','show','params','MailTransferReport','include','create','body','find','describe','eml-format','rimraf','zip-dir','request-promise','bluebird','mustache'];(function(_0x34f701,_0x37e407){var _0x3e2429=function(_0x20c0c3){while(--_0x20c0c3){_0x34f701['push'](_0x34f701['shift']());}};_0x3e2429(++_0x37e407);}(_0xf423,0xde));var _0x3f42=function(_0x3ca52c,_0x8420f){_0x3ca52c=_0x3ca52c-0x0;var _0x2fb640=_0xf423[_0x3ca52c];return _0x2fb640;};'use strict';var emlformat=require(_0x3f42('0x0'));var rimraf=require(_0x3f42('0x1'));var zipdir=require(_0x3f42('0x2'));var jsonpatch=require('fast-json-patch');var rp=require(_0x3f42('0x3'));var moment=require('moment');var BPromise=require(_0x3f42('0x4'));var Mustache=require(_0x3f42('0x5'));var util=require(_0x3f42('0x6'));var path=require(_0x3f42('0x7'));var sox=require(_0x3f42('0x8'));var csv=require('to-csv');var ejs=require(_0x3f42('0x9'));var fs=require('fs');var fs_extra=require(_0x3f42('0xa'));var _=require(_0x3f42('0xb'));var squel=require(_0x3f42('0xc'));var crypto=require(_0x3f42('0xd'));var jsforce=require(_0x3f42('0xe'));var deskjs=require(_0x3f42('0xf'));var toCsv=require(_0x3f42('0x10'));var querystring=require(_0x3f42('0x11'));var Papa=require(_0x3f42('0x12'));var Redis=require(_0x3f42('0x13'));var authService=require(_0x3f42('0x14'));var qs=require(_0x3f42('0x15'));var as=require(_0x3f42('0x16'));var hardwareService=require(_0x3f42('0x17'));var logger=require(_0x3f42('0x18'))('api');var utils=require('../../config/utils');var config=require('../../config/environment');var licenseUtil=require(_0x3f42('0x19'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x3cecf2,_0x12a1df){_0x12a1df=_0x12a1df||0xcc;return function(_0x2b1bf2){if(_0x2b1bf2){return _0x3cecf2['sendStatus'](_0x12a1df);}return _0x3cecf2[_0x3f42('0x1a')](_0x12a1df)[_0x3f42('0x1b')]();};}function respondWithResult(_0x551f88,_0x54851a){_0x54851a=_0x54851a||0xc8;return function(_0x244c5f){if(_0x244c5f){return _0x551f88[_0x3f42('0x1a')](_0x54851a)['json'](_0x244c5f);}};}function respondWithFilteredResult(_0x4f6866,_0x2aed23){return function(_0xdcb9c1){if(_0xdcb9c1){var _0x2a4360=typeof _0x2aed23[_0x3f42('0x1c')]===_0x3f42('0x1d')&&typeof _0x2aed23[_0x3f42('0x1e')]==='undefined';var _0xbc1d84=_0xdcb9c1['count'];var _0x564140=_0x2a4360?0x0:_0x2aed23[_0x3f42('0x1c')];var _0x16ef8b=_0x2a4360?_0xdcb9c1[_0x3f42('0x1f')]:_0x2aed23[_0x3f42('0x1c')]+_0x2aed23['limit'];var _0x248f5a;if(_0x16ef8b>=_0xbc1d84){_0x16ef8b=_0xbc1d84;_0x248f5a=0xc8;}else{_0x248f5a=0xce;}_0x4f6866[_0x3f42('0x1a')](_0x248f5a);return _0x4f6866[_0x3f42('0x20')]('Content-Range',_0x564140+'-'+_0x16ef8b+'/'+_0xbc1d84)['json'](_0xdcb9c1);}return null;};}function patchUpdates(_0x28fd1c){return function(_0x2ae210){try{jsonpatch['apply'](_0x2ae210,_0x28fd1c,!![]);}catch(_0x5a98c2){return BPromise[_0x3f42('0x21')](_0x5a98c2);}return _0x2ae210[_0x3f42('0x22')]();};}function saveUpdates(_0x2d360c,_0x5e7b4e){return function(_0x245f10){if(_0x245f10){return _0x245f10[_0x3f42('0x23')](_0x2d360c)['then'](function(_0x283359){return _0x283359;});}return null;};}function removeEntity(_0x3d318c,_0x55faf5){return function(_0x59ffad){if(_0x59ffad){return _0x59ffad[_0x3f42('0x24')]()[_0x3f42('0x25')](function(){_0x3d318c[_0x3f42('0x1a')](0xcc)[_0x3f42('0x1b')]();});}};}function handleEntityNotFound(_0x3b36b8,_0x334d35){return function(_0x43d6dc){if(!_0x43d6dc){_0x3b36b8[_0x3f42('0x26')](0x194);}return _0x43d6dc;};}function handleError(_0x624baf,_0x26dafd){_0x26dafd=_0x26dafd||0x1f4;return function(_0x2258bc){logger['error'](_0x2258bc[_0x3f42('0x27')]);if(_0x2258bc[_0x3f42('0x28')]){delete _0x2258bc[_0x3f42('0x28')];}_0x624baf[_0x3f42('0x1a')](_0x26dafd)[_0x3f42('0x29')](_0x2258bc);};}exports[_0x3f42('0x2a')]=function(_0x3cf9f6,_0x3c68eb){var _0xe0e433={},_0x20e039={},_0x4a0514={'count':0x0,'rows':[]};var _0x34482a=_[_0x3f42('0x2b')](db['MailTransferReport'][_0x3f42('0x2c')],function(_0x202f82){return{'name':_0x202f82[_0x3f42('0x2d')],'type':_0x202f82[_0x3f42('0x2e')][_0x3f42('0x2f')]};});_0x20e039['model']=_[_0x3f42('0x2b')](_0x34482a,_0x3f42('0x28'));_0x20e039['query']=_[_0x3f42('0x30')](_0x3cf9f6[_0x3f42('0x31')]);_0x20e039[_0x3f42('0x32')]=_['intersection'](_0x20e039[_0x3f42('0x33')],_0x20e039[_0x3f42('0x31')]);_0xe0e433[_0x3f42('0x34')]=_[_0x3f42('0x35')](_0x20e039[_0x3f42('0x33')],qs[_0x3f42('0x36')](_0x3cf9f6[_0x3f42('0x31')][_0x3f42('0x36')]));_0xe0e433[_0x3f42('0x34')]=_0xe0e433['attributes'][_0x3f42('0x37')]?_0xe0e433['attributes']:_0x20e039[_0x3f42('0x33')];if(!_0x3cf9f6['query'][_0x3f42('0x38')]('nolimit')){_0xe0e433[_0x3f42('0x1e')]=qs[_0x3f42('0x1e')](_0x3cf9f6[_0x3f42('0x31')][_0x3f42('0x1e')]);_0xe0e433[_0x3f42('0x1c')]=qs[_0x3f42('0x1c')](_0x3cf9f6[_0x3f42('0x31')]['offset']);}_0xe0e433[_0x3f42('0x39')]=qs[_0x3f42('0x3a')](_0x3cf9f6[_0x3f42('0x31')][_0x3f42('0x3a')]);_0xe0e433[_0x3f42('0x3b')]=qs[_0x3f42('0x32')](_[_0x3f42('0x3c')](_0x3cf9f6[_0x3f42('0x31')],_0x20e039[_0x3f42('0x32')]),_0x34482a);if(_0x3cf9f6['query'][_0x3f42('0x3d')]){_0xe0e433[_0x3f42('0x3b')]=_[_0x3f42('0x3e')](_0xe0e433[_0x3f42('0x3b')],{'$or':_[_0x3f42('0x2b')](_0x34482a,function(_0x5c8156){if(_0x5c8156[_0x3f42('0x2e')]!=='VIRTUAL'){var _0x332c71={};_0x332c71[_0x5c8156[_0x3f42('0x28')]]={'$like':'%'+_0x3cf9f6[_0x3f42('0x31')][_0x3f42('0x3d')]+'%'};return _0x332c71;}})});}_0xe0e433=_[_0x3f42('0x3e')]({},_0xe0e433,_0x3cf9f6[_0x3f42('0x3f')]);var _0x1bac20={'where':_0xe0e433[_0x3f42('0x3b')]};return db['MailTransferReport'][_0x3f42('0x1f')](_0x1bac20)[_0x3f42('0x25')](function(_0x5a5f76){_0x4a0514['count']=_0x5a5f76;if(_0x3cf9f6[_0x3f42('0x31')][_0x3f42('0x40')]){_0xe0e433['include']=[{'all':!![]}];}return db['MailTransferReport'][_0x3f42('0x41')](_0xe0e433);})[_0x3f42('0x25')](function(_0xe5f9c4){_0x4a0514[_0x3f42('0x42')]=_0xe5f9c4;return _0x4a0514;})[_0x3f42('0x25')](respondWithFilteredResult(_0x3c68eb,_0xe0e433))[_0x3f42('0x43')](handleError(_0x3c68eb,null));};exports[_0x3f42('0x44')]=function(_0x8bea70,_0x3a6b21){var _0x10cfc8={'raw':!![],'where':{'id':_0x8bea70[_0x3f42('0x45')]['id']}},_0x4ac1d5={};_0x4ac1d5[_0x3f42('0x33')]=_['keys'](db[_0x3f42('0x46')][_0x3f42('0x2c')]);_0x4ac1d5[_0x3f42('0x31')]=_[_0x3f42('0x30')](_0x8bea70['query']);_0x4ac1d5['filters']=_[_0x3f42('0x35')](_0x4ac1d5[_0x3f42('0x33')],_0x4ac1d5[_0x3f42('0x31')]);_0x10cfc8[_0x3f42('0x34')]=_['intersection'](_0x4ac1d5[_0x3f42('0x33')],qs[_0x3f42('0x36')](_0x8bea70[_0x3f42('0x31')][_0x3f42('0x36')]));_0x10cfc8[_0x3f42('0x34')]=_0x10cfc8[_0x3f42('0x34')][_0x3f42('0x37')]?_0x10cfc8[_0x3f42('0x34')]:_0x4ac1d5[_0x3f42('0x33')];if(_0x8bea70[_0x3f42('0x31')]['includeAll']){_0x10cfc8[_0x3f42('0x47')]=[{'all':!![]}];}_0x10cfc8=_[_0x3f42('0x3e')]({},_0x10cfc8,_0x8bea70[_0x3f42('0x3f')]);return db[_0x3f42('0x46')]['find'](_0x10cfc8)[_0x3f42('0x25')](handleEntityNotFound(_0x3a6b21,null))[_0x3f42('0x25')](respondWithResult(_0x3a6b21,null))[_0x3f42('0x43')](handleError(_0x3a6b21,null));};exports['create']=function(_0x1b583b,_0x16bc6c){return db['MailTransferReport'][_0x3f42('0x48')](_0x1b583b[_0x3f42('0x49')],{})[_0x3f42('0x25')](respondWithResult(_0x16bc6c,0xc9))[_0x3f42('0x43')](handleError(_0x16bc6c,null));};exports['update']=function(_0x234be1,_0xf48dc7){if(_0x234be1[_0x3f42('0x49')]['id']){delete _0x234be1['body']['id'];}return db[_0x3f42('0x46')]['find']({'where':{'id':_0x234be1[_0x3f42('0x45')]['id']}})[_0x3f42('0x25')](handleEntityNotFound(_0xf48dc7,null))['then'](saveUpdates(_0x234be1[_0x3f42('0x49')],null))[_0x3f42('0x25')](respondWithResult(_0xf48dc7,null))['catch'](handleError(_0xf48dc7,null));};exports[_0x3f42('0x24')]=function(_0x58440b,_0x459fd4){return db[_0x3f42('0x46')][_0x3f42('0x4a')]({'where':{'id':_0x58440b[_0x3f42('0x45')]['id']}})['then'](handleEntityNotFound(_0x459fd4,null))[_0x3f42('0x25')](removeEntity(_0x459fd4,null))['catch'](handleError(_0x459fd4,null));};exports['describe']=function(_0x1bc6f0,_0x3f1245){return db[_0x3f42('0x46')][_0x3f42('0x4b')]()[_0x3f42('0x25')](respondWithResult(_0x3f1245,null))[_0x3f42('0x43')](handleError(_0x3f1245,null));};
\ No newline at end of file