Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / cmHopperHistory / cmHopperHistory.controller.js
index 1aa7b05..45848a1 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8f71=['merge','type','VIRTUAL','include','findAll','rows','catch','show','params','rawAttributes','find','create','body','describe','uniqueid','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','status','end','offset','undefined','limit','count','set','Content-Range','json','reject','save','update','then','destroy','sendStatus','error','stack','name','send','index','map','CmHopperHistory','fieldName','key','keys','query','filters','intersection','model','attributes','fields','length','nolimit','order','sort','pick','filter','where'];(function(_0x4ac716,_0x40243f){var _0x35f56b=function(_0x14e518){while(--_0x14e518){_0x4ac716['push'](_0x4ac716['shift']());}};_0x35f56b(++_0x40243f);}(_0x8f71,0x157));var _0x18f7=function(_0x1dd7a3,_0x2d7819){_0x1dd7a3=_0x1dd7a3-0x0;var _0x473c5d=_0x8f71[_0x1dd7a3];return _0x473c5d;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x18f7('0x0'));var zipdir=require(_0x18f7('0x1'));var jsonpatch=require(_0x18f7('0x2'));var rp=require(_0x18f7('0x3'));var moment=require(_0x18f7('0x4'));var BPromise=require(_0x18f7('0x5'));var Mustache=require(_0x18f7('0x6'));var util=require(_0x18f7('0x7'));var path=require(_0x18f7('0x8'));var sox=require(_0x18f7('0x9'));var csv=require(_0x18f7('0xa'));var ejs=require(_0x18f7('0xb'));var fs=require('fs');var fs_extra=require(_0x18f7('0xc'));var _=require(_0x18f7('0xd'));var squel=require(_0x18f7('0xe'));var crypto=require(_0x18f7('0xf'));var jsforce=require(_0x18f7('0x10'));var deskjs=require(_0x18f7('0x11'));var toCsv=require(_0x18f7('0xa'));var querystring=require(_0x18f7('0x12'));var Papa=require('papaparse');var Redis=require(_0x18f7('0x13'));var authService=require(_0x18f7('0x14'));var qs=require(_0x18f7('0x15'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x18f7('0x16'));var logger=require(_0x18f7('0x17'))(_0x18f7('0x18'));var utils=require(_0x18f7('0x19'));var config=require(_0x18f7('0x1a'));var licenseUtil=require(_0x18f7('0x1b'));var db=require(_0x18f7('0x1c'))['db'];function respondWithStatusCode(_0x1c5165,_0x58b30d){_0x58b30d=_0x58b30d||0xcc;return function(_0x17c005){if(_0x17c005){return _0x1c5165['sendStatus'](_0x58b30d);}return _0x1c5165[_0x18f7('0x1d')](_0x58b30d)[_0x18f7('0x1e')]();};}function respondWithResult(_0x4f4e0a,_0x3dc2b0){_0x3dc2b0=_0x3dc2b0||0xc8;return function(_0xc9d7cc){if(_0xc9d7cc){return _0x4f4e0a[_0x18f7('0x1d')](_0x3dc2b0)['json'](_0xc9d7cc);}};}function respondWithFilteredResult(_0x514162,_0x1068cd){return function(_0x5dc69c){if(_0x5dc69c){var _0x27cf95=typeof _0x1068cd[_0x18f7('0x1f')]===_0x18f7('0x20')&&typeof _0x1068cd[_0x18f7('0x21')]==='undefined';var _0x2c8098=_0x5dc69c[_0x18f7('0x22')];var _0x2b2e17=_0x27cf95?0x0:_0x1068cd['offset'];var _0x32233e=_0x27cf95?_0x5dc69c[_0x18f7('0x22')]:_0x1068cd[_0x18f7('0x1f')]+_0x1068cd[_0x18f7('0x21')];var _0x4c9477;if(_0x32233e>=_0x2c8098){_0x32233e=_0x2c8098;_0x4c9477=0xc8;}else{_0x4c9477=0xce;}_0x514162['status'](_0x4c9477);return _0x514162[_0x18f7('0x23')](_0x18f7('0x24'),_0x2b2e17+'-'+_0x32233e+'/'+_0x2c8098)[_0x18f7('0x25')](_0x5dc69c);}return null;};}function patchUpdates(_0x7a56ce){return function(_0x2f8b48){try{jsonpatch['apply'](_0x2f8b48,_0x7a56ce,!![]);}catch(_0x24f7ca){return BPromise[_0x18f7('0x26')](_0x24f7ca);}return _0x2f8b48[_0x18f7('0x27')]();};}function saveUpdates(_0x2c8cf9,_0x3fbd39){return function(_0x444f34){if(_0x444f34){return _0x444f34[_0x18f7('0x28')](_0x2c8cf9)[_0x18f7('0x29')](function(_0x56afa8){return _0x56afa8;});}return null;};}function removeEntity(_0xdd088f,_0x2ec7cb){return function(_0x137d9c){if(_0x137d9c){return _0x137d9c[_0x18f7('0x2a')]()[_0x18f7('0x29')](function(){_0xdd088f['status'](0xcc)[_0x18f7('0x1e')]();});}};}function handleEntityNotFound(_0x35464a,_0x35c212){return function(_0x1cf03e){if(!_0x1cf03e){_0x35464a[_0x18f7('0x2b')](0x194);}return _0x1cf03e;};}function handleError(_0x11be80,_0x2ac81d){_0x2ac81d=_0x2ac81d||0x1f4;return function(_0x38db66){logger[_0x18f7('0x2c')](_0x38db66[_0x18f7('0x2d')]);if(_0x38db66[_0x18f7('0x2e')]){delete _0x38db66['name'];}_0x11be80['status'](_0x2ac81d)[_0x18f7('0x2f')](_0x38db66);};}exports[_0x18f7('0x30')]=function(_0x5734b1,_0x402b3c){var _0x1113bc={},_0x1c19ad={},_0x310737={'count':0x0,'rows':[]};var _0x2730f6=_[_0x18f7('0x31')](db[_0x18f7('0x32')]['rawAttributes'],function(_0x5de949){return{'name':_0x5de949[_0x18f7('0x33')],'type':_0x5de949['type'][_0x18f7('0x34')]};});_0x1c19ad['model']=_[_0x18f7('0x31')](_0x2730f6,_0x18f7('0x2e'));_0x1c19ad['query']=_[_0x18f7('0x35')](_0x5734b1[_0x18f7('0x36')]);_0x1c19ad[_0x18f7('0x37')]=_[_0x18f7('0x38')](_0x1c19ad[_0x18f7('0x39')],_0x1c19ad[_0x18f7('0x36')]);_0x1113bc[_0x18f7('0x3a')]=_['intersection'](_0x1c19ad[_0x18f7('0x39')],qs[_0x18f7('0x3b')](_0x5734b1[_0x18f7('0x36')][_0x18f7('0x3b')]));_0x1113bc[_0x18f7('0x3a')]=_0x1113bc[_0x18f7('0x3a')][_0x18f7('0x3c')]?_0x1113bc[_0x18f7('0x3a')]:_0x1c19ad['model'];if(!_0x5734b1['query']['hasOwnProperty'](_0x18f7('0x3d'))){_0x1113bc[_0x18f7('0x21')]=qs[_0x18f7('0x21')](_0x5734b1[_0x18f7('0x36')]['limit']);_0x1113bc[_0x18f7('0x1f')]=qs[_0x18f7('0x1f')](_0x5734b1['query']['offset']);}_0x1113bc[_0x18f7('0x3e')]=qs[_0x18f7('0x3f')](_0x5734b1[_0x18f7('0x36')]['sort']);_0x1113bc['where']=qs[_0x18f7('0x37')](_[_0x18f7('0x40')](_0x5734b1[_0x18f7('0x36')],_0x1c19ad[_0x18f7('0x37')]),_0x2730f6);if(_0x5734b1[_0x18f7('0x36')][_0x18f7('0x41')]){_0x1113bc[_0x18f7('0x42')]=_[_0x18f7('0x43')](_0x1113bc['where'],{'$or':_[_0x18f7('0x31')](_0x2730f6,function(_0x1f583c){if(_0x1f583c[_0x18f7('0x44')]!==_0x18f7('0x45')){var _0x25dc5b={};_0x25dc5b[_0x1f583c[_0x18f7('0x2e')]]={'$like':'%'+_0x5734b1['query'][_0x18f7('0x41')]+'%'};return _0x25dc5b;}})});}_0x1113bc=_[_0x18f7('0x43')]({},_0x1113bc,_0x5734b1['options']);var _0x5b8cc0={'where':_0x1113bc['where']};return db[_0x18f7('0x32')][_0x18f7('0x22')](_0x5b8cc0)[_0x18f7('0x29')](function(_0x42bd0c){_0x310737[_0x18f7('0x22')]=_0x42bd0c;if(_0x5734b1[_0x18f7('0x36')]['includeAll']){_0x1113bc[_0x18f7('0x46')]=[{'all':!![]}];}return db[_0x18f7('0x32')][_0x18f7('0x47')](_0x1113bc);})[_0x18f7('0x29')](function(_0x1a7e69){_0x310737[_0x18f7('0x48')]=_0x1a7e69;return _0x310737;})[_0x18f7('0x29')](respondWithFilteredResult(_0x402b3c,_0x1113bc))[_0x18f7('0x49')](handleError(_0x402b3c,null));};exports[_0x18f7('0x4a')]=function(_0x285d5b,_0x1dfe80){var _0x519be6={'raw':!![],'where':{'id':_0x285d5b[_0x18f7('0x4b')]['id']}},_0x41971e={};_0x41971e[_0x18f7('0x39')]=_[_0x18f7('0x35')](db['CmHopperHistory'][_0x18f7('0x4c')]);_0x41971e[_0x18f7('0x36')]=_['keys'](_0x285d5b['query']);_0x41971e[_0x18f7('0x37')]=_[_0x18f7('0x38')](_0x41971e[_0x18f7('0x39')],_0x41971e[_0x18f7('0x36')]);_0x519be6[_0x18f7('0x3a')]=_[_0x18f7('0x38')](_0x41971e[_0x18f7('0x39')],qs[_0x18f7('0x3b')](_0x285d5b[_0x18f7('0x36')]['fields']));_0x519be6[_0x18f7('0x3a')]=_0x519be6[_0x18f7('0x3a')][_0x18f7('0x3c')]?_0x519be6['attributes']:_0x41971e[_0x18f7('0x39')];if(_0x285d5b[_0x18f7('0x36')]['includeAll']){_0x519be6['include']=[{'all':!![]}];}_0x519be6=_[_0x18f7('0x43')]({},_0x519be6,_0x285d5b['options']);return db['CmHopperHistory'][_0x18f7('0x4d')](_0x519be6)[_0x18f7('0x29')](handleEntityNotFound(_0x1dfe80,null))['then'](respondWithResult(_0x1dfe80,null))[_0x18f7('0x49')](handleError(_0x1dfe80,null));};exports[_0x18f7('0x4e')]=function(_0x1bdfe6,_0x3286d6){return db['CmHopperHistory'][_0x18f7('0x4e')](_0x1bdfe6[_0x18f7('0x4f')],{})[_0x18f7('0x29')](respondWithResult(_0x3286d6,0xc9))['catch'](handleError(_0x3286d6,null));};exports[_0x18f7('0x50')]=function(_0x590c93,_0x2f9b04){return db[_0x18f7('0x32')][_0x18f7('0x50')]()[_0x18f7('0x29')](respondWithResult(_0x2f9b04,null))[_0x18f7('0x49')](handleError(_0x2f9b04,null));};exports[_0x18f7('0x28')]=function(_0x2f3eb4,_0x592627){if(_0x2f3eb4[_0x18f7('0x4f')]['uniqueid']){delete _0x2f3eb4[_0x18f7('0x4f')][_0x18f7('0x51')];}return db[_0x18f7('0x32')][_0x18f7('0x4d')]({'where':{'uniqueid':_0x2f3eb4[_0x18f7('0x4b')]['id']}})[_0x18f7('0x29')](handleEntityNotFound(_0x592627,null))[_0x18f7('0x29')](saveUpdates(_0x2f3eb4[_0x18f7('0x4f')],null))[_0x18f7('0x29')](respondWithResult(_0x592627,null))[_0x18f7('0x49')](handleError(_0x592627,null));};
\ No newline at end of file
+var _0xcfd5=['crypto','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/license/util','sendStatus','status','end','json','undefined','limit','count','offset','set','Content-Range','apply','save','update','then','error','stack','name','send','index','map','CmHopperHistory','rawAttributes','fieldName','type','key','model','query','keys','filters','fields','attributes','length','hasOwnProperty','sort','where','pick','merge','VIRTUAL','filter','includeAll','include','findAll','rows','params','intersection','options','find','body','catch','describe','uniqueid','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','util','path','sox','to-csv','ejs','fs-extra','lodash','squel'];(function(_0x4f39de,_0x595d15){var _0xe8eeb9=function(_0x4cd423){while(--_0x4cd423){_0x4f39de['push'](_0x4f39de['shift']());}};_0xe8eeb9(++_0x595d15);}(_0xcfd5,0x112));var _0x5cfd=function(_0xde9c14,_0x5947d4){_0xde9c14=_0xde9c14-0x0;var _0x14fedd=_0xcfd5[_0xde9c14];return _0x14fedd;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x5cfd('0x0'));var zipdir=require(_0x5cfd('0x1'));var jsonpatch=require(_0x5cfd('0x2'));var rp=require(_0x5cfd('0x3'));var moment=require(_0x5cfd('0x4'));var BPromise=require(_0x5cfd('0x5'));var Mustache=require('mustache');var util=require(_0x5cfd('0x6'));var path=require(_0x5cfd('0x7'));var sox=require(_0x5cfd('0x8'));var csv=require(_0x5cfd('0x9'));var ejs=require(_0x5cfd('0xa'));var fs=require('fs');var fs_extra=require(_0x5cfd('0xb'));var _=require(_0x5cfd('0xc'));var squel=require(_0x5cfd('0xd'));var crypto=require(_0x5cfd('0xe'));var jsforce=require('jsforce');var deskjs=require('desk.js');var toCsv=require(_0x5cfd('0x9'));var querystring=require('querystring');var Papa=require('papaparse');var Redis=require('ioredis');var authService=require(_0x5cfd('0xf'));var qs=require('../../components/parsers/qs');var as=require(_0x5cfd('0x10'));var hardwareService=require(_0x5cfd('0x11'));var logger=require(_0x5cfd('0x12'))(_0x5cfd('0x13'));var utils=require('../../config/utils');var config=require('../../config/environment');var licenseUtil=require(_0x5cfd('0x14'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x4c0309,_0x14d3bf){_0x14d3bf=_0x14d3bf||0xcc;return function(_0x54d648){if(_0x54d648){return _0x4c0309[_0x5cfd('0x15')](_0x14d3bf);}return _0x4c0309[_0x5cfd('0x16')](_0x14d3bf)[_0x5cfd('0x17')]();};}function respondWithResult(_0x56b4d4,_0x1f218a){_0x1f218a=_0x1f218a||0xc8;return function(_0x38959b){if(_0x38959b){return _0x56b4d4[_0x5cfd('0x16')](_0x1f218a)[_0x5cfd('0x18')](_0x38959b);}};}function respondWithFilteredResult(_0x46b050,_0x1da81e){return function(_0x10da32){if(_0x10da32){var _0x10d1fe=typeof _0x1da81e['offset']===_0x5cfd('0x19')&&typeof _0x1da81e[_0x5cfd('0x1a')]===_0x5cfd('0x19');var _0x5a78ff=_0x10da32[_0x5cfd('0x1b')];var _0x53754d=_0x10d1fe?0x0:_0x1da81e[_0x5cfd('0x1c')];var _0xb25381=_0x10d1fe?_0x10da32['count']:_0x1da81e['offset']+_0x1da81e[_0x5cfd('0x1a')];var _0x2a2798;if(_0xb25381>=_0x5a78ff){_0xb25381=_0x5a78ff;_0x2a2798=0xc8;}else{_0x2a2798=0xce;}_0x46b050[_0x5cfd('0x16')](_0x2a2798);return _0x46b050[_0x5cfd('0x1d')](_0x5cfd('0x1e'),_0x53754d+'-'+_0xb25381+'/'+_0x5a78ff)[_0x5cfd('0x18')](_0x10da32);}return null;};}function patchUpdates(_0x385a49){return function(_0x34245d){try{jsonpatch[_0x5cfd('0x1f')](_0x34245d,_0x385a49,!![]);}catch(_0x43a142){return BPromise['reject'](_0x43a142);}return _0x34245d[_0x5cfd('0x20')]();};}function saveUpdates(_0x3b0e13,_0x470f29){return function(_0x1eb528){if(_0x1eb528){return _0x1eb528[_0x5cfd('0x21')](_0x3b0e13)[_0x5cfd('0x22')](function(_0x46fe71){return _0x46fe71;});}return null;};}function removeEntity(_0x1c111a,_0x5a914c){return function(_0x2be2d1){if(_0x2be2d1){return _0x2be2d1['destroy']()[_0x5cfd('0x22')](function(){_0x1c111a[_0x5cfd('0x16')](0xcc)[_0x5cfd('0x17')]();});}};}function handleEntityNotFound(_0x5c847f,_0x358f9c){return function(_0x1efd35){if(!_0x1efd35){_0x5c847f[_0x5cfd('0x15')](0x194);}return _0x1efd35;};}function handleError(_0x5cf553,_0x5633db){_0x5633db=_0x5633db||0x1f4;return function(_0x3dbe62){logger[_0x5cfd('0x23')](_0x3dbe62[_0x5cfd('0x24')]);if(_0x3dbe62[_0x5cfd('0x25')]){delete _0x3dbe62[_0x5cfd('0x25')];}_0x5cf553[_0x5cfd('0x16')](_0x5633db)[_0x5cfd('0x26')](_0x3dbe62);};}exports[_0x5cfd('0x27')]=function(_0x410ae7,_0x239a96){var _0x24b586={},_0x12b719={},_0x2f1b50={'count':0x0,'rows':[]};var _0x8b7fa0=_[_0x5cfd('0x28')](db[_0x5cfd('0x29')][_0x5cfd('0x2a')],function(_0x63d80f){return{'name':_0x63d80f[_0x5cfd('0x2b')],'type':_0x63d80f[_0x5cfd('0x2c')][_0x5cfd('0x2d')]};});_0x12b719[_0x5cfd('0x2e')]=_[_0x5cfd('0x28')](_0x8b7fa0,'name');_0x12b719[_0x5cfd('0x2f')]=_[_0x5cfd('0x30')](_0x410ae7[_0x5cfd('0x2f')]);_0x12b719[_0x5cfd('0x31')]=_['intersection'](_0x12b719['model'],_0x12b719[_0x5cfd('0x2f')]);_0x24b586['attributes']=_['intersection'](_0x12b719[_0x5cfd('0x2e')],qs[_0x5cfd('0x32')](_0x410ae7[_0x5cfd('0x2f')]['fields']));_0x24b586[_0x5cfd('0x33')]=_0x24b586[_0x5cfd('0x33')][_0x5cfd('0x34')]?_0x24b586[_0x5cfd('0x33')]:_0x12b719['model'];if(!_0x410ae7[_0x5cfd('0x2f')][_0x5cfd('0x35')]('nolimit')){_0x24b586['limit']=qs[_0x5cfd('0x1a')](_0x410ae7[_0x5cfd('0x2f')][_0x5cfd('0x1a')]);_0x24b586[_0x5cfd('0x1c')]=qs['offset'](_0x410ae7[_0x5cfd('0x2f')][_0x5cfd('0x1c')]);}_0x24b586['order']=qs[_0x5cfd('0x36')](_0x410ae7[_0x5cfd('0x2f')][_0x5cfd('0x36')]);_0x24b586[_0x5cfd('0x37')]=qs[_0x5cfd('0x31')](_[_0x5cfd('0x38')](_0x410ae7[_0x5cfd('0x2f')],_0x12b719[_0x5cfd('0x31')]),_0x8b7fa0);if(_0x410ae7[_0x5cfd('0x2f')]['filter']){_0x24b586['where']=_[_0x5cfd('0x39')](_0x24b586['where'],{'$or':_[_0x5cfd('0x28')](_0x8b7fa0,function(_0x28e9ee){if(_0x28e9ee[_0x5cfd('0x2c')]!==_0x5cfd('0x3a')){var _0x447184={};_0x447184[_0x28e9ee['name']]={'$like':'%'+_0x410ae7[_0x5cfd('0x2f')][_0x5cfd('0x3b')]+'%'};return _0x447184;}})});}_0x24b586=_[_0x5cfd('0x39')]({},_0x24b586,_0x410ae7['options']);var _0x51218d={'where':_0x24b586[_0x5cfd('0x37')]};return db[_0x5cfd('0x29')][_0x5cfd('0x1b')](_0x51218d)[_0x5cfd('0x22')](function(_0x3d6bba){_0x2f1b50['count']=_0x3d6bba;if(_0x410ae7['query'][_0x5cfd('0x3c')]){_0x24b586[_0x5cfd('0x3d')]=[{'all':!![]}];}return db['CmHopperHistory'][_0x5cfd('0x3e')](_0x24b586);})[_0x5cfd('0x22')](function(_0x59eae3){_0x2f1b50[_0x5cfd('0x3f')]=_0x59eae3;return _0x2f1b50;})['then'](respondWithFilteredResult(_0x239a96,_0x24b586))['catch'](handleError(_0x239a96,null));};exports['show']=function(_0x3785,_0x1ab837){var _0x1ee2ad={'raw':!![],'where':{'id':_0x3785[_0x5cfd('0x40')]['id']}},_0x2edf9e={};_0x2edf9e['model']=_[_0x5cfd('0x30')](db['CmHopperHistory']['rawAttributes']);_0x2edf9e[_0x5cfd('0x2f')]=_[_0x5cfd('0x30')](_0x3785[_0x5cfd('0x2f')]);_0x2edf9e[_0x5cfd('0x31')]=_[_0x5cfd('0x41')](_0x2edf9e['model'],_0x2edf9e[_0x5cfd('0x2f')]);_0x1ee2ad[_0x5cfd('0x33')]=_[_0x5cfd('0x41')](_0x2edf9e[_0x5cfd('0x2e')],qs[_0x5cfd('0x32')](_0x3785[_0x5cfd('0x2f')][_0x5cfd('0x32')]));_0x1ee2ad[_0x5cfd('0x33')]=_0x1ee2ad[_0x5cfd('0x33')][_0x5cfd('0x34')]?_0x1ee2ad['attributes']:_0x2edf9e[_0x5cfd('0x2e')];if(_0x3785[_0x5cfd('0x2f')][_0x5cfd('0x3c')]){_0x1ee2ad[_0x5cfd('0x3d')]=[{'all':!![]}];}_0x1ee2ad=_['merge']({},_0x1ee2ad,_0x3785[_0x5cfd('0x42')]);return db['CmHopperHistory'][_0x5cfd('0x43')](_0x1ee2ad)['then'](handleEntityNotFound(_0x1ab837,null))['then'](respondWithResult(_0x1ab837,null))['catch'](handleError(_0x1ab837,null));};exports['create']=function(_0x212ad4,_0x421c57){return db['CmHopperHistory']['create'](_0x212ad4[_0x5cfd('0x44')],{})[_0x5cfd('0x22')](respondWithResult(_0x421c57,0xc9))[_0x5cfd('0x45')](handleError(_0x421c57,null));};exports[_0x5cfd('0x46')]=function(_0x29476c,_0x3b021e){return db[_0x5cfd('0x29')][_0x5cfd('0x46')]()[_0x5cfd('0x22')](respondWithResult(_0x3b021e,null))[_0x5cfd('0x45')](handleError(_0x3b021e,null));};exports[_0x5cfd('0x21')]=function(_0x320078,_0x2d968b){if(_0x320078[_0x5cfd('0x44')][_0x5cfd('0x47')]){delete _0x320078['body']['uniqueid'];}return db['CmHopperHistory']['find']({'where':{'uniqueid':_0x320078[_0x5cfd('0x40')]['id']}})[_0x5cfd('0x22')](handleEntityNotFound(_0x2d968b,null))['then'](saveUpdates(_0x320078[_0x5cfd('0x44')],null))[_0x5cfd('0x22')](respondWithResult(_0x2d968b,null))[_0x5cfd('0x45')](handleError(_0x2d968b,null));};
\ No newline at end of file