Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / mailSubstatus / mailSubstatus.controller.js
index d4b8da2..ffec0b1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf817=['ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../config/license/util','../../mysqldb','sendStatus','status','json','undefined','limit','offset','count','Content-Range','apply','reject','save','update','then','destroy','end','stack','name','send','map','MailSubstatus','rawAttributes','fieldName','type','model','query','filters','intersection','fields','attributes','length','nolimit','order','sort','filter','VIRTUAL','merge','options','where','includeAll','include','rows','show','keys','catch','create','body','params','find','describe','eml-format','zip-dir','fast-json-patch','request-promise','moment','mustache','util','sox','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse'];(function(_0x18a79d,_0x57bd2c){var _0x4f8848=function(_0x28af80){while(--_0x28af80){_0x18a79d['push'](_0x18a79d['shift']());}};_0x4f8848(++_0x57bd2c);}(_0xf817,0x161));var _0x7f81=function(_0x22bad0,_0x5c8d63){_0x22bad0=_0x22bad0-0x0;var _0x305748=_0xf817[_0x22bad0];return _0x305748;};'use strict';var emlformat=require(_0x7f81('0x0'));var rimraf=require('rimraf');var zipdir=require(_0x7f81('0x1'));var jsonpatch=require(_0x7f81('0x2'));var rp=require(_0x7f81('0x3'));var moment=require(_0x7f81('0x4'));var BPromise=require('bluebird');var Mustache=require(_0x7f81('0x5'));var util=require(_0x7f81('0x6'));var path=require('path');var sox=require(_0x7f81('0x7'));var csv=require('to-csv');var ejs=require(_0x7f81('0x8'));var fs=require('fs');var fs_extra=require(_0x7f81('0x9'));var _=require(_0x7f81('0xa'));var squel=require(_0x7f81('0xb'));var crypto=require(_0x7f81('0xc'));var jsforce=require(_0x7f81('0xd'));var deskjs=require(_0x7f81('0xe'));var toCsv=require('to-csv');var querystring=require(_0x7f81('0xf'));var Papa=require(_0x7f81('0x10'));var Redis=require(_0x7f81('0x11'));var authService=require(_0x7f81('0x12'));var qs=require('../../components/parsers/qs');var as=require(_0x7f81('0x13'));var hardwareService=require(_0x7f81('0x14'));var logger=require(_0x7f81('0x15'))('api');var utils=require(_0x7f81('0x16'));var config=require('../../config/environment');var licenseUtil=require(_0x7f81('0x17'));var db=require(_0x7f81('0x18'))['db'];function respondWithStatusCode(_0x257839,_0x34abce){_0x34abce=_0x34abce||0xcc;return function(_0x3030c2){if(_0x3030c2){return _0x257839[_0x7f81('0x19')](_0x34abce);}return _0x257839[_0x7f81('0x1a')](_0x34abce)['end']();};}function respondWithResult(_0x228954,_0x414c50){_0x414c50=_0x414c50||0xc8;return function(_0x54391e){if(_0x54391e){return _0x228954[_0x7f81('0x1a')](_0x414c50)[_0x7f81('0x1b')](_0x54391e);}};}function respondWithFilteredResult(_0x370309,_0x599c2a){return function(_0x371c27){if(_0x371c27){var _0x1f6d42=typeof _0x599c2a['offset']===_0x7f81('0x1c')&&typeof _0x599c2a[_0x7f81('0x1d')]==='undefined';var _0x1f6886=_0x371c27['count'];var _0x5b3deb=_0x1f6d42?0x0:_0x599c2a[_0x7f81('0x1e')];var _0x70b6e0=_0x1f6d42?_0x371c27[_0x7f81('0x1f')]:_0x599c2a[_0x7f81('0x1e')]+_0x599c2a[_0x7f81('0x1d')];var _0x59de17;if(_0x70b6e0>=_0x1f6886){_0x70b6e0=_0x1f6886;_0x59de17=0xc8;}else{_0x59de17=0xce;}_0x370309[_0x7f81('0x1a')](_0x59de17);return _0x370309['set'](_0x7f81('0x20'),_0x5b3deb+'-'+_0x70b6e0+'/'+_0x1f6886)['json'](_0x371c27);}return null;};}function patchUpdates(_0x327374){return function(_0x2b0119){try{jsonpatch[_0x7f81('0x21')](_0x2b0119,_0x327374,!![]);}catch(_0x1b0fc0){return BPromise[_0x7f81('0x22')](_0x1b0fc0);}return _0x2b0119[_0x7f81('0x23')]();};}function saveUpdates(_0x5110d7,_0x47afb5){return function(_0x64880f){if(_0x64880f){return _0x64880f[_0x7f81('0x24')](_0x5110d7)[_0x7f81('0x25')](function(_0x3b0154){return _0x3b0154;});}return null;};}function removeEntity(_0x3790ad,_0x6cdaac){return function(_0x3f268f){if(_0x3f268f){return _0x3f268f[_0x7f81('0x26')]()[_0x7f81('0x25')](function(){_0x3790ad[_0x7f81('0x1a')](0xcc)[_0x7f81('0x27')]();});}};}function handleEntityNotFound(_0x24d1c7,_0x36d826){return function(_0x309b67){if(!_0x309b67){_0x24d1c7[_0x7f81('0x19')](0x194);}return _0x309b67;};}function handleError(_0x515c99,_0x5d95bd){_0x5d95bd=_0x5d95bd||0x1f4;return function(_0x1eb9f6){logger['error'](_0x1eb9f6[_0x7f81('0x28')]);if(_0x1eb9f6[_0x7f81('0x29')]){delete _0x1eb9f6[_0x7f81('0x29')];}_0x515c99['status'](_0x5d95bd)[_0x7f81('0x2a')](_0x1eb9f6);};}exports['index']=function(_0x31dda0,_0x25d2aa){var _0x22712a={},_0x6732a4={},_0x2f7266={'count':0x0,'rows':[]};var _0x4139c4=_[_0x7f81('0x2b')](db[_0x7f81('0x2c')][_0x7f81('0x2d')],function(_0x32d8ee){return{'name':_0x32d8ee[_0x7f81('0x2e')],'type':_0x32d8ee[_0x7f81('0x2f')]['key']};});_0x6732a4[_0x7f81('0x30')]=_[_0x7f81('0x2b')](_0x4139c4,_0x7f81('0x29'));_0x6732a4[_0x7f81('0x31')]=_['keys'](_0x31dda0['query']);_0x6732a4[_0x7f81('0x32')]=_[_0x7f81('0x33')](_0x6732a4['model'],_0x6732a4[_0x7f81('0x31')]);_0x22712a['attributes']=_[_0x7f81('0x33')](_0x6732a4[_0x7f81('0x30')],qs[_0x7f81('0x34')](_0x31dda0[_0x7f81('0x31')][_0x7f81('0x34')]));_0x22712a[_0x7f81('0x35')]=_0x22712a['attributes'][_0x7f81('0x36')]?_0x22712a[_0x7f81('0x35')]:_0x6732a4['model'];if(!_0x31dda0[_0x7f81('0x31')]['hasOwnProperty'](_0x7f81('0x37'))){_0x22712a['limit']=qs['limit'](_0x31dda0[_0x7f81('0x31')][_0x7f81('0x1d')]);_0x22712a[_0x7f81('0x1e')]=qs[_0x7f81('0x1e')](_0x31dda0[_0x7f81('0x31')][_0x7f81('0x1e')]);}_0x22712a[_0x7f81('0x38')]=qs[_0x7f81('0x39')](_0x31dda0[_0x7f81('0x31')][_0x7f81('0x39')]);_0x22712a['where']=qs['filters'](_['pick'](_0x31dda0[_0x7f81('0x31')],_0x6732a4['filters']),_0x4139c4);if(_0x31dda0[_0x7f81('0x31')][_0x7f81('0x3a')]){_0x22712a['where']=_['merge'](_0x22712a['where'],{'$or':_[_0x7f81('0x2b')](_0x4139c4,function(_0x4ea8de){if(_0x4ea8de['type']!==_0x7f81('0x3b')){var _0x9e9ab9={};_0x9e9ab9[_0x4ea8de['name']]={'$like':'%'+_0x31dda0['query'][_0x7f81('0x3a')]+'%'};return _0x9e9ab9;}})});}_0x22712a=_[_0x7f81('0x3c')]({},_0x22712a,_0x31dda0[_0x7f81('0x3d')]);var _0x3922be={'where':_0x22712a[_0x7f81('0x3e')]};return db[_0x7f81('0x2c')][_0x7f81('0x1f')](_0x3922be)[_0x7f81('0x25')](function(_0x2c1708){_0x2f7266[_0x7f81('0x1f')]=_0x2c1708;if(_0x31dda0[_0x7f81('0x31')][_0x7f81('0x3f')]){_0x22712a[_0x7f81('0x40')]=[{'all':!![]}];}return db['MailSubstatus']['findAll'](_0x22712a);})[_0x7f81('0x25')](function(_0x374211){_0x2f7266[_0x7f81('0x41')]=_0x374211;return _0x2f7266;})[_0x7f81('0x25')](respondWithFilteredResult(_0x25d2aa,_0x22712a))['catch'](handleError(_0x25d2aa,null));};exports[_0x7f81('0x42')]=function(_0x244156,_0x321640){var _0x5b4de1={'raw':!![],'where':{'id':_0x244156['params']['id']}},_0x979737={};_0x979737[_0x7f81('0x30')]=_['keys'](db['MailSubstatus'][_0x7f81('0x2d')]);_0x979737['query']=_[_0x7f81('0x43')](_0x244156[_0x7f81('0x31')]);_0x979737['filters']=_[_0x7f81('0x33')](_0x979737['model'],_0x979737[_0x7f81('0x31')]);_0x5b4de1[_0x7f81('0x35')]=_[_0x7f81('0x33')](_0x979737[_0x7f81('0x30')],qs[_0x7f81('0x34')](_0x244156[_0x7f81('0x31')][_0x7f81('0x34')]));_0x5b4de1[_0x7f81('0x35')]=_0x5b4de1[_0x7f81('0x35')][_0x7f81('0x36')]?_0x5b4de1['attributes']:_0x979737[_0x7f81('0x30')];if(_0x244156[_0x7f81('0x31')][_0x7f81('0x3f')]){_0x5b4de1['include']=[{'all':!![]}];}_0x5b4de1=_[_0x7f81('0x3c')]({},_0x5b4de1,_0x244156['options']);return db[_0x7f81('0x2c')]['find'](_0x5b4de1)[_0x7f81('0x25')](handleEntityNotFound(_0x321640,null))[_0x7f81('0x25')](respondWithResult(_0x321640,null))[_0x7f81('0x44')](handleError(_0x321640,null));};exports[_0x7f81('0x45')]=function(_0xf4236,_0x501fcd){return db[_0x7f81('0x2c')][_0x7f81('0x45')](_0xf4236[_0x7f81('0x46')],{})[_0x7f81('0x25')](respondWithResult(_0x501fcd,0xc9))[_0x7f81('0x44')](handleError(_0x501fcd,null));};exports[_0x7f81('0x24')]=function(_0x3a0b4c,_0x5a6a48){if(_0x3a0b4c[_0x7f81('0x46')]['id']){delete _0x3a0b4c['body']['id'];}return db[_0x7f81('0x2c')]['find']({'where':{'id':_0x3a0b4c[_0x7f81('0x47')]['id']}})['then'](handleEntityNotFound(_0x5a6a48,null))[_0x7f81('0x25')](saveUpdates(_0x3a0b4c[_0x7f81('0x46')],null))['then'](respondWithResult(_0x5a6a48,null))[_0x7f81('0x44')](handleError(_0x5a6a48,null));};exports['destroy']=function(_0xd74bb2,_0x33a8ec){return db[_0x7f81('0x2c')][_0x7f81('0x48')]({'where':{'id':_0xd74bb2[_0x7f81('0x47')]['id']}})['then'](handleEntityNotFound(_0x33a8ec,null))[_0x7f81('0x25')](removeEntity(_0x33a8ec,null))[_0x7f81('0x44')](handleError(_0x33a8ec,null));};exports[_0x7f81('0x49')]=function(_0x4b4e59,_0x1cb2e3){return db['MailSubstatus'][_0x7f81('0x49')]()['then'](respondWithResult(_0x1cb2e3,null))[_0x7f81('0x44')](handleError(_0x1cb2e3,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