Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / mailSubstatus / mailSubstatus.controller.js
index 0f4cce2..821cc50 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc292=['catch','show','rawAttributes','length','find','create','body','params','describe','eml-format','rimraf','zip-dir','fast-json-patch','moment','mustache','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','ioredis','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','undefined','limit','offset','set','Content-Range','apply','reject','then','destroy','error','stack','name','send','map','MailSubstatus','fieldName','type','key','keys','query','filters','intersection','model','attributes','fields','hasOwnProperty','sort','where','pick','filter','merge','VIRTUAL','count','includeAll','include','rows'];(function(_0x2b4411,_0x2625ed){var _0x8e41ef=function(_0x2aa8c1){while(--_0x2aa8c1){_0x2b4411['push'](_0x2b4411['shift']());}};_0x8e41ef(++_0x2625ed);}(_0xc292,0xe7));var _0x2c29=function(_0x2afbb0,_0x44f16d){_0x2afbb0=_0x2afbb0-0x0;var _0x411ff2=_0xc292[_0x2afbb0];return _0x411ff2;};'use strict';var emlformat=require(_0x2c29('0x0'));var rimraf=require(_0x2c29('0x1'));var zipdir=require(_0x2c29('0x2'));var jsonpatch=require(_0x2c29('0x3'));var rp=require('request-promise');var moment=require(_0x2c29('0x4'));var BPromise=require('bluebird');var Mustache=require(_0x2c29('0x5'));var util=require(_0x2c29('0x6'));var path=require(_0x2c29('0x7'));var sox=require(_0x2c29('0x8'));var csv=require(_0x2c29('0x9'));var ejs=require(_0x2c29('0xa'));var fs=require('fs');var fs_extra=require(_0x2c29('0xb'));var _=require(_0x2c29('0xc'));var squel=require(_0x2c29('0xd'));var crypto=require(_0x2c29('0xe'));var jsforce=require(_0x2c29('0xf'));var deskjs=require('desk.js');var toCsv=require(_0x2c29('0x9'));var querystring=require('querystring');var Papa=require('papaparse');var Redis=require(_0x2c29('0x10'));var authService=require('../../components/auth/service');var qs=require('../../components/parsers/qs');var as=require(_0x2c29('0x11'));var hardwareService=require(_0x2c29('0x12'));var logger=require(_0x2c29('0x13'))(_0x2c29('0x14'));var utils=require(_0x2c29('0x15'));var config=require(_0x2c29('0x16'));var licenseUtil=require(_0x2c29('0x17'));var db=require(_0x2c29('0x18'))['db'];function respondWithStatusCode(_0x55ecf2,_0x583b5c){_0x583b5c=_0x583b5c||0xcc;return function(_0x573d02){if(_0x573d02){return _0x55ecf2[_0x2c29('0x19')](_0x583b5c);}return _0x55ecf2[_0x2c29('0x1a')](_0x583b5c)[_0x2c29('0x1b')]();};}function respondWithResult(_0x104c4f,_0x4ed714){_0x4ed714=_0x4ed714||0xc8;return function(_0x3d0a6f){if(_0x3d0a6f){return _0x104c4f['status'](_0x4ed714)[_0x2c29('0x1c')](_0x3d0a6f);}};}function respondWithFilteredResult(_0x197f46,_0xe0e795){return function(_0x92e51){if(_0x92e51){var _0x40c916=typeof _0xe0e795['offset']===_0x2c29('0x1d')&&typeof _0xe0e795[_0x2c29('0x1e')]===_0x2c29('0x1d');var _0x304225=_0x92e51['count'];var _0x3f5709=_0x40c916?0x0:_0xe0e795['offset'];var _0x408cdc=_0x40c916?_0x92e51['count']:_0xe0e795[_0x2c29('0x1f')]+_0xe0e795[_0x2c29('0x1e')];var _0x2d2467;if(_0x408cdc>=_0x304225){_0x408cdc=_0x304225;_0x2d2467=0xc8;}else{_0x2d2467=0xce;}_0x197f46[_0x2c29('0x1a')](_0x2d2467);return _0x197f46[_0x2c29('0x20')](_0x2c29('0x21'),_0x3f5709+'-'+_0x408cdc+'/'+_0x304225)[_0x2c29('0x1c')](_0x92e51);}return null;};}function patchUpdates(_0x34afe2){return function(_0x4ebee8){try{jsonpatch[_0x2c29('0x22')](_0x4ebee8,_0x34afe2,!![]);}catch(_0x2d1f11){return BPromise[_0x2c29('0x23')](_0x2d1f11);}return _0x4ebee8['save']();};}function saveUpdates(_0x427f3d,_0x54c2da){return function(_0x385139){if(_0x385139){return _0x385139['update'](_0x427f3d)[_0x2c29('0x24')](function(_0x567c28){return _0x567c28;});}return null;};}function removeEntity(_0x5e048b,_0x3d85b0){return function(_0x2c9732){if(_0x2c9732){return _0x2c9732[_0x2c29('0x25')]()['then'](function(){_0x5e048b[_0x2c29('0x1a')](0xcc)[_0x2c29('0x1b')]();});}};}function handleEntityNotFound(_0x438297,_0x5f12c1){return function(_0x585526){if(!_0x585526){_0x438297['sendStatus'](0x194);}return _0x585526;};}function handleError(_0x2393c6,_0x35ec36){_0x35ec36=_0x35ec36||0x1f4;return function(_0x970614){logger[_0x2c29('0x26')](_0x970614[_0x2c29('0x27')]);if(_0x970614['name']){delete _0x970614[_0x2c29('0x28')];}_0x2393c6[_0x2c29('0x1a')](_0x35ec36)[_0x2c29('0x29')](_0x970614);};}exports['index']=function(_0x3f797e,_0x1916a1){var _0x1cc8ec={},_0x3ab66d={},_0x482aba={'count':0x0,'rows':[]};var _0x390d26=_[_0x2c29('0x2a')](db[_0x2c29('0x2b')]['rawAttributes'],function(_0x4d5c07){return{'name':_0x4d5c07[_0x2c29('0x2c')],'type':_0x4d5c07[_0x2c29('0x2d')][_0x2c29('0x2e')]};});_0x3ab66d['model']=_['map'](_0x390d26,'name');_0x3ab66d['query']=_[_0x2c29('0x2f')](_0x3f797e[_0x2c29('0x30')]);_0x3ab66d[_0x2c29('0x31')]=_[_0x2c29('0x32')](_0x3ab66d[_0x2c29('0x33')],_0x3ab66d[_0x2c29('0x30')]);_0x1cc8ec[_0x2c29('0x34')]=_['intersection'](_0x3ab66d[_0x2c29('0x33')],qs['fields'](_0x3f797e[_0x2c29('0x30')][_0x2c29('0x35')]));_0x1cc8ec[_0x2c29('0x34')]=_0x1cc8ec[_0x2c29('0x34')]['length']?_0x1cc8ec[_0x2c29('0x34')]:_0x3ab66d[_0x2c29('0x33')];if(!_0x3f797e['query'][_0x2c29('0x36')]('nolimit')){_0x1cc8ec[_0x2c29('0x1e')]=qs[_0x2c29('0x1e')](_0x3f797e[_0x2c29('0x30')][_0x2c29('0x1e')]);_0x1cc8ec[_0x2c29('0x1f')]=qs[_0x2c29('0x1f')](_0x3f797e[_0x2c29('0x30')][_0x2c29('0x1f')]);}_0x1cc8ec['order']=qs[_0x2c29('0x37')](_0x3f797e['query'][_0x2c29('0x37')]);_0x1cc8ec[_0x2c29('0x38')]=qs[_0x2c29('0x31')](_[_0x2c29('0x39')](_0x3f797e['query'],_0x3ab66d['filters']),_0x390d26);if(_0x3f797e[_0x2c29('0x30')][_0x2c29('0x3a')]){_0x1cc8ec[_0x2c29('0x38')]=_[_0x2c29('0x3b')](_0x1cc8ec[_0x2c29('0x38')],{'$or':_['map'](_0x390d26,function(_0xedb82){if(_0xedb82['type']!==_0x2c29('0x3c')){var _0x4ab2c6={};_0x4ab2c6[_0xedb82[_0x2c29('0x28')]]={'$like':'%'+_0x3f797e[_0x2c29('0x30')][_0x2c29('0x3a')]+'%'};return _0x4ab2c6;}})});}_0x1cc8ec=_[_0x2c29('0x3b')]({},_0x1cc8ec,_0x3f797e['options']);var _0x1db290={'where':_0x1cc8ec[_0x2c29('0x38')]};return db[_0x2c29('0x2b')][_0x2c29('0x3d')](_0x1db290)[_0x2c29('0x24')](function(_0xb4b567){_0x482aba[_0x2c29('0x3d')]=_0xb4b567;if(_0x3f797e[_0x2c29('0x30')][_0x2c29('0x3e')]){_0x1cc8ec[_0x2c29('0x3f')]=[{'all':!![]}];}return db[_0x2c29('0x2b')]['findAll'](_0x1cc8ec);})[_0x2c29('0x24')](function(_0x632fbd){_0x482aba[_0x2c29('0x40')]=_0x632fbd;return _0x482aba;})[_0x2c29('0x24')](respondWithFilteredResult(_0x1916a1,_0x1cc8ec))[_0x2c29('0x41')](handleError(_0x1916a1,null));};exports[_0x2c29('0x42')]=function(_0x41f7e8,_0x5c3c96){var _0x5074ee={'raw':!![],'where':{'id':_0x41f7e8['params']['id']}},_0x271b70={};_0x271b70[_0x2c29('0x33')]=_[_0x2c29('0x2f')](db[_0x2c29('0x2b')][_0x2c29('0x43')]);_0x271b70[_0x2c29('0x30')]=_[_0x2c29('0x2f')](_0x41f7e8[_0x2c29('0x30')]);_0x271b70['filters']=_['intersection'](_0x271b70[_0x2c29('0x33')],_0x271b70[_0x2c29('0x30')]);_0x5074ee[_0x2c29('0x34')]=_[_0x2c29('0x32')](_0x271b70[_0x2c29('0x33')],qs[_0x2c29('0x35')](_0x41f7e8[_0x2c29('0x30')][_0x2c29('0x35')]));_0x5074ee[_0x2c29('0x34')]=_0x5074ee[_0x2c29('0x34')][_0x2c29('0x44')]?_0x5074ee[_0x2c29('0x34')]:_0x271b70[_0x2c29('0x33')];if(_0x41f7e8[_0x2c29('0x30')][_0x2c29('0x3e')]){_0x5074ee[_0x2c29('0x3f')]=[{'all':!![]}];}_0x5074ee=_[_0x2c29('0x3b')]({},_0x5074ee,_0x41f7e8['options']);return db[_0x2c29('0x2b')][_0x2c29('0x45')](_0x5074ee)[_0x2c29('0x24')](handleEntityNotFound(_0x5c3c96,null))[_0x2c29('0x24')](respondWithResult(_0x5c3c96,null))[_0x2c29('0x41')](handleError(_0x5c3c96,null));};exports[_0x2c29('0x46')]=function(_0x152029,_0x5025a2){return db[_0x2c29('0x2b')][_0x2c29('0x46')](_0x152029[_0x2c29('0x47')],{})[_0x2c29('0x24')](respondWithResult(_0x5025a2,0xc9))[_0x2c29('0x41')](handleError(_0x5025a2,null));};exports['update']=function(_0xaba56a,_0x27980d){if(_0xaba56a[_0x2c29('0x47')]['id']){delete _0xaba56a[_0x2c29('0x47')]['id'];}return db[_0x2c29('0x2b')][_0x2c29('0x45')]({'where':{'id':_0xaba56a[_0x2c29('0x48')]['id']}})[_0x2c29('0x24')](handleEntityNotFound(_0x27980d,null))[_0x2c29('0x24')](saveUpdates(_0xaba56a[_0x2c29('0x47')],null))['then'](respondWithResult(_0x27980d,null))[_0x2c29('0x41')](handleError(_0x27980d,null));};exports[_0x2c29('0x25')]=function(_0x239418,_0x44a405){return db[_0x2c29('0x2b')]['find']({'where':{'id':_0x239418[_0x2c29('0x48')]['id']}})[_0x2c29('0x24')](handleEntityNotFound(_0x44a405,null))[_0x2c29('0x24')](removeEntity(_0x44a405,null))[_0x2c29('0x41')](handleError(_0x44a405,null));};exports[_0x2c29('0x49')]=function(_0x566349,_0x38da26){return db[_0x2c29('0x2b')][_0x2c29('0x49')]()[_0x2c29('0x24')](respondWithResult(_0x38da26,null))[_0x2c29('0x41')](handleError(_0x38da26,null));};
\ No newline at end of file
+var _0xb544=['name','index','map','MailSubstatus','rawAttributes','fieldName','key','query','keys','filters','intersection','attributes','model','fields','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','type','VIRTUAL','options','includeAll','include','findAll','catch','show','find','create','body','params','describe','eml-format','zip-dir','fast-json-patch','request-promise','moment','bluebird','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','jsforce','desk.js','querystring','papaparse','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','undefined','count','limit','set','Content-Range','reject','update','then','destroy','stack'];(function(_0x3f7f35,_0x42032a){var _0x1ae7e0=function(_0xc7bbcb){while(--_0xc7bbcb){_0x3f7f35['push'](_0x3f7f35['shift']());}};_0x1ae7e0(++_0x42032a);}(_0xb544,0x1af));var _0x4b54=function(_0x1b2ff7,_0x12a034){_0x1b2ff7=_0x1b2ff7-0x0;var _0x31656a=_0xb544[_0x1b2ff7];return _0x31656a;};'use strict';var emlformat=require(_0x4b54('0x0'));var rimraf=require('rimraf');var zipdir=require(_0x4b54('0x1'));var jsonpatch=require(_0x4b54('0x2'));var rp=require(_0x4b54('0x3'));var moment=require(_0x4b54('0x4'));var BPromise=require(_0x4b54('0x5'));var Mustache=require('mustache');var util=require(_0x4b54('0x6'));var path=require(_0x4b54('0x7'));var sox=require(_0x4b54('0x8'));var csv=require(_0x4b54('0x9'));var ejs=require(_0x4b54('0xa'));var fs=require('fs');var fs_extra=require(_0x4b54('0xb'));var _=require(_0x4b54('0xc'));var squel=require(_0x4b54('0xd'));var crypto=require('crypto');var jsforce=require(_0x4b54('0xe'));var deskjs=require(_0x4b54('0xf'));var toCsv=require('to-csv');var querystring=require(_0x4b54('0x10'));var Papa=require(_0x4b54('0x11'));var Redis=require(_0x4b54('0x12'));var authService=require('../../components/auth/service');var qs=require(_0x4b54('0x13'));var as=require(_0x4b54('0x14'));var hardwareService=require(_0x4b54('0x15'));var logger=require(_0x4b54('0x16'))(_0x4b54('0x17'));var utils=require(_0x4b54('0x18'));var config=require(_0x4b54('0x19'));var licenseUtil=require(_0x4b54('0x1a'));var db=require(_0x4b54('0x1b'))['db'];function respondWithStatusCode(_0xc6bd13,_0x29bf96){_0x29bf96=_0x29bf96||0xcc;return function(_0xea2eee){if(_0xea2eee){return _0xc6bd13[_0x4b54('0x1c')](_0x29bf96);}return _0xc6bd13[_0x4b54('0x1d')](_0x29bf96)[_0x4b54('0x1e')]();};}function respondWithResult(_0x1663ba,_0x474bd2){_0x474bd2=_0x474bd2||0xc8;return function(_0x2e1b94){if(_0x2e1b94){return _0x1663ba[_0x4b54('0x1d')](_0x474bd2)[_0x4b54('0x1f')](_0x2e1b94);}};}function respondWithFilteredResult(_0x325f6b,_0x197447){return function(_0x5c3743){if(_0x5c3743){var _0x182d26=typeof _0x197447[_0x4b54('0x20')]===_0x4b54('0x21')&&typeof _0x197447['limit']===_0x4b54('0x21');var _0x5656af=_0x5c3743[_0x4b54('0x22')];var _0x52f3e5=_0x182d26?0x0:_0x197447['offset'];var _0x58b565=_0x182d26?_0x5c3743[_0x4b54('0x22')]:_0x197447[_0x4b54('0x20')]+_0x197447[_0x4b54('0x23')];var _0x5c0323;if(_0x58b565>=_0x5656af){_0x58b565=_0x5656af;_0x5c0323=0xc8;}else{_0x5c0323=0xce;}_0x325f6b[_0x4b54('0x1d')](_0x5c0323);return _0x325f6b[_0x4b54('0x24')](_0x4b54('0x25'),_0x52f3e5+'-'+_0x58b565+'/'+_0x5656af)[_0x4b54('0x1f')](_0x5c3743);}return null;};}function patchUpdates(_0x4492bc){return function(_0x375f99){try{jsonpatch['apply'](_0x375f99,_0x4492bc,!![]);}catch(_0x118238){return BPromise[_0x4b54('0x26')](_0x118238);}return _0x375f99['save']();};}function saveUpdates(_0x96111e,_0x38e6c0){return function(_0x11b610){if(_0x11b610){return _0x11b610[_0x4b54('0x27')](_0x96111e)[_0x4b54('0x28')](function(_0x59f59b){return _0x59f59b;});}return null;};}function removeEntity(_0xc438,_0x3fda14){return function(_0x5ac05c){if(_0x5ac05c){return _0x5ac05c[_0x4b54('0x29')]()[_0x4b54('0x28')](function(){_0xc438[_0x4b54('0x1d')](0xcc)[_0x4b54('0x1e')]();});}};}function handleEntityNotFound(_0x5662a7,_0x41ca4b){return function(_0x316b6f){if(!_0x316b6f){_0x5662a7['sendStatus'](0x194);}return _0x316b6f;};}function handleError(_0x4c7bdb,_0x505099){_0x505099=_0x505099||0x1f4;return function(_0x47833c){logger['error'](_0x47833c[_0x4b54('0x2a')]);if(_0x47833c[_0x4b54('0x2b')]){delete _0x47833c['name'];}_0x4c7bdb['status'](_0x505099)['send'](_0x47833c);};}exports[_0x4b54('0x2c')]=function(_0x3499f2,_0x2cbd66){var _0x5029c3={},_0x1d6ef5={},_0x1dbea7={'count':0x0,'rows':[]};var _0x487871=_[_0x4b54('0x2d')](db[_0x4b54('0x2e')][_0x4b54('0x2f')],function(_0x4b6bc2){return{'name':_0x4b6bc2[_0x4b54('0x30')],'type':_0x4b6bc2['type'][_0x4b54('0x31')]};});_0x1d6ef5['model']=_[_0x4b54('0x2d')](_0x487871,_0x4b54('0x2b'));_0x1d6ef5[_0x4b54('0x32')]=_[_0x4b54('0x33')](_0x3499f2[_0x4b54('0x32')]);_0x1d6ef5[_0x4b54('0x34')]=_[_0x4b54('0x35')](_0x1d6ef5['model'],_0x1d6ef5[_0x4b54('0x32')]);_0x5029c3[_0x4b54('0x36')]=_[_0x4b54('0x35')](_0x1d6ef5[_0x4b54('0x37')],qs[_0x4b54('0x38')](_0x3499f2['query'][_0x4b54('0x38')]));_0x5029c3[_0x4b54('0x36')]=_0x5029c3[_0x4b54('0x36')][_0x4b54('0x39')]?_0x5029c3['attributes']:_0x1d6ef5[_0x4b54('0x37')];if(!_0x3499f2['query'][_0x4b54('0x3a')](_0x4b54('0x3b'))){_0x5029c3[_0x4b54('0x23')]=qs[_0x4b54('0x23')](_0x3499f2[_0x4b54('0x32')][_0x4b54('0x23')]);_0x5029c3[_0x4b54('0x20')]=qs['offset'](_0x3499f2['query'][_0x4b54('0x20')]);}_0x5029c3[_0x4b54('0x3c')]=qs[_0x4b54('0x3d')](_0x3499f2[_0x4b54('0x32')][_0x4b54('0x3d')]);_0x5029c3[_0x4b54('0x3e')]=qs['filters'](_[_0x4b54('0x3f')](_0x3499f2[_0x4b54('0x32')],_0x1d6ef5[_0x4b54('0x34')]),_0x487871);if(_0x3499f2[_0x4b54('0x32')][_0x4b54('0x40')]){_0x5029c3[_0x4b54('0x3e')]=_[_0x4b54('0x41')](_0x5029c3[_0x4b54('0x3e')],{'$or':_[_0x4b54('0x2d')](_0x487871,function(_0x348fa8){if(_0x348fa8[_0x4b54('0x42')]!==_0x4b54('0x43')){var _0x3e4723={};_0x3e4723[_0x348fa8[_0x4b54('0x2b')]]={'$like':'%'+_0x3499f2['query']['filter']+'%'};return _0x3e4723;}})});}_0x5029c3=_[_0x4b54('0x41')]({},_0x5029c3,_0x3499f2[_0x4b54('0x44')]);var _0x4b59d4={'where':_0x5029c3[_0x4b54('0x3e')]};return db[_0x4b54('0x2e')][_0x4b54('0x22')](_0x4b59d4)[_0x4b54('0x28')](function(_0x56e3aa){_0x1dbea7['count']=_0x56e3aa;if(_0x3499f2[_0x4b54('0x32')][_0x4b54('0x45')]){_0x5029c3[_0x4b54('0x46')]=[{'all':!![]}];}return db['MailSubstatus'][_0x4b54('0x47')](_0x5029c3);})[_0x4b54('0x28')](function(_0x3c134b){_0x1dbea7['rows']=_0x3c134b;return _0x1dbea7;})[_0x4b54('0x28')](respondWithFilteredResult(_0x2cbd66,_0x5029c3))[_0x4b54('0x48')](handleError(_0x2cbd66,null));};exports[_0x4b54('0x49')]=function(_0x24d843,_0x497e26){var _0x5e44c5={'raw':!![],'where':{'id':_0x24d843['params']['id']}},_0x587e30={};_0x587e30['model']=_['keys'](db[_0x4b54('0x2e')][_0x4b54('0x2f')]);_0x587e30['query']=_[_0x4b54('0x33')](_0x24d843[_0x4b54('0x32')]);_0x587e30['filters']=_[_0x4b54('0x35')](_0x587e30['model'],_0x587e30['query']);_0x5e44c5[_0x4b54('0x36')]=_[_0x4b54('0x35')](_0x587e30[_0x4b54('0x37')],qs[_0x4b54('0x38')](_0x24d843[_0x4b54('0x32')][_0x4b54('0x38')]));_0x5e44c5[_0x4b54('0x36')]=_0x5e44c5['attributes'][_0x4b54('0x39')]?_0x5e44c5[_0x4b54('0x36')]:_0x587e30[_0x4b54('0x37')];if(_0x24d843[_0x4b54('0x32')][_0x4b54('0x45')]){_0x5e44c5['include']=[{'all':!![]}];}_0x5e44c5=_[_0x4b54('0x41')]({},_0x5e44c5,_0x24d843[_0x4b54('0x44')]);return db['MailSubstatus'][_0x4b54('0x4a')](_0x5e44c5)[_0x4b54('0x28')](handleEntityNotFound(_0x497e26,null))['then'](respondWithResult(_0x497e26,null))[_0x4b54('0x48')](handleError(_0x497e26,null));};exports['create']=function(_0xc752bc,_0x103999){return db[_0x4b54('0x2e')][_0x4b54('0x4b')](_0xc752bc[_0x4b54('0x4c')],{})[_0x4b54('0x28')](respondWithResult(_0x103999,0xc9))[_0x4b54('0x48')](handleError(_0x103999,null));};exports[_0x4b54('0x27')]=function(_0x4de2eb,_0x30700d){if(_0x4de2eb['body']['id']){delete _0x4de2eb[_0x4b54('0x4c')]['id'];}return db[_0x4b54('0x2e')][_0x4b54('0x4a')]({'where':{'id':_0x4de2eb[_0x4b54('0x4d')]['id']}})[_0x4b54('0x28')](handleEntityNotFound(_0x30700d,null))[_0x4b54('0x28')](saveUpdates(_0x4de2eb[_0x4b54('0x4c')],null))[_0x4b54('0x28')](respondWithResult(_0x30700d,null))[_0x4b54('0x48')](handleError(_0x30700d,null));};exports['destroy']=function(_0x5d0907,_0x16e509){return db[_0x4b54('0x2e')][_0x4b54('0x4a')]({'where':{'id':_0x5d0907[_0x4b54('0x4d')]['id']}})[_0x4b54('0x28')](handleEntityNotFound(_0x16e509,null))[_0x4b54('0x28')](removeEntity(_0x16e509,null))['catch'](handleError(_0x16e509,null));};exports['describe']=function(_0x30b0f3,_0x223848){return db[_0x4b54('0x2e')][_0x4b54('0x4e')]()[_0x4b54('0x28')](respondWithResult(_0x223848,null))[_0x4b54('0x48')](handleError(_0x223848,null));};
\ No newline at end of file