Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / integrationReport / integrationReport.controller.js
index 5ac8ef1..33cdb9e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x776a=['../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/utils','../../config/license/util','end','status','json','undefined','limit','offset','count','set','Content-Range','apply','reject','save','destroy','then','sendStatus','stack','name','index','map','IntegrationReport','rawAttributes','fieldName','type','model','query','keys','filters','attributes','fields','length','hasOwnProperty','nolimit','order','sort','pick','filter','merge','where','VIRTUAL','options','includeAll','findAll','rows','catch','params','intersection','include','find','create','body','update','describe','eml-format','rimraf','zip-dir','request-promise','moment','bluebird','mustache','path','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','papaparse','ioredis','../../components/auth/service'];(function(_0xf94ea7,_0x25a780){var _0x5a3ecd=function(_0x5a15f7){while(--_0x5a15f7){_0xf94ea7['push'](_0xf94ea7['shift']());}};_0x5a3ecd(++_0x25a780);}(_0x776a,0x11a));var _0xa776=function(_0x230b94,_0x4c37a1){_0x230b94=_0x230b94-0x0;var _0x380f4b=_0x776a[_0x230b94];return _0x380f4b;};'use strict';var emlformat=require(_0xa776('0x0'));var rimraf=require(_0xa776('0x1'));var zipdir=require(_0xa776('0x2'));var jsonpatch=require('fast-json-patch');var rp=require(_0xa776('0x3'));var moment=require(_0xa776('0x4'));var BPromise=require(_0xa776('0x5'));var Mustache=require(_0xa776('0x6'));var util=require('util');var path=require(_0xa776('0x7'));var sox=require('sox');var csv=require(_0xa776('0x8'));var ejs=require(_0xa776('0x9'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0xa776('0xa'));var squel=require(_0xa776('0xb'));var crypto=require(_0xa776('0xc'));var jsforce=require(_0xa776('0xd'));var deskjs=require(_0xa776('0xe'));var toCsv=require('to-csv');var querystring=require('querystring');var Papa=require(_0xa776('0xf'));var Redis=require(_0xa776('0x10'));var authService=require(_0xa776('0x11'));var qs=require(_0xa776('0x12'));var as=require(_0xa776('0x13'));var hardwareService=require(_0xa776('0x14'));var logger=require('../../config/logger')('api');var utils=require(_0xa776('0x15'));var config=require('../../config/environment');var licenseUtil=require(_0xa776('0x16'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x3d7197,_0x1cc1ea){_0x1cc1ea=_0x1cc1ea||0xcc;return function(_0x51cf6f){if(_0x51cf6f){return _0x3d7197['sendStatus'](_0x1cc1ea);}return _0x3d7197['status'](_0x1cc1ea)[_0xa776('0x17')]();};}function respondWithResult(_0x516504,_0x412e4a){_0x412e4a=_0x412e4a||0xc8;return function(_0x5de1dd){if(_0x5de1dd){return _0x516504[_0xa776('0x18')](_0x412e4a)[_0xa776('0x19')](_0x5de1dd);}};}function respondWithFilteredResult(_0x1f76e6,_0x1b7f1d){return function(_0x2be613){if(_0x2be613){var _0x34a514=typeof _0x1b7f1d['offset']===_0xa776('0x1a')&&typeof _0x1b7f1d[_0xa776('0x1b')]===_0xa776('0x1a');var _0x842019=_0x2be613['count'];var _0x471c54=_0x34a514?0x0:_0x1b7f1d[_0xa776('0x1c')];var _0x11b896=_0x34a514?_0x2be613[_0xa776('0x1d')]:_0x1b7f1d[_0xa776('0x1c')]+_0x1b7f1d[_0xa776('0x1b')];var _0x133c01;if(_0x11b896>=_0x842019){_0x11b896=_0x842019;_0x133c01=0xc8;}else{_0x133c01=0xce;}_0x1f76e6[_0xa776('0x18')](_0x133c01);return _0x1f76e6[_0xa776('0x1e')](_0xa776('0x1f'),_0x471c54+'-'+_0x11b896+'/'+_0x842019)[_0xa776('0x19')](_0x2be613);}return null;};}function patchUpdates(_0x107e4c){return function(_0x3d6629){try{jsonpatch[_0xa776('0x20')](_0x3d6629,_0x107e4c,!![]);}catch(_0x376891){return BPromise[_0xa776('0x21')](_0x376891);}return _0x3d6629[_0xa776('0x22')]();};}function saveUpdates(_0x365ecb,_0x4474a5){return function(_0x52036e){if(_0x52036e){return _0x52036e['update'](_0x365ecb)['then'](function(_0xb0852){return _0xb0852;});}return null;};}function removeEntity(_0x60ed92,_0x1a01e4){return function(_0x30326a){if(_0x30326a){return _0x30326a[_0xa776('0x23')]()[_0xa776('0x24')](function(){_0x60ed92[_0xa776('0x18')](0xcc)[_0xa776('0x17')]();});}};}function handleEntityNotFound(_0x2d9bdc,_0x573b6f){return function(_0x1de6a1){if(!_0x1de6a1){_0x2d9bdc[_0xa776('0x25')](0x194);}return _0x1de6a1;};}function handleError(_0x16cc46,_0x2df8d4){_0x2df8d4=_0x2df8d4||0x1f4;return function(_0x54a164){logger['error'](_0x54a164[_0xa776('0x26')]);if(_0x54a164[_0xa776('0x27')]){delete _0x54a164[_0xa776('0x27')];}_0x16cc46[_0xa776('0x18')](_0x2df8d4)['send'](_0x54a164);};}exports[_0xa776('0x28')]=function(_0x4a1f0a,_0x38adc4){var _0x1741ba={},_0x18d98d={},_0x35222d={'count':0x0,'rows':[]};var _0x116c81=_[_0xa776('0x29')](db[_0xa776('0x2a')][_0xa776('0x2b')],function(_0x4c1e98){return{'name':_0x4c1e98[_0xa776('0x2c')],'type':_0x4c1e98[_0xa776('0x2d')]['key']};});_0x18d98d[_0xa776('0x2e')]=_[_0xa776('0x29')](_0x116c81,'name');_0x18d98d[_0xa776('0x2f')]=_[_0xa776('0x30')](_0x4a1f0a[_0xa776('0x2f')]);_0x18d98d[_0xa776('0x31')]=_['intersection'](_0x18d98d[_0xa776('0x2e')],_0x18d98d[_0xa776('0x2f')]);_0x1741ba[_0xa776('0x32')]=_['intersection'](_0x18d98d[_0xa776('0x2e')],qs[_0xa776('0x33')](_0x4a1f0a[_0xa776('0x2f')][_0xa776('0x33')]));_0x1741ba[_0xa776('0x32')]=_0x1741ba['attributes'][_0xa776('0x34')]?_0x1741ba[_0xa776('0x32')]:_0x18d98d[_0xa776('0x2e')];if(!_0x4a1f0a[_0xa776('0x2f')][_0xa776('0x35')](_0xa776('0x36'))){_0x1741ba['limit']=qs['limit'](_0x4a1f0a['query'][_0xa776('0x1b')]);_0x1741ba[_0xa776('0x1c')]=qs['offset'](_0x4a1f0a[_0xa776('0x2f')][_0xa776('0x1c')]);}_0x1741ba[_0xa776('0x37')]=qs[_0xa776('0x38')](_0x4a1f0a['query'][_0xa776('0x38')]);_0x1741ba['where']=qs['filters'](_[_0xa776('0x39')](_0x4a1f0a['query'],_0x18d98d[_0xa776('0x31')]),_0x116c81);if(_0x4a1f0a[_0xa776('0x2f')][_0xa776('0x3a')]){_0x1741ba['where']=_[_0xa776('0x3b')](_0x1741ba[_0xa776('0x3c')],{'$or':_[_0xa776('0x29')](_0x116c81,function(_0x1e855b){if(_0x1e855b[_0xa776('0x2d')]!==_0xa776('0x3d')){var _0x1eab18={};_0x1eab18[_0x1e855b[_0xa776('0x27')]]={'$like':'%'+_0x4a1f0a[_0xa776('0x2f')]['filter']+'%'};return _0x1eab18;}})});}_0x1741ba=_[_0xa776('0x3b')]({},_0x1741ba,_0x4a1f0a[_0xa776('0x3e')]);var _0x578583={'where':_0x1741ba[_0xa776('0x3c')]};return db[_0xa776('0x2a')]['count'](_0x578583)[_0xa776('0x24')](function(_0x3ee3ef){_0x35222d['count']=_0x3ee3ef;if(_0x4a1f0a[_0xa776('0x2f')][_0xa776('0x3f')]){_0x1741ba['include']=[{'all':!![]}];}return db[_0xa776('0x2a')][_0xa776('0x40')](_0x1741ba);})[_0xa776('0x24')](function(_0x533fef){_0x35222d[_0xa776('0x41')]=_0x533fef;return _0x35222d;})[_0xa776('0x24')](respondWithFilteredResult(_0x38adc4,_0x1741ba))[_0xa776('0x42')](handleError(_0x38adc4,null));};exports['show']=function(_0x5e3e34,_0x513803){var _0x3fa894={'raw':![],'where':{'id':_0x5e3e34[_0xa776('0x43')]['id']}},_0xfa74ba={};_0xfa74ba[_0xa776('0x2e')]=_[_0xa776('0x30')](db[_0xa776('0x2a')]['rawAttributes']);_0xfa74ba[_0xa776('0x2f')]=_[_0xa776('0x30')](_0x5e3e34[_0xa776('0x2f')]);_0xfa74ba['filters']=_[_0xa776('0x44')](_0xfa74ba['model'],_0xfa74ba[_0xa776('0x2f')]);_0x3fa894[_0xa776('0x32')]=_[_0xa776('0x44')](_0xfa74ba['model'],qs[_0xa776('0x33')](_0x5e3e34[_0xa776('0x2f')][_0xa776('0x33')]));_0x3fa894[_0xa776('0x32')]=_0x3fa894[_0xa776('0x32')][_0xa776('0x34')]?_0x3fa894[_0xa776('0x32')]:_0xfa74ba[_0xa776('0x2e')];if(_0x5e3e34[_0xa776('0x2f')]['includeAll']){_0x3fa894[_0xa776('0x45')]=[{'all':!![]}];}_0x3fa894=_[_0xa776('0x3b')]({},_0x3fa894,_0x5e3e34['options']);return db[_0xa776('0x2a')][_0xa776('0x46')](_0x3fa894)[_0xa776('0x24')](handleEntityNotFound(_0x513803,null))['then'](respondWithResult(_0x513803,null))[_0xa776('0x42')](handleError(_0x513803,null));};exports[_0xa776('0x47')]=function(_0x1ae4b4,_0x4ea25c){return db['IntegrationReport'][_0xa776('0x47')](_0x1ae4b4[_0xa776('0x48')],{})[_0xa776('0x24')](respondWithResult(_0x4ea25c,0xc9))[_0xa776('0x42')](handleError(_0x4ea25c,null));};exports[_0xa776('0x49')]=function(_0x3b8f0c,_0x3af63f){if(_0x3b8f0c['body']['id']){delete _0x3b8f0c[_0xa776('0x48')]['id'];}return db[_0xa776('0x2a')][_0xa776('0x46')]({'where':{'id':_0x3b8f0c[_0xa776('0x43')]['id']}})[_0xa776('0x24')](handleEntityNotFound(_0x3af63f,null))[_0xa776('0x24')](saveUpdates(_0x3b8f0c['body'],null))['then'](respondWithResult(_0x3af63f,null))[_0xa776('0x42')](handleError(_0x3af63f,null));};exports[_0xa776('0x23')]=function(_0xc691ce,_0x4dd807){return db['IntegrationReport'][_0xa776('0x46')]({'where':{'id':_0xc691ce['params']['id']}})[_0xa776('0x24')](handleEntityNotFound(_0x4dd807,null))[_0xa776('0x24')](removeEntity(_0x4dd807,null))[_0xa776('0x42')](handleError(_0x4dd807,null));};exports[_0xa776('0x4a')]=function(_0x1caeb9,_0x547880){return db['IntegrationReport'][_0xa776('0x4a')]()[_0xa776('0x24')](respondWithResult(_0x547880,null))['catch'](handleError(_0x547880,null));};
\ No newline at end of file
+var _0xcbff=['hasOwnProperty','nolimit','order','sort','where','pick','filter','merge','VIRTUAL','options','includeAll','findAll','rows','catch','include','find','create','body','params','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','util','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','../../components/auth/service','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','json','offset','undefined','count','limit','apply','save','update','then','destroy','end','error','stack','name','send','index','map','IntegrationReport','fieldName','type','key','query','keys','filters','intersection','model','attributes','fields','length'];(function(_0x45e651,_0x19aec4){var _0x4356d4=function(_0xdb3f44){while(--_0xdb3f44){_0x45e651['push'](_0x45e651['shift']());}};_0x4356d4(++_0x19aec4);}(_0xcbff,0xfb));var _0xfcbf=function(_0x27edba,_0x3b8b4f){_0x27edba=_0x27edba-0x0;var _0x4d2d31=_0xcbff[_0x27edba];return _0x4d2d31;};'use strict';var emlformat=require(_0xfcbf('0x0'));var rimraf=require(_0xfcbf('0x1'));var zipdir=require(_0xfcbf('0x2'));var jsonpatch=require(_0xfcbf('0x3'));var rp=require(_0xfcbf('0x4'));var moment=require(_0xfcbf('0x5'));var BPromise=require(_0xfcbf('0x6'));var Mustache=require('mustache');var util=require(_0xfcbf('0x7'));var path=require(_0xfcbf('0x8'));var sox=require(_0xfcbf('0x9'));var csv=require(_0xfcbf('0xa'));var ejs=require(_0xfcbf('0xb'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0xfcbf('0xc'));var squel=require(_0xfcbf('0xd'));var crypto=require(_0xfcbf('0xe'));var jsforce=require(_0xfcbf('0xf'));var deskjs=require(_0xfcbf('0x10'));var toCsv=require(_0xfcbf('0xa'));var querystring=require(_0xfcbf('0x11'));var Papa=require('papaparse');var Redis=require('ioredis');var authService=require(_0xfcbf('0x12'));var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xfcbf('0x13'));var logger=require(_0xfcbf('0x14'))(_0xfcbf('0x15'));var utils=require(_0xfcbf('0x16'));var config=require(_0xfcbf('0x17'));var licenseUtil=require(_0xfcbf('0x18'));var db=require(_0xfcbf('0x19'))['db'];function respondWithStatusCode(_0x1ae5f4,_0x67d774){_0x67d774=_0x67d774||0xcc;return function(_0x1c2908){if(_0x1c2908){return _0x1ae5f4[_0xfcbf('0x1a')](_0x67d774);}return _0x1ae5f4[_0xfcbf('0x1b')](_0x67d774)['end']();};}function respondWithResult(_0x14a3b4,_0x1d478b){_0x1d478b=_0x1d478b||0xc8;return function(_0x6cd04f){if(_0x6cd04f){return _0x14a3b4[_0xfcbf('0x1b')](_0x1d478b)[_0xfcbf('0x1c')](_0x6cd04f);}};}function respondWithFilteredResult(_0x47b2e8,_0x2a7bfe){return function(_0x3b35dd){if(_0x3b35dd){var _0x219216=typeof _0x2a7bfe[_0xfcbf('0x1d')]==='undefined'&&typeof _0x2a7bfe['limit']===_0xfcbf('0x1e');var _0x17ea07=_0x3b35dd[_0xfcbf('0x1f')];var _0x16c867=_0x219216?0x0:_0x2a7bfe[_0xfcbf('0x1d')];var _0x37a46c=_0x219216?_0x3b35dd[_0xfcbf('0x1f')]:_0x2a7bfe[_0xfcbf('0x1d')]+_0x2a7bfe[_0xfcbf('0x20')];var _0x2c5099;if(_0x37a46c>=_0x17ea07){_0x37a46c=_0x17ea07;_0x2c5099=0xc8;}else{_0x2c5099=0xce;}_0x47b2e8['status'](_0x2c5099);return _0x47b2e8['set']('Content-Range',_0x16c867+'-'+_0x37a46c+'/'+_0x17ea07)[_0xfcbf('0x1c')](_0x3b35dd);}return null;};}function patchUpdates(_0x4feab3){return function(_0x467f02){try{jsonpatch[_0xfcbf('0x21')](_0x467f02,_0x4feab3,!![]);}catch(_0x519223){return BPromise['reject'](_0x519223);}return _0x467f02[_0xfcbf('0x22')]();};}function saveUpdates(_0x2834be,_0x52a92a){return function(_0x360067){if(_0x360067){return _0x360067[_0xfcbf('0x23')](_0x2834be)[_0xfcbf('0x24')](function(_0x481ae4){return _0x481ae4;});}return null;};}function removeEntity(_0x5580c0,_0x1c025c){return function(_0x3d5864){if(_0x3d5864){return _0x3d5864[_0xfcbf('0x25')]()[_0xfcbf('0x24')](function(){_0x5580c0['status'](0xcc)[_0xfcbf('0x26')]();});}};}function handleEntityNotFound(_0xad7fdc,_0x44ebb4){return function(_0x33d0b1){if(!_0x33d0b1){_0xad7fdc[_0xfcbf('0x1a')](0x194);}return _0x33d0b1;};}function handleError(_0x477897,_0x81e043){_0x81e043=_0x81e043||0x1f4;return function(_0xaa6910){logger[_0xfcbf('0x27')](_0xaa6910[_0xfcbf('0x28')]);if(_0xaa6910[_0xfcbf('0x29')]){delete _0xaa6910[_0xfcbf('0x29')];}_0x477897[_0xfcbf('0x1b')](_0x81e043)[_0xfcbf('0x2a')](_0xaa6910);};}exports[_0xfcbf('0x2b')]=function(_0x51e4ce,_0x1f48ad){var _0x129990={},_0x8e10e={},_0x5ce71e={'count':0x0,'rows':[]};var _0x47307d=_[_0xfcbf('0x2c')](db[_0xfcbf('0x2d')]['rawAttributes'],function(_0x26bbe9){return{'name':_0x26bbe9[_0xfcbf('0x2e')],'type':_0x26bbe9[_0xfcbf('0x2f')][_0xfcbf('0x30')]};});_0x8e10e['model']=_[_0xfcbf('0x2c')](_0x47307d,_0xfcbf('0x29'));_0x8e10e[_0xfcbf('0x31')]=_[_0xfcbf('0x32')](_0x51e4ce['query']);_0x8e10e[_0xfcbf('0x33')]=_[_0xfcbf('0x34')](_0x8e10e[_0xfcbf('0x35')],_0x8e10e['query']);_0x129990[_0xfcbf('0x36')]=_['intersection'](_0x8e10e[_0xfcbf('0x35')],qs[_0xfcbf('0x37')](_0x51e4ce[_0xfcbf('0x31')]['fields']));_0x129990[_0xfcbf('0x36')]=_0x129990[_0xfcbf('0x36')][_0xfcbf('0x38')]?_0x129990[_0xfcbf('0x36')]:_0x8e10e[_0xfcbf('0x35')];if(!_0x51e4ce[_0xfcbf('0x31')][_0xfcbf('0x39')](_0xfcbf('0x3a'))){_0x129990[_0xfcbf('0x20')]=qs[_0xfcbf('0x20')](_0x51e4ce[_0xfcbf('0x31')][_0xfcbf('0x20')]);_0x129990[_0xfcbf('0x1d')]=qs[_0xfcbf('0x1d')](_0x51e4ce[_0xfcbf('0x31')][_0xfcbf('0x1d')]);}_0x129990[_0xfcbf('0x3b')]=qs[_0xfcbf('0x3c')](_0x51e4ce['query'][_0xfcbf('0x3c')]);_0x129990[_0xfcbf('0x3d')]=qs[_0xfcbf('0x33')](_[_0xfcbf('0x3e')](_0x51e4ce[_0xfcbf('0x31')],_0x8e10e[_0xfcbf('0x33')]),_0x47307d);if(_0x51e4ce[_0xfcbf('0x31')][_0xfcbf('0x3f')]){_0x129990[_0xfcbf('0x3d')]=_[_0xfcbf('0x40')](_0x129990[_0xfcbf('0x3d')],{'$or':_[_0xfcbf('0x2c')](_0x47307d,function(_0x77321e){if(_0x77321e['type']!==_0xfcbf('0x41')){var _0x1a6884={};_0x1a6884[_0x77321e[_0xfcbf('0x29')]]={'$like':'%'+_0x51e4ce[_0xfcbf('0x31')][_0xfcbf('0x3f')]+'%'};return _0x1a6884;}})});}_0x129990=_['merge']({},_0x129990,_0x51e4ce[_0xfcbf('0x42')]);var _0x1cfb6e={'where':_0x129990[_0xfcbf('0x3d')]};return db[_0xfcbf('0x2d')][_0xfcbf('0x1f')](_0x1cfb6e)[_0xfcbf('0x24')](function(_0x26b49e){_0x5ce71e[_0xfcbf('0x1f')]=_0x26b49e;if(_0x51e4ce[_0xfcbf('0x31')][_0xfcbf('0x43')]){_0x129990['include']=[{'all':!![]}];}return db['IntegrationReport'][_0xfcbf('0x44')](_0x129990);})['then'](function(_0x4ac1d8){_0x5ce71e[_0xfcbf('0x45')]=_0x4ac1d8;return _0x5ce71e;})[_0xfcbf('0x24')](respondWithFilteredResult(_0x1f48ad,_0x129990))[_0xfcbf('0x46')](handleError(_0x1f48ad,null));};exports['show']=function(_0x2a9747,_0x4704a6){var _0x23b8cd={'raw':![],'where':{'id':_0x2a9747['params']['id']}},_0x3aedc0={};_0x3aedc0[_0xfcbf('0x35')]=_[_0xfcbf('0x32')](db['IntegrationReport']['rawAttributes']);_0x3aedc0[_0xfcbf('0x31')]=_['keys'](_0x2a9747[_0xfcbf('0x31')]);_0x3aedc0[_0xfcbf('0x33')]=_[_0xfcbf('0x34')](_0x3aedc0['model'],_0x3aedc0[_0xfcbf('0x31')]);_0x23b8cd[_0xfcbf('0x36')]=_[_0xfcbf('0x34')](_0x3aedc0[_0xfcbf('0x35')],qs[_0xfcbf('0x37')](_0x2a9747[_0xfcbf('0x31')]['fields']));_0x23b8cd['attributes']=_0x23b8cd[_0xfcbf('0x36')][_0xfcbf('0x38')]?_0x23b8cd[_0xfcbf('0x36')]:_0x3aedc0[_0xfcbf('0x35')];if(_0x2a9747[_0xfcbf('0x31')]['includeAll']){_0x23b8cd[_0xfcbf('0x47')]=[{'all':!![]}];}_0x23b8cd=_[_0xfcbf('0x40')]({},_0x23b8cd,_0x2a9747[_0xfcbf('0x42')]);return db[_0xfcbf('0x2d')][_0xfcbf('0x48')](_0x23b8cd)[_0xfcbf('0x24')](handleEntityNotFound(_0x4704a6,null))[_0xfcbf('0x24')](respondWithResult(_0x4704a6,null))['catch'](handleError(_0x4704a6,null));};exports[_0xfcbf('0x49')]=function(_0x224c3d,_0x319f8d){return db[_0xfcbf('0x2d')][_0xfcbf('0x49')](_0x224c3d[_0xfcbf('0x4a')],{})['then'](respondWithResult(_0x319f8d,0xc9))[_0xfcbf('0x46')](handleError(_0x319f8d,null));};exports[_0xfcbf('0x23')]=function(_0x2b1016,_0xe11537){if(_0x2b1016[_0xfcbf('0x4a')]['id']){delete _0x2b1016[_0xfcbf('0x4a')]['id'];}return db[_0xfcbf('0x2d')][_0xfcbf('0x48')]({'where':{'id':_0x2b1016['params']['id']}})['then'](handleEntityNotFound(_0xe11537,null))['then'](saveUpdates(_0x2b1016[_0xfcbf('0x4a')],null))[_0xfcbf('0x24')](respondWithResult(_0xe11537,null))[_0xfcbf('0x46')](handleError(_0xe11537,null));};exports[_0xfcbf('0x25')]=function(_0x5b40b2,_0x544a55){return db[_0xfcbf('0x2d')][_0xfcbf('0x48')]({'where':{'id':_0x5b40b2[_0xfcbf('0x4b')]['id']}})[_0xfcbf('0x24')](handleEntityNotFound(_0x544a55,null))[_0xfcbf('0x24')](removeEntity(_0x544a55,null))[_0xfcbf('0x46')](handleError(_0x544a55,null));};exports[_0xfcbf('0x4c')]=function(_0x1e915a,_0x1ca50a){return db[_0xfcbf('0x2d')]['describe']()[_0xfcbf('0x24')](respondWithResult(_0x1ca50a,null))[_0xfcbf('0x46')](handleError(_0x1ca50a,null));};
\ No newline at end of file