Built motion from commit 97153652.|2.6.26
[motion2.git] / server / api / cmHopperBlack / cmHopperBlack.controller.js
index 7731a1f..24ccafb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xcefb=['index','map','CmHopperBlack','rawAttributes','type','key','model','query','keys','filters','intersection','fields','attributes','length','hasOwnProperty','nolimit','order','sort','where','pick','filter','VIRTUAL','merge','options','includeAll','findAll','rows','catch','show','params','include','body','find','rimraf','fast-json-patch','bluebird','mustache','util','path','sox','ejs','fs-extra','squel','jsforce','querystring','ioredis','../../components/parsers/qs','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','status','end','json','offset','undefined','count','limit','set','apply','reject','save','update','destroy','then','sendStatus','stack','name','send'];(function(_0x5e3b04,_0xbb6795){var _0x1fc44d=function(_0x3472a1){while(--_0x3472a1){_0x5e3b04['push'](_0x5e3b04['shift']());}};_0x1fc44d(++_0xbb6795);}(_0xcefb,0x1cb));var _0xbcef=function(_0x52ac6b,_0xb00fc8){_0x52ac6b=_0x52ac6b-0x0;var _0x2473af=_0xcefb[_0x52ac6b];return _0x2473af;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xbcef('0x0'));var zipdir=require('zip-dir');var jsonpatch=require(_0xbcef('0x1'));var rp=require('request-promise');var moment=require('moment');var BPromise=require(_0xbcef('0x2'));var Mustache=require(_0xbcef('0x3'));var util=require(_0xbcef('0x4'));var path=require(_0xbcef('0x5'));var sox=require(_0xbcef('0x6'));var csv=require('to-csv');var ejs=require(_0xbcef('0x7'));var fs=require('fs');var fs_extra=require(_0xbcef('0x8'));var _=require('lodash');var squel=require(_0xbcef('0x9'));var crypto=require('crypto');var jsforce=require(_0xbcef('0xa'));var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require(_0xbcef('0xb'));var Papa=require('papaparse');var Redis=require(_0xbcef('0xc'));var authService=require('../../components/auth/service');var qs=require(_0xbcef('0xd'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require(_0xbcef('0xe'))(_0xbcef('0xf'));var utils=require(_0xbcef('0x10'));var config=require(_0xbcef('0x11'));var licenseUtil=require(_0xbcef('0x12'));var db=require(_0xbcef('0x13'))['db'];function respondWithStatusCode(_0xd10324,_0x193bf2){_0x193bf2=_0x193bf2||0xcc;return function(_0xebb4d2){if(_0xebb4d2){return _0xd10324['sendStatus'](_0x193bf2);}return _0xd10324[_0xbcef('0x14')](_0x193bf2)[_0xbcef('0x15')]();};}function respondWithResult(_0x54f06d,_0x4183e0){_0x4183e0=_0x4183e0||0xc8;return function(_0xeb57ca){if(_0xeb57ca){return _0x54f06d[_0xbcef('0x14')](_0x4183e0)[_0xbcef('0x16')](_0xeb57ca);}};}function respondWithFilteredResult(_0x20d5f7,_0x52afa9){return function(_0x252a00){if(_0x252a00){var _0x5e1af9=typeof _0x52afa9[_0xbcef('0x17')]===_0xbcef('0x18')&&typeof _0x52afa9['limit']===_0xbcef('0x18');var _0x4c9a24=_0x252a00[_0xbcef('0x19')];var _0x52f856=_0x5e1af9?0x0:_0x52afa9[_0xbcef('0x17')];var _0x5ea0e1=_0x5e1af9?_0x252a00['count']:_0x52afa9[_0xbcef('0x17')]+_0x52afa9[_0xbcef('0x1a')];var _0x57e078;if(_0x5ea0e1>=_0x4c9a24){_0x5ea0e1=_0x4c9a24;_0x57e078=0xc8;}else{_0x57e078=0xce;}_0x20d5f7[_0xbcef('0x14')](_0x57e078);return _0x20d5f7[_0xbcef('0x1b')]('Content-Range',_0x52f856+'-'+_0x5ea0e1+'/'+_0x4c9a24)[_0xbcef('0x16')](_0x252a00);}return null;};}function patchUpdates(_0x1b1238){return function(_0x32c2b1){try{jsonpatch[_0xbcef('0x1c')](_0x32c2b1,_0x1b1238,!![]);}catch(_0xf59172){return BPromise[_0xbcef('0x1d')](_0xf59172);}return _0x32c2b1[_0xbcef('0x1e')]();};}function saveUpdates(_0x4690d7,_0x59cc37){return function(_0x1c3d28){if(_0x1c3d28){return _0x1c3d28[_0xbcef('0x1f')](_0x4690d7)['then'](function(_0x4e4ac6){return _0x4e4ac6;});}return null;};}function removeEntity(_0x487fd2,_0x193956){return function(_0x547e9c){if(_0x547e9c){return _0x547e9c[_0xbcef('0x20')]()[_0xbcef('0x21')](function(){_0x487fd2['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0xc76a7b,_0x445ba1){return function(_0x3fb166){if(!_0x3fb166){_0xc76a7b[_0xbcef('0x22')](0x194);}return _0x3fb166;};}function handleError(_0x4aa557,_0x328ccf){_0x328ccf=_0x328ccf||0x1f4;return function(_0x2feb7f){logger['error'](_0x2feb7f[_0xbcef('0x23')]);if(_0x2feb7f[_0xbcef('0x24')]){delete _0x2feb7f['name'];}_0x4aa557['status'](_0x328ccf)[_0xbcef('0x25')](_0x2feb7f);};}exports[_0xbcef('0x26')]=function(_0x3800fc,_0x1bac61){var _0xdf6a9={},_0x2ee8c8={},_0xb0db40={'count':0x0,'rows':[]};var _0x11d09a=_[_0xbcef('0x27')](db[_0xbcef('0x28')][_0xbcef('0x29')],function(_0x470c7f){return{'name':_0x470c7f['fieldName'],'type':_0x470c7f[_0xbcef('0x2a')][_0xbcef('0x2b')]};});_0x2ee8c8[_0xbcef('0x2c')]=_[_0xbcef('0x27')](_0x11d09a,_0xbcef('0x24'));_0x2ee8c8[_0xbcef('0x2d')]=_[_0xbcef('0x2e')](_0x3800fc[_0xbcef('0x2d')]);_0x2ee8c8[_0xbcef('0x2f')]=_[_0xbcef('0x30')](_0x2ee8c8[_0xbcef('0x2c')],_0x2ee8c8[_0xbcef('0x2d')]);_0xdf6a9['attributes']=_[_0xbcef('0x30')](_0x2ee8c8[_0xbcef('0x2c')],qs[_0xbcef('0x31')](_0x3800fc['query'][_0xbcef('0x31')]));_0xdf6a9[_0xbcef('0x32')]=_0xdf6a9[_0xbcef('0x32')][_0xbcef('0x33')]?_0xdf6a9[_0xbcef('0x32')]:_0x2ee8c8[_0xbcef('0x2c')];if(!_0x3800fc[_0xbcef('0x2d')][_0xbcef('0x34')](_0xbcef('0x35'))){_0xdf6a9[_0xbcef('0x1a')]=qs[_0xbcef('0x1a')](_0x3800fc['query'][_0xbcef('0x1a')]);_0xdf6a9[_0xbcef('0x17')]=qs[_0xbcef('0x17')](_0x3800fc['query'][_0xbcef('0x17')]);}_0xdf6a9[_0xbcef('0x36')]=qs[_0xbcef('0x37')](_0x3800fc['query'][_0xbcef('0x37')]);_0xdf6a9[_0xbcef('0x38')]=qs['filters'](_[_0xbcef('0x39')](_0x3800fc[_0xbcef('0x2d')],_0x2ee8c8[_0xbcef('0x2f')]),_0x11d09a);if(_0x3800fc['query'][_0xbcef('0x3a')]){_0xdf6a9[_0xbcef('0x38')]=_['merge'](_0xdf6a9['where'],{'$or':_[_0xbcef('0x27')](_0x11d09a,function(_0x5b1491){if(_0x5b1491[_0xbcef('0x2a')]!==_0xbcef('0x3b')){var _0x27314b={};_0x27314b[_0x5b1491[_0xbcef('0x24')]]={'$like':'%'+_0x3800fc[_0xbcef('0x2d')][_0xbcef('0x3a')]+'%'};return _0x27314b;}})});}_0xdf6a9=_[_0xbcef('0x3c')]({},_0xdf6a9,_0x3800fc[_0xbcef('0x3d')]);var _0x49911e={'where':_0xdf6a9[_0xbcef('0x38')]};return db['CmHopperBlack'][_0xbcef('0x19')](_0x49911e)[_0xbcef('0x21')](function(_0x48d302){_0xb0db40['count']=_0x48d302;if(_0x3800fc[_0xbcef('0x2d')][_0xbcef('0x3e')]){_0xdf6a9['include']=[{'all':!![]}];}return db['CmHopperBlack'][_0xbcef('0x3f')](_0xdf6a9);})[_0xbcef('0x21')](function(_0xb34091){_0xb0db40[_0xbcef('0x40')]=_0xb34091;return _0xb0db40;})[_0xbcef('0x21')](respondWithFilteredResult(_0x1bac61,_0xdf6a9))[_0xbcef('0x41')](handleError(_0x1bac61,null));};exports[_0xbcef('0x42')]=function(_0x36d3ed,_0x5efd2a){var _0x23cb78={'raw':!![],'where':{'id':_0x36d3ed[_0xbcef('0x43')]['id']}},_0x3004b2={};_0x3004b2[_0xbcef('0x2c')]=_[_0xbcef('0x2e')](db[_0xbcef('0x28')]['rawAttributes']);_0x3004b2['query']=_[_0xbcef('0x2e')](_0x36d3ed[_0xbcef('0x2d')]);_0x3004b2[_0xbcef('0x2f')]=_[_0xbcef('0x30')](_0x3004b2['model'],_0x3004b2[_0xbcef('0x2d')]);_0x23cb78[_0xbcef('0x32')]=_[_0xbcef('0x30')](_0x3004b2['model'],qs[_0xbcef('0x31')](_0x36d3ed[_0xbcef('0x2d')][_0xbcef('0x31')]));_0x23cb78[_0xbcef('0x32')]=_0x23cb78[_0xbcef('0x32')][_0xbcef('0x33')]?_0x23cb78[_0xbcef('0x32')]:_0x3004b2[_0xbcef('0x2c')];if(_0x36d3ed['query'][_0xbcef('0x3e')]){_0x23cb78[_0xbcef('0x44')]=[{'all':!![]}];}_0x23cb78=_[_0xbcef('0x3c')]({},_0x23cb78,_0x36d3ed[_0xbcef('0x3d')]);return db['CmHopperBlack']['find'](_0x23cb78)[_0xbcef('0x21')](handleEntityNotFound(_0x5efd2a,null))[_0xbcef('0x21')](respondWithResult(_0x5efd2a,null))[_0xbcef('0x41')](handleError(_0x5efd2a,null));};exports[_0xbcef('0x1f')]=function(_0x1ab3cd,_0x1bbd0b){if(_0x1ab3cd['body']['id']){delete _0x1ab3cd[_0xbcef('0x45')]['id'];}return db[_0xbcef('0x28')][_0xbcef('0x46')]({'where':{'id':_0x1ab3cd[_0xbcef('0x43')]['id']}})[_0xbcef('0x21')](handleEntityNotFound(_0x1bbd0b,null))[_0xbcef('0x21')](saveUpdates(_0x1ab3cd[_0xbcef('0x45')],null))[_0xbcef('0x21')](respondWithResult(_0x1bbd0b,null))[_0xbcef('0x41')](handleError(_0x1bbd0b,null));};exports['destroy']=function(_0xbc3e2,_0x23b6db){return db[_0xbcef('0x28')][_0xbcef('0x46')]({'where':{'id':_0xbc3e2[_0xbcef('0x43')]['id']}})[_0xbcef('0x21')](handleEntityNotFound(_0x23b6db,null))[_0xbcef('0x21')](removeEntity(_0x23b6db,null))['catch'](handleError(_0x23b6db,null));};exports['describe']=function(_0x2de9a4,_0x14c703){return db[_0xbcef('0x28')]['describe']()[_0xbcef('0x21')](respondWithResult(_0x14c703,null))[_0xbcef('0x41')](handleError(_0x14c703,null));};
\ No newline at end of file
+var _0x4a9a=['merge','VIRTUAL','includeAll','include','findAll','rows','catch','show','params','length','options','find','body','destroy','describe','rimraf','zip-dir','request-promise','moment','mustache','util','to-csv','ejs','fs-extra','jsforce','desk.js','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','status','end','json','undefined','offset','count','limit','set','apply','reject','update','then','sendStatus','error','name','send','map','CmHopperBlack','rawAttributes','fieldName','type','key','keys','query','intersection','model','attributes','fields','hasOwnProperty','sort','filters','filter','where'];(function(_0x5e6bec,_0x1eb54d){var _0x5dc5cf=function(_0x59429a){while(--_0x59429a){_0x5e6bec['push'](_0x5e6bec['shift']());}};_0x5dc5cf(++_0x1eb54d);}(_0x4a9a,0x123));var _0xa4a9=function(_0xf4cba2,_0x372e6c){_0xf4cba2=_0xf4cba2-0x0;var _0x454be4=_0x4a9a[_0xf4cba2];return _0x454be4;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xa4a9('0x0'));var zipdir=require(_0xa4a9('0x1'));var jsonpatch=require('fast-json-patch');var rp=require(_0xa4a9('0x2'));var moment=require(_0xa4a9('0x3'));var BPromise=require('bluebird');var Mustache=require(_0xa4a9('0x4'));var util=require(_0xa4a9('0x5'));var path=require('path');var sox=require('sox');var csv=require(_0xa4a9('0x6'));var ejs=require(_0xa4a9('0x7'));var fs=require('fs');var fs_extra=require(_0xa4a9('0x8'));var _=require('lodash');var squel=require('squel');var crypto=require('crypto');var jsforce=require(_0xa4a9('0x9'));var deskjs=require(_0xa4a9('0xa'));var toCsv=require('to-csv');var querystring=require(_0xa4a9('0xb'));var Papa=require('papaparse');var Redis=require(_0xa4a9('0xc'));var authService=require(_0xa4a9('0xd'));var qs=require(_0xa4a9('0xe'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xa4a9('0xf'));var logger=require('../../config/logger')(_0xa4a9('0x10'));var utils=require(_0xa4a9('0x11'));var config=require(_0xa4a9('0x12'));var licenseUtil=require(_0xa4a9('0x13'));var db=require(_0xa4a9('0x14'))['db'];function respondWithStatusCode(_0x400596,_0x317a5){_0x317a5=_0x317a5||0xcc;return function(_0x38b3f3){if(_0x38b3f3){return _0x400596['sendStatus'](_0x317a5);}return _0x400596[_0xa4a9('0x15')](_0x317a5)[_0xa4a9('0x16')]();};}function respondWithResult(_0x6887c3,_0x46239f){_0x46239f=_0x46239f||0xc8;return function(_0x12ba62){if(_0x12ba62){return _0x6887c3[_0xa4a9('0x15')](_0x46239f)[_0xa4a9('0x17')](_0x12ba62);}};}function respondWithFilteredResult(_0x37f83d,_0x5edd22){return function(_0x49bce3){if(_0x49bce3){var _0x5f270e=typeof _0x5edd22['offset']===_0xa4a9('0x18')&&typeof _0x5edd22['limit']===_0xa4a9('0x18');var _0xb0a525=_0x49bce3['count'];var _0x44b3f9=_0x5f270e?0x0:_0x5edd22[_0xa4a9('0x19')];var _0xae43a=_0x5f270e?_0x49bce3[_0xa4a9('0x1a')]:_0x5edd22[_0xa4a9('0x19')]+_0x5edd22[_0xa4a9('0x1b')];var _0x7d0481;if(_0xae43a>=_0xb0a525){_0xae43a=_0xb0a525;_0x7d0481=0xc8;}else{_0x7d0481=0xce;}_0x37f83d[_0xa4a9('0x15')](_0x7d0481);return _0x37f83d[_0xa4a9('0x1c')]('Content-Range',_0x44b3f9+'-'+_0xae43a+'/'+_0xb0a525)[_0xa4a9('0x17')](_0x49bce3);}return null;};}function patchUpdates(_0x2be3df){return function(_0x402adf){try{jsonpatch[_0xa4a9('0x1d')](_0x402adf,_0x2be3df,!![]);}catch(_0x28eece){return BPromise[_0xa4a9('0x1e')](_0x28eece);}return _0x402adf['save']();};}function saveUpdates(_0x3c58ac,_0xc6647d){return function(_0x30b0d9){if(_0x30b0d9){return _0x30b0d9[_0xa4a9('0x1f')](_0x3c58ac)['then'](function(_0x1241d2){return _0x1241d2;});}return null;};}function removeEntity(_0x28aefb,_0x29252a){return function(_0x4039e6){if(_0x4039e6){return _0x4039e6['destroy']()[_0xa4a9('0x20')](function(){_0x28aefb[_0xa4a9('0x15')](0xcc)[_0xa4a9('0x16')]();});}};}function handleEntityNotFound(_0x4d9d66,_0x289d33){return function(_0x1a3445){if(!_0x1a3445){_0x4d9d66[_0xa4a9('0x21')](0x194);}return _0x1a3445;};}function handleError(_0x4e899b,_0xf9902e){_0xf9902e=_0xf9902e||0x1f4;return function(_0x34ba93){logger[_0xa4a9('0x22')](_0x34ba93['stack']);if(_0x34ba93[_0xa4a9('0x23')]){delete _0x34ba93['name'];}_0x4e899b[_0xa4a9('0x15')](_0xf9902e)[_0xa4a9('0x24')](_0x34ba93);};}exports['index']=function(_0x32f2e5,_0x353a41){var _0x3af70c={},_0x1a7b54={},_0x15b62d={'count':0x0,'rows':[]};var _0xf6b7c3=_[_0xa4a9('0x25')](db[_0xa4a9('0x26')][_0xa4a9('0x27')],function(_0x2c5ba2){return{'name':_0x2c5ba2[_0xa4a9('0x28')],'type':_0x2c5ba2[_0xa4a9('0x29')][_0xa4a9('0x2a')]};});_0x1a7b54['model']=_[_0xa4a9('0x25')](_0xf6b7c3,_0xa4a9('0x23'));_0x1a7b54['query']=_[_0xa4a9('0x2b')](_0x32f2e5[_0xa4a9('0x2c')]);_0x1a7b54['filters']=_[_0xa4a9('0x2d')](_0x1a7b54[_0xa4a9('0x2e')],_0x1a7b54[_0xa4a9('0x2c')]);_0x3af70c[_0xa4a9('0x2f')]=_[_0xa4a9('0x2d')](_0x1a7b54[_0xa4a9('0x2e')],qs['fields'](_0x32f2e5[_0xa4a9('0x2c')][_0xa4a9('0x30')]));_0x3af70c[_0xa4a9('0x2f')]=_0x3af70c['attributes']['length']?_0x3af70c[_0xa4a9('0x2f')]:_0x1a7b54['model'];if(!_0x32f2e5[_0xa4a9('0x2c')][_0xa4a9('0x31')]('nolimit')){_0x3af70c[_0xa4a9('0x1b')]=qs[_0xa4a9('0x1b')](_0x32f2e5[_0xa4a9('0x2c')][_0xa4a9('0x1b')]);_0x3af70c[_0xa4a9('0x19')]=qs[_0xa4a9('0x19')](_0x32f2e5[_0xa4a9('0x2c')][_0xa4a9('0x19')]);}_0x3af70c['order']=qs['sort'](_0x32f2e5[_0xa4a9('0x2c')][_0xa4a9('0x32')]);_0x3af70c['where']=qs['filters'](_['pick'](_0x32f2e5['query'],_0x1a7b54[_0xa4a9('0x33')]),_0xf6b7c3);if(_0x32f2e5[_0xa4a9('0x2c')][_0xa4a9('0x34')]){_0x3af70c[_0xa4a9('0x35')]=_[_0xa4a9('0x36')](_0x3af70c[_0xa4a9('0x35')],{'$or':_['map'](_0xf6b7c3,function(_0x257b0d){if(_0x257b0d[_0xa4a9('0x29')]!==_0xa4a9('0x37')){var _0x36778f={};_0x36778f[_0x257b0d[_0xa4a9('0x23')]]={'$like':'%'+_0x32f2e5[_0xa4a9('0x2c')][_0xa4a9('0x34')]+'%'};return _0x36778f;}})});}_0x3af70c=_[_0xa4a9('0x36')]({},_0x3af70c,_0x32f2e5['options']);var _0x584d1b={'where':_0x3af70c[_0xa4a9('0x35')]};return db['CmHopperBlack'][_0xa4a9('0x1a')](_0x584d1b)[_0xa4a9('0x20')](function(_0x537de1){_0x15b62d[_0xa4a9('0x1a')]=_0x537de1;if(_0x32f2e5['query'][_0xa4a9('0x38')]){_0x3af70c[_0xa4a9('0x39')]=[{'all':!![]}];}return db[_0xa4a9('0x26')][_0xa4a9('0x3a')](_0x3af70c);})['then'](function(_0x129b17){_0x15b62d[_0xa4a9('0x3b')]=_0x129b17;return _0x15b62d;})['then'](respondWithFilteredResult(_0x353a41,_0x3af70c))[_0xa4a9('0x3c')](handleError(_0x353a41,null));};exports[_0xa4a9('0x3d')]=function(_0x212e08,_0x32f4f0){var _0x1e5907={'raw':!![],'where':{'id':_0x212e08[_0xa4a9('0x3e')]['id']}},_0x380ade={};_0x380ade[_0xa4a9('0x2e')]=_['keys'](db[_0xa4a9('0x26')][_0xa4a9('0x27')]);_0x380ade[_0xa4a9('0x2c')]=_['keys'](_0x212e08[_0xa4a9('0x2c')]);_0x380ade[_0xa4a9('0x33')]=_[_0xa4a9('0x2d')](_0x380ade[_0xa4a9('0x2e')],_0x380ade[_0xa4a9('0x2c')]);_0x1e5907[_0xa4a9('0x2f')]=_[_0xa4a9('0x2d')](_0x380ade[_0xa4a9('0x2e')],qs[_0xa4a9('0x30')](_0x212e08['query']['fields']));_0x1e5907[_0xa4a9('0x2f')]=_0x1e5907[_0xa4a9('0x2f')][_0xa4a9('0x3f')]?_0x1e5907[_0xa4a9('0x2f')]:_0x380ade[_0xa4a9('0x2e')];if(_0x212e08[_0xa4a9('0x2c')][_0xa4a9('0x38')]){_0x1e5907[_0xa4a9('0x39')]=[{'all':!![]}];}_0x1e5907=_[_0xa4a9('0x36')]({},_0x1e5907,_0x212e08[_0xa4a9('0x40')]);return db['CmHopperBlack'][_0xa4a9('0x41')](_0x1e5907)[_0xa4a9('0x20')](handleEntityNotFound(_0x32f4f0,null))[_0xa4a9('0x20')](respondWithResult(_0x32f4f0,null))[_0xa4a9('0x3c')](handleError(_0x32f4f0,null));};exports[_0xa4a9('0x1f')]=function(_0x36df97,_0x14d931){if(_0x36df97[_0xa4a9('0x42')]['id']){delete _0x36df97[_0xa4a9('0x42')]['id'];}return db[_0xa4a9('0x26')][_0xa4a9('0x41')]({'where':{'id':_0x36df97[_0xa4a9('0x3e')]['id']}})[_0xa4a9('0x20')](handleEntityNotFound(_0x14d931,null))[_0xa4a9('0x20')](saveUpdates(_0x36df97['body'],null))['then'](respondWithResult(_0x14d931,null))[_0xa4a9('0x3c')](handleError(_0x14d931,null));};exports[_0xa4a9('0x43')]=function(_0x125211,_0x212910){return db[_0xa4a9('0x26')][_0xa4a9('0x41')]({'where':{'id':_0x125211[_0xa4a9('0x3e')]['id']}})['then'](handleEntityNotFound(_0x212910,null))[_0xa4a9('0x20')](removeEntity(_0x212910,null))[_0xa4a9('0x3c')](handleError(_0x212910,null));};exports[_0xa4a9('0x44')]=function(_0x4e3fd0,_0x36309){return db[_0xa4a9('0x26')][_0xa4a9('0x44')]()['then'](respondWithResult(_0x36309,null))[_0xa4a9('0x3c')](handleError(_0x36309,null));};
\ No newline at end of file