Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / mailSubstatus / mailSubstatus.controller.js
index c93f966..ffec0b1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xaf7b=['describe','rimraf','moment','bluebird','mustache','path','sox','to-csv','ejs','fs-extra','jsforce','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/logger','api','../../config/license/util','../../mysqldb','sendStatus','status','offset','limit','json','reject','save','then','end','error','name','send','index','map','rawAttributes','fieldName','key','query','keys','filters','intersection','model','attributes','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','merge','filter','MailSubstatus','count','includeAll','include','findAll','catch','show','params','options','create','body','update','find'];(function(_0x4cb5a8,_0x3a517a){var _0x447cdd=function(_0x191531){while(--_0x191531){_0x4cb5a8['push'](_0x4cb5a8['shift']());}};_0x447cdd(++_0x3a517a);}(_0xaf7b,0x101));var _0xbaf7=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0xaf7b[_0x2dafbe];return _0x58a45a;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xbaf7('0x0'));var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require('request-promise');var moment=require(_0xbaf7('0x1'));var BPromise=require(_0xbaf7('0x2'));var Mustache=require(_0xbaf7('0x3'));var util=require('util');var path=require(_0xbaf7('0x4'));var sox=require(_0xbaf7('0x5'));var csv=require(_0xbaf7('0x6'));var ejs=require(_0xbaf7('0x7'));var fs=require('fs');var fs_extra=require(_0xbaf7('0x8'));var _=require('lodash');var squel=require('squel');var crypto=require('crypto');var jsforce=require(_0xbaf7('0x9'));var deskjs=require('desk.js');var toCsv=require(_0xbaf7('0x6'));var querystring=require('querystring');var Papa=require('papaparse');var Redis=require('ioredis');var authService=require(_0xbaf7('0xa'));var qs=require(_0xbaf7('0xb'));var as=require(_0xbaf7('0xc'));var hardwareService=require('../../config/license/hardware');var logger=require(_0xbaf7('0xd'))(_0xbaf7('0xe'));var utils=require('../../config/utils');var config=require('../../config/environment');var licenseUtil=require(_0xbaf7('0xf'));var db=require(_0xbaf7('0x10'))['db'];function respondWithStatusCode(_0x1d264e,_0x437a0e){_0x437a0e=_0x437a0e||0xcc;return function(_0x149ae3){if(_0x149ae3){return _0x1d264e[_0xbaf7('0x11')](_0x437a0e);}return _0x1d264e[_0xbaf7('0x12')](_0x437a0e)['end']();};}function respondWithResult(_0x55417c,_0x15be89){_0x15be89=_0x15be89||0xc8;return function(_0x89d295){if(_0x89d295){return _0x55417c[_0xbaf7('0x12')](_0x15be89)['json'](_0x89d295);}};}function respondWithFilteredResult(_0x46b2a3,_0x30592f){return function(_0x28c2e6){if(_0x28c2e6){var _0x4ee2bd=_0x28c2e6['count'],_0x28b3bb=_0x30592f['offset'],_0x36b89f=_0x30592f[_0xbaf7('0x13')]+_0x30592f[_0xbaf7('0x14')],_0x4293e6;if(_0x36b89f>=_0x4ee2bd){_0x36b89f=_0x4ee2bd;_0x4293e6=0xc8;}else{_0x4293e6=0xce;}_0x46b2a3[_0xbaf7('0x12')](_0x4293e6);return _0x46b2a3['set']('Content-Range',_0x28b3bb+'-'+_0x36b89f+'/'+_0x4ee2bd)[_0xbaf7('0x15')](_0x28c2e6);}return null;};}function patchUpdates(_0x437d22){return function(_0x5259fd){try{jsonpatch['apply'](_0x5259fd,_0x437d22,!![]);}catch(_0x4b1aff){return BPromise[_0xbaf7('0x16')](_0x4b1aff);}return _0x5259fd[_0xbaf7('0x17')]();};}function saveUpdates(_0x5a179b,_0x103c21){return function(_0x4ed4dc){if(_0x4ed4dc){return _0x4ed4dc['update'](_0x5a179b)[_0xbaf7('0x18')](function(_0x2670d3){return _0x2670d3;});}return null;};}function removeEntity(_0x4477de,_0x1edf93){return function(_0x5167ce){if(_0x5167ce){return _0x5167ce['destroy']()['then'](function(){_0x4477de[_0xbaf7('0x12')](0xcc)[_0xbaf7('0x19')]();});}};}function handleEntityNotFound(_0x13d57b,_0x40f6f2){return function(_0x73e72a){if(!_0x73e72a){_0x13d57b['sendStatus'](0x194);}return _0x73e72a;};}function handleError(_0x571583,_0x3ebeaf){_0x3ebeaf=_0x3ebeaf||0x1f4;return function(_0x262f2a){logger[_0xbaf7('0x1a')](_0x262f2a['stack']);if(_0x262f2a[_0xbaf7('0x1b')]){delete _0x262f2a[_0xbaf7('0x1b')];}_0x571583[_0xbaf7('0x12')](_0x3ebeaf)[_0xbaf7('0x1c')](_0x262f2a);};}exports[_0xbaf7('0x1d')]=function(_0x59e8d8,_0x3c78f2){var _0x59fdea={},_0xe811fb={},_0x567666={'count':0x0,'rows':[]};var _0x35e980=_[_0xbaf7('0x1e')](db['MailSubstatus'][_0xbaf7('0x1f')],function(_0x2efed9){return{'name':_0x2efed9[_0xbaf7('0x20')],'type':_0x2efed9['type'][_0xbaf7('0x21')]};});_0xe811fb['model']=_[_0xbaf7('0x1e')](_0x35e980,_0xbaf7('0x1b'));_0xe811fb[_0xbaf7('0x22')]=_[_0xbaf7('0x23')](_0x59e8d8[_0xbaf7('0x22')]);_0xe811fb[_0xbaf7('0x24')]=_[_0xbaf7('0x25')](_0xe811fb[_0xbaf7('0x26')],_0xe811fb[_0xbaf7('0x22')]);_0x59fdea[_0xbaf7('0x27')]=_['intersection'](_0xe811fb['model'],qs[_0xbaf7('0x28')](_0x59e8d8[_0xbaf7('0x22')][_0xbaf7('0x28')]));_0x59fdea['attributes']=_0x59fdea[_0xbaf7('0x27')][_0xbaf7('0x29')]?_0x59fdea['attributes']:_0xe811fb['model'];if(!_0x59e8d8[_0xbaf7('0x22')][_0xbaf7('0x2a')](_0xbaf7('0x2b'))){_0x59fdea[_0xbaf7('0x14')]=qs[_0xbaf7('0x14')](_0x59e8d8[_0xbaf7('0x22')][_0xbaf7('0x14')]);_0x59fdea[_0xbaf7('0x13')]=qs['offset'](_0x59e8d8[_0xbaf7('0x22')][_0xbaf7('0x13')]);}_0x59fdea[_0xbaf7('0x2c')]=qs[_0xbaf7('0x2d')](_0x59e8d8[_0xbaf7('0x22')]['sort']);_0x59fdea[_0xbaf7('0x2e')]=qs[_0xbaf7('0x24')](_[_0xbaf7('0x2f')](_0x59e8d8[_0xbaf7('0x22')],_0xe811fb[_0xbaf7('0x24')]),_0x35e980);if(_0x59e8d8[_0xbaf7('0x22')]['filter']){_0x59fdea['where']=_[_0xbaf7('0x30')](_0x59fdea[_0xbaf7('0x2e')],{'$or':_['map'](_0x35e980,function(_0x4b0cb3){if(_0x4b0cb3['type']!=='VIRTUAL'){var _0x3f83bb={};_0x3f83bb[_0x4b0cb3[_0xbaf7('0x1b')]]={'$like':'%'+_0x59e8d8[_0xbaf7('0x22')][_0xbaf7('0x31')]+'%'};return _0x3f83bb;}})});}_0x59fdea=_[_0xbaf7('0x30')]({},_0x59fdea,_0x59e8d8['options']);var _0x3f3091={'where':_0x59fdea[_0xbaf7('0x2e')]};return db[_0xbaf7('0x32')][_0xbaf7('0x33')](_0x3f3091)['then'](function(_0x575cc6){_0x567666[_0xbaf7('0x33')]=_0x575cc6;if(_0x59e8d8[_0xbaf7('0x22')][_0xbaf7('0x34')]){_0x59fdea[_0xbaf7('0x35')]=[{'all':!![]}];}return db['MailSubstatus'][_0xbaf7('0x36')](_0x59fdea);})[_0xbaf7('0x18')](function(_0x1cb6e4){_0x567666['rows']=_0x1cb6e4;return _0x567666;})[_0xbaf7('0x18')](respondWithFilteredResult(_0x3c78f2,_0x59fdea))[_0xbaf7('0x37')](handleError(_0x3c78f2,null));};exports[_0xbaf7('0x38')]=function(_0x368e24,_0x3dbff1){var _0x3b1b80={'raw':!![],'where':{'id':_0x368e24[_0xbaf7('0x39')]['id']}},_0x5d0934={};_0x5d0934['model']=_[_0xbaf7('0x23')](db[_0xbaf7('0x32')]['rawAttributes']);_0x5d0934[_0xbaf7('0x22')]=_['keys'](_0x368e24['query']);_0x5d0934[_0xbaf7('0x24')]=_['intersection'](_0x5d0934[_0xbaf7('0x26')],_0x5d0934['query']);_0x3b1b80[_0xbaf7('0x27')]=_[_0xbaf7('0x25')](_0x5d0934[_0xbaf7('0x26')],qs[_0xbaf7('0x28')](_0x368e24['query'][_0xbaf7('0x28')]));_0x3b1b80[_0xbaf7('0x27')]=_0x3b1b80[_0xbaf7('0x27')][_0xbaf7('0x29')]?_0x3b1b80[_0xbaf7('0x27')]:_0x5d0934['model'];if(_0x368e24[_0xbaf7('0x22')][_0xbaf7('0x34')]){_0x3b1b80[_0xbaf7('0x35')]=[{'all':!![]}];}_0x3b1b80=_[_0xbaf7('0x30')]({},_0x3b1b80,_0x368e24[_0xbaf7('0x3a')]);return db[_0xbaf7('0x32')]['find'](_0x3b1b80)[_0xbaf7('0x18')](handleEntityNotFound(_0x3dbff1,null))[_0xbaf7('0x18')](respondWithResult(_0x3dbff1,null))[_0xbaf7('0x37')](handleError(_0x3dbff1,null));};exports['create']=function(_0x56d226,_0x35be5a){return db['MailSubstatus'][_0xbaf7('0x3b')](_0x56d226[_0xbaf7('0x3c')],{})[_0xbaf7('0x18')](respondWithResult(_0x35be5a,0xc9))[_0xbaf7('0x37')](handleError(_0x35be5a,null));};exports[_0xbaf7('0x3d')]=function(_0x29704c,_0x15cbfe){if(_0x29704c[_0xbaf7('0x3c')]['id']){delete _0x29704c[_0xbaf7('0x3c')]['id'];}return db[_0xbaf7('0x32')][_0xbaf7('0x3e')]({'where':{'id':_0x29704c['params']['id']}})[_0xbaf7('0x18')](handleEntityNotFound(_0x15cbfe,null))[_0xbaf7('0x18')](saveUpdates(_0x29704c[_0xbaf7('0x3c')],null))[_0xbaf7('0x18')](respondWithResult(_0x15cbfe,null))[_0xbaf7('0x37')](handleError(_0x15cbfe,null));};exports['destroy']=function(_0x984b7e,_0x3525e7){return db[_0xbaf7('0x32')]['find']({'where':{'id':_0x984b7e['params']['id']}})['then'](handleEntityNotFound(_0x3525e7,null))[_0xbaf7('0x18')](removeEntity(_0x3525e7,null))[_0xbaf7('0x37')](handleError(_0x3525e7,null));};exports[_0xbaf7('0x3f')]=function(_0x5abd9f,_0x31377f){return db[_0xbaf7('0x32')][_0xbaf7('0x3f')]()[_0xbaf7('0x18')](respondWithResult(_0x31377f,null))[_0xbaf7('0x37')](handleError(_0x31377f,null));};
\ No newline at end of file
+var _0xc0c4=['error','stack','name','index','map','MailSubstatus','rawAttributes','fieldName','key','model','query','intersection','attributes','fields','length','hasOwnProperty','nolimit','sort','where','filters','filter','type','VIRTUAL','merge','options','then','includeAll','include','findAll','rows','catch','show','params','keys','find','create','body','describe','eml-format','rimraf','zip-dir','request-promise','moment','bluebird','mustache','util','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','undefined','count','offset','limit','Content-Range','apply','save','update','destroy'];(function(_0x1e0fee,_0x1edcf1){var _0x2fd7e3=function(_0x52555c){while(--_0x52555c){_0x1e0fee['push'](_0x1e0fee['shift']());}};_0x2fd7e3(++_0x1edcf1);}(_0xc0c4,0xc4));var _0x4c0c=function(_0x4bb166,_0x5339a3){_0x4bb166=_0x4bb166-0x0;var _0x5e7d2c=_0xc0c4[_0x4bb166];return _0x5e7d2c;};'use strict';var emlformat=require(_0x4c0c('0x0'));var rimraf=require(_0x4c0c('0x1'));var zipdir=require(_0x4c0c('0x2'));var jsonpatch=require('fast-json-patch');var rp=require(_0x4c0c('0x3'));var moment=require(_0x4c0c('0x4'));var BPromise=require(_0x4c0c('0x5'));var Mustache=require(_0x4c0c('0x6'));var util=require(_0x4c0c('0x7'));var path=require('path');var sox=require(_0x4c0c('0x8'));var csv=require(_0x4c0c('0x9'));var ejs=require(_0x4c0c('0xa'));var fs=require('fs');var fs_extra=require(_0x4c0c('0xb'));var _=require(_0x4c0c('0xc'));var squel=require(_0x4c0c('0xd'));var crypto=require(_0x4c0c('0xe'));var jsforce=require(_0x4c0c('0xf'));var deskjs=require(_0x4c0c('0x10'));var toCsv=require(_0x4c0c('0x9'));var querystring=require(_0x4c0c('0x11'));var Papa=require(_0x4c0c('0x12'));var Redis=require(_0x4c0c('0x13'));var authService=require(_0x4c0c('0x14'));var qs=require(_0x4c0c('0x15'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require(_0x4c0c('0x16'))(_0x4c0c('0x17'));var utils=require(_0x4c0c('0x18'));var config=require(_0x4c0c('0x19'));var licenseUtil=require(_0x4c0c('0x1a'));var db=require(_0x4c0c('0x1b'))['db'];function respondWithStatusCode(_0x4a608f,_0x314916){_0x314916=_0x314916||0xcc;return function(_0x35ff1f){if(_0x35ff1f){return _0x4a608f[_0x4c0c('0x1c')](_0x314916);}return _0x4a608f[_0x4c0c('0x1d')](_0x314916)[_0x4c0c('0x1e')]();};}function respondWithResult(_0x584cd8,_0x2bfaa8){_0x2bfaa8=_0x2bfaa8||0xc8;return function(_0x2821ad){if(_0x2821ad){return _0x584cd8['status'](_0x2bfaa8)[_0x4c0c('0x1f')](_0x2821ad);}};}function respondWithFilteredResult(_0x566624,_0x35254c){return function(_0x1fafcc){if(_0x1fafcc){var _0x6978d2=typeof _0x35254c['offset']===_0x4c0c('0x20')&&typeof _0x35254c['limit']===_0x4c0c('0x20');var _0x1a61a6=_0x1fafcc[_0x4c0c('0x21')];var _0x351612=_0x6978d2?0x0:_0x35254c[_0x4c0c('0x22')];var _0x536f88=_0x6978d2?_0x1fafcc[_0x4c0c('0x21')]:_0x35254c[_0x4c0c('0x22')]+_0x35254c[_0x4c0c('0x23')];var _0x173ece;if(_0x536f88>=_0x1a61a6){_0x536f88=_0x1a61a6;_0x173ece=0xc8;}else{_0x173ece=0xce;}_0x566624['status'](_0x173ece);return _0x566624['set'](_0x4c0c('0x24'),_0x351612+'-'+_0x536f88+'/'+_0x1a61a6)[_0x4c0c('0x1f')](_0x1fafcc);}return null;};}function patchUpdates(_0xf4f337){return function(_0x547067){try{jsonpatch[_0x4c0c('0x25')](_0x547067,_0xf4f337,!![]);}catch(_0x12bfc9){return BPromise['reject'](_0x12bfc9);}return _0x547067[_0x4c0c('0x26')]();};}function saveUpdates(_0x114766,_0x11ba72){return function(_0x21eb73){if(_0x21eb73){return _0x21eb73[_0x4c0c('0x27')](_0x114766)['then'](function(_0x43dff2){return _0x43dff2;});}return null;};}function removeEntity(_0x27a513,_0x1d97b8){return function(_0x4bd975){if(_0x4bd975){return _0x4bd975[_0x4c0c('0x28')]()['then'](function(){_0x27a513[_0x4c0c('0x1d')](0xcc)[_0x4c0c('0x1e')]();});}};}function handleEntityNotFound(_0x8ae00b,_0xd3f11c){return function(_0x34529d){if(!_0x34529d){_0x8ae00b['sendStatus'](0x194);}return _0x34529d;};}function handleError(_0x330d9f,_0x56557d){_0x56557d=_0x56557d||0x1f4;return function(_0x282242){logger[_0x4c0c('0x29')](_0x282242[_0x4c0c('0x2a')]);if(_0x282242[_0x4c0c('0x2b')]){delete _0x282242[_0x4c0c('0x2b')];}_0x330d9f['status'](_0x56557d)['send'](_0x282242);};}exports[_0x4c0c('0x2c')]=function(_0x280741,_0xf75b89){var _0x545e25={},_0x313df7={},_0x154e45={'count':0x0,'rows':[]};var _0x822808=_[_0x4c0c('0x2d')](db[_0x4c0c('0x2e')][_0x4c0c('0x2f')],function(_0x11059c){return{'name':_0x11059c[_0x4c0c('0x30')],'type':_0x11059c['type'][_0x4c0c('0x31')]};});_0x313df7[_0x4c0c('0x32')]=_[_0x4c0c('0x2d')](_0x822808,_0x4c0c('0x2b'));_0x313df7[_0x4c0c('0x33')]=_['keys'](_0x280741[_0x4c0c('0x33')]);_0x313df7['filters']=_[_0x4c0c('0x34')](_0x313df7[_0x4c0c('0x32')],_0x313df7[_0x4c0c('0x33')]);_0x545e25[_0x4c0c('0x35')]=_[_0x4c0c('0x34')](_0x313df7[_0x4c0c('0x32')],qs['fields'](_0x280741['query'][_0x4c0c('0x36')]));_0x545e25[_0x4c0c('0x35')]=_0x545e25[_0x4c0c('0x35')][_0x4c0c('0x37')]?_0x545e25['attributes']:_0x313df7[_0x4c0c('0x32')];if(!_0x280741['query'][_0x4c0c('0x38')](_0x4c0c('0x39'))){_0x545e25['limit']=qs[_0x4c0c('0x23')](_0x280741['query']['limit']);_0x545e25[_0x4c0c('0x22')]=qs['offset'](_0x280741[_0x4c0c('0x33')][_0x4c0c('0x22')]);}_0x545e25['order']=qs[_0x4c0c('0x3a')](_0x280741[_0x4c0c('0x33')][_0x4c0c('0x3a')]);_0x545e25[_0x4c0c('0x3b')]=qs[_0x4c0c('0x3c')](_['pick'](_0x280741['query'],_0x313df7[_0x4c0c('0x3c')]),_0x822808);if(_0x280741[_0x4c0c('0x33')][_0x4c0c('0x3d')]){_0x545e25[_0x4c0c('0x3b')]=_['merge'](_0x545e25['where'],{'$or':_[_0x4c0c('0x2d')](_0x822808,function(_0x30627a){if(_0x30627a[_0x4c0c('0x3e')]!==_0x4c0c('0x3f')){var _0x57563a={};_0x57563a[_0x30627a[_0x4c0c('0x2b')]]={'$like':'%'+_0x280741[_0x4c0c('0x33')]['filter']+'%'};return _0x57563a;}})});}_0x545e25=_[_0x4c0c('0x40')]({},_0x545e25,_0x280741[_0x4c0c('0x41')]);var _0x15549a={'where':_0x545e25[_0x4c0c('0x3b')]};return db[_0x4c0c('0x2e')][_0x4c0c('0x21')](_0x15549a)[_0x4c0c('0x42')](function(_0x154894){_0x154e45[_0x4c0c('0x21')]=_0x154894;if(_0x280741[_0x4c0c('0x33')][_0x4c0c('0x43')]){_0x545e25[_0x4c0c('0x44')]=[{'all':!![]}];}return db[_0x4c0c('0x2e')][_0x4c0c('0x45')](_0x545e25);})['then'](function(_0x371ee8){_0x154e45[_0x4c0c('0x46')]=_0x371ee8;return _0x154e45;})[_0x4c0c('0x42')](respondWithFilteredResult(_0xf75b89,_0x545e25))[_0x4c0c('0x47')](handleError(_0xf75b89,null));};exports[_0x4c0c('0x48')]=function(_0xb97db0,_0x1a8c93){var _0xfa64ac={'raw':!![],'where':{'id':_0xb97db0[_0x4c0c('0x49')]['id']}},_0x40028f={};_0x40028f[_0x4c0c('0x32')]=_[_0x4c0c('0x4a')](db[_0x4c0c('0x2e')][_0x4c0c('0x2f')]);_0x40028f[_0x4c0c('0x33')]=_[_0x4c0c('0x4a')](_0xb97db0[_0x4c0c('0x33')]);_0x40028f[_0x4c0c('0x3c')]=_[_0x4c0c('0x34')](_0x40028f['model'],_0x40028f[_0x4c0c('0x33')]);_0xfa64ac[_0x4c0c('0x35')]=_[_0x4c0c('0x34')](_0x40028f[_0x4c0c('0x32')],qs[_0x4c0c('0x36')](_0xb97db0[_0x4c0c('0x33')][_0x4c0c('0x36')]));_0xfa64ac[_0x4c0c('0x35')]=_0xfa64ac[_0x4c0c('0x35')][_0x4c0c('0x37')]?_0xfa64ac['attributes']:_0x40028f['model'];if(_0xb97db0['query'][_0x4c0c('0x43')]){_0xfa64ac[_0x4c0c('0x44')]=[{'all':!![]}];}_0xfa64ac=_[_0x4c0c('0x40')]({},_0xfa64ac,_0xb97db0['options']);return db[_0x4c0c('0x2e')][_0x4c0c('0x4b')](_0xfa64ac)['then'](handleEntityNotFound(_0x1a8c93,null))['then'](respondWithResult(_0x1a8c93,null))[_0x4c0c('0x47')](handleError(_0x1a8c93,null));};exports['create']=function(_0x214501,_0x514364){return db[_0x4c0c('0x2e')][_0x4c0c('0x4c')](_0x214501['body'],{})['then'](respondWithResult(_0x514364,0xc9))[_0x4c0c('0x47')](handleError(_0x514364,null));};exports[_0x4c0c('0x27')]=function(_0x21b53b,_0x35d2bb){if(_0x21b53b['body']['id']){delete _0x21b53b[_0x4c0c('0x4d')]['id'];}return db['MailSubstatus'][_0x4c0c('0x4b')]({'where':{'id':_0x21b53b[_0x4c0c('0x49')]['id']}})[_0x4c0c('0x42')](handleEntityNotFound(_0x35d2bb,null))[_0x4c0c('0x42')](saveUpdates(_0x21b53b[_0x4c0c('0x4d')],null))[_0x4c0c('0x42')](respondWithResult(_0x35d2bb,null))[_0x4c0c('0x47')](handleError(_0x35d2bb,null));};exports[_0x4c0c('0x28')]=function(_0x35c999,_0x155566){return db[_0x4c0c('0x2e')][_0x4c0c('0x4b')]({'where':{'id':_0x35c999['params']['id']}})[_0x4c0c('0x42')](handleEntityNotFound(_0x155566,null))[_0x4c0c('0x42')](removeEntity(_0x155566,null))[_0x4c0c('0x47')](handleError(_0x155566,null));};exports['describe']=function(_0x2cba05,_0x30f779){return db[_0x4c0c('0x2e')][_0x4c0c('0x4e')]()[_0x4c0c('0x42')](respondWithResult(_0x30f779,null))[_0x4c0c('0x47')](handleError(_0x30f779,null));};
\ No newline at end of file