Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / mailTransferReport / mailTransferReport.controller.js
index d3dccc8..f749cd7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4e40=['then','error','name','send','index','map','MailTransferReport','rawAttributes','type','key','model','query','keys','filters','intersection','attributes','fields','order','sort','where','filter','merge','VIRTUAL','options','includeAll','include','findAll','rows','show','length','find','catch','create','body','params','describe','eml-format','rimraf','request-promise','moment','mustache','util','path','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','end','status','offset','undefined','limit','count','set','json','reject','save','update','destroy'];(function(_0x19950b,_0x53d0d7){var _0x3c6b41=function(_0x3924ad){while(--_0x3924ad){_0x19950b['push'](_0x19950b['shift']());}};_0x3c6b41(++_0x53d0d7);}(_0x4e40,0x1da));var _0x04e4=function(_0x13fcd2,_0x51aa7d){_0x13fcd2=_0x13fcd2-0x0;var _0x1aec9b=_0x4e40[_0x13fcd2];return _0x1aec9b;};'use strict';var emlformat=require(_0x04e4('0x0'));var rimraf=require(_0x04e4('0x1'));var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require(_0x04e4('0x2'));var moment=require(_0x04e4('0x3'));var BPromise=require('bluebird');var Mustache=require(_0x04e4('0x4'));var util=require(_0x04e4('0x5'));var path=require(_0x04e4('0x6'));var sox=require('sox');var csv=require(_0x04e4('0x7'));var ejs=require(_0x04e4('0x8'));var fs=require('fs');var fs_extra=require(_0x04e4('0x9'));var _=require(_0x04e4('0xa'));var squel=require(_0x04e4('0xb'));var crypto=require(_0x04e4('0xc'));var jsforce=require(_0x04e4('0xd'));var deskjs=require(_0x04e4('0xe'));var toCsv=require('to-csv');var querystring=require(_0x04e4('0xf'));var Papa=require(_0x04e4('0x10'));var Redis=require('ioredis');var authService=require(_0x04e4('0x11'));var qs=require(_0x04e4('0x12'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x04e4('0x13'));var logger=require(_0x04e4('0x14'))('api');var utils=require('../../config/utils');var config=require(_0x04e4('0x15'));var licenseUtil=require(_0x04e4('0x16'));var db=require(_0x04e4('0x17'))['db'];function respondWithStatusCode(_0xa97188,_0x1d0876){_0x1d0876=_0x1d0876||0xcc;return function(_0x3669b4){if(_0x3669b4){return _0xa97188[_0x04e4('0x18')](_0x1d0876);}return _0xa97188['status'](_0x1d0876)[_0x04e4('0x19')]();};}function respondWithResult(_0x53d5f8,_0x257b14){_0x257b14=_0x257b14||0xc8;return function(_0x48d076){if(_0x48d076){return _0x53d5f8[_0x04e4('0x1a')](_0x257b14)['json'](_0x48d076);}};}function respondWithFilteredResult(_0x2f406e,_0x301731){return function(_0xb6b398){if(_0xb6b398){var _0xe66cbb=typeof _0x301731[_0x04e4('0x1b')]===_0x04e4('0x1c')&&typeof _0x301731[_0x04e4('0x1d')]==='undefined';var _0x3ee3c0=_0xb6b398[_0x04e4('0x1e')];var _0x259bba=_0xe66cbb?0x0:_0x301731[_0x04e4('0x1b')];var _0x59e805=_0xe66cbb?_0xb6b398[_0x04e4('0x1e')]:_0x301731['offset']+_0x301731['limit'];var _0x25d2d5;if(_0x59e805>=_0x3ee3c0){_0x59e805=_0x3ee3c0;_0x25d2d5=0xc8;}else{_0x25d2d5=0xce;}_0x2f406e[_0x04e4('0x1a')](_0x25d2d5);return _0x2f406e[_0x04e4('0x1f')]('Content-Range',_0x259bba+'-'+_0x59e805+'/'+_0x3ee3c0)[_0x04e4('0x20')](_0xb6b398);}return null;};}function patchUpdates(_0x5535d){return function(_0x2c0cb0){try{jsonpatch['apply'](_0x2c0cb0,_0x5535d,!![]);}catch(_0x2502a9){return BPromise[_0x04e4('0x21')](_0x2502a9);}return _0x2c0cb0[_0x04e4('0x22')]();};}function saveUpdates(_0x37bf8e,_0x59e7c9){return function(_0xbbd5a0){if(_0xbbd5a0){return _0xbbd5a0[_0x04e4('0x23')](_0x37bf8e)['then'](function(_0x331233){return _0x331233;});}return null;};}function removeEntity(_0x2d90d4,_0x11632c){return function(_0x2f4f9f){if(_0x2f4f9f){return _0x2f4f9f[_0x04e4('0x24')]()[_0x04e4('0x25')](function(){_0x2d90d4[_0x04e4('0x1a')](0xcc)['end']();});}};}function handleEntityNotFound(_0x45b636,_0x4c84e1){return function(_0x2544ae){if(!_0x2544ae){_0x45b636[_0x04e4('0x18')](0x194);}return _0x2544ae;};}function handleError(_0x456796,_0x31a917){_0x31a917=_0x31a917||0x1f4;return function(_0x1693da){logger[_0x04e4('0x26')](_0x1693da['stack']);if(_0x1693da[_0x04e4('0x27')]){delete _0x1693da['name'];}_0x456796[_0x04e4('0x1a')](_0x31a917)[_0x04e4('0x28')](_0x1693da);};}exports[_0x04e4('0x29')]=function(_0x21cc44,_0x53fb5d){var _0x331842={},_0x2d382e={},_0x1c33c0={'count':0x0,'rows':[]};var _0xb65ddf=_[_0x04e4('0x2a')](db[_0x04e4('0x2b')][_0x04e4('0x2c')],function(_0x6ed9da){return{'name':_0x6ed9da['fieldName'],'type':_0x6ed9da[_0x04e4('0x2d')][_0x04e4('0x2e')]};});_0x2d382e[_0x04e4('0x2f')]=_['map'](_0xb65ddf,_0x04e4('0x27'));_0x2d382e[_0x04e4('0x30')]=_[_0x04e4('0x31')](_0x21cc44[_0x04e4('0x30')]);_0x2d382e[_0x04e4('0x32')]=_[_0x04e4('0x33')](_0x2d382e[_0x04e4('0x2f')],_0x2d382e[_0x04e4('0x30')]);_0x331842[_0x04e4('0x34')]=_[_0x04e4('0x33')](_0x2d382e['model'],qs[_0x04e4('0x35')](_0x21cc44[_0x04e4('0x30')][_0x04e4('0x35')]));_0x331842[_0x04e4('0x34')]=_0x331842[_0x04e4('0x34')]['length']?_0x331842[_0x04e4('0x34')]:_0x2d382e[_0x04e4('0x2f')];if(!_0x21cc44['query']['hasOwnProperty']('nolimit')){_0x331842['limit']=qs['limit'](_0x21cc44[_0x04e4('0x30')][_0x04e4('0x1d')]);_0x331842[_0x04e4('0x1b')]=qs['offset'](_0x21cc44[_0x04e4('0x30')][_0x04e4('0x1b')]);}_0x331842[_0x04e4('0x36')]=qs[_0x04e4('0x37')](_0x21cc44[_0x04e4('0x30')]['sort']);_0x331842[_0x04e4('0x38')]=qs['filters'](_['pick'](_0x21cc44[_0x04e4('0x30')],_0x2d382e['filters']),_0xb65ddf);if(_0x21cc44['query'][_0x04e4('0x39')]){_0x331842[_0x04e4('0x38')]=_[_0x04e4('0x3a')](_0x331842[_0x04e4('0x38')],{'$or':_[_0x04e4('0x2a')](_0xb65ddf,function(_0xe99dab){if(_0xe99dab[_0x04e4('0x2d')]!==_0x04e4('0x3b')){var _0x5c3a57={};_0x5c3a57[_0xe99dab['name']]={'$like':'%'+_0x21cc44[_0x04e4('0x30')][_0x04e4('0x39')]+'%'};return _0x5c3a57;}})});}_0x331842=_[_0x04e4('0x3a')]({},_0x331842,_0x21cc44[_0x04e4('0x3c')]);var _0xb1ad9a={'where':_0x331842['where']};return db[_0x04e4('0x2b')]['count'](_0xb1ad9a)[_0x04e4('0x25')](function(_0x2ff3c8){_0x1c33c0[_0x04e4('0x1e')]=_0x2ff3c8;if(_0x21cc44[_0x04e4('0x30')][_0x04e4('0x3d')]){_0x331842[_0x04e4('0x3e')]=[{'all':!![]}];}return db[_0x04e4('0x2b')][_0x04e4('0x3f')](_0x331842);})[_0x04e4('0x25')](function(_0x45689e){_0x1c33c0[_0x04e4('0x40')]=_0x45689e;return _0x1c33c0;})['then'](respondWithFilteredResult(_0x53fb5d,_0x331842))['catch'](handleError(_0x53fb5d,null));};exports[_0x04e4('0x41')]=function(_0x50b9b3,_0x440c47){var _0x41b871={'raw':!![],'where':{'id':_0x50b9b3['params']['id']}},_0x3de3f5={};_0x3de3f5[_0x04e4('0x2f')]=_['keys'](db[_0x04e4('0x2b')][_0x04e4('0x2c')]);_0x3de3f5[_0x04e4('0x30')]=_[_0x04e4('0x31')](_0x50b9b3[_0x04e4('0x30')]);_0x3de3f5[_0x04e4('0x32')]=_[_0x04e4('0x33')](_0x3de3f5['model'],_0x3de3f5[_0x04e4('0x30')]);_0x41b871[_0x04e4('0x34')]=_[_0x04e4('0x33')](_0x3de3f5[_0x04e4('0x2f')],qs[_0x04e4('0x35')](_0x50b9b3['query']['fields']));_0x41b871[_0x04e4('0x34')]=_0x41b871['attributes'][_0x04e4('0x42')]?_0x41b871[_0x04e4('0x34')]:_0x3de3f5[_0x04e4('0x2f')];if(_0x50b9b3[_0x04e4('0x30')][_0x04e4('0x3d')]){_0x41b871['include']=[{'all':!![]}];}_0x41b871=_['merge']({},_0x41b871,_0x50b9b3['options']);return db['MailTransferReport'][_0x04e4('0x43')](_0x41b871)[_0x04e4('0x25')](handleEntityNotFound(_0x440c47,null))[_0x04e4('0x25')](respondWithResult(_0x440c47,null))[_0x04e4('0x44')](handleError(_0x440c47,null));};exports[_0x04e4('0x45')]=function(_0x3d6782,_0x1cd5f8){return db['MailTransferReport'][_0x04e4('0x45')](_0x3d6782[_0x04e4('0x46')],{})[_0x04e4('0x25')](respondWithResult(_0x1cd5f8,0xc9))['catch'](handleError(_0x1cd5f8,null));};exports[_0x04e4('0x23')]=function(_0x104cfe,_0x5a445d){if(_0x104cfe[_0x04e4('0x46')]['id']){delete _0x104cfe[_0x04e4('0x46')]['id'];}return db[_0x04e4('0x2b')][_0x04e4('0x43')]({'where':{'id':_0x104cfe[_0x04e4('0x47')]['id']}})[_0x04e4('0x25')](handleEntityNotFound(_0x5a445d,null))[_0x04e4('0x25')](saveUpdates(_0x104cfe[_0x04e4('0x46')],null))[_0x04e4('0x25')](respondWithResult(_0x5a445d,null))['catch'](handleError(_0x5a445d,null));};exports[_0x04e4('0x24')]=function(_0x15a4e4,_0x1fbffb){return db[_0x04e4('0x2b')][_0x04e4('0x43')]({'where':{'id':_0x15a4e4[_0x04e4('0x47')]['id']}})[_0x04e4('0x25')](handleEntityNotFound(_0x1fbffb,null))['then'](removeEntity(_0x1fbffb,null))[_0x04e4('0x44')](handleError(_0x1fbffb,null));};exports[_0x04e4('0x48')]=function(_0x4deb46,_0x5d9d99){return db[_0x04e4('0x2b')]['describe']()['then'](respondWithResult(_0x5d9d99,null))['catch'](handleError(_0x5d9d99,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