Built motion from commit 19a84241.|2.5.34
[motion2.git] / server / api / mailTransferReport / mailTransferReport.controller.js
index d10e8b2..4124f47 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa470=['count','Content-Range','json','apply','reject','save','update','then','destroy','end','sendStatus','error','stack','name','send','index','map','fieldName','key','model','query','keys','filters','intersection','fields','attributes','length','hasOwnProperty','nolimit','order','pick','filter','where','merge','type','VIRTUAL','options','includeAll','include','MailTransferReport','findAll','rows','catch','params','rawAttributes','find','create','body','describe','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','ejs','fs-extra','lodash','squel','jsforce','desk.js','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','status','offset','undefined','limit'];(function(_0x2839c0,_0x2946e8){var _0x22e216=function(_0x26ffca){while(--_0x26ffca){_0x2839c0['push'](_0x2839c0['shift']());}};_0x22e216(++_0x2946e8);}(_0xa470,0x11e));var _0x0a47=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xa470[_0x20a584];return _0x4b41a8;};'use strict';var emlformat=require('eml-format');var rimraf=require('rimraf');var zipdir=require(_0x0a47('0x0'));var jsonpatch=require(_0x0a47('0x1'));var rp=require(_0x0a47('0x2'));var moment=require(_0x0a47('0x3'));var BPromise=require(_0x0a47('0x4'));var Mustache=require(_0x0a47('0x5'));var util=require(_0x0a47('0x6'));var path=require(_0x0a47('0x7'));var sox=require('sox');var csv=require('to-csv');var ejs=require(_0x0a47('0x8'));var fs=require('fs');var fs_extra=require(_0x0a47('0x9'));var _=require(_0x0a47('0xa'));var squel=require(_0x0a47('0xb'));var crypto=require('crypto');var jsforce=require(_0x0a47('0xc'));var deskjs=require(_0x0a47('0xd'));var toCsv=require('to-csv');var querystring=require(_0x0a47('0xe'));var Papa=require(_0x0a47('0xf'));var Redis=require('ioredis');var authService=require(_0x0a47('0x10'));var qs=require(_0x0a47('0x11'));var as=require(_0x0a47('0x12'));var hardwareService=require(_0x0a47('0x13'));var logger=require(_0x0a47('0x14'))(_0x0a47('0x15'));var utils=require(_0x0a47('0x16'));var config=require(_0x0a47('0x17'));var licenseUtil=require(_0x0a47('0x18'));var db=require(_0x0a47('0x19'))['db'];function respondWithStatusCode(_0x313c17,_0x2b9756){_0x2b9756=_0x2b9756||0xcc;return function(_0x4b3cbe){if(_0x4b3cbe){return _0x313c17['sendStatus'](_0x2b9756);}return _0x313c17[_0x0a47('0x1a')](_0x2b9756)['end']();};}function respondWithResult(_0x44a99b,_0x1a77c0){_0x1a77c0=_0x1a77c0||0xc8;return function(_0x7869ba){if(_0x7869ba){return _0x44a99b[_0x0a47('0x1a')](_0x1a77c0)['json'](_0x7869ba);}};}function respondWithFilteredResult(_0x22ac37,_0x547be8){return function(_0x3e9a5c){if(_0x3e9a5c){var _0x1ee5d5=typeof _0x547be8[_0x0a47('0x1b')]===_0x0a47('0x1c')&&typeof _0x547be8[_0x0a47('0x1d')]===_0x0a47('0x1c');var _0x5e020e=_0x3e9a5c[_0x0a47('0x1e')];var _0x144297=_0x1ee5d5?0x0:_0x547be8[_0x0a47('0x1b')];var _0x1292b5=_0x1ee5d5?_0x3e9a5c[_0x0a47('0x1e')]:_0x547be8[_0x0a47('0x1b')]+_0x547be8[_0x0a47('0x1d')];var _0x57c42e;if(_0x1292b5>=_0x5e020e){_0x1292b5=_0x5e020e;_0x57c42e=0xc8;}else{_0x57c42e=0xce;}_0x22ac37['status'](_0x57c42e);return _0x22ac37['set'](_0x0a47('0x1f'),_0x144297+'-'+_0x1292b5+'/'+_0x5e020e)[_0x0a47('0x20')](_0x3e9a5c);}return null;};}function patchUpdates(_0x3e42ed){return function(_0x5f0ac2){try{jsonpatch[_0x0a47('0x21')](_0x5f0ac2,_0x3e42ed,!![]);}catch(_0x39e315){return BPromise[_0x0a47('0x22')](_0x39e315);}return _0x5f0ac2[_0x0a47('0x23')]();};}function saveUpdates(_0x461a96,_0x4e8d9c){return function(_0x268b9e){if(_0x268b9e){return _0x268b9e[_0x0a47('0x24')](_0x461a96)[_0x0a47('0x25')](function(_0x3e40dd){return _0x3e40dd;});}return null;};}function removeEntity(_0x590560,_0x20623a){return function(_0x1a42da){if(_0x1a42da){return _0x1a42da[_0x0a47('0x26')]()[_0x0a47('0x25')](function(){_0x590560[_0x0a47('0x1a')](0xcc)[_0x0a47('0x27')]();});}};}function handleEntityNotFound(_0x56f224,_0x219cba){return function(_0x6e9eb){if(!_0x6e9eb){_0x56f224[_0x0a47('0x28')](0x194);}return _0x6e9eb;};}function handleError(_0xf0fe87,_0x2c50b0){_0x2c50b0=_0x2c50b0||0x1f4;return function(_0x69d43e){logger[_0x0a47('0x29')](_0x69d43e[_0x0a47('0x2a')]);if(_0x69d43e[_0x0a47('0x2b')]){delete _0x69d43e[_0x0a47('0x2b')];}_0xf0fe87['status'](_0x2c50b0)[_0x0a47('0x2c')](_0x69d43e);};}exports[_0x0a47('0x2d')]=function(_0x2a18bd,_0x41c188){var _0x5e7c37={},_0x44899f={},_0x12c86a={'count':0x0,'rows':[]};var _0x5d3b36=_[_0x0a47('0x2e')](db['MailTransferReport']['rawAttributes'],function(_0x4f8b3a){return{'name':_0x4f8b3a[_0x0a47('0x2f')],'type':_0x4f8b3a['type'][_0x0a47('0x30')]};});_0x44899f[_0x0a47('0x31')]=_[_0x0a47('0x2e')](_0x5d3b36,'name');_0x44899f[_0x0a47('0x32')]=_[_0x0a47('0x33')](_0x2a18bd[_0x0a47('0x32')]);_0x44899f[_0x0a47('0x34')]=_[_0x0a47('0x35')](_0x44899f[_0x0a47('0x31')],_0x44899f[_0x0a47('0x32')]);_0x5e7c37['attributes']=_[_0x0a47('0x35')](_0x44899f[_0x0a47('0x31')],qs[_0x0a47('0x36')](_0x2a18bd[_0x0a47('0x32')]['fields']));_0x5e7c37[_0x0a47('0x37')]=_0x5e7c37[_0x0a47('0x37')][_0x0a47('0x38')]?_0x5e7c37[_0x0a47('0x37')]:_0x44899f[_0x0a47('0x31')];if(!_0x2a18bd['query'][_0x0a47('0x39')](_0x0a47('0x3a'))){_0x5e7c37[_0x0a47('0x1d')]=qs['limit'](_0x2a18bd[_0x0a47('0x32')][_0x0a47('0x1d')]);_0x5e7c37[_0x0a47('0x1b')]=qs[_0x0a47('0x1b')](_0x2a18bd['query'][_0x0a47('0x1b')]);}_0x5e7c37[_0x0a47('0x3b')]=qs['sort'](_0x2a18bd[_0x0a47('0x32')]['sort']);_0x5e7c37['where']=qs[_0x0a47('0x34')](_[_0x0a47('0x3c')](_0x2a18bd[_0x0a47('0x32')],_0x44899f[_0x0a47('0x34')]),_0x5d3b36);if(_0x2a18bd[_0x0a47('0x32')][_0x0a47('0x3d')]){_0x5e7c37[_0x0a47('0x3e')]=_[_0x0a47('0x3f')](_0x5e7c37['where'],{'$or':_['map'](_0x5d3b36,function(_0x26a5e3){if(_0x26a5e3[_0x0a47('0x40')]!==_0x0a47('0x41')){var _0x4d7913={};_0x4d7913[_0x26a5e3['name']]={'$like':'%'+_0x2a18bd[_0x0a47('0x32')]['filter']+'%'};return _0x4d7913;}})});}_0x5e7c37=_[_0x0a47('0x3f')]({},_0x5e7c37,_0x2a18bd[_0x0a47('0x42')]);var _0x32f1f6={'where':_0x5e7c37[_0x0a47('0x3e')]};return db['MailTransferReport'][_0x0a47('0x1e')](_0x32f1f6)[_0x0a47('0x25')](function(_0x322100){_0x12c86a[_0x0a47('0x1e')]=_0x322100;if(_0x2a18bd[_0x0a47('0x32')][_0x0a47('0x43')]){_0x5e7c37[_0x0a47('0x44')]=[{'all':!![]}];}return db[_0x0a47('0x45')][_0x0a47('0x46')](_0x5e7c37);})[_0x0a47('0x25')](function(_0x258ca8){_0x12c86a[_0x0a47('0x47')]=_0x258ca8;return _0x12c86a;})[_0x0a47('0x25')](respondWithFilteredResult(_0x41c188,_0x5e7c37))[_0x0a47('0x48')](handleError(_0x41c188,null));};exports['show']=function(_0x4836d2,_0x10ba1a){var _0x3bf9e5={'raw':!![],'where':{'id':_0x4836d2[_0x0a47('0x49')]['id']}},_0x54f31d={};_0x54f31d[_0x0a47('0x31')]=_['keys'](db[_0x0a47('0x45')][_0x0a47('0x4a')]);_0x54f31d[_0x0a47('0x32')]=_[_0x0a47('0x33')](_0x4836d2[_0x0a47('0x32')]);_0x54f31d[_0x0a47('0x34')]=_[_0x0a47('0x35')](_0x54f31d[_0x0a47('0x31')],_0x54f31d['query']);_0x3bf9e5[_0x0a47('0x37')]=_[_0x0a47('0x35')](_0x54f31d[_0x0a47('0x31')],qs['fields'](_0x4836d2[_0x0a47('0x32')]['fields']));_0x3bf9e5['attributes']=_0x3bf9e5[_0x0a47('0x37')]['length']?_0x3bf9e5[_0x0a47('0x37')]:_0x54f31d[_0x0a47('0x31')];if(_0x4836d2[_0x0a47('0x32')][_0x0a47('0x43')]){_0x3bf9e5['include']=[{'all':!![]}];}_0x3bf9e5=_[_0x0a47('0x3f')]({},_0x3bf9e5,_0x4836d2[_0x0a47('0x42')]);return db[_0x0a47('0x45')][_0x0a47('0x4b')](_0x3bf9e5)[_0x0a47('0x25')](handleEntityNotFound(_0x10ba1a,null))[_0x0a47('0x25')](respondWithResult(_0x10ba1a,null))[_0x0a47('0x48')](handleError(_0x10ba1a,null));};exports[_0x0a47('0x4c')]=function(_0x25e2b6,_0x3d2f7e){return db[_0x0a47('0x45')][_0x0a47('0x4c')](_0x25e2b6[_0x0a47('0x4d')],{})[_0x0a47('0x25')](respondWithResult(_0x3d2f7e,0xc9))[_0x0a47('0x48')](handleError(_0x3d2f7e,null));};exports[_0x0a47('0x24')]=function(_0x2d3ce0,_0x5302e0){if(_0x2d3ce0[_0x0a47('0x4d')]['id']){delete _0x2d3ce0[_0x0a47('0x4d')]['id'];}return db[_0x0a47('0x45')][_0x0a47('0x4b')]({'where':{'id':_0x2d3ce0[_0x0a47('0x49')]['id']}})['then'](handleEntityNotFound(_0x5302e0,null))[_0x0a47('0x25')](saveUpdates(_0x2d3ce0[_0x0a47('0x4d')],null))[_0x0a47('0x25')](respondWithResult(_0x5302e0,null))[_0x0a47('0x48')](handleError(_0x5302e0,null));};exports['destroy']=function(_0x4cc488,_0x27270c){return db[_0x0a47('0x45')]['find']({'where':{'id':_0x4cc488['params']['id']}})[_0x0a47('0x25')](handleEntityNotFound(_0x27270c,null))[_0x0a47('0x25')](removeEntity(_0x27270c,null))[_0x0a47('0x48')](handleError(_0x27270c,null));};exports[_0x0a47('0x4e')]=function(_0x900918,_0x42f13f){return db[_0x0a47('0x45')]['describe']()[_0x0a47('0x25')](respondWithResult(_0x42f13f,null))[_0x0a47('0x48')](handleError(_0x42f13f,null));};
\ No newline at end of file
+var _0x7038=['../../config/license/hardware','../../config/logger','api','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','undefined','count','limit','apply','reject','save','update','then','stack','name','map','MailTransferReport','rawAttributes','fieldName','type','model','query','filters','attributes','intersection','fields','length','hasOwnProperty','order','sort','where','pick','merge','VIRTUAL','filter','options','includeAll','rows','catch','show','include','find','create','body','params','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','bluebird','mustache','util','path','sox','to-csv','ejs','lodash','crypto','jsforce','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch'];(function(_0x68909b,_0x15e455){var _0x40c97e=function(_0x465d77){while(--_0x465d77){_0x68909b['push'](_0x68909b['shift']());}};_0x40c97e(++_0x15e455);}(_0x7038,0x19c));var _0x8703=function(_0x5e446d,_0x1f9109){_0x5e446d=_0x5e446d-0x0;var _0x25b1c8=_0x7038[_0x5e446d];return _0x25b1c8;};'use strict';var emlformat=require(_0x8703('0x0'));var rimraf=require(_0x8703('0x1'));var zipdir=require(_0x8703('0x2'));var jsonpatch=require(_0x8703('0x3'));var rp=require(_0x8703('0x4'));var moment=require('moment');var BPromise=require(_0x8703('0x5'));var Mustache=require(_0x8703('0x6'));var util=require(_0x8703('0x7'));var path=require(_0x8703('0x8'));var sox=require(_0x8703('0x9'));var csv=require(_0x8703('0xa'));var ejs=require(_0x8703('0xb'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x8703('0xc'));var squel=require('squel');var crypto=require(_0x8703('0xd'));var jsforce=require(_0x8703('0xe'));var deskjs=require('desk.js');var toCsv=require(_0x8703('0xa'));var querystring=require('querystring');var Papa=require(_0x8703('0xf'));var Redis=require(_0x8703('0x10'));var authService=require(_0x8703('0x11'));var qs=require(_0x8703('0x12'));var as=require(_0x8703('0x13'));var hardwareService=require(_0x8703('0x14'));var logger=require(_0x8703('0x15'))(_0x8703('0x16'));var utils=require('../../config/utils');var config=require(_0x8703('0x17'));var licenseUtil=require(_0x8703('0x18'));var db=require(_0x8703('0x19'))['db'];function respondWithStatusCode(_0x99a7d9,_0x51e528){_0x51e528=_0x51e528||0xcc;return function(_0x1b97ae){if(_0x1b97ae){return _0x99a7d9[_0x8703('0x1a')](_0x51e528);}return _0x99a7d9[_0x8703('0x1b')](_0x51e528)[_0x8703('0x1c')]();};}function respondWithResult(_0xcd1e39,_0x1a2297){_0x1a2297=_0x1a2297||0xc8;return function(_0x20de82){if(_0x20de82){return _0xcd1e39[_0x8703('0x1b')](_0x1a2297)[_0x8703('0x1d')](_0x20de82);}};}function respondWithFilteredResult(_0x132a24,_0x5d9381){return function(_0x3080e9){if(_0x3080e9){var _0x10abcd=typeof _0x5d9381[_0x8703('0x1e')]===_0x8703('0x1f')&&typeof _0x5d9381['limit']===_0x8703('0x1f');var _0x34e391=_0x3080e9['count'];var _0x532ea1=_0x10abcd?0x0:_0x5d9381[_0x8703('0x1e')];var _0x336695=_0x10abcd?_0x3080e9[_0x8703('0x20')]:_0x5d9381[_0x8703('0x1e')]+_0x5d9381[_0x8703('0x21')];var _0x11434;if(_0x336695>=_0x34e391){_0x336695=_0x34e391;_0x11434=0xc8;}else{_0x11434=0xce;}_0x132a24[_0x8703('0x1b')](_0x11434);return _0x132a24['set']('Content-Range',_0x532ea1+'-'+_0x336695+'/'+_0x34e391)[_0x8703('0x1d')](_0x3080e9);}return null;};}function patchUpdates(_0x4f2c1c){return function(_0x3a0ddb){try{jsonpatch[_0x8703('0x22')](_0x3a0ddb,_0x4f2c1c,!![]);}catch(_0x4e7683){return BPromise[_0x8703('0x23')](_0x4e7683);}return _0x3a0ddb[_0x8703('0x24')]();};}function saveUpdates(_0xc368a7,_0x200ed7){return function(_0x552bde){if(_0x552bde){return _0x552bde[_0x8703('0x25')](_0xc368a7)[_0x8703('0x26')](function(_0x4c0ce3){return _0x4c0ce3;});}return null;};}function removeEntity(_0x43fbe2,_0x10bb90){return function(_0x104007){if(_0x104007){return _0x104007['destroy']()[_0x8703('0x26')](function(){_0x43fbe2[_0x8703('0x1b')](0xcc)[_0x8703('0x1c')]();});}};}function handleEntityNotFound(_0x244fec,_0x4404c5){return function(_0x4ef088){if(!_0x4ef088){_0x244fec[_0x8703('0x1a')](0x194);}return _0x4ef088;};}function handleError(_0x6569e1,_0x4d54c8){_0x4d54c8=_0x4d54c8||0x1f4;return function(_0x4be992){logger['error'](_0x4be992[_0x8703('0x27')]);if(_0x4be992['name']){delete _0x4be992[_0x8703('0x28')];}_0x6569e1[_0x8703('0x1b')](_0x4d54c8)['send'](_0x4be992);};}exports['index']=function(_0x4afc40,_0xc7f119){var _0x402f3e={},_0x419429={},_0x9b31fa={'count':0x0,'rows':[]};var _0x20b766=_[_0x8703('0x29')](db[_0x8703('0x2a')][_0x8703('0x2b')],function(_0x371835){return{'name':_0x371835[_0x8703('0x2c')],'type':_0x371835[_0x8703('0x2d')]['key']};});_0x419429[_0x8703('0x2e')]=_[_0x8703('0x29')](_0x20b766,_0x8703('0x28'));_0x419429[_0x8703('0x2f')]=_['keys'](_0x4afc40[_0x8703('0x2f')]);_0x419429[_0x8703('0x30')]=_['intersection'](_0x419429[_0x8703('0x2e')],_0x419429[_0x8703('0x2f')]);_0x402f3e[_0x8703('0x31')]=_[_0x8703('0x32')](_0x419429['model'],qs[_0x8703('0x33')](_0x4afc40[_0x8703('0x2f')][_0x8703('0x33')]));_0x402f3e[_0x8703('0x31')]=_0x402f3e[_0x8703('0x31')][_0x8703('0x34')]?_0x402f3e[_0x8703('0x31')]:_0x419429['model'];if(!_0x4afc40['query'][_0x8703('0x35')]('nolimit')){_0x402f3e['limit']=qs[_0x8703('0x21')](_0x4afc40[_0x8703('0x2f')][_0x8703('0x21')]);_0x402f3e[_0x8703('0x1e')]=qs['offset'](_0x4afc40['query'][_0x8703('0x1e')]);}_0x402f3e[_0x8703('0x36')]=qs['sort'](_0x4afc40[_0x8703('0x2f')][_0x8703('0x37')]);_0x402f3e[_0x8703('0x38')]=qs[_0x8703('0x30')](_[_0x8703('0x39')](_0x4afc40[_0x8703('0x2f')],_0x419429[_0x8703('0x30')]),_0x20b766);if(_0x4afc40[_0x8703('0x2f')]['filter']){_0x402f3e[_0x8703('0x38')]=_[_0x8703('0x3a')](_0x402f3e[_0x8703('0x38')],{'$or':_['map'](_0x20b766,function(_0x5a64cd){if(_0x5a64cd['type']!==_0x8703('0x3b')){var _0x2a2f26={};_0x2a2f26[_0x5a64cd['name']]={'$like':'%'+_0x4afc40[_0x8703('0x2f')][_0x8703('0x3c')]+'%'};return _0x2a2f26;}})});}_0x402f3e=_[_0x8703('0x3a')]({},_0x402f3e,_0x4afc40[_0x8703('0x3d')]);var _0x18fa4a={'where':_0x402f3e['where']};return db[_0x8703('0x2a')][_0x8703('0x20')](_0x18fa4a)['then'](function(_0x4ab161){_0x9b31fa[_0x8703('0x20')]=_0x4ab161;if(_0x4afc40[_0x8703('0x2f')][_0x8703('0x3e')]){_0x402f3e['include']=[{'all':!![]}];}return db['MailTransferReport']['findAll'](_0x402f3e);})[_0x8703('0x26')](function(_0x46fbfc){_0x9b31fa[_0x8703('0x3f')]=_0x46fbfc;return _0x9b31fa;})[_0x8703('0x26')](respondWithFilteredResult(_0xc7f119,_0x402f3e))[_0x8703('0x40')](handleError(_0xc7f119,null));};exports[_0x8703('0x41')]=function(_0x247960,_0x1f54a6){var _0x52e5b9={'raw':!![],'where':{'id':_0x247960['params']['id']}},_0x164409={};_0x164409[_0x8703('0x2e')]=_['keys'](db[_0x8703('0x2a')]['rawAttributes']);_0x164409[_0x8703('0x2f')]=_['keys'](_0x247960[_0x8703('0x2f')]);_0x164409[_0x8703('0x30')]=_['intersection'](_0x164409['model'],_0x164409[_0x8703('0x2f')]);_0x52e5b9[_0x8703('0x31')]=_['intersection'](_0x164409[_0x8703('0x2e')],qs['fields'](_0x247960[_0x8703('0x2f')][_0x8703('0x33')]));_0x52e5b9[_0x8703('0x31')]=_0x52e5b9[_0x8703('0x31')]['length']?_0x52e5b9[_0x8703('0x31')]:_0x164409[_0x8703('0x2e')];if(_0x247960[_0x8703('0x2f')][_0x8703('0x3e')]){_0x52e5b9[_0x8703('0x42')]=[{'all':!![]}];}_0x52e5b9=_[_0x8703('0x3a')]({},_0x52e5b9,_0x247960[_0x8703('0x3d')]);return db[_0x8703('0x2a')][_0x8703('0x43')](_0x52e5b9)['then'](handleEntityNotFound(_0x1f54a6,null))[_0x8703('0x26')](respondWithResult(_0x1f54a6,null))['catch'](handleError(_0x1f54a6,null));};exports[_0x8703('0x44')]=function(_0x3e72ac,_0x2ace5c){return db[_0x8703('0x2a')][_0x8703('0x44')](_0x3e72ac[_0x8703('0x45')],{})[_0x8703('0x26')](respondWithResult(_0x2ace5c,0xc9))['catch'](handleError(_0x2ace5c,null));};exports[_0x8703('0x25')]=function(_0x46e1a0,_0x22d6be){if(_0x46e1a0[_0x8703('0x45')]['id']){delete _0x46e1a0[_0x8703('0x45')]['id'];}return db[_0x8703('0x2a')][_0x8703('0x43')]({'where':{'id':_0x46e1a0[_0x8703('0x46')]['id']}})['then'](handleEntityNotFound(_0x22d6be,null))[_0x8703('0x26')](saveUpdates(_0x46e1a0['body'],null))[_0x8703('0x26')](respondWithResult(_0x22d6be,null))[_0x8703('0x40')](handleError(_0x22d6be,null));};exports['destroy']=function(_0x56397d,_0x384fb3){return db['MailTransferReport']['find']({'where':{'id':_0x56397d['params']['id']}})['then'](handleEntityNotFound(_0x384fb3,null))['then'](removeEntity(_0x384fb3,null))[_0x8703('0x40')](handleError(_0x384fb3,null));};exports[_0x8703('0x47')]=function(_0x2712e1,_0xbfaab4){return db['MailTransferReport']['describe']()[_0x8703('0x26')](respondWithResult(_0xbfaab4,null))[_0x8703('0x40')](handleError(_0xbfaab4,null));};
\ No newline at end of file