Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / cmHopperHistory / cmHopperHistory.controller.js
index ff3b561..e0e3b98 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xbf58=['describe','uniqueid','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','path','ejs','fs-extra','lodash','squel','jsforce','desk.js','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','end','status','json','offset','undefined','limit','count','set','Content-Range','apply','reject','save','update','then','destroy','sendStatus','error','stack','name','send','index','map','CmHopperHistory','rawAttributes','fieldName','type','model','query','keys','filters','attributes','intersection','fields','length','hasOwnProperty','order','where','pick','filter','merge','VIRTUAL','includeAll','include','findAll','catch','show','params','options','find','create','body'];(function(_0x247fd0,_0x5caebb){var _0x5033b7=function(_0x52773f){while(--_0x52773f){_0x247fd0['push'](_0x247fd0['shift']());}};_0x5033b7(++_0x5caebb);}(_0xbf58,0xa2));var _0x8bf5=function(_0x37c6c8,_0x3abefb){_0x37c6c8=_0x37c6c8-0x0;var _0x87b567=_0xbf58[_0x37c6c8];return _0x87b567;};'use strict';var emlformat=require(_0x8bf5('0x0'));var rimraf=require(_0x8bf5('0x1'));var zipdir=require(_0x8bf5('0x2'));var jsonpatch=require(_0x8bf5('0x3'));var rp=require(_0x8bf5('0x4'));var moment=require(_0x8bf5('0x5'));var BPromise=require(_0x8bf5('0x6'));var Mustache=require(_0x8bf5('0x7'));var util=require('util');var path=require(_0x8bf5('0x8'));var sox=require('sox');var csv=require('to-csv');var ejs=require(_0x8bf5('0x9'));var fs=require('fs');var fs_extra=require(_0x8bf5('0xa'));var _=require(_0x8bf5('0xb'));var squel=require(_0x8bf5('0xc'));var crypto=require('crypto');var jsforce=require(_0x8bf5('0xd'));var deskjs=require(_0x8bf5('0xe'));var toCsv=require(_0x8bf5('0xf'));var querystring=require(_0x8bf5('0x10'));var Papa=require(_0x8bf5('0x11'));var Redis=require(_0x8bf5('0x12'));var authService=require(_0x8bf5('0x13'));var qs=require(_0x8bf5('0x14'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require('../../config/license/hardware');var logger=require(_0x8bf5('0x15'))(_0x8bf5('0x16'));var utils=require(_0x8bf5('0x17'));var config=require(_0x8bf5('0x18'));var licenseUtil=require(_0x8bf5('0x19'));var db=require(_0x8bf5('0x1a'))['db'];function respondWithStatusCode(_0x1eff97,_0x3c40e3){_0x3c40e3=_0x3c40e3||0xcc;return function(_0x1c07e2){if(_0x1c07e2){return _0x1eff97['sendStatus'](_0x3c40e3);}return _0x1eff97['status'](_0x3c40e3)[_0x8bf5('0x1b')]();};}function respondWithResult(_0x3de467,_0x2a046c){_0x2a046c=_0x2a046c||0xc8;return function(_0x37793b){if(_0x37793b){return _0x3de467[_0x8bf5('0x1c')](_0x2a046c)[_0x8bf5('0x1d')](_0x37793b);}};}function respondWithFilteredResult(_0x1daaab,_0x834416){return function(_0x3f87ac){if(_0x3f87ac){var _0xa2a2f8=typeof _0x834416[_0x8bf5('0x1e')]===_0x8bf5('0x1f')&&typeof _0x834416[_0x8bf5('0x20')]===_0x8bf5('0x1f');var _0x177f54=_0x3f87ac[_0x8bf5('0x21')];var _0x50e112=_0xa2a2f8?0x0:_0x834416[_0x8bf5('0x1e')];var _0x1c510a=_0xa2a2f8?_0x3f87ac[_0x8bf5('0x21')]:_0x834416[_0x8bf5('0x1e')]+_0x834416['limit'];var _0x4966d9;if(_0x1c510a>=_0x177f54){_0x1c510a=_0x177f54;_0x4966d9=0xc8;}else{_0x4966d9=0xce;}_0x1daaab[_0x8bf5('0x1c')](_0x4966d9);return _0x1daaab[_0x8bf5('0x22')](_0x8bf5('0x23'),_0x50e112+'-'+_0x1c510a+'/'+_0x177f54)[_0x8bf5('0x1d')](_0x3f87ac);}return null;};}function patchUpdates(_0x48d233){return function(_0x253d4a){try{jsonpatch[_0x8bf5('0x24')](_0x253d4a,_0x48d233,!![]);}catch(_0x48334d){return BPromise[_0x8bf5('0x25')](_0x48334d);}return _0x253d4a[_0x8bf5('0x26')]();};}function saveUpdates(_0x4c225e,_0x5bf444){return function(_0x1742bf){if(_0x1742bf){return _0x1742bf[_0x8bf5('0x27')](_0x4c225e)[_0x8bf5('0x28')](function(_0x505e07){return _0x505e07;});}return null;};}function removeEntity(_0x2ba7be,_0x359089){return function(_0x3ce49d){if(_0x3ce49d){return _0x3ce49d[_0x8bf5('0x29')]()[_0x8bf5('0x28')](function(){_0x2ba7be[_0x8bf5('0x1c')](0xcc)[_0x8bf5('0x1b')]();});}};}function handleEntityNotFound(_0x59ee3b,_0x4b4927){return function(_0x2b9feb){if(!_0x2b9feb){_0x59ee3b[_0x8bf5('0x2a')](0x194);}return _0x2b9feb;};}function handleError(_0x2be26a,_0x215770){_0x215770=_0x215770||0x1f4;return function(_0x1aea10){logger[_0x8bf5('0x2b')](_0x1aea10[_0x8bf5('0x2c')]);if(_0x1aea10[_0x8bf5('0x2d')]){delete _0x1aea10[_0x8bf5('0x2d')];}_0x2be26a[_0x8bf5('0x1c')](_0x215770)[_0x8bf5('0x2e')](_0x1aea10);};}exports[_0x8bf5('0x2f')]=function(_0x556ccc,_0x3dc340){var _0x2adbf0={},_0x4ec28b={},_0x2fc389={'count':0x0,'rows':[]};var _0x4c552d=_[_0x8bf5('0x30')](db[_0x8bf5('0x31')][_0x8bf5('0x32')],function(_0x3dae9a){return{'name':_0x3dae9a[_0x8bf5('0x33')],'type':_0x3dae9a[_0x8bf5('0x34')]['key']};});_0x4ec28b[_0x8bf5('0x35')]=_[_0x8bf5('0x30')](_0x4c552d,'name');_0x4ec28b[_0x8bf5('0x36')]=_[_0x8bf5('0x37')](_0x556ccc[_0x8bf5('0x36')]);_0x4ec28b[_0x8bf5('0x38')]=_['intersection'](_0x4ec28b['model'],_0x4ec28b['query']);_0x2adbf0[_0x8bf5('0x39')]=_[_0x8bf5('0x3a')](_0x4ec28b[_0x8bf5('0x35')],qs[_0x8bf5('0x3b')](_0x556ccc[_0x8bf5('0x36')][_0x8bf5('0x3b')]));_0x2adbf0['attributes']=_0x2adbf0['attributes'][_0x8bf5('0x3c')]?_0x2adbf0[_0x8bf5('0x39')]:_0x4ec28b[_0x8bf5('0x35')];if(!_0x556ccc['query'][_0x8bf5('0x3d')]('nolimit')){_0x2adbf0[_0x8bf5('0x20')]=qs['limit'](_0x556ccc[_0x8bf5('0x36')][_0x8bf5('0x20')]);_0x2adbf0[_0x8bf5('0x1e')]=qs[_0x8bf5('0x1e')](_0x556ccc[_0x8bf5('0x36')]['offset']);}_0x2adbf0[_0x8bf5('0x3e')]=qs['sort'](_0x556ccc[_0x8bf5('0x36')]['sort']);_0x2adbf0[_0x8bf5('0x3f')]=qs[_0x8bf5('0x38')](_[_0x8bf5('0x40')](_0x556ccc[_0x8bf5('0x36')],_0x4ec28b[_0x8bf5('0x38')]),_0x4c552d);if(_0x556ccc[_0x8bf5('0x36')][_0x8bf5('0x41')]){_0x2adbf0[_0x8bf5('0x3f')]=_[_0x8bf5('0x42')](_0x2adbf0[_0x8bf5('0x3f')],{'$or':_['map'](_0x4c552d,function(_0x390a59){if(_0x390a59[_0x8bf5('0x34')]!==_0x8bf5('0x43')){var _0x4e0058={};_0x4e0058[_0x390a59['name']]={'$like':'%'+_0x556ccc[_0x8bf5('0x36')][_0x8bf5('0x41')]+'%'};return _0x4e0058;}})});}_0x2adbf0=_[_0x8bf5('0x42')]({},_0x2adbf0,_0x556ccc['options']);var _0x14ac9d={'where':_0x2adbf0['where']};return db[_0x8bf5('0x31')][_0x8bf5('0x21')](_0x14ac9d)[_0x8bf5('0x28')](function(_0x5d15fc){_0x2fc389['count']=_0x5d15fc;if(_0x556ccc[_0x8bf5('0x36')][_0x8bf5('0x44')]){_0x2adbf0[_0x8bf5('0x45')]=[{'all':!![]}];}return db[_0x8bf5('0x31')][_0x8bf5('0x46')](_0x2adbf0);})[_0x8bf5('0x28')](function(_0x2b6639){_0x2fc389['rows']=_0x2b6639;return _0x2fc389;})['then'](respondWithFilteredResult(_0x3dc340,_0x2adbf0))[_0x8bf5('0x47')](handleError(_0x3dc340,null));};exports[_0x8bf5('0x48')]=function(_0x121040,_0x2f4d65){var _0x33be4b={'raw':!![],'where':{'id':_0x121040[_0x8bf5('0x49')]['id']}},_0x3ec053={};_0x3ec053[_0x8bf5('0x35')]=_['keys'](db[_0x8bf5('0x31')][_0x8bf5('0x32')]);_0x3ec053['query']=_[_0x8bf5('0x37')](_0x121040['query']);_0x3ec053[_0x8bf5('0x38')]=_[_0x8bf5('0x3a')](_0x3ec053[_0x8bf5('0x35')],_0x3ec053['query']);_0x33be4b[_0x8bf5('0x39')]=_[_0x8bf5('0x3a')](_0x3ec053['model'],qs[_0x8bf5('0x3b')](_0x121040[_0x8bf5('0x36')][_0x8bf5('0x3b')]));_0x33be4b[_0x8bf5('0x39')]=_0x33be4b[_0x8bf5('0x39')]['length']?_0x33be4b[_0x8bf5('0x39')]:_0x3ec053[_0x8bf5('0x35')];if(_0x121040['query']['includeAll']){_0x33be4b[_0x8bf5('0x45')]=[{'all':!![]}];}_0x33be4b=_[_0x8bf5('0x42')]({},_0x33be4b,_0x121040[_0x8bf5('0x4a')]);return db[_0x8bf5('0x31')][_0x8bf5('0x4b')](_0x33be4b)[_0x8bf5('0x28')](handleEntityNotFound(_0x2f4d65,null))['then'](respondWithResult(_0x2f4d65,null))[_0x8bf5('0x47')](handleError(_0x2f4d65,null));};exports[_0x8bf5('0x4c')]=function(_0x30d5ba,_0x457550){return db[_0x8bf5('0x31')]['create'](_0x30d5ba[_0x8bf5('0x4d')],{})[_0x8bf5('0x28')](respondWithResult(_0x457550,0xc9))[_0x8bf5('0x47')](handleError(_0x457550,null));};exports[_0x8bf5('0x4e')]=function(_0x15bd95,_0x12cb98){return db['CmHopperHistory']['describe']()[_0x8bf5('0x28')](respondWithResult(_0x12cb98,null))[_0x8bf5('0x47')](handleError(_0x12cb98,null));};exports['update']=function(_0x3e9907,_0x3cad40){if(_0x3e9907[_0x8bf5('0x4d')][_0x8bf5('0x4f')]){delete _0x3e9907[_0x8bf5('0x4d')][_0x8bf5('0x4f')];}return db[_0x8bf5('0x31')][_0x8bf5('0x4b')]({'where':{'uniqueid':_0x3e9907['params']['id']}})[_0x8bf5('0x28')](handleEntityNotFound(_0x3cad40,null))[_0x8bf5('0x28')](saveUpdates(_0x3e9907[_0x8bf5('0x4d')],null))[_0x8bf5('0x28')](respondWithResult(_0x3cad40,null))[_0x8bf5('0x47')](handleError(_0x3cad40,null));};
\ No newline at end of file
+var _0x1637=['path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','api','../../config/utils','../../config/environment','../../mysqldb','sendStatus','status','end','json','offset','undefined','count','set','Content-Range','apply','save','then','error','stack','name','send','index','map','CmHopperHistory','rawAttributes','fieldName','type','model','query','keys','filters','intersection','attributes','fields','hasOwnProperty','limit','order','sort','where','VIRTUAL','filter','merge','includeAll','findAll','rows','catch','length','include','find','create','describe','update','body','uniqueid','params','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util'];(function(_0x12d0f6,_0x54eafe){var _0x52a2e0=function(_0x5f4026){while(--_0x5f4026){_0x12d0f6['push'](_0x12d0f6['shift']());}};_0x52a2e0(++_0x54eafe);}(_0x1637,0x17d));var _0x7163=function(_0x2dd390,_0x1bc894){_0x2dd390=_0x2dd390-0x0;var _0x3afe47=_0x1637[_0x2dd390];return _0x3afe47;};'use strict';var emlformat=require(_0x7163('0x0'));var rimraf=require(_0x7163('0x1'));var zipdir=require(_0x7163('0x2'));var jsonpatch=require(_0x7163('0x3'));var rp=require(_0x7163('0x4'));var moment=require(_0x7163('0x5'));var BPromise=require(_0x7163('0x6'));var Mustache=require(_0x7163('0x7'));var util=require(_0x7163('0x8'));var path=require(_0x7163('0x9'));var sox=require(_0x7163('0xa'));var csv=require(_0x7163('0xb'));var ejs=require(_0x7163('0xc'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x7163('0xd'));var squel=require(_0x7163('0xe'));var crypto=require(_0x7163('0xf'));var jsforce=require(_0x7163('0x10'));var deskjs=require(_0x7163('0x11'));var toCsv=require(_0x7163('0xb'));var querystring=require(_0x7163('0x12'));var Papa=require(_0x7163('0x13'));var Redis=require(_0x7163('0x14'));var authService=require(_0x7163('0x15'));var qs=require(_0x7163('0x16'));var as=require(_0x7163('0x17'));var hardwareService=require('../../config/license/hardware');var logger=require('../../config/logger')(_0x7163('0x18'));var utils=require(_0x7163('0x19'));var config=require(_0x7163('0x1a'));var licenseUtil=require('../../config/license/util');var db=require(_0x7163('0x1b'))['db'];function respondWithStatusCode(_0x5d87c9,_0x7d8a51){_0x7d8a51=_0x7d8a51||0xcc;return function(_0x20a03a){if(_0x20a03a){return _0x5d87c9[_0x7163('0x1c')](_0x7d8a51);}return _0x5d87c9[_0x7163('0x1d')](_0x7d8a51)[_0x7163('0x1e')]();};}function respondWithResult(_0x3fff67,_0x55dacf){_0x55dacf=_0x55dacf||0xc8;return function(_0x3c3ea8){if(_0x3c3ea8){return _0x3fff67[_0x7163('0x1d')](_0x55dacf)[_0x7163('0x1f')](_0x3c3ea8);}};}function respondWithFilteredResult(_0x1c2bba,_0x57d394){return function(_0xdc8b0d){if(_0xdc8b0d){var _0x4c9b62=typeof _0x57d394[_0x7163('0x20')]===_0x7163('0x21')&&typeof _0x57d394['limit']===_0x7163('0x21');var _0x36e3f1=_0xdc8b0d[_0x7163('0x22')];var _0x5e2136=_0x4c9b62?0x0:_0x57d394[_0x7163('0x20')];var _0x41f830=_0x4c9b62?_0xdc8b0d[_0x7163('0x22')]:_0x57d394[_0x7163('0x20')]+_0x57d394['limit'];var _0x548ebe;if(_0x41f830>=_0x36e3f1){_0x41f830=_0x36e3f1;_0x548ebe=0xc8;}else{_0x548ebe=0xce;}_0x1c2bba[_0x7163('0x1d')](_0x548ebe);return _0x1c2bba[_0x7163('0x23')](_0x7163('0x24'),_0x5e2136+'-'+_0x41f830+'/'+_0x36e3f1)[_0x7163('0x1f')](_0xdc8b0d);}return null;};}function patchUpdates(_0x56ea1f){return function(_0x10fd1b){try{jsonpatch[_0x7163('0x25')](_0x10fd1b,_0x56ea1f,!![]);}catch(_0x4607ad){return BPromise['reject'](_0x4607ad);}return _0x10fd1b[_0x7163('0x26')]();};}function saveUpdates(_0x5678c3,_0x103b22){return function(_0x3ff493){if(_0x3ff493){return _0x3ff493['update'](_0x5678c3)[_0x7163('0x27')](function(_0x1d5be7){return _0x1d5be7;});}return null;};}function removeEntity(_0x2f0861,_0x531b19){return function(_0x426705){if(_0x426705){return _0x426705['destroy']()[_0x7163('0x27')](function(){_0x2f0861['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x22a8ee,_0xdd9713){return function(_0x257c9e){if(!_0x257c9e){_0x22a8ee['sendStatus'](0x194);}return _0x257c9e;};}function handleError(_0x3f7704,_0x270b1a){_0x270b1a=_0x270b1a||0x1f4;return function(_0x8e68b6){logger[_0x7163('0x28')](_0x8e68b6[_0x7163('0x29')]);if(_0x8e68b6[_0x7163('0x2a')]){delete _0x8e68b6[_0x7163('0x2a')];}_0x3f7704['status'](_0x270b1a)[_0x7163('0x2b')](_0x8e68b6);};}exports[_0x7163('0x2c')]=function(_0x3a638b,_0x3b74ab){var _0x3de534={},_0x4aa05c={},_0x3a1908={'count':0x0,'rows':[]};var _0x6299ed=_[_0x7163('0x2d')](db[_0x7163('0x2e')][_0x7163('0x2f')],function(_0x186bd5){return{'name':_0x186bd5[_0x7163('0x30')],'type':_0x186bd5[_0x7163('0x31')]['key']};});_0x4aa05c[_0x7163('0x32')]=_[_0x7163('0x2d')](_0x6299ed,_0x7163('0x2a'));_0x4aa05c[_0x7163('0x33')]=_[_0x7163('0x34')](_0x3a638b['query']);_0x4aa05c[_0x7163('0x35')]=_[_0x7163('0x36')](_0x4aa05c[_0x7163('0x32')],_0x4aa05c[_0x7163('0x33')]);_0x3de534[_0x7163('0x37')]=_[_0x7163('0x36')](_0x4aa05c[_0x7163('0x32')],qs[_0x7163('0x38')](_0x3a638b[_0x7163('0x33')]['fields']));_0x3de534[_0x7163('0x37')]=_0x3de534[_0x7163('0x37')]['length']?_0x3de534[_0x7163('0x37')]:_0x4aa05c['model'];if(!_0x3a638b[_0x7163('0x33')][_0x7163('0x39')]('nolimit')){_0x3de534['limit']=qs[_0x7163('0x3a')](_0x3a638b[_0x7163('0x33')][_0x7163('0x3a')]);_0x3de534[_0x7163('0x20')]=qs[_0x7163('0x20')](_0x3a638b[_0x7163('0x33')][_0x7163('0x20')]);}_0x3de534[_0x7163('0x3b')]=qs[_0x7163('0x3c')](_0x3a638b[_0x7163('0x33')][_0x7163('0x3c')]);_0x3de534[_0x7163('0x3d')]=qs[_0x7163('0x35')](_['pick'](_0x3a638b['query'],_0x4aa05c[_0x7163('0x35')]),_0x6299ed);if(_0x3a638b[_0x7163('0x33')]['filter']){_0x3de534[_0x7163('0x3d')]=_['merge'](_0x3de534[_0x7163('0x3d')],{'$or':_[_0x7163('0x2d')](_0x6299ed,function(_0x25d149){if(_0x25d149['type']!==_0x7163('0x3e')){var _0x13e2c1={};_0x13e2c1[_0x25d149[_0x7163('0x2a')]]={'$like':'%'+_0x3a638b[_0x7163('0x33')][_0x7163('0x3f')]+'%'};return _0x13e2c1;}})});}_0x3de534=_[_0x7163('0x40')]({},_0x3de534,_0x3a638b['options']);var _0x2b636e={'where':_0x3de534[_0x7163('0x3d')]};return db[_0x7163('0x2e')][_0x7163('0x22')](_0x2b636e)['then'](function(_0x48d97a){_0x3a1908['count']=_0x48d97a;if(_0x3a638b[_0x7163('0x33')][_0x7163('0x41')]){_0x3de534['include']=[{'all':!![]}];}return db[_0x7163('0x2e')][_0x7163('0x42')](_0x3de534);})[_0x7163('0x27')](function(_0x55103c){_0x3a1908[_0x7163('0x43')]=_0x55103c;return _0x3a1908;})[_0x7163('0x27')](respondWithFilteredResult(_0x3b74ab,_0x3de534))[_0x7163('0x44')](handleError(_0x3b74ab,null));};exports['show']=function(_0x3a6cac,_0x16a9e3){var _0x38e0d1={'raw':!![],'where':{'id':_0x3a6cac['params']['id']}},_0x302d49={};_0x302d49[_0x7163('0x32')]=_[_0x7163('0x34')](db[_0x7163('0x2e')][_0x7163('0x2f')]);_0x302d49[_0x7163('0x33')]=_[_0x7163('0x34')](_0x3a6cac[_0x7163('0x33')]);_0x302d49[_0x7163('0x35')]=_[_0x7163('0x36')](_0x302d49[_0x7163('0x32')],_0x302d49[_0x7163('0x33')]);_0x38e0d1[_0x7163('0x37')]=_[_0x7163('0x36')](_0x302d49[_0x7163('0x32')],qs[_0x7163('0x38')](_0x3a6cac[_0x7163('0x33')]['fields']));_0x38e0d1[_0x7163('0x37')]=_0x38e0d1[_0x7163('0x37')][_0x7163('0x45')]?_0x38e0d1[_0x7163('0x37')]:_0x302d49[_0x7163('0x32')];if(_0x3a6cac[_0x7163('0x33')]['includeAll']){_0x38e0d1[_0x7163('0x46')]=[{'all':!![]}];}_0x38e0d1=_['merge']({},_0x38e0d1,_0x3a6cac['options']);return db[_0x7163('0x2e')][_0x7163('0x47')](_0x38e0d1)[_0x7163('0x27')](handleEntityNotFound(_0x16a9e3,null))[_0x7163('0x27')](respondWithResult(_0x16a9e3,null))[_0x7163('0x44')](handleError(_0x16a9e3,null));};exports['create']=function(_0x23fc76,_0x4999e0){return db[_0x7163('0x2e')][_0x7163('0x48')](_0x23fc76['body'],{})[_0x7163('0x27')](respondWithResult(_0x4999e0,0xc9))[_0x7163('0x44')](handleError(_0x4999e0,null));};exports[_0x7163('0x49')]=function(_0x23fbf2,_0x490b24){return db[_0x7163('0x2e')]['describe']()[_0x7163('0x27')](respondWithResult(_0x490b24,null))['catch'](handleError(_0x490b24,null));};exports[_0x7163('0x4a')]=function(_0x44466b,_0x1a0dc3){if(_0x44466b[_0x7163('0x4b')][_0x7163('0x4c')]){delete _0x44466b[_0x7163('0x4b')][_0x7163('0x4c')];}return db['CmHopperHistory'][_0x7163('0x47')]({'where':{'uniqueid':_0x44466b[_0x7163('0x4d')]['id']}})['then'](handleEntityNotFound(_0x1a0dc3,null))[_0x7163('0x27')](saveUpdates(_0x44466b[_0x7163('0x4b')],null))[_0x7163('0x27')](respondWithResult(_0x1a0dc3,null))[_0x7163('0x44')](handleError(_0x1a0dc3,null));};
\ No newline at end of file