Built motion from commit 14588770.|2.5.38
[motion2.git] / server / api / mailTransferReport / mailTransferReport.controller.js
index 215415e..be870a7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbcfc=['eml-format','rimraf','zip-dir','request-promise','moment','bluebird','mustache','util','sox','to-csv','ejs','lodash','crypto','querystring','papaparse','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','end','json','count','offset','limit','Content-Range','update','then','destroy','error','stack','name','send','map','MailTransferReport','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','attributes','fields','length','nolimit','order','sort','where','filter','merge','options','findAll','rows','show','params','includeAll','include','find','catch','create','body','describe','html-pdf'];(function(_0x247976,_0x93f371){var _0x42b421=function(_0x4cd02a){while(--_0x4cd02a){_0x247976['push'](_0x247976['shift']());}};_0x42b421(++_0x93f371);}(_0xbcfc,0x162));var _0xcbcf=function(_0xec1132,_0x2de7a6){_0xec1132=_0xec1132-0x0;var _0x37a17a=_0xbcfc[_0xec1132];return _0x37a17a;};'use strict';var pdf=require(_0xcbcf('0x0'));var emlformat=require(_0xcbcf('0x1'));var rimraf=require(_0xcbcf('0x2'));var zipdir=require(_0xcbcf('0x3'));var jsonpatch=require('fast-json-patch');var rp=require(_0xcbcf('0x4'));var moment=require(_0xcbcf('0x5'));var BPromise=require(_0xcbcf('0x6'));var Mustache=require(_0xcbcf('0x7'));var util=require(_0xcbcf('0x8'));var path=require('path');var sox=require(_0xcbcf('0x9'));var csv=require(_0xcbcf('0xa'));var ejs=require(_0xcbcf('0xb'));var fs=require('fs');var _=require(_0xcbcf('0xc'));var squel=require('squel');var crypto=require(_0xcbcf('0xd'));var jsforce=require('jsforce');var deskjs=require('desk.js');var toCsv=require(_0xcbcf('0xa'));var querystring=require(_0xcbcf('0xe'));var Papa=require(_0xcbcf('0xf'));var Redis=require(_0xcbcf('0x10'));var authService=require('../../components/auth/service');var qs=require(_0xcbcf('0x11'));var as=require(_0xcbcf('0x12'));var hardwareService=require(_0xcbcf('0x13'));var logger=require('../../config/logger')(_0xcbcf('0x14'));var utils=require(_0xcbcf('0x15'));var config=require(_0xcbcf('0x16'));var licenseUtil=require(_0xcbcf('0x17'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x263bee,_0x4aad26){_0x4aad26=_0x4aad26||0xcc;return function(_0x1988d4){if(_0x1988d4){return _0x263bee[_0xcbcf('0x18')](_0x4aad26);}return _0x263bee[_0xcbcf('0x19')](_0x4aad26)[_0xcbcf('0x1a')]();};}function respondWithResult(_0x1b084e,_0x5a9bfc){_0x5a9bfc=_0x5a9bfc||0xc8;return function(_0x5a1d44){if(_0x5a1d44){return _0x1b084e[_0xcbcf('0x19')](_0x5a9bfc)[_0xcbcf('0x1b')](_0x5a1d44);}};}function respondWithFilteredResult(_0xd506a8,_0x50f601){return function(_0x2d7ca5){if(_0x2d7ca5){var _0x9bef50=_0x2d7ca5[_0xcbcf('0x1c')],_0xc2a7e9=_0x50f601['offset'],_0x4a6a15=_0x50f601[_0xcbcf('0x1d')]+_0x50f601[_0xcbcf('0x1e')],_0x205adf;if(_0x4a6a15>=_0x9bef50){_0x4a6a15=_0x9bef50;_0x205adf=0xc8;}else{_0x205adf=0xce;}_0xd506a8[_0xcbcf('0x19')](_0x205adf);return _0xd506a8['set'](_0xcbcf('0x1f'),_0xc2a7e9+'-'+_0x4a6a15+'/'+_0x9bef50)[_0xcbcf('0x1b')](_0x2d7ca5);}return null;};}function patchUpdates(_0x558a38){return function(_0x3b4287){try{jsonpatch['apply'](_0x3b4287,_0x558a38,!![]);}catch(_0x536dbc){return BPromise['reject'](_0x536dbc);}return _0x3b4287['save']();};}function saveUpdates(_0x3600af,_0x304d7f){return function(_0x37b661){if(_0x37b661){return _0x37b661[_0xcbcf('0x20')](_0x3600af)[_0xcbcf('0x21')](function(_0xb8511e){return _0xb8511e;});}return null;};}function removeEntity(_0x5c6fd0,_0x434502){return function(_0x49cf2f){if(_0x49cf2f){return _0x49cf2f[_0xcbcf('0x22')]()['then'](function(){_0x5c6fd0['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x3c371f,_0x14372b){return function(_0x13c442){if(!_0x13c442){_0x3c371f[_0xcbcf('0x18')](0x194);}return _0x13c442;};}function handleError(_0x4e8e6b,_0x541579){_0x541579=_0x541579||0x1f4;return function(_0x1463d1){logger[_0xcbcf('0x23')](_0x1463d1[_0xcbcf('0x24')]);if(_0x1463d1['name']){delete _0x1463d1[_0xcbcf('0x25')];}_0x4e8e6b[_0xcbcf('0x19')](_0x541579)[_0xcbcf('0x26')](_0x1463d1);};}exports['index']=function(_0x54f0b7,_0x10c028){var _0x1c251f={},_0x171655={},_0x4818aa={'count':0x0,'rows':[]};var _0x965c1e=_[_0xcbcf('0x27')](db[_0xcbcf('0x28')][_0xcbcf('0x29')],function(_0x39e302){return{'name':_0x39e302[_0xcbcf('0x2a')],'type':_0x39e302[_0xcbcf('0x2b')][_0xcbcf('0x2c')]};});_0x171655[_0xcbcf('0x2d')]=_[_0xcbcf('0x27')](_0x965c1e,'name');_0x171655[_0xcbcf('0x2e')]=_[_0xcbcf('0x2f')](_0x54f0b7[_0xcbcf('0x2e')]);_0x171655[_0xcbcf('0x30')]=_[_0xcbcf('0x31')](_0x171655[_0xcbcf('0x2d')],_0x171655['query']);_0x1c251f[_0xcbcf('0x32')]=_[_0xcbcf('0x31')](_0x171655[_0xcbcf('0x2d')],qs[_0xcbcf('0x33')](_0x54f0b7[_0xcbcf('0x2e')][_0xcbcf('0x33')]));_0x1c251f['attributes']=_0x1c251f[_0xcbcf('0x32')][_0xcbcf('0x34')]?_0x1c251f['attributes']:_0x171655['model'];if(!_0x54f0b7[_0xcbcf('0x2e')]['hasOwnProperty'](_0xcbcf('0x35'))){_0x1c251f[_0xcbcf('0x1e')]=qs[_0xcbcf('0x1e')](_0x54f0b7[_0xcbcf('0x2e')]['limit']);_0x1c251f[_0xcbcf('0x1d')]=qs['offset'](_0x54f0b7[_0xcbcf('0x2e')][_0xcbcf('0x1d')]);}_0x1c251f[_0xcbcf('0x36')]=qs[_0xcbcf('0x37')](_0x54f0b7[_0xcbcf('0x2e')][_0xcbcf('0x37')]);_0x1c251f[_0xcbcf('0x38')]=qs[_0xcbcf('0x30')](_['pick'](_0x54f0b7['query'],_0x171655['filters']),_0x965c1e);if(_0x54f0b7[_0xcbcf('0x2e')]['filter']){_0x1c251f[_0xcbcf('0x38')]=_['merge'](_0x1c251f[_0xcbcf('0x38')],{'$or':_[_0xcbcf('0x27')](_0x965c1e,function(_0x570229){if(_0x570229[_0xcbcf('0x2b')]!=='VIRTUAL'){var _0x482732={};_0x482732[_0x570229['name']]={'$like':'%'+_0x54f0b7[_0xcbcf('0x2e')][_0xcbcf('0x39')]+'%'};return _0x482732;}})});}_0x1c251f=_[_0xcbcf('0x3a')]({},_0x1c251f,_0x54f0b7[_0xcbcf('0x3b')]);var _0x1b3521={'where':_0x1c251f[_0xcbcf('0x38')]};return db[_0xcbcf('0x28')][_0xcbcf('0x1c')](_0x1b3521)[_0xcbcf('0x21')](function(_0x5bf59b){_0x4818aa[_0xcbcf('0x1c')]=_0x5bf59b;if(_0x54f0b7[_0xcbcf('0x2e')]['includeAll']){_0x1c251f['include']=[{'all':!![]}];}return db[_0xcbcf('0x28')][_0xcbcf('0x3c')](_0x1c251f);})[_0xcbcf('0x21')](function(_0x2bfa37){_0x4818aa[_0xcbcf('0x3d')]=_0x2bfa37;return _0x4818aa;})[_0xcbcf('0x21')](respondWithFilteredResult(_0x10c028,_0x1c251f))['catch'](handleError(_0x10c028,null));};exports[_0xcbcf('0x3e')]=function(_0x53618f,_0x26f39e){var _0x54d18d={'raw':!![],'where':{'id':_0x53618f[_0xcbcf('0x3f')]['id']}},_0x3c6ba5={};_0x3c6ba5[_0xcbcf('0x2d')]=_['keys'](db[_0xcbcf('0x28')][_0xcbcf('0x29')]);_0x3c6ba5[_0xcbcf('0x2e')]=_[_0xcbcf('0x2f')](_0x53618f[_0xcbcf('0x2e')]);_0x3c6ba5['filters']=_[_0xcbcf('0x31')](_0x3c6ba5[_0xcbcf('0x2d')],_0x3c6ba5[_0xcbcf('0x2e')]);_0x54d18d[_0xcbcf('0x32')]=_[_0xcbcf('0x31')](_0x3c6ba5[_0xcbcf('0x2d')],qs[_0xcbcf('0x33')](_0x53618f[_0xcbcf('0x2e')]['fields']));_0x54d18d[_0xcbcf('0x32')]=_0x54d18d['attributes'][_0xcbcf('0x34')]?_0x54d18d[_0xcbcf('0x32')]:_0x3c6ba5[_0xcbcf('0x2d')];if(_0x53618f[_0xcbcf('0x2e')][_0xcbcf('0x40')]){_0x54d18d[_0xcbcf('0x41')]=[{'all':!![]}];}_0x54d18d=_[_0xcbcf('0x3a')]({},_0x54d18d,_0x53618f['options']);return db['MailTransferReport'][_0xcbcf('0x42')](_0x54d18d)[_0xcbcf('0x21')](handleEntityNotFound(_0x26f39e,null))[_0xcbcf('0x21')](respondWithResult(_0x26f39e,null))[_0xcbcf('0x43')](handleError(_0x26f39e,null));};exports[_0xcbcf('0x44')]=function(_0x130f1d,_0x549af0){return db[_0xcbcf('0x28')][_0xcbcf('0x44')](_0x130f1d[_0xcbcf('0x45')],{})[_0xcbcf('0x21')](respondWithResult(_0x549af0,0xc9))[_0xcbcf('0x43')](handleError(_0x549af0,null));};exports[_0xcbcf('0x20')]=function(_0x4bd1ca,_0x90183){if(_0x4bd1ca['body']['id']){delete _0x4bd1ca['body']['id'];}return db[_0xcbcf('0x28')][_0xcbcf('0x42')]({'where':{'id':_0x4bd1ca[_0xcbcf('0x3f')]['id']}})[_0xcbcf('0x21')](handleEntityNotFound(_0x90183,null))[_0xcbcf('0x21')](saveUpdates(_0x4bd1ca[_0xcbcf('0x45')],null))[_0xcbcf('0x21')](respondWithResult(_0x90183,null))['catch'](handleError(_0x90183,null));};exports[_0xcbcf('0x22')]=function(_0x2c08bd,_0x1bc5ca){return db[_0xcbcf('0x28')][_0xcbcf('0x42')]({'where':{'id':_0x2c08bd[_0xcbcf('0x3f')]['id']}})[_0xcbcf('0x21')](handleEntityNotFound(_0x1bc5ca,null))[_0xcbcf('0x21')](removeEntity(_0x1bc5ca,null))['catch'](handleError(_0x1bc5ca,null));};exports[_0xcbcf('0x46')]=function(_0x13d851,_0x3bce80){return db[_0xcbcf('0x28')][_0xcbcf('0x46')]()[_0xcbcf('0x21')](respondWithResult(_0x3bce80,null))[_0xcbcf('0x43')](handleError(_0x3bce80,null));};
\ No newline at end of file
+var _0xd56b=['filters','pick','filter','options','includeAll','include','findAll','rows','length','merge','catch','create','body','update','find','params','describe','eml-format','zip-dir','request-promise','moment','mustache','util','path','sox','to-csv','ejs','fs-extra','lodash','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','undefined','limit','count','Content-Range','apply','reject','save','then','destroy','error','stack','name','index','map','MailTransferReport','rawAttributes','fieldName','type','key','model','keys','query','intersection','fields','attributes','hasOwnProperty','sort','where'];(function(_0x2e4e19,_0x493b50){var _0x9ba20b=function(_0x2f6456){while(--_0x2f6456){_0x2e4e19['push'](_0x2e4e19['shift']());}};_0x9ba20b(++_0x493b50);}(_0xd56b,0xf8));var _0xbd56=function(_0x3c8cbe,_0x44f876){_0x3c8cbe=_0x3c8cbe-0x0;var _0x14eab8=_0xd56b[_0x3c8cbe];return _0x14eab8;};'use strict';var emlformat=require(_0xbd56('0x0'));var rimraf=require('rimraf');var zipdir=require(_0xbd56('0x1'));var jsonpatch=require('fast-json-patch');var rp=require(_0xbd56('0x2'));var moment=require(_0xbd56('0x3'));var BPromise=require('bluebird');var Mustache=require(_0xbd56('0x4'));var util=require(_0xbd56('0x5'));var path=require(_0xbd56('0x6'));var sox=require(_0xbd56('0x7'));var csv=require(_0xbd56('0x8'));var ejs=require(_0xbd56('0x9'));var fs=require('fs');var fs_extra=require(_0xbd56('0xa'));var _=require(_0xbd56('0xb'));var squel=require('squel');var crypto=require(_0xbd56('0xc'));var jsforce=require(_0xbd56('0xd'));var deskjs=require(_0xbd56('0xe'));var toCsv=require(_0xbd56('0x8'));var querystring=require(_0xbd56('0xf'));var Papa=require(_0xbd56('0x10'));var Redis=require(_0xbd56('0x11'));var authService=require(_0xbd56('0x12'));var qs=require(_0xbd56('0x13'));var as=require(_0xbd56('0x14'));var hardwareService=require('../../config/license/hardware');var logger=require(_0xbd56('0x15'))(_0xbd56('0x16'));var utils=require(_0xbd56('0x17'));var config=require(_0xbd56('0x18'));var licenseUtil=require(_0xbd56('0x19'));var db=require(_0xbd56('0x1a'))['db'];function respondWithStatusCode(_0x1317ae,_0x1beadf){_0x1beadf=_0x1beadf||0xcc;return function(_0x20a826){if(_0x20a826){return _0x1317ae[_0xbd56('0x1b')](_0x1beadf);}return _0x1317ae[_0xbd56('0x1c')](_0x1beadf)[_0xbd56('0x1d')]();};}function respondWithResult(_0x396071,_0x3875b1){_0x3875b1=_0x3875b1||0xc8;return function(_0x32e02f){if(_0x32e02f){return _0x396071[_0xbd56('0x1c')](_0x3875b1)[_0xbd56('0x1e')](_0x32e02f);}};}function respondWithFilteredResult(_0x5aff1b,_0x374344){return function(_0x3b62c6){if(_0x3b62c6){var _0x52c5e9=typeof _0x374344[_0xbd56('0x1f')]===_0xbd56('0x20')&&typeof _0x374344[_0xbd56('0x21')]===_0xbd56('0x20');var _0x243e19=_0x3b62c6[_0xbd56('0x22')];var _0x347b6e=_0x52c5e9?0x0:_0x374344[_0xbd56('0x1f')];var _0x4e030b=_0x52c5e9?_0x3b62c6[_0xbd56('0x22')]:_0x374344['offset']+_0x374344['limit'];var _0x5d6c2c;if(_0x4e030b>=_0x243e19){_0x4e030b=_0x243e19;_0x5d6c2c=0xc8;}else{_0x5d6c2c=0xce;}_0x5aff1b[_0xbd56('0x1c')](_0x5d6c2c);return _0x5aff1b['set'](_0xbd56('0x23'),_0x347b6e+'-'+_0x4e030b+'/'+_0x243e19)[_0xbd56('0x1e')](_0x3b62c6);}return null;};}function patchUpdates(_0x27479e){return function(_0x42f908){try{jsonpatch[_0xbd56('0x24')](_0x42f908,_0x27479e,!![]);}catch(_0x1df486){return BPromise[_0xbd56('0x25')](_0x1df486);}return _0x42f908[_0xbd56('0x26')]();};}function saveUpdates(_0x4e6ef0,_0x1f8437){return function(_0x3830f1){if(_0x3830f1){return _0x3830f1['update'](_0x4e6ef0)[_0xbd56('0x27')](function(_0x522895){return _0x522895;});}return null;};}function removeEntity(_0x3bdf53,_0x18c9dc){return function(_0x13cd8e){if(_0x13cd8e){return _0x13cd8e[_0xbd56('0x28')]()[_0xbd56('0x27')](function(){_0x3bdf53[_0xbd56('0x1c')](0xcc)[_0xbd56('0x1d')]();});}};}function handleEntityNotFound(_0x5c5765,_0x41a770){return function(_0x40e3f7){if(!_0x40e3f7){_0x5c5765[_0xbd56('0x1b')](0x194);}return _0x40e3f7;};}function handleError(_0x18702d,_0x1aaa73){_0x1aaa73=_0x1aaa73||0x1f4;return function(_0x487881){logger[_0xbd56('0x29')](_0x487881[_0xbd56('0x2a')]);if(_0x487881[_0xbd56('0x2b')]){delete _0x487881['name'];}_0x18702d[_0xbd56('0x1c')](_0x1aaa73)['send'](_0x487881);};}exports[_0xbd56('0x2c')]=function(_0x5e71f1,_0x4b7e04){var _0x1c78f9={},_0x444af1={},_0x46c049={'count':0x0,'rows':[]};var _0x14f326=_[_0xbd56('0x2d')](db[_0xbd56('0x2e')][_0xbd56('0x2f')],function(_0x42864f){return{'name':_0x42864f[_0xbd56('0x30')],'type':_0x42864f[_0xbd56('0x31')][_0xbd56('0x32')]};});_0x444af1[_0xbd56('0x33')]=_[_0xbd56('0x2d')](_0x14f326,'name');_0x444af1['query']=_[_0xbd56('0x34')](_0x5e71f1['query']);_0x444af1['filters']=_['intersection'](_0x444af1['model'],_0x444af1[_0xbd56('0x35')]);_0x1c78f9['attributes']=_[_0xbd56('0x36')](_0x444af1[_0xbd56('0x33')],qs[_0xbd56('0x37')](_0x5e71f1[_0xbd56('0x35')][_0xbd56('0x37')]));_0x1c78f9[_0xbd56('0x38')]=_0x1c78f9[_0xbd56('0x38')]['length']?_0x1c78f9[_0xbd56('0x38')]:_0x444af1['model'];if(!_0x5e71f1[_0xbd56('0x35')][_0xbd56('0x39')]('nolimit')){_0x1c78f9[_0xbd56('0x21')]=qs['limit'](_0x5e71f1[_0xbd56('0x35')][_0xbd56('0x21')]);_0x1c78f9[_0xbd56('0x1f')]=qs[_0xbd56('0x1f')](_0x5e71f1[_0xbd56('0x35')][_0xbd56('0x1f')]);}_0x1c78f9['order']=qs[_0xbd56('0x3a')](_0x5e71f1[_0xbd56('0x35')][_0xbd56('0x3a')]);_0x1c78f9[_0xbd56('0x3b')]=qs[_0xbd56('0x3c')](_[_0xbd56('0x3d')](_0x5e71f1[_0xbd56('0x35')],_0x444af1[_0xbd56('0x3c')]),_0x14f326);if(_0x5e71f1['query'][_0xbd56('0x3e')]){_0x1c78f9[_0xbd56('0x3b')]=_['merge'](_0x1c78f9[_0xbd56('0x3b')],{'$or':_[_0xbd56('0x2d')](_0x14f326,function(_0xa64238){if(_0xa64238[_0xbd56('0x31')]!=='VIRTUAL'){var _0x3b02c0={};_0x3b02c0[_0xa64238[_0xbd56('0x2b')]]={'$like':'%'+_0x5e71f1[_0xbd56('0x35')]['filter']+'%'};return _0x3b02c0;}})});}_0x1c78f9=_['merge']({},_0x1c78f9,_0x5e71f1[_0xbd56('0x3f')]);var _0x1d2aae={'where':_0x1c78f9[_0xbd56('0x3b')]};return db[_0xbd56('0x2e')]['count'](_0x1d2aae)['then'](function(_0x4d2ba7){_0x46c049[_0xbd56('0x22')]=_0x4d2ba7;if(_0x5e71f1[_0xbd56('0x35')][_0xbd56('0x40')]){_0x1c78f9[_0xbd56('0x41')]=[{'all':!![]}];}return db[_0xbd56('0x2e')][_0xbd56('0x42')](_0x1c78f9);})[_0xbd56('0x27')](function(_0x56a70f){_0x46c049[_0xbd56('0x43')]=_0x56a70f;return _0x46c049;})[_0xbd56('0x27')](respondWithFilteredResult(_0x4b7e04,_0x1c78f9))['catch'](handleError(_0x4b7e04,null));};exports['show']=function(_0xf87521,_0x449353){var _0x442046={'raw':!![],'where':{'id':_0xf87521['params']['id']}},_0x2b8372={};_0x2b8372[_0xbd56('0x33')]=_[_0xbd56('0x34')](db[_0xbd56('0x2e')][_0xbd56('0x2f')]);_0x2b8372[_0xbd56('0x35')]=_[_0xbd56('0x34')](_0xf87521[_0xbd56('0x35')]);_0x2b8372[_0xbd56('0x3c')]=_[_0xbd56('0x36')](_0x2b8372['model'],_0x2b8372[_0xbd56('0x35')]);_0x442046[_0xbd56('0x38')]=_['intersection'](_0x2b8372[_0xbd56('0x33')],qs[_0xbd56('0x37')](_0xf87521[_0xbd56('0x35')][_0xbd56('0x37')]));_0x442046[_0xbd56('0x38')]=_0x442046[_0xbd56('0x38')][_0xbd56('0x44')]?_0x442046[_0xbd56('0x38')]:_0x2b8372['model'];if(_0xf87521[_0xbd56('0x35')]['includeAll']){_0x442046[_0xbd56('0x41')]=[{'all':!![]}];}_0x442046=_[_0xbd56('0x45')]({},_0x442046,_0xf87521[_0xbd56('0x3f')]);return db[_0xbd56('0x2e')]['find'](_0x442046)[_0xbd56('0x27')](handleEntityNotFound(_0x449353,null))[_0xbd56('0x27')](respondWithResult(_0x449353,null))[_0xbd56('0x46')](handleError(_0x449353,null));};exports[_0xbd56('0x47')]=function(_0x2a5c31,_0x3348bd){return db['MailTransferReport'][_0xbd56('0x47')](_0x2a5c31[_0xbd56('0x48')],{})['then'](respondWithResult(_0x3348bd,0xc9))[_0xbd56('0x46')](handleError(_0x3348bd,null));};exports[_0xbd56('0x49')]=function(_0x43f269,_0x728e5c){if(_0x43f269[_0xbd56('0x48')]['id']){delete _0x43f269['body']['id'];}return db[_0xbd56('0x2e')][_0xbd56('0x4a')]({'where':{'id':_0x43f269[_0xbd56('0x4b')]['id']}})[_0xbd56('0x27')](handleEntityNotFound(_0x728e5c,null))[_0xbd56('0x27')](saveUpdates(_0x43f269[_0xbd56('0x48')],null))['then'](respondWithResult(_0x728e5c,null))['catch'](handleError(_0x728e5c,null));};exports['destroy']=function(_0x12b779,_0x2c2d0d){return db['MailTransferReport'][_0xbd56('0x4a')]({'where':{'id':_0x12b779['params']['id']}})[_0xbd56('0x27')](handleEntityNotFound(_0x2c2d0d,null))['then'](removeEntity(_0x2c2d0d,null))['catch'](handleError(_0x2c2d0d,null));};exports[_0xbd56('0x4c')]=function(_0x4bcc8b,_0x57c35a){return db[_0xbd56('0x2e')][_0xbd56('0x4c')]()[_0xbd56('0x27')](respondWithResult(_0x57c35a,null))[_0xbd56('0x46')](handleError(_0x57c35a,null));};
\ No newline at end of file