Built motion from commit 97153652.|2.6.26
[motion2.git] / server / api / cmHopperBlack / cmHopperBlack.controller.js
index e3beeb8..24ccafb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x25de=['end','offset','undefined','limit','count','Content-Range','apply','reject','save','then','destroy','error','stack','name','send','index','map','fieldName','type','model','intersection','query','fields','attributes','length','hasOwnProperty','nolimit','sort','where','filters','pick','filter','merge','options','CmHopperBlack','includeAll','include','show','params','keys','rawAttributes','catch','update','body','find','describe','eml-format','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status'];(function(_0x1fab16,_0x36e47f){var _0x720c6c=function(_0x2b4fa5){while(--_0x2b4fa5){_0x1fab16['push'](_0x1fab16['shift']());}};_0x720c6c(++_0x36e47f);}(_0x25de,0xc6));var _0xe25d=function(_0x3c6dce,_0x5424dd){_0x3c6dce=_0x3c6dce-0x0;var _0x1450e9=_0x25de[_0x3c6dce];return _0x1450e9;};'use strict';var emlformat=require(_0xe25d('0x0'));var rimraf=require('rimraf');var zipdir=require('zip-dir');var jsonpatch=require(_0xe25d('0x1'));var rp=require(_0xe25d('0x2'));var moment=require(_0xe25d('0x3'));var BPromise=require(_0xe25d('0x4'));var Mustache=require(_0xe25d('0x5'));var util=require(_0xe25d('0x6'));var path=require(_0xe25d('0x7'));var sox=require(_0xe25d('0x8'));var csv=require(_0xe25d('0x9'));var ejs=require(_0xe25d('0xa'));var fs=require('fs');var fs_extra=require(_0xe25d('0xb'));var _=require(_0xe25d('0xc'));var squel=require(_0xe25d('0xd'));var crypto=require(_0xe25d('0xe'));var jsforce=require(_0xe25d('0xf'));var deskjs=require(_0xe25d('0x10'));var toCsv=require(_0xe25d('0x9'));var querystring=require(_0xe25d('0x11'));var Papa=require(_0xe25d('0x12'));var Redis=require('ioredis');var authService=require(_0xe25d('0x13'));var qs=require(_0xe25d('0x14'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xe25d('0x15'));var logger=require(_0xe25d('0x16'))(_0xe25d('0x17'));var utils=require(_0xe25d('0x18'));var config=require(_0xe25d('0x19'));var licenseUtil=require(_0xe25d('0x1a'));var db=require(_0xe25d('0x1b'))['db'];function respondWithStatusCode(_0x4b3612,_0xa1c802){_0xa1c802=_0xa1c802||0xcc;return function(_0x1441e4){if(_0x1441e4){return _0x4b3612[_0xe25d('0x1c')](_0xa1c802);}return _0x4b3612[_0xe25d('0x1d')](_0xa1c802)[_0xe25d('0x1e')]();};}function respondWithResult(_0x386ba6,_0x284190){_0x284190=_0x284190||0xc8;return function(_0x6a5da0){if(_0x6a5da0){return _0x386ba6[_0xe25d('0x1d')](_0x284190)['json'](_0x6a5da0);}};}function respondWithFilteredResult(_0x5ee03b,_0x64a7a5){return function(_0x3af1d1){if(_0x3af1d1){var _0x30a5a5=typeof _0x64a7a5[_0xe25d('0x1f')]===_0xe25d('0x20')&&typeof _0x64a7a5[_0xe25d('0x21')]===_0xe25d('0x20');var _0x1c3392=_0x3af1d1[_0xe25d('0x22')];var _0x4d3f19=_0x30a5a5?0x0:_0x64a7a5['offset'];var _0xbfa795=_0x30a5a5?_0x3af1d1[_0xe25d('0x22')]:_0x64a7a5[_0xe25d('0x1f')]+_0x64a7a5['limit'];var _0x5c525b;if(_0xbfa795>=_0x1c3392){_0xbfa795=_0x1c3392;_0x5c525b=0xc8;}else{_0x5c525b=0xce;}_0x5ee03b[_0xe25d('0x1d')](_0x5c525b);return _0x5ee03b['set'](_0xe25d('0x23'),_0x4d3f19+'-'+_0xbfa795+'/'+_0x1c3392)['json'](_0x3af1d1);}return null;};}function patchUpdates(_0x349e4b){return function(_0x19de45){try{jsonpatch[_0xe25d('0x24')](_0x19de45,_0x349e4b,!![]);}catch(_0x4b933e){return BPromise[_0xe25d('0x25')](_0x4b933e);}return _0x19de45[_0xe25d('0x26')]();};}function saveUpdates(_0x58cd17,_0x22d462){return function(_0x483482){if(_0x483482){return _0x483482['update'](_0x58cd17)[_0xe25d('0x27')](function(_0x335441){return _0x335441;});}return null;};}function removeEntity(_0x309b33,_0x44a178){return function(_0x4452d9){if(_0x4452d9){return _0x4452d9[_0xe25d('0x28')]()[_0xe25d('0x27')](function(){_0x309b33[_0xe25d('0x1d')](0xcc)[_0xe25d('0x1e')]();});}};}function handleEntityNotFound(_0x36b055,_0x6a45e2){return function(_0x34986c){if(!_0x34986c){_0x36b055[_0xe25d('0x1c')](0x194);}return _0x34986c;};}function handleError(_0x8ce7e1,_0x43f27f){_0x43f27f=_0x43f27f||0x1f4;return function(_0x1e78ca){logger[_0xe25d('0x29')](_0x1e78ca[_0xe25d('0x2a')]);if(_0x1e78ca[_0xe25d('0x2b')]){delete _0x1e78ca['name'];}_0x8ce7e1[_0xe25d('0x1d')](_0x43f27f)[_0xe25d('0x2c')](_0x1e78ca);};}exports[_0xe25d('0x2d')]=function(_0x5492ed,_0x291e2e){var _0x5c5b8c={},_0x492039={},_0x25f724={'count':0x0,'rows':[]};var _0x201f78=_[_0xe25d('0x2e')](db['CmHopperBlack']['rawAttributes'],function(_0x4dc05b){return{'name':_0x4dc05b[_0xe25d('0x2f')],'type':_0x4dc05b[_0xe25d('0x30')]['key']};});_0x492039[_0xe25d('0x31')]=_[_0xe25d('0x2e')](_0x201f78,_0xe25d('0x2b'));_0x492039['query']=_['keys'](_0x5492ed['query']);_0x492039['filters']=_[_0xe25d('0x32')](_0x492039[_0xe25d('0x31')],_0x492039[_0xe25d('0x33')]);_0x5c5b8c['attributes']=_[_0xe25d('0x32')](_0x492039[_0xe25d('0x31')],qs[_0xe25d('0x34')](_0x5492ed[_0xe25d('0x33')][_0xe25d('0x34')]));_0x5c5b8c[_0xe25d('0x35')]=_0x5c5b8c[_0xe25d('0x35')][_0xe25d('0x36')]?_0x5c5b8c[_0xe25d('0x35')]:_0x492039[_0xe25d('0x31')];if(!_0x5492ed[_0xe25d('0x33')][_0xe25d('0x37')](_0xe25d('0x38'))){_0x5c5b8c['limit']=qs[_0xe25d('0x21')](_0x5492ed[_0xe25d('0x33')][_0xe25d('0x21')]);_0x5c5b8c[_0xe25d('0x1f')]=qs['offset'](_0x5492ed['query'][_0xe25d('0x1f')]);}_0x5c5b8c['order']=qs[_0xe25d('0x39')](_0x5492ed[_0xe25d('0x33')]['sort']);_0x5c5b8c[_0xe25d('0x3a')]=qs[_0xe25d('0x3b')](_[_0xe25d('0x3c')](_0x5492ed[_0xe25d('0x33')],_0x492039[_0xe25d('0x3b')]),_0x201f78);if(_0x5492ed[_0xe25d('0x33')][_0xe25d('0x3d')]){_0x5c5b8c[_0xe25d('0x3a')]=_[_0xe25d('0x3e')](_0x5c5b8c[_0xe25d('0x3a')],{'$or':_[_0xe25d('0x2e')](_0x201f78,function(_0x4c53c2){if(_0x4c53c2[_0xe25d('0x30')]!=='VIRTUAL'){var _0x32c561={};_0x32c561[_0x4c53c2['name']]={'$like':'%'+_0x5492ed['query']['filter']+'%'};return _0x32c561;}})});}_0x5c5b8c=_[_0xe25d('0x3e')]({},_0x5c5b8c,_0x5492ed[_0xe25d('0x3f')]);var _0xb4bfa0={'where':_0x5c5b8c[_0xe25d('0x3a')]};return db[_0xe25d('0x40')][_0xe25d('0x22')](_0xb4bfa0)['then'](function(_0x549ebd){_0x25f724[_0xe25d('0x22')]=_0x549ebd;if(_0x5492ed['query'][_0xe25d('0x41')]){_0x5c5b8c[_0xe25d('0x42')]=[{'all':!![]}];}return db[_0xe25d('0x40')]['findAll'](_0x5c5b8c);})[_0xe25d('0x27')](function(_0x35832c){_0x25f724['rows']=_0x35832c;return _0x25f724;})[_0xe25d('0x27')](respondWithFilteredResult(_0x291e2e,_0x5c5b8c))['catch'](handleError(_0x291e2e,null));};exports[_0xe25d('0x43')]=function(_0x26aabd,_0x597bd8){var _0x1a6246={'raw':!![],'where':{'id':_0x26aabd[_0xe25d('0x44')]['id']}},_0x45c58b={};_0x45c58b[_0xe25d('0x31')]=_[_0xe25d('0x45')](db['CmHopperBlack'][_0xe25d('0x46')]);_0x45c58b[_0xe25d('0x33')]=_[_0xe25d('0x45')](_0x26aabd[_0xe25d('0x33')]);_0x45c58b['filters']=_[_0xe25d('0x32')](_0x45c58b['model'],_0x45c58b[_0xe25d('0x33')]);_0x1a6246[_0xe25d('0x35')]=_[_0xe25d('0x32')](_0x45c58b[_0xe25d('0x31')],qs[_0xe25d('0x34')](_0x26aabd[_0xe25d('0x33')][_0xe25d('0x34')]));_0x1a6246[_0xe25d('0x35')]=_0x1a6246[_0xe25d('0x35')][_0xe25d('0x36')]?_0x1a6246[_0xe25d('0x35')]:_0x45c58b[_0xe25d('0x31')];if(_0x26aabd['query'][_0xe25d('0x41')]){_0x1a6246[_0xe25d('0x42')]=[{'all':!![]}];}_0x1a6246=_[_0xe25d('0x3e')]({},_0x1a6246,_0x26aabd['options']);return db[_0xe25d('0x40')]['find'](_0x1a6246)[_0xe25d('0x27')](handleEntityNotFound(_0x597bd8,null))[_0xe25d('0x27')](respondWithResult(_0x597bd8,null))[_0xe25d('0x47')](handleError(_0x597bd8,null));};exports[_0xe25d('0x48')]=function(_0x4bd31f,_0x2bc5ea){if(_0x4bd31f[_0xe25d('0x49')]['id']){delete _0x4bd31f['body']['id'];}return db['CmHopperBlack'][_0xe25d('0x4a')]({'where':{'id':_0x4bd31f[_0xe25d('0x44')]['id']}})['then'](handleEntityNotFound(_0x2bc5ea,null))[_0xe25d('0x27')](saveUpdates(_0x4bd31f[_0xe25d('0x49')],null))[_0xe25d('0x27')](respondWithResult(_0x2bc5ea,null))['catch'](handleError(_0x2bc5ea,null));};exports[_0xe25d('0x28')]=function(_0x19328c,_0x5dddfa){return db[_0xe25d('0x40')][_0xe25d('0x4a')]({'where':{'id':_0x19328c[_0xe25d('0x44')]['id']}})['then'](handleEntityNotFound(_0x5dddfa,null))[_0xe25d('0x27')](removeEntity(_0x5dddfa,null))['catch'](handleError(_0x5dddfa,null));};exports[_0xe25d('0x4b')]=function(_0x74994,_0x2322c2){return db['CmHopperBlack']['describe']()[_0xe25d('0x27')](respondWithResult(_0x2322c2,null))[_0xe25d('0x47')](handleError(_0x2322c2,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