Built motion from commit fe909640.|2.6.8
[motion2.git] / server / api / integrationReport / integrationReport.controller.js
index 9c22f3f..c8d1d9e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb30f=['offset','undefined','limit','count','set','Content-Range','apply','reject','save','update','then','destroy','error','name','send','index','IntegrationReport','rawAttributes','fieldName','type','key','query','keys','filters','intersection','model','attributes','fields','length','hasOwnProperty','sort','where','filter','merge','map','options','include','findAll','rows','show','params','includeAll','find','create','body','catch','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','util','sox','to-csv','fs-extra','lodash','squel','crypto','jsforce','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','json'];(function(_0x21cc96,_0x3d6a72){var _0x284f44=function(_0x436fb0){while(--_0x436fb0){_0x21cc96['push'](_0x21cc96['shift']());}};_0x284f44(++_0x3d6a72);}(_0xb30f,0x15f));var _0xfb30=function(_0x25568e,_0x15f6f1){_0x25568e=_0x25568e-0x0;var _0x32f381=_0xb30f[_0x25568e];return _0x32f381;};'use strict';var emlformat=require(_0xfb30('0x0'));var rimraf=require(_0xfb30('0x1'));var zipdir=require(_0xfb30('0x2'));var jsonpatch=require(_0xfb30('0x3'));var rp=require(_0xfb30('0x4'));var moment=require(_0xfb30('0x5'));var BPromise=require(_0xfb30('0x6'));var Mustache=require('mustache');var util=require(_0xfb30('0x7'));var path=require('path');var sox=require(_0xfb30('0x8'));var csv=require(_0xfb30('0x9'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require(_0xfb30('0xa'));var _=require(_0xfb30('0xb'));var squel=require(_0xfb30('0xc'));var crypto=require(_0xfb30('0xd'));var jsforce=require(_0xfb30('0xe'));var deskjs=require('desk.js');var toCsv=require(_0xfb30('0x9'));var querystring=require('querystring');var Papa=require(_0xfb30('0xf'));var Redis=require(_0xfb30('0x10'));var authService=require(_0xfb30('0x11'));var qs=require(_0xfb30('0x12'));var as=require(_0xfb30('0x13'));var hardwareService=require(_0xfb30('0x14'));var logger=require(_0xfb30('0x15'))('api');var utils=require(_0xfb30('0x16'));var config=require(_0xfb30('0x17'));var licenseUtil=require('../../config/license/util');var db=require(_0xfb30('0x18'))['db'];function respondWithStatusCode(_0x3dfdb5,_0x44540d){_0x44540d=_0x44540d||0xcc;return function(_0x344b64){if(_0x344b64){return _0x3dfdb5[_0xfb30('0x19')](_0x44540d);}return _0x3dfdb5[_0xfb30('0x1a')](_0x44540d)[_0xfb30('0x1b')]();};}function respondWithResult(_0x220d1c,_0x42f20d){_0x42f20d=_0x42f20d||0xc8;return function(_0x413827){if(_0x413827){return _0x220d1c[_0xfb30('0x1a')](_0x42f20d)[_0xfb30('0x1c')](_0x413827);}};}function respondWithFilteredResult(_0x4a0012,_0x1c2c47){return function(_0x2c8f87){if(_0x2c8f87){var _0x8d5e91=typeof _0x1c2c47[_0xfb30('0x1d')]===_0xfb30('0x1e')&&typeof _0x1c2c47[_0xfb30('0x1f')]===_0xfb30('0x1e');var _0x2c9842=_0x2c8f87[_0xfb30('0x20')];var _0xb3fa94=_0x8d5e91?0x0:_0x1c2c47[_0xfb30('0x1d')];var _0x3665e4=_0x8d5e91?_0x2c8f87[_0xfb30('0x20')]:_0x1c2c47[_0xfb30('0x1d')]+_0x1c2c47[_0xfb30('0x1f')];var _0x134590;if(_0x3665e4>=_0x2c9842){_0x3665e4=_0x2c9842;_0x134590=0xc8;}else{_0x134590=0xce;}_0x4a0012[_0xfb30('0x1a')](_0x134590);return _0x4a0012[_0xfb30('0x21')](_0xfb30('0x22'),_0xb3fa94+'-'+_0x3665e4+'/'+_0x2c9842)[_0xfb30('0x1c')](_0x2c8f87);}return null;};}function patchUpdates(_0x54acc2){return function(_0x539a14){try{jsonpatch[_0xfb30('0x23')](_0x539a14,_0x54acc2,!![]);}catch(_0x4668a7){return BPromise[_0xfb30('0x24')](_0x4668a7);}return _0x539a14[_0xfb30('0x25')]();};}function saveUpdates(_0x1111b3,_0x1f39bc){return function(_0x2ea33f){if(_0x2ea33f){return _0x2ea33f[_0xfb30('0x26')](_0x1111b3)[_0xfb30('0x27')](function(_0x1756f5){return _0x1756f5;});}return null;};}function removeEntity(_0x444989,_0x138092){return function(_0x593e33){if(_0x593e33){return _0x593e33[_0xfb30('0x28')]()[_0xfb30('0x27')](function(){_0x444989['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x389841,_0x173643){return function(_0x21121a){if(!_0x21121a){_0x389841[_0xfb30('0x19')](0x194);}return _0x21121a;};}function handleError(_0x4d5aff,_0x2befd4){_0x2befd4=_0x2befd4||0x1f4;return function(_0x3c2f4b){logger[_0xfb30('0x29')](_0x3c2f4b['stack']);if(_0x3c2f4b[_0xfb30('0x2a')]){delete _0x3c2f4b[_0xfb30('0x2a')];}_0x4d5aff['status'](_0x2befd4)[_0xfb30('0x2b')](_0x3c2f4b);};}exports[_0xfb30('0x2c')]=function(_0x19f486,_0x1144f2){var _0x5658d8={},_0x389650={},_0x3a5b27={'count':0x0,'rows':[]};var _0x4900cd=_['map'](db[_0xfb30('0x2d')][_0xfb30('0x2e')],function(_0x2d83b1){return{'name':_0x2d83b1[_0xfb30('0x2f')],'type':_0x2d83b1[_0xfb30('0x30')][_0xfb30('0x31')]};});_0x389650['model']=_['map'](_0x4900cd,_0xfb30('0x2a'));_0x389650[_0xfb30('0x32')]=_[_0xfb30('0x33')](_0x19f486[_0xfb30('0x32')]);_0x389650[_0xfb30('0x34')]=_[_0xfb30('0x35')](_0x389650[_0xfb30('0x36')],_0x389650[_0xfb30('0x32')]);_0x5658d8[_0xfb30('0x37')]=_['intersection'](_0x389650['model'],qs[_0xfb30('0x38')](_0x19f486[_0xfb30('0x32')]['fields']));_0x5658d8[_0xfb30('0x37')]=_0x5658d8[_0xfb30('0x37')][_0xfb30('0x39')]?_0x5658d8[_0xfb30('0x37')]:_0x389650[_0xfb30('0x36')];if(!_0x19f486[_0xfb30('0x32')][_0xfb30('0x3a')]('nolimit')){_0x5658d8['limit']=qs[_0xfb30('0x1f')](_0x19f486[_0xfb30('0x32')]['limit']);_0x5658d8[_0xfb30('0x1d')]=qs[_0xfb30('0x1d')](_0x19f486[_0xfb30('0x32')][_0xfb30('0x1d')]);}_0x5658d8['order']=qs[_0xfb30('0x3b')](_0x19f486[_0xfb30('0x32')][_0xfb30('0x3b')]);_0x5658d8[_0xfb30('0x3c')]=qs[_0xfb30('0x34')](_['pick'](_0x19f486[_0xfb30('0x32')],_0x389650['filters']),_0x4900cd);if(_0x19f486[_0xfb30('0x32')][_0xfb30('0x3d')]){_0x5658d8[_0xfb30('0x3c')]=_[_0xfb30('0x3e')](_0x5658d8['where'],{'$or':_[_0xfb30('0x3f')](_0x4900cd,function(_0x30e3d3){if(_0x30e3d3['type']!=='VIRTUAL'){var _0x6fa809={};_0x6fa809[_0x30e3d3[_0xfb30('0x2a')]]={'$like':'%'+_0x19f486[_0xfb30('0x32')][_0xfb30('0x3d')]+'%'};return _0x6fa809;}})});}_0x5658d8=_[_0xfb30('0x3e')]({},_0x5658d8,_0x19f486[_0xfb30('0x40')]);var _0x36e0bf={'where':_0x5658d8[_0xfb30('0x3c')]};return db[_0xfb30('0x2d')]['count'](_0x36e0bf)[_0xfb30('0x27')](function(_0x4b0426){_0x3a5b27[_0xfb30('0x20')]=_0x4b0426;if(_0x19f486[_0xfb30('0x32')]['includeAll']){_0x5658d8[_0xfb30('0x41')]=[{'all':!![]}];}return db['IntegrationReport'][_0xfb30('0x42')](_0x5658d8);})['then'](function(_0x5c0359){_0x3a5b27[_0xfb30('0x43')]=_0x5c0359;return _0x3a5b27;})['then'](respondWithFilteredResult(_0x1144f2,_0x5658d8))['catch'](handleError(_0x1144f2,null));};exports[_0xfb30('0x44')]=function(_0x24bcb1,_0x1c2906){var _0x620a36={'raw':![],'where':{'id':_0x24bcb1[_0xfb30('0x45')]['id']}},_0x13a8fe={};_0x13a8fe[_0xfb30('0x36')]=_[_0xfb30('0x33')](db['IntegrationReport'][_0xfb30('0x2e')]);_0x13a8fe[_0xfb30('0x32')]=_[_0xfb30('0x33')](_0x24bcb1['query']);_0x13a8fe[_0xfb30('0x34')]=_[_0xfb30('0x35')](_0x13a8fe[_0xfb30('0x36')],_0x13a8fe[_0xfb30('0x32')]);_0x620a36[_0xfb30('0x37')]=_[_0xfb30('0x35')](_0x13a8fe[_0xfb30('0x36')],qs[_0xfb30('0x38')](_0x24bcb1['query'][_0xfb30('0x38')]));_0x620a36[_0xfb30('0x37')]=_0x620a36['attributes']['length']?_0x620a36[_0xfb30('0x37')]:_0x13a8fe[_0xfb30('0x36')];if(_0x24bcb1[_0xfb30('0x32')][_0xfb30('0x46')]){_0x620a36[_0xfb30('0x41')]=[{'all':!![]}];}_0x620a36=_[_0xfb30('0x3e')]({},_0x620a36,_0x24bcb1['options']);return db[_0xfb30('0x2d')][_0xfb30('0x47')](_0x620a36)[_0xfb30('0x27')](handleEntityNotFound(_0x1c2906,null))[_0xfb30('0x27')](respondWithResult(_0x1c2906,null))['catch'](handleError(_0x1c2906,null));};exports[_0xfb30('0x48')]=function(_0x2c2207,_0x3d6b21){return db[_0xfb30('0x2d')][_0xfb30('0x48')](_0x2c2207[_0xfb30('0x49')],{})[_0xfb30('0x27')](respondWithResult(_0x3d6b21,0xc9))[_0xfb30('0x4a')](handleError(_0x3d6b21,null));};exports[_0xfb30('0x26')]=function(_0x589cce,_0x471783){if(_0x589cce['body']['id']){delete _0x589cce[_0xfb30('0x49')]['id'];}return db[_0xfb30('0x2d')][_0xfb30('0x47')]({'where':{'id':_0x589cce['params']['id']}})[_0xfb30('0x27')](handleEntityNotFound(_0x471783,null))[_0xfb30('0x27')](saveUpdates(_0x589cce[_0xfb30('0x49')],null))['then'](respondWithResult(_0x471783,null))[_0xfb30('0x4a')](handleError(_0x471783,null));};exports['destroy']=function(_0x425b6a,_0xee51ed){return db['IntegrationReport'][_0xfb30('0x47')]({'where':{'id':_0x425b6a[_0xfb30('0x45')]['id']}})['then'](handleEntityNotFound(_0xee51ed,null))[_0xfb30('0x27')](removeEntity(_0xee51ed,null))[_0xfb30('0x4a')](handleError(_0xee51ed,null));};exports[_0xfb30('0x4b')]=function(_0x41bf1b,_0x779cf1){return db[_0xfb30('0x2d')][_0xfb30('0x4b')]()[_0xfb30('0x27')](respondWithResult(_0x779cf1,null))['catch'](handleError(_0x779cf1,null));};
\ No newline at end of file
+var _0xf4cc=['name','send','map','IntegrationReport','fieldName','type','key','model','query','keys','intersection','fields','attributes','nolimit','sort','where','filters','pick','filter','merge','options','then','include','findAll','rows','catch','params','length','includeAll','find','create','update','body','describe','eml-format','rimraf','zip-dir','request-promise','moment','bluebird','util','path','to-csv','ejs','fs-extra','lodash','jsforce','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/license/util','../../mysqldb','json','offset','limit','count','set','Content-Range','apply','reject','save','destroy','status','error'];(function(_0x18a233,_0x89a2c4){var _0x591fbf=function(_0x5a3581){while(--_0x5a3581){_0x18a233['push'](_0x18a233['shift']());}};_0x591fbf(++_0x89a2c4);}(_0xf4cc,0xf1));var _0xcf4c=function(_0x469f6f,_0x41acd9){_0x469f6f=_0x469f6f-0x0;var _0x2f4553=_0xf4cc[_0x469f6f];return _0x2f4553;};'use strict';var emlformat=require(_0xcf4c('0x0'));var rimraf=require(_0xcf4c('0x1'));var zipdir=require(_0xcf4c('0x2'));var jsonpatch=require('fast-json-patch');var rp=require(_0xcf4c('0x3'));var moment=require(_0xcf4c('0x4'));var BPromise=require(_0xcf4c('0x5'));var Mustache=require('mustache');var util=require(_0xcf4c('0x6'));var path=require(_0xcf4c('0x7'));var sox=require('sox');var csv=require(_0xcf4c('0x8'));var ejs=require(_0xcf4c('0x9'));var fs=require('fs');var fs_extra=require(_0xcf4c('0xa'));var _=require(_0xcf4c('0xb'));var squel=require('squel');var crypto=require('crypto');var jsforce=require(_0xcf4c('0xc'));var deskjs=require('desk.js');var toCsv=require(_0xcf4c('0x8'));var querystring=require(_0xcf4c('0xd'));var Papa=require('papaparse');var Redis=require(_0xcf4c('0xe'));var authService=require(_0xcf4c('0xf'));var qs=require(_0xcf4c('0x10'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xcf4c('0x11'));var logger=require(_0xcf4c('0x12'))(_0xcf4c('0x13'));var utils=require(_0xcf4c('0x14'));var config=require('../../config/environment');var licenseUtil=require(_0xcf4c('0x15'));var db=require(_0xcf4c('0x16'))['db'];function respondWithStatusCode(_0x554003,_0x1ca6ef){_0x1ca6ef=_0x1ca6ef||0xcc;return function(_0x604676){if(_0x604676){return _0x554003['sendStatus'](_0x1ca6ef);}return _0x554003['status'](_0x1ca6ef)['end']();};}function respondWithResult(_0x5a9405,_0x57fdbe){_0x57fdbe=_0x57fdbe||0xc8;return function(_0x272de2){if(_0x272de2){return _0x5a9405['status'](_0x57fdbe)[_0xcf4c('0x17')](_0x272de2);}};}function respondWithFilteredResult(_0x5c0917,_0x2c969e){return function(_0xa742b2){if(_0xa742b2){var _0x5a7104=typeof _0x2c969e[_0xcf4c('0x18')]==='undefined'&&typeof _0x2c969e[_0xcf4c('0x19')]==='undefined';var _0x3cf8c4=_0xa742b2[_0xcf4c('0x1a')];var _0x3c5a6a=_0x5a7104?0x0:_0x2c969e[_0xcf4c('0x18')];var _0x2923f6=_0x5a7104?_0xa742b2[_0xcf4c('0x1a')]:_0x2c969e['offset']+_0x2c969e[_0xcf4c('0x19')];var _0x185bba;if(_0x2923f6>=_0x3cf8c4){_0x2923f6=_0x3cf8c4;_0x185bba=0xc8;}else{_0x185bba=0xce;}_0x5c0917['status'](_0x185bba);return _0x5c0917[_0xcf4c('0x1b')](_0xcf4c('0x1c'),_0x3c5a6a+'-'+_0x2923f6+'/'+_0x3cf8c4)[_0xcf4c('0x17')](_0xa742b2);}return null;};}function patchUpdates(_0x55a56c){return function(_0x98c7fa){try{jsonpatch[_0xcf4c('0x1d')](_0x98c7fa,_0x55a56c,!![]);}catch(_0xd74003){return BPromise[_0xcf4c('0x1e')](_0xd74003);}return _0x98c7fa[_0xcf4c('0x1f')]();};}function saveUpdates(_0x4f2246,_0x204b80){return function(_0x4c8da1){if(_0x4c8da1){return _0x4c8da1['update'](_0x4f2246)['then'](function(_0x39aabb){return _0x39aabb;});}return null;};}function removeEntity(_0x5dd8b7,_0x21fc69){return function(_0x3c7e3e){if(_0x3c7e3e){return _0x3c7e3e[_0xcf4c('0x20')]()['then'](function(){_0x5dd8b7[_0xcf4c('0x21')](0xcc)['end']();});}};}function handleEntityNotFound(_0x1a08a2,_0x2b220b){return function(_0x17f3e1){if(!_0x17f3e1){_0x1a08a2['sendStatus'](0x194);}return _0x17f3e1;};}function handleError(_0x8fd728,_0x53cb09){_0x53cb09=_0x53cb09||0x1f4;return function(_0x43f23a){logger[_0xcf4c('0x22')](_0x43f23a['stack']);if(_0x43f23a[_0xcf4c('0x23')]){delete _0x43f23a[_0xcf4c('0x23')];}_0x8fd728['status'](_0x53cb09)[_0xcf4c('0x24')](_0x43f23a);};}exports['index']=function(_0x14ab63,_0x15e2ec){var _0x56dd6c={},_0x37873b={},_0x788a58={'count':0x0,'rows':[]};var _0x4ee6ed=_[_0xcf4c('0x25')](db[_0xcf4c('0x26')]['rawAttributes'],function(_0x54e197){return{'name':_0x54e197[_0xcf4c('0x27')],'type':_0x54e197[_0xcf4c('0x28')][_0xcf4c('0x29')]};});_0x37873b[_0xcf4c('0x2a')]=_[_0xcf4c('0x25')](_0x4ee6ed,_0xcf4c('0x23'));_0x37873b[_0xcf4c('0x2b')]=_[_0xcf4c('0x2c')](_0x14ab63[_0xcf4c('0x2b')]);_0x37873b['filters']=_['intersection'](_0x37873b['model'],_0x37873b['query']);_0x56dd6c['attributes']=_[_0xcf4c('0x2d')](_0x37873b[_0xcf4c('0x2a')],qs[_0xcf4c('0x2e')](_0x14ab63[_0xcf4c('0x2b')]['fields']));_0x56dd6c[_0xcf4c('0x2f')]=_0x56dd6c[_0xcf4c('0x2f')]['length']?_0x56dd6c[_0xcf4c('0x2f')]:_0x37873b[_0xcf4c('0x2a')];if(!_0x14ab63[_0xcf4c('0x2b')]['hasOwnProperty'](_0xcf4c('0x30'))){_0x56dd6c['limit']=qs['limit'](_0x14ab63[_0xcf4c('0x2b')]['limit']);_0x56dd6c[_0xcf4c('0x18')]=qs[_0xcf4c('0x18')](_0x14ab63[_0xcf4c('0x2b')]['offset']);}_0x56dd6c['order']=qs[_0xcf4c('0x31')](_0x14ab63['query'][_0xcf4c('0x31')]);_0x56dd6c[_0xcf4c('0x32')]=qs[_0xcf4c('0x33')](_[_0xcf4c('0x34')](_0x14ab63[_0xcf4c('0x2b')],_0x37873b[_0xcf4c('0x33')]),_0x4ee6ed);if(_0x14ab63['query'][_0xcf4c('0x35')]){_0x56dd6c[_0xcf4c('0x32')]=_[_0xcf4c('0x36')](_0x56dd6c['where'],{'$or':_[_0xcf4c('0x25')](_0x4ee6ed,function(_0x5651de){if(_0x5651de[_0xcf4c('0x28')]!=='VIRTUAL'){var _0x546e34={};_0x546e34[_0x5651de[_0xcf4c('0x23')]]={'$like':'%'+_0x14ab63['query']['filter']+'%'};return _0x546e34;}})});}_0x56dd6c=_['merge']({},_0x56dd6c,_0x14ab63[_0xcf4c('0x37')]);var _0x1f414e={'where':_0x56dd6c['where']};return db[_0xcf4c('0x26')]['count'](_0x1f414e)[_0xcf4c('0x38')](function(_0x225c82){_0x788a58[_0xcf4c('0x1a')]=_0x225c82;if(_0x14ab63[_0xcf4c('0x2b')]['includeAll']){_0x56dd6c[_0xcf4c('0x39')]=[{'all':!![]}];}return db[_0xcf4c('0x26')][_0xcf4c('0x3a')](_0x56dd6c);})[_0xcf4c('0x38')](function(_0x304fc8){_0x788a58[_0xcf4c('0x3b')]=_0x304fc8;return _0x788a58;})[_0xcf4c('0x38')](respondWithFilteredResult(_0x15e2ec,_0x56dd6c))[_0xcf4c('0x3c')](handleError(_0x15e2ec,null));};exports['show']=function(_0xd9885c,_0x510294){var _0x3f8ae3={'raw':![],'where':{'id':_0xd9885c[_0xcf4c('0x3d')]['id']}},_0x3f8bea={};_0x3f8bea[_0xcf4c('0x2a')]=_[_0xcf4c('0x2c')](db[_0xcf4c('0x26')]['rawAttributes']);_0x3f8bea[_0xcf4c('0x2b')]=_[_0xcf4c('0x2c')](_0xd9885c['query']);_0x3f8bea[_0xcf4c('0x33')]=_[_0xcf4c('0x2d')](_0x3f8bea[_0xcf4c('0x2a')],_0x3f8bea[_0xcf4c('0x2b')]);_0x3f8ae3[_0xcf4c('0x2f')]=_['intersection'](_0x3f8bea[_0xcf4c('0x2a')],qs[_0xcf4c('0x2e')](_0xd9885c[_0xcf4c('0x2b')][_0xcf4c('0x2e')]));_0x3f8ae3[_0xcf4c('0x2f')]=_0x3f8ae3[_0xcf4c('0x2f')][_0xcf4c('0x3e')]?_0x3f8ae3[_0xcf4c('0x2f')]:_0x3f8bea[_0xcf4c('0x2a')];if(_0xd9885c[_0xcf4c('0x2b')][_0xcf4c('0x3f')]){_0x3f8ae3[_0xcf4c('0x39')]=[{'all':!![]}];}_0x3f8ae3=_['merge']({},_0x3f8ae3,_0xd9885c[_0xcf4c('0x37')]);return db[_0xcf4c('0x26')][_0xcf4c('0x40')](_0x3f8ae3)['then'](handleEntityNotFound(_0x510294,null))[_0xcf4c('0x38')](respondWithResult(_0x510294,null))[_0xcf4c('0x3c')](handleError(_0x510294,null));};exports[_0xcf4c('0x41')]=function(_0x46bd9f,_0x2d5294){return db[_0xcf4c('0x26')][_0xcf4c('0x41')](_0x46bd9f['body'],{})['then'](respondWithResult(_0x2d5294,0xc9))[_0xcf4c('0x3c')](handleError(_0x2d5294,null));};exports[_0xcf4c('0x42')]=function(_0x5475e6,_0x1e2a82){if(_0x5475e6[_0xcf4c('0x43')]['id']){delete _0x5475e6[_0xcf4c('0x43')]['id'];}return db[_0xcf4c('0x26')]['find']({'where':{'id':_0x5475e6['params']['id']}})[_0xcf4c('0x38')](handleEntityNotFound(_0x1e2a82,null))['then'](saveUpdates(_0x5475e6['body'],null))[_0xcf4c('0x38')](respondWithResult(_0x1e2a82,null))[_0xcf4c('0x3c')](handleError(_0x1e2a82,null));};exports['destroy']=function(_0x342ff5,_0x228beb){return db[_0xcf4c('0x26')][_0xcf4c('0x40')]({'where':{'id':_0x342ff5['params']['id']}})[_0xcf4c('0x38')](handleEntityNotFound(_0x228beb,null))[_0xcf4c('0x38')](removeEntity(_0x228beb,null))[_0xcf4c('0x3c')](handleError(_0x228beb,null));};exports['describe']=function(_0x5d428e,_0x121288){return db[_0xcf4c('0x26')][_0xcf4c('0x44')]()['then'](respondWithResult(_0x121288,null))[_0xcf4c('0x3c')](handleError(_0x121288,null));};
\ No newline at end of file