Built motion from commit 6db1674d.|2.6.23
[motion2.git] / server / api / jscriptyAnswerReport / jscriptyAnswerReport.controller.js
index 2b8981d..d84bdd2 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6dac=['then','destroy','error','send','index','rawAttributes','fieldName','type','key','map','name','query','keys','filters','model','attributes','fields','length','hasOwnProperty','nolimit','sort','filter','where','VIRTUAL','merge','options','JscriptyAnswerReport','includeAll','include','findAll','catch','show','intersection','find','create','body','params','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','end','status','json','offset','undefined','count','limit','set','Content-Range','apply','reject','save','update'];(function(_0x2623d1,_0x47e15c){var _0x29b94f=function(_0x4d10eb){while(--_0x4d10eb){_0x2623d1['push'](_0x2623d1['shift']());}};_0x29b94f(++_0x47e15c);}(_0x6dac,0x16e));var _0xc6da=function(_0xf3ada,_0x4710ba){_0xf3ada=_0xf3ada-0x0;var _0x1a87f7=_0x6dac[_0xf3ada];return _0x1a87f7;};'use strict';var emlformat=require(_0xc6da('0x0'));var rimraf=require(_0xc6da('0x1'));var zipdir=require(_0xc6da('0x2'));var jsonpatch=require(_0xc6da('0x3'));var rp=require(_0xc6da('0x4'));var moment=require(_0xc6da('0x5'));var BPromise=require(_0xc6da('0x6'));var Mustache=require(_0xc6da('0x7'));var util=require(_0xc6da('0x8'));var path=require(_0xc6da('0x9'));var sox=require(_0xc6da('0xa'));var csv=require(_0xc6da('0xb'));var ejs=require(_0xc6da('0xc'));var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0xc6da('0xd'));var squel=require(_0xc6da('0xe'));var crypto=require(_0xc6da('0xf'));var jsforce=require(_0xc6da('0x10'));var deskjs=require(_0xc6da('0x11'));var toCsv=require(_0xc6da('0xb'));var querystring=require(_0xc6da('0x12'));var Papa=require(_0xc6da('0x13'));var Redis=require(_0xc6da('0x14'));var authService=require('../../components/auth/service');var qs=require(_0xc6da('0x15'));var as=require(_0xc6da('0x16'));var hardwareService=require(_0xc6da('0x17'));var logger=require(_0xc6da('0x18'))(_0xc6da('0x19'));var utils=require(_0xc6da('0x1a'));var config=require(_0xc6da('0x1b'));var licenseUtil=require(_0xc6da('0x1c'));var db=require(_0xc6da('0x1d'))['db'];function respondWithStatusCode(_0x22d0e3,_0x3b8656){_0x3b8656=_0x3b8656||0xcc;return function(_0x3a3b39){if(_0x3a3b39){return _0x22d0e3[_0xc6da('0x1e')](_0x3b8656);}return _0x22d0e3['status'](_0x3b8656)[_0xc6da('0x1f')]();};}function respondWithResult(_0x18e521,_0x13d9df){_0x13d9df=_0x13d9df||0xc8;return function(_0x344b09){if(_0x344b09){return _0x18e521[_0xc6da('0x20')](_0x13d9df)[_0xc6da('0x21')](_0x344b09);}};}function respondWithFilteredResult(_0x4fa18b,_0x43e6b3){return function(_0x37767a){if(_0x37767a){var _0x287468=typeof _0x43e6b3[_0xc6da('0x22')]===_0xc6da('0x23')&&typeof _0x43e6b3['limit']===_0xc6da('0x23');var _0x4cf6c4=_0x37767a[_0xc6da('0x24')];var _0x2a63cc=_0x287468?0x0:_0x43e6b3[_0xc6da('0x22')];var _0x25737d=_0x287468?_0x37767a['count']:_0x43e6b3[_0xc6da('0x22')]+_0x43e6b3[_0xc6da('0x25')];var _0x40c346;if(_0x25737d>=_0x4cf6c4){_0x25737d=_0x4cf6c4;_0x40c346=0xc8;}else{_0x40c346=0xce;}_0x4fa18b[_0xc6da('0x20')](_0x40c346);return _0x4fa18b[_0xc6da('0x26')](_0xc6da('0x27'),_0x2a63cc+'-'+_0x25737d+'/'+_0x4cf6c4)[_0xc6da('0x21')](_0x37767a);}return null;};}function patchUpdates(_0x36ac99){return function(_0xe00c70){try{jsonpatch[_0xc6da('0x28')](_0xe00c70,_0x36ac99,!![]);}catch(_0x4deb23){return BPromise[_0xc6da('0x29')](_0x4deb23);}return _0xe00c70[_0xc6da('0x2a')]();};}function saveUpdates(_0x3c7483,_0x94bee1){return function(_0x5f070b){if(_0x5f070b){return _0x5f070b[_0xc6da('0x2b')](_0x3c7483)[_0xc6da('0x2c')](function(_0x5ddab9){return _0x5ddab9;});}return null;};}function removeEntity(_0x2a2ef9,_0x3b180c){return function(_0x1003a3){if(_0x1003a3){return _0x1003a3[_0xc6da('0x2d')]()['then'](function(){_0x2a2ef9[_0xc6da('0x20')](0xcc)[_0xc6da('0x1f')]();});}};}function handleEntityNotFound(_0x55c059,_0x67ebf9){return function(_0x89b637){if(!_0x89b637){_0x55c059[_0xc6da('0x1e')](0x194);}return _0x89b637;};}function handleError(_0x57c198,_0x4d232d){_0x4d232d=_0x4d232d||0x1f4;return function(_0x1ded21){logger[_0xc6da('0x2e')](_0x1ded21['stack']);if(_0x1ded21['name']){delete _0x1ded21['name'];}_0x57c198['status'](_0x4d232d)[_0xc6da('0x2f')](_0x1ded21);};}exports[_0xc6da('0x30')]=function(_0x33eba0,_0x579dab){var _0x32b83={},_0xda1aef={},_0x13cb9e={'count':0x0,'rows':[]};var _0x890254=_['map'](db['JscriptyAnswerReport'][_0xc6da('0x31')],function(_0x572204){return{'name':_0x572204[_0xc6da('0x32')],'type':_0x572204[_0xc6da('0x33')][_0xc6da('0x34')]};});_0xda1aef['model']=_[_0xc6da('0x35')](_0x890254,_0xc6da('0x36'));_0xda1aef[_0xc6da('0x37')]=_[_0xc6da('0x38')](_0x33eba0[_0xc6da('0x37')]);_0xda1aef[_0xc6da('0x39')]=_['intersection'](_0xda1aef[_0xc6da('0x3a')],_0xda1aef[_0xc6da('0x37')]);_0x32b83[_0xc6da('0x3b')]=_['intersection'](_0xda1aef['model'],qs[_0xc6da('0x3c')](_0x33eba0[_0xc6da('0x37')][_0xc6da('0x3c')]));_0x32b83[_0xc6da('0x3b')]=_0x32b83[_0xc6da('0x3b')][_0xc6da('0x3d')]?_0x32b83[_0xc6da('0x3b')]:_0xda1aef[_0xc6da('0x3a')];if(!_0x33eba0[_0xc6da('0x37')][_0xc6da('0x3e')](_0xc6da('0x3f'))){_0x32b83[_0xc6da('0x25')]=qs[_0xc6da('0x25')](_0x33eba0['query'][_0xc6da('0x25')]);_0x32b83['offset']=qs[_0xc6da('0x22')](_0x33eba0[_0xc6da('0x37')][_0xc6da('0x22')]);}_0x32b83['order']=qs[_0xc6da('0x40')](_0x33eba0[_0xc6da('0x37')][_0xc6da('0x40')]);_0x32b83['where']=qs[_0xc6da('0x39')](_['pick'](_0x33eba0[_0xc6da('0x37')],_0xda1aef['filters']),_0x890254);if(_0x33eba0[_0xc6da('0x37')][_0xc6da('0x41')]){_0x32b83[_0xc6da('0x42')]=_['merge'](_0x32b83['where'],{'$or':_[_0xc6da('0x35')](_0x890254,function(_0x56b071){if(_0x56b071['type']!==_0xc6da('0x43')){var _0x16b440={};_0x16b440[_0x56b071[_0xc6da('0x36')]]={'$like':'%'+_0x33eba0[_0xc6da('0x37')][_0xc6da('0x41')]+'%'};return _0x16b440;}})});}_0x32b83=_[_0xc6da('0x44')]({},_0x32b83,_0x33eba0[_0xc6da('0x45')]);var _0x3368c9={'where':_0x32b83['where']};return db[_0xc6da('0x46')][_0xc6da('0x24')](_0x3368c9)[_0xc6da('0x2c')](function(_0x4fd663){_0x13cb9e[_0xc6da('0x24')]=_0x4fd663;if(_0x33eba0[_0xc6da('0x37')][_0xc6da('0x47')]){_0x32b83[_0xc6da('0x48')]=[{'all':!![]}];}return db[_0xc6da('0x46')][_0xc6da('0x49')](_0x32b83);})[_0xc6da('0x2c')](function(_0xb5e11e){_0x13cb9e['rows']=_0xb5e11e;return _0x13cb9e;})[_0xc6da('0x2c')](respondWithFilteredResult(_0x579dab,_0x32b83))[_0xc6da('0x4a')](handleError(_0x579dab,null));};exports[_0xc6da('0x4b')]=function(_0x34e19a,_0x4f3374){var _0x4e00fc={'raw':!![],'where':{'id':_0x34e19a['params']['id']}},_0xd20888={};_0xd20888['model']=_[_0xc6da('0x38')](db[_0xc6da('0x46')][_0xc6da('0x31')]);_0xd20888[_0xc6da('0x37')]=_[_0xc6da('0x38')](_0x34e19a[_0xc6da('0x37')]);_0xd20888['filters']=_[_0xc6da('0x4c')](_0xd20888['model'],_0xd20888[_0xc6da('0x37')]);_0x4e00fc['attributes']=_[_0xc6da('0x4c')](_0xd20888[_0xc6da('0x3a')],qs[_0xc6da('0x3c')](_0x34e19a[_0xc6da('0x37')][_0xc6da('0x3c')]));_0x4e00fc[_0xc6da('0x3b')]=_0x4e00fc[_0xc6da('0x3b')][_0xc6da('0x3d')]?_0x4e00fc['attributes']:_0xd20888[_0xc6da('0x3a')];if(_0x34e19a[_0xc6da('0x37')]['includeAll']){_0x4e00fc[_0xc6da('0x48')]=[{'all':!![]}];}_0x4e00fc=_['merge']({},_0x4e00fc,_0x34e19a[_0xc6da('0x45')]);return db[_0xc6da('0x46')][_0xc6da('0x4d')](_0x4e00fc)[_0xc6da('0x2c')](handleEntityNotFound(_0x4f3374,null))['then'](respondWithResult(_0x4f3374,null))['catch'](handleError(_0x4f3374,null));};exports[_0xc6da('0x4e')]=function(_0x3b2f06,_0x4fd983){return db[_0xc6da('0x46')][_0xc6da('0x4e')](_0x3b2f06[_0xc6da('0x4f')],{})[_0xc6da('0x2c')](respondWithResult(_0x4fd983,0xc9))['catch'](handleError(_0x4fd983,null));};exports['update']=function(_0x3d7016,_0x1cd932){if(_0x3d7016[_0xc6da('0x4f')]['id']){delete _0x3d7016[_0xc6da('0x4f')]['id'];}return db['JscriptyAnswerReport'][_0xc6da('0x4d')]({'where':{'id':_0x3d7016['params']['id']}})[_0xc6da('0x2c')](handleEntityNotFound(_0x1cd932,null))[_0xc6da('0x2c')](saveUpdates(_0x3d7016[_0xc6da('0x4f')],null))[_0xc6da('0x2c')](respondWithResult(_0x1cd932,null))['catch'](handleError(_0x1cd932,null));};exports[_0xc6da('0x2d')]=function(_0x12f27b,_0x225d74){return db[_0xc6da('0x46')][_0xc6da('0x4d')]({'where':{'id':_0x12f27b[_0xc6da('0x50')]['id']}})[_0xc6da('0x2c')](handleEntityNotFound(_0x225d74,null))[_0xc6da('0x2c')](removeEntity(_0x225d74,null))[_0xc6da('0x4a')](handleError(_0x225d74,null));};exports[_0xc6da('0x51')]=function(_0x579a46,_0x5d2213){return db['JscriptyAnswerReport'][_0xc6da('0x51')]()['then'](respondWithResult(_0x5d2213,null))[_0xc6da('0x4a')](handleError(_0x5d2213,null));};
\ No newline at end of file
+var _0xdbf5=['rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','attributes','fields','hasOwnProperty','nolimit','limit','order','sort','where','pick','filter','merge','options','findAll','rows','catch','show','params','includeAll','create','body','find','describe','rimraf','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','desk.js','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','api','../../config/license/util','sendStatus','status','json','offset','undefined','count','set','Content-Range','save','update','then','destroy','end','error','stack','name','send','index','map','JscriptyAnswerReport'];(function(_0xbb6e35,_0x14d01e){var _0x2c33ef=function(_0x21601e){while(--_0x21601e){_0xbb6e35['push'](_0xbb6e35['shift']());}};_0x2c33ef(++_0x14d01e);}(_0xdbf5,0x18c));var _0x5dbf=function(_0x4a3d62,_0xed30fb){_0x4a3d62=_0x4a3d62-0x0;var _0x10f320=_0xdbf5[_0x4a3d62];return _0x10f320;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x5dbf('0x0'));var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require(_0x5dbf('0x1'));var moment=require(_0x5dbf('0x2'));var BPromise=require(_0x5dbf('0x3'));var Mustache=require(_0x5dbf('0x4'));var util=require(_0x5dbf('0x5'));var path=require(_0x5dbf('0x6'));var sox=require(_0x5dbf('0x7'));var csv=require(_0x5dbf('0x8'));var ejs=require(_0x5dbf('0x9'));var fs=require('fs');var fs_extra=require(_0x5dbf('0xa'));var _=require(_0x5dbf('0xb'));var squel=require(_0x5dbf('0xc'));var crypto=require(_0x5dbf('0xd'));var jsforce=require('jsforce');var deskjs=require(_0x5dbf('0xe'));var toCsv=require('to-csv');var querystring=require(_0x5dbf('0xf'));var Papa=require(_0x5dbf('0x10'));var Redis=require(_0x5dbf('0x11'));var authService=require(_0x5dbf('0x12'));var qs=require('../../components/parsers/qs');var as=require(_0x5dbf('0x13'));var hardwareService=require('../../config/license/hardware');var logger=require('../../config/logger')(_0x5dbf('0x14'));var utils=require('../../config/utils');var config=require('../../config/environment');var licenseUtil=require(_0x5dbf('0x15'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x182cec,_0x2bb7ed){_0x2bb7ed=_0x2bb7ed||0xcc;return function(_0x1453a9){if(_0x1453a9){return _0x182cec[_0x5dbf('0x16')](_0x2bb7ed);}return _0x182cec[_0x5dbf('0x17')](_0x2bb7ed)['end']();};}function respondWithResult(_0x4803ca,_0x2b4e1c){_0x2b4e1c=_0x2b4e1c||0xc8;return function(_0x3480c8){if(_0x3480c8){return _0x4803ca['status'](_0x2b4e1c)[_0x5dbf('0x18')](_0x3480c8);}};}function respondWithFilteredResult(_0x248e3c,_0x23f763){return function(_0x2dfa44){if(_0x2dfa44){var _0x181816=typeof _0x23f763[_0x5dbf('0x19')]===_0x5dbf('0x1a')&&typeof _0x23f763['limit']==='undefined';var _0x16dc82=_0x2dfa44[_0x5dbf('0x1b')];var _0x39c7aa=_0x181816?0x0:_0x23f763[_0x5dbf('0x19')];var _0x20c2b0=_0x181816?_0x2dfa44['count']:_0x23f763[_0x5dbf('0x19')]+_0x23f763['limit'];var _0x565efa;if(_0x20c2b0>=_0x16dc82){_0x20c2b0=_0x16dc82;_0x565efa=0xc8;}else{_0x565efa=0xce;}_0x248e3c['status'](_0x565efa);return _0x248e3c[_0x5dbf('0x1c')](_0x5dbf('0x1d'),_0x39c7aa+'-'+_0x20c2b0+'/'+_0x16dc82)[_0x5dbf('0x18')](_0x2dfa44);}return null;};}function patchUpdates(_0x2ab57c){return function(_0x1e3cce){try{jsonpatch['apply'](_0x1e3cce,_0x2ab57c,!![]);}catch(_0x2764ea){return BPromise['reject'](_0x2764ea);}return _0x1e3cce[_0x5dbf('0x1e')]();};}function saveUpdates(_0x11cc67,_0x14d133){return function(_0x43a612){if(_0x43a612){return _0x43a612[_0x5dbf('0x1f')](_0x11cc67)[_0x5dbf('0x20')](function(_0x58085e){return _0x58085e;});}return null;};}function removeEntity(_0x4027c3,_0x3e3a2d){return function(_0x2d3e1b){if(_0x2d3e1b){return _0x2d3e1b[_0x5dbf('0x21')]()[_0x5dbf('0x20')](function(){_0x4027c3[_0x5dbf('0x17')](0xcc)[_0x5dbf('0x22')]();});}};}function handleEntityNotFound(_0x20ab1b,_0x42f13b){return function(_0x15a790){if(!_0x15a790){_0x20ab1b[_0x5dbf('0x16')](0x194);}return _0x15a790;};}function handleError(_0x232c77,_0x3f9e60){_0x3f9e60=_0x3f9e60||0x1f4;return function(_0x407741){logger[_0x5dbf('0x23')](_0x407741[_0x5dbf('0x24')]);if(_0x407741[_0x5dbf('0x25')]){delete _0x407741[_0x5dbf('0x25')];}_0x232c77[_0x5dbf('0x17')](_0x3f9e60)[_0x5dbf('0x26')](_0x407741);};}exports[_0x5dbf('0x27')]=function(_0x471027,_0x21cd00){var _0x5768b7={},_0x2f71eb={},_0x24dc99={'count':0x0,'rows':[]};var _0xc4748=_[_0x5dbf('0x28')](db[_0x5dbf('0x29')][_0x5dbf('0x2a')],function(_0x2a65c5){return{'name':_0x2a65c5[_0x5dbf('0x2b')],'type':_0x2a65c5[_0x5dbf('0x2c')][_0x5dbf('0x2d')]};});_0x2f71eb[_0x5dbf('0x2e')]=_['map'](_0xc4748,'name');_0x2f71eb[_0x5dbf('0x2f')]=_[_0x5dbf('0x30')](_0x471027[_0x5dbf('0x2f')]);_0x2f71eb[_0x5dbf('0x31')]=_[_0x5dbf('0x32')](_0x2f71eb['model'],_0x2f71eb['query']);_0x5768b7[_0x5dbf('0x33')]=_[_0x5dbf('0x32')](_0x2f71eb['model'],qs[_0x5dbf('0x34')](_0x471027[_0x5dbf('0x2f')][_0x5dbf('0x34')]));_0x5768b7[_0x5dbf('0x33')]=_0x5768b7[_0x5dbf('0x33')]['length']?_0x5768b7[_0x5dbf('0x33')]:_0x2f71eb[_0x5dbf('0x2e')];if(!_0x471027[_0x5dbf('0x2f')][_0x5dbf('0x35')](_0x5dbf('0x36'))){_0x5768b7['limit']=qs[_0x5dbf('0x37')](_0x471027[_0x5dbf('0x2f')][_0x5dbf('0x37')]);_0x5768b7[_0x5dbf('0x19')]=qs['offset'](_0x471027[_0x5dbf('0x2f')][_0x5dbf('0x19')]);}_0x5768b7[_0x5dbf('0x38')]=qs[_0x5dbf('0x39')](_0x471027[_0x5dbf('0x2f')][_0x5dbf('0x39')]);_0x5768b7[_0x5dbf('0x3a')]=qs[_0x5dbf('0x31')](_[_0x5dbf('0x3b')](_0x471027[_0x5dbf('0x2f')],_0x2f71eb[_0x5dbf('0x31')]),_0xc4748);if(_0x471027['query'][_0x5dbf('0x3c')]){_0x5768b7[_0x5dbf('0x3a')]=_[_0x5dbf('0x3d')](_0x5768b7['where'],{'$or':_[_0x5dbf('0x28')](_0xc4748,function(_0x43954b){if(_0x43954b[_0x5dbf('0x2c')]!=='VIRTUAL'){var _0x444814={};_0x444814[_0x43954b[_0x5dbf('0x25')]]={'$like':'%'+_0x471027[_0x5dbf('0x2f')]['filter']+'%'};return _0x444814;}})});}_0x5768b7=_[_0x5dbf('0x3d')]({},_0x5768b7,_0x471027[_0x5dbf('0x3e')]);var _0x2ac162={'where':_0x5768b7[_0x5dbf('0x3a')]};return db[_0x5dbf('0x29')][_0x5dbf('0x1b')](_0x2ac162)[_0x5dbf('0x20')](function(_0x2ed355){_0x24dc99['count']=_0x2ed355;if(_0x471027['query']['includeAll']){_0x5768b7['include']=[{'all':!![]}];}return db[_0x5dbf('0x29')][_0x5dbf('0x3f')](_0x5768b7);})['then'](function(_0x3ef0eb){_0x24dc99[_0x5dbf('0x40')]=_0x3ef0eb;return _0x24dc99;})['then'](respondWithFilteredResult(_0x21cd00,_0x5768b7))[_0x5dbf('0x41')](handleError(_0x21cd00,null));};exports[_0x5dbf('0x42')]=function(_0x2ee717,_0x2ee6b9){var _0x21ae10={'raw':!![],'where':{'id':_0x2ee717[_0x5dbf('0x43')]['id']}},_0x7c390d={};_0x7c390d[_0x5dbf('0x2e')]=_[_0x5dbf('0x30')](db[_0x5dbf('0x29')]['rawAttributes']);_0x7c390d[_0x5dbf('0x2f')]=_[_0x5dbf('0x30')](_0x2ee717[_0x5dbf('0x2f')]);_0x7c390d['filters']=_[_0x5dbf('0x32')](_0x7c390d[_0x5dbf('0x2e')],_0x7c390d[_0x5dbf('0x2f')]);_0x21ae10[_0x5dbf('0x33')]=_['intersection'](_0x7c390d[_0x5dbf('0x2e')],qs['fields'](_0x2ee717[_0x5dbf('0x2f')][_0x5dbf('0x34')]));_0x21ae10[_0x5dbf('0x33')]=_0x21ae10[_0x5dbf('0x33')]['length']?_0x21ae10['attributes']:_0x7c390d[_0x5dbf('0x2e')];if(_0x2ee717[_0x5dbf('0x2f')][_0x5dbf('0x44')]){_0x21ae10['include']=[{'all':!![]}];}_0x21ae10=_[_0x5dbf('0x3d')]({},_0x21ae10,_0x2ee717['options']);return db['JscriptyAnswerReport']['find'](_0x21ae10)['then'](handleEntityNotFound(_0x2ee6b9,null))[_0x5dbf('0x20')](respondWithResult(_0x2ee6b9,null))[_0x5dbf('0x41')](handleError(_0x2ee6b9,null));};exports['create']=function(_0x47063d,_0x3ba5cb){return db['JscriptyAnswerReport'][_0x5dbf('0x45')](_0x47063d[_0x5dbf('0x46')],{})['then'](respondWithResult(_0x3ba5cb,0xc9))[_0x5dbf('0x41')](handleError(_0x3ba5cb,null));};exports['update']=function(_0x5ab862,_0x337897){if(_0x5ab862[_0x5dbf('0x46')]['id']){delete _0x5ab862[_0x5dbf('0x46')]['id'];}return db['JscriptyAnswerReport']['find']({'where':{'id':_0x5ab862[_0x5dbf('0x43')]['id']}})[_0x5dbf('0x20')](handleEntityNotFound(_0x337897,null))[_0x5dbf('0x20')](saveUpdates(_0x5ab862[_0x5dbf('0x46')],null))[_0x5dbf('0x20')](respondWithResult(_0x337897,null))[_0x5dbf('0x41')](handleError(_0x337897,null));};exports[_0x5dbf('0x21')]=function(_0x319906,_0x4bc7eb){return db[_0x5dbf('0x29')][_0x5dbf('0x47')]({'where':{'id':_0x319906[_0x5dbf('0x43')]['id']}})[_0x5dbf('0x20')](handleEntityNotFound(_0x4bc7eb,null))[_0x5dbf('0x20')](removeEntity(_0x4bc7eb,null))[_0x5dbf('0x41')](handleError(_0x4bc7eb,null));};exports[_0x5dbf('0x48')]=function(_0x59f825,_0x1b0b13){return db['JscriptyAnswerReport'][_0x5dbf('0x48')]()[_0x5dbf('0x20')](respondWithResult(_0x1b0b13,null))[_0x5dbf('0x41')](handleError(_0x1b0b13,null));};
\ No newline at end of file