Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / jscriptyAnswerReport / jscriptyAnswerReport.controller.js
index f8f9be2..511576d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9fd4=['../../config/license/hardware','../../config/logger','api','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status','end','json','offset','undefined','limit','count','Content-Range','apply','reject','save','update','destroy','then','error','stack','name','index','map','JscriptyAnswerReport','rawAttributes','type','model','query','keys','intersection','fields','attributes','length','hasOwnProperty','nolimit','order','sort','where','pick','filters','filter','merge','include','findAll','rows','catch','params','includeAll','options','find','create','body','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','to-csv','ejs','fs-extra','lodash','crypto','jsforce','desk.js','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch'];(function(_0xfcbcb8,_0x35bf6b){var _0x1b1f97=function(_0x51e11d){while(--_0x51e11d){_0xfcbcb8['push'](_0xfcbcb8['shift']());}};_0x1b1f97(++_0x35bf6b);}(_0x9fd4,0x16c));var _0x49fd=function(_0x3e39e3,_0xcd7b7e){_0x3e39e3=_0x3e39e3-0x0;var _0x452aef=_0x9fd4[_0x3e39e3];return _0x452aef;};'use strict';var emlformat=require(_0x49fd('0x0'));var rimraf=require(_0x49fd('0x1'));var zipdir=require(_0x49fd('0x2'));var jsonpatch=require(_0x49fd('0x3'));var rp=require(_0x49fd('0x4'));var moment=require(_0x49fd('0x5'));var BPromise=require(_0x49fd('0x6'));var Mustache=require(_0x49fd('0x7'));var util=require(_0x49fd('0x8'));var path=require('path');var sox=require('sox');var csv=require(_0x49fd('0x9'));var ejs=require(_0x49fd('0xa'));var fs=require('fs');var fs_extra=require(_0x49fd('0xb'));var _=require(_0x49fd('0xc'));var squel=require('squel');var crypto=require(_0x49fd('0xd'));var jsforce=require(_0x49fd('0xe'));var deskjs=require(_0x49fd('0xf'));var toCsv=require(_0x49fd('0x9'));var querystring=require(_0x49fd('0x10'));var Papa=require('papaparse');var Redis=require(_0x49fd('0x11'));var authService=require(_0x49fd('0x12'));var qs=require(_0x49fd('0x13'));var as=require(_0x49fd('0x14'));var hardwareService=require(_0x49fd('0x15'));var logger=require(_0x49fd('0x16'))(_0x49fd('0x17'));var utils=require('../../config/utils');var config=require(_0x49fd('0x18'));var licenseUtil=require(_0x49fd('0x19'));var db=require(_0x49fd('0x1a'))['db'];function respondWithStatusCode(_0x40d1b0,_0x15dabd){_0x15dabd=_0x15dabd||0xcc;return function(_0x206bd8){if(_0x206bd8){return _0x40d1b0[_0x49fd('0x1b')](_0x15dabd);}return _0x40d1b0[_0x49fd('0x1c')](_0x15dabd)[_0x49fd('0x1d')]();};}function respondWithResult(_0x652890,_0x157b09){_0x157b09=_0x157b09||0xc8;return function(_0x44c18c){if(_0x44c18c){return _0x652890[_0x49fd('0x1c')](_0x157b09)[_0x49fd('0x1e')](_0x44c18c);}};}function respondWithFilteredResult(_0x264ab1,_0x201109){return function(_0x2859f2){if(_0x2859f2){var _0x3ca675=typeof _0x201109[_0x49fd('0x1f')]===_0x49fd('0x20')&&typeof _0x201109[_0x49fd('0x21')]===_0x49fd('0x20');var _0x320fe5=_0x2859f2[_0x49fd('0x22')];var _0xb55d24=_0x3ca675?0x0:_0x201109[_0x49fd('0x1f')];var _0x598793=_0x3ca675?_0x2859f2[_0x49fd('0x22')]:_0x201109[_0x49fd('0x1f')]+_0x201109['limit'];var _0x5c323a;if(_0x598793>=_0x320fe5){_0x598793=_0x320fe5;_0x5c323a=0xc8;}else{_0x5c323a=0xce;}_0x264ab1[_0x49fd('0x1c')](_0x5c323a);return _0x264ab1['set'](_0x49fd('0x23'),_0xb55d24+'-'+_0x598793+'/'+_0x320fe5)[_0x49fd('0x1e')](_0x2859f2);}return null;};}function patchUpdates(_0x599315){return function(_0xf7efcf){try{jsonpatch[_0x49fd('0x24')](_0xf7efcf,_0x599315,!![]);}catch(_0x5ae3bc){return BPromise[_0x49fd('0x25')](_0x5ae3bc);}return _0xf7efcf[_0x49fd('0x26')]();};}function saveUpdates(_0x2e1c40,_0x290f59){return function(_0x20fa0d){if(_0x20fa0d){return _0x20fa0d[_0x49fd('0x27')](_0x2e1c40)['then'](function(_0x46019d){return _0x46019d;});}return null;};}function removeEntity(_0xd43815,_0x8f202b){return function(_0x4bf811){if(_0x4bf811){return _0x4bf811[_0x49fd('0x28')]()[_0x49fd('0x29')](function(){_0xd43815[_0x49fd('0x1c')](0xcc)['end']();});}};}function handleEntityNotFound(_0x597161,_0x497469){return function(_0x13c5a8){if(!_0x13c5a8){_0x597161[_0x49fd('0x1b')](0x194);}return _0x13c5a8;};}function handleError(_0x4ec190,_0x302ab2){_0x302ab2=_0x302ab2||0x1f4;return function(_0x9587b9){logger[_0x49fd('0x2a')](_0x9587b9[_0x49fd('0x2b')]);if(_0x9587b9[_0x49fd('0x2c')]){delete _0x9587b9['name'];}_0x4ec190[_0x49fd('0x1c')](_0x302ab2)['send'](_0x9587b9);};}exports[_0x49fd('0x2d')]=function(_0x89badc,_0x54acb5){var _0x203038={},_0x2c8568={},_0x23374c={'count':0x0,'rows':[]};var _0x43826f=_[_0x49fd('0x2e')](db[_0x49fd('0x2f')][_0x49fd('0x30')],function(_0x242203){return{'name':_0x242203['fieldName'],'type':_0x242203[_0x49fd('0x31')]['key']};});_0x2c8568[_0x49fd('0x32')]=_['map'](_0x43826f,_0x49fd('0x2c'));_0x2c8568[_0x49fd('0x33')]=_[_0x49fd('0x34')](_0x89badc['query']);_0x2c8568['filters']=_['intersection'](_0x2c8568[_0x49fd('0x32')],_0x2c8568[_0x49fd('0x33')]);_0x203038['attributes']=_[_0x49fd('0x35')](_0x2c8568['model'],qs['fields'](_0x89badc[_0x49fd('0x33')][_0x49fd('0x36')]));_0x203038[_0x49fd('0x37')]=_0x203038[_0x49fd('0x37')][_0x49fd('0x38')]?_0x203038['attributes']:_0x2c8568['model'];if(!_0x89badc[_0x49fd('0x33')][_0x49fd('0x39')](_0x49fd('0x3a'))){_0x203038[_0x49fd('0x21')]=qs['limit'](_0x89badc[_0x49fd('0x33')][_0x49fd('0x21')]);_0x203038[_0x49fd('0x1f')]=qs[_0x49fd('0x1f')](_0x89badc[_0x49fd('0x33')][_0x49fd('0x1f')]);}_0x203038[_0x49fd('0x3b')]=qs[_0x49fd('0x3c')](_0x89badc[_0x49fd('0x33')][_0x49fd('0x3c')]);_0x203038[_0x49fd('0x3d')]=qs['filters'](_[_0x49fd('0x3e')](_0x89badc[_0x49fd('0x33')],_0x2c8568[_0x49fd('0x3f')]),_0x43826f);if(_0x89badc[_0x49fd('0x33')][_0x49fd('0x40')]){_0x203038[_0x49fd('0x3d')]=_[_0x49fd('0x41')](_0x203038[_0x49fd('0x3d')],{'$or':_[_0x49fd('0x2e')](_0x43826f,function(_0x4a1856){if(_0x4a1856[_0x49fd('0x31')]!=='VIRTUAL'){var _0x46e84c={};_0x46e84c[_0x4a1856[_0x49fd('0x2c')]]={'$like':'%'+_0x89badc['query'][_0x49fd('0x40')]+'%'};return _0x46e84c;}})});}_0x203038=_[_0x49fd('0x41')]({},_0x203038,_0x89badc['options']);var _0x1f9a65={'where':_0x203038['where']};return db['JscriptyAnswerReport']['count'](_0x1f9a65)[_0x49fd('0x29')](function(_0x32982e){_0x23374c[_0x49fd('0x22')]=_0x32982e;if(_0x89badc[_0x49fd('0x33')]['includeAll']){_0x203038[_0x49fd('0x42')]=[{'all':!![]}];}return db[_0x49fd('0x2f')][_0x49fd('0x43')](_0x203038);})[_0x49fd('0x29')](function(_0x115c5a){_0x23374c[_0x49fd('0x44')]=_0x115c5a;return _0x23374c;})[_0x49fd('0x29')](respondWithFilteredResult(_0x54acb5,_0x203038))[_0x49fd('0x45')](handleError(_0x54acb5,null));};exports['show']=function(_0x255a73,_0x2c8ab1){var _0x4dce94={'raw':!![],'where':{'id':_0x255a73[_0x49fd('0x46')]['id']}},_0x3be41b={};_0x3be41b['model']=_[_0x49fd('0x34')](db['JscriptyAnswerReport'][_0x49fd('0x30')]);_0x3be41b[_0x49fd('0x33')]=_[_0x49fd('0x34')](_0x255a73[_0x49fd('0x33')]);_0x3be41b['filters']=_['intersection'](_0x3be41b[_0x49fd('0x32')],_0x3be41b['query']);_0x4dce94[_0x49fd('0x37')]=_[_0x49fd('0x35')](_0x3be41b[_0x49fd('0x32')],qs[_0x49fd('0x36')](_0x255a73['query'][_0x49fd('0x36')]));_0x4dce94[_0x49fd('0x37')]=_0x4dce94[_0x49fd('0x37')][_0x49fd('0x38')]?_0x4dce94[_0x49fd('0x37')]:_0x3be41b[_0x49fd('0x32')];if(_0x255a73[_0x49fd('0x33')][_0x49fd('0x47')]){_0x4dce94[_0x49fd('0x42')]=[{'all':!![]}];}_0x4dce94=_[_0x49fd('0x41')]({},_0x4dce94,_0x255a73[_0x49fd('0x48')]);return db[_0x49fd('0x2f')][_0x49fd('0x49')](_0x4dce94)[_0x49fd('0x29')](handleEntityNotFound(_0x2c8ab1,null))['then'](respondWithResult(_0x2c8ab1,null))['catch'](handleError(_0x2c8ab1,null));};exports[_0x49fd('0x4a')]=function(_0xa3518f,_0x42287e){return db[_0x49fd('0x2f')]['create'](_0xa3518f[_0x49fd('0x4b')],{})[_0x49fd('0x29')](respondWithResult(_0x42287e,0xc9))['catch'](handleError(_0x42287e,null));};exports[_0x49fd('0x27')]=function(_0x270360,_0xaac56f){if(_0x270360[_0x49fd('0x4b')]['id']){delete _0x270360[_0x49fd('0x4b')]['id'];}return db[_0x49fd('0x2f')][_0x49fd('0x49')]({'where':{'id':_0x270360[_0x49fd('0x46')]['id']}})[_0x49fd('0x29')](handleEntityNotFound(_0xaac56f,null))[_0x49fd('0x29')](saveUpdates(_0x270360[_0x49fd('0x4b')],null))['then'](respondWithResult(_0xaac56f,null))[_0x49fd('0x45')](handleError(_0xaac56f,null));};exports[_0x49fd('0x28')]=function(_0x32694b,_0x263cf3){return db[_0x49fd('0x2f')][_0x49fd('0x49')]({'where':{'id':_0x32694b['params']['id']}})['then'](handleEntityNotFound(_0x263cf3,null))[_0x49fd('0x29')](removeEntity(_0x263cf3,null))[_0x49fd('0x45')](handleError(_0x263cf3,null));};exports[_0x49fd('0x4c')]=function(_0x5c34c0,_0x31783f){return db[_0x49fd('0x2f')]['describe']()['then'](respondWithResult(_0x31783f,null))['catch'](handleError(_0x31783f,null));};
\ No newline at end of file
+var _0xea81=['end','json','offset','undefined','count','limit','set','apply','reject','save','then','error','stack','name','index','map','JscriptyAnswerReport','rawAttributes','fieldName','type','key','model','query','keys','filters','intersection','attributes','fields','hasOwnProperty','nolimit','sort','pick','where','merge','VIRTUAL','filter','findAll','catch','params','length','includeAll','include','options','create','body','update','destroy','find','describe','eml-format','rimraf','zip-dir','fast-json-patch','bluebird','mustache','util','path','sox','lodash','squel','crypto','jsforce','to-csv','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','status'];(function(_0x12803b,_0x12ef36){var _0x26268b=function(_0x555fe3){while(--_0x555fe3){_0x12803b['push'](_0x12803b['shift']());}};_0x26268b(++_0x12ef36);}(_0xea81,0x1ed));var _0x1ea8=function(_0x4fd710,_0x1acf78){_0x4fd710=_0x4fd710-0x0;var _0x4872a8=_0xea81[_0x4fd710];return _0x4872a8;};'use strict';var emlformat=require(_0x1ea8('0x0'));var rimraf=require(_0x1ea8('0x1'));var zipdir=require(_0x1ea8('0x2'));var jsonpatch=require(_0x1ea8('0x3'));var rp=require('request-promise');var moment=require('moment');var BPromise=require(_0x1ea8('0x4'));var Mustache=require(_0x1ea8('0x5'));var util=require(_0x1ea8('0x6'));var path=require(_0x1ea8('0x7'));var sox=require(_0x1ea8('0x8'));var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x1ea8('0x9'));var squel=require(_0x1ea8('0xa'));var crypto=require(_0x1ea8('0xb'));var jsforce=require(_0x1ea8('0xc'));var deskjs=require('desk.js');var toCsv=require(_0x1ea8('0xd'));var querystring=require(_0x1ea8('0xe'));var Papa=require(_0x1ea8('0xf'));var Redis=require(_0x1ea8('0x10'));var authService=require(_0x1ea8('0x11'));var qs=require('../../components/parsers/qs');var as=require(_0x1ea8('0x12'));var hardwareService=require('../../config/license/hardware');var logger=require(_0x1ea8('0x13'))(_0x1ea8('0x14'));var utils=require(_0x1ea8('0x15'));var config=require(_0x1ea8('0x16'));var licenseUtil=require(_0x1ea8('0x17'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x5a1f3e,_0x2e2c66){_0x2e2c66=_0x2e2c66||0xcc;return function(_0x2b94da){if(_0x2b94da){return _0x5a1f3e['sendStatus'](_0x2e2c66);}return _0x5a1f3e[_0x1ea8('0x18')](_0x2e2c66)[_0x1ea8('0x19')]();};}function respondWithResult(_0x97d328,_0x184601){_0x184601=_0x184601||0xc8;return function(_0x122406){if(_0x122406){return _0x97d328['status'](_0x184601)[_0x1ea8('0x1a')](_0x122406);}};}function respondWithFilteredResult(_0x3f9156,_0x3e072d){return function(_0x4f1197){if(_0x4f1197){var _0x2d5b07=typeof _0x3e072d[_0x1ea8('0x1b')]==='undefined'&&typeof _0x3e072d['limit']===_0x1ea8('0x1c');var _0x4b80f9=_0x4f1197[_0x1ea8('0x1d')];var _0x4cf432=_0x2d5b07?0x0:_0x3e072d[_0x1ea8('0x1b')];var _0x228391=_0x2d5b07?_0x4f1197[_0x1ea8('0x1d')]:_0x3e072d[_0x1ea8('0x1b')]+_0x3e072d[_0x1ea8('0x1e')];var _0x8db288;if(_0x228391>=_0x4b80f9){_0x228391=_0x4b80f9;_0x8db288=0xc8;}else{_0x8db288=0xce;}_0x3f9156[_0x1ea8('0x18')](_0x8db288);return _0x3f9156[_0x1ea8('0x1f')]('Content-Range',_0x4cf432+'-'+_0x228391+'/'+_0x4b80f9)[_0x1ea8('0x1a')](_0x4f1197);}return null;};}function patchUpdates(_0x2a3b4c){return function(_0x1b0148){try{jsonpatch[_0x1ea8('0x20')](_0x1b0148,_0x2a3b4c,!![]);}catch(_0x106f33){return BPromise[_0x1ea8('0x21')](_0x106f33);}return _0x1b0148[_0x1ea8('0x22')]();};}function saveUpdates(_0x13f554,_0xad7ad3){return function(_0x247a47){if(_0x247a47){return _0x247a47['update'](_0x13f554)[_0x1ea8('0x23')](function(_0x489180){return _0x489180;});}return null;};}function removeEntity(_0x4276f0,_0x4e03ee){return function(_0x311e2e){if(_0x311e2e){return _0x311e2e['destroy']()[_0x1ea8('0x23')](function(){_0x4276f0['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x2d7b5c,_0x5ea18e){return function(_0x415bc1){if(!_0x415bc1){_0x2d7b5c['sendStatus'](0x194);}return _0x415bc1;};}function handleError(_0x5b3d5c,_0x3a79bf){_0x3a79bf=_0x3a79bf||0x1f4;return function(_0x386dce){logger[_0x1ea8('0x24')](_0x386dce[_0x1ea8('0x25')]);if(_0x386dce[_0x1ea8('0x26')]){delete _0x386dce[_0x1ea8('0x26')];}_0x5b3d5c[_0x1ea8('0x18')](_0x3a79bf)['send'](_0x386dce);};}exports[_0x1ea8('0x27')]=function(_0x4b293f,_0x6129d4){var _0x4e1b56={},_0x28a7e0={},_0x1f605c={'count':0x0,'rows':[]};var _0x57ca09=_[_0x1ea8('0x28')](db[_0x1ea8('0x29')][_0x1ea8('0x2a')],function(_0x3831c4){return{'name':_0x3831c4[_0x1ea8('0x2b')],'type':_0x3831c4[_0x1ea8('0x2c')][_0x1ea8('0x2d')]};});_0x28a7e0[_0x1ea8('0x2e')]=_[_0x1ea8('0x28')](_0x57ca09,_0x1ea8('0x26'));_0x28a7e0[_0x1ea8('0x2f')]=_[_0x1ea8('0x30')](_0x4b293f[_0x1ea8('0x2f')]);_0x28a7e0[_0x1ea8('0x31')]=_[_0x1ea8('0x32')](_0x28a7e0['model'],_0x28a7e0['query']);_0x4e1b56[_0x1ea8('0x33')]=_['intersection'](_0x28a7e0[_0x1ea8('0x2e')],qs[_0x1ea8('0x34')](_0x4b293f[_0x1ea8('0x2f')][_0x1ea8('0x34')]));_0x4e1b56['attributes']=_0x4e1b56[_0x1ea8('0x33')]['length']?_0x4e1b56['attributes']:_0x28a7e0[_0x1ea8('0x2e')];if(!_0x4b293f[_0x1ea8('0x2f')][_0x1ea8('0x35')](_0x1ea8('0x36'))){_0x4e1b56[_0x1ea8('0x1e')]=qs[_0x1ea8('0x1e')](_0x4b293f[_0x1ea8('0x2f')]['limit']);_0x4e1b56[_0x1ea8('0x1b')]=qs[_0x1ea8('0x1b')](_0x4b293f[_0x1ea8('0x2f')]['offset']);}_0x4e1b56['order']=qs[_0x1ea8('0x37')](_0x4b293f[_0x1ea8('0x2f')][_0x1ea8('0x37')]);_0x4e1b56['where']=qs[_0x1ea8('0x31')](_[_0x1ea8('0x38')](_0x4b293f[_0x1ea8('0x2f')],_0x28a7e0[_0x1ea8('0x31')]),_0x57ca09);if(_0x4b293f[_0x1ea8('0x2f')]['filter']){_0x4e1b56[_0x1ea8('0x39')]=_[_0x1ea8('0x3a')](_0x4e1b56['where'],{'$or':_[_0x1ea8('0x28')](_0x57ca09,function(_0x7e102b){if(_0x7e102b['type']!==_0x1ea8('0x3b')){var _0x266818={};_0x266818[_0x7e102b['name']]={'$like':'%'+_0x4b293f[_0x1ea8('0x2f')][_0x1ea8('0x3c')]+'%'};return _0x266818;}})});}_0x4e1b56=_[_0x1ea8('0x3a')]({},_0x4e1b56,_0x4b293f['options']);var _0x22aae6={'where':_0x4e1b56[_0x1ea8('0x39')]};return db[_0x1ea8('0x29')]['count'](_0x22aae6)[_0x1ea8('0x23')](function(_0x551d86){_0x1f605c[_0x1ea8('0x1d')]=_0x551d86;if(_0x4b293f[_0x1ea8('0x2f')]['includeAll']){_0x4e1b56['include']=[{'all':!![]}];}return db[_0x1ea8('0x29')][_0x1ea8('0x3d')](_0x4e1b56);})[_0x1ea8('0x23')](function(_0x19d130){_0x1f605c['rows']=_0x19d130;return _0x1f605c;})['then'](respondWithFilteredResult(_0x6129d4,_0x4e1b56))[_0x1ea8('0x3e')](handleError(_0x6129d4,null));};exports['show']=function(_0x12b70e,_0x19b36f){var _0x5378fd={'raw':!![],'where':{'id':_0x12b70e[_0x1ea8('0x3f')]['id']}},_0x11fab9={};_0x11fab9[_0x1ea8('0x2e')]=_['keys'](db[_0x1ea8('0x29')][_0x1ea8('0x2a')]);_0x11fab9[_0x1ea8('0x2f')]=_[_0x1ea8('0x30')](_0x12b70e[_0x1ea8('0x2f')]);_0x11fab9[_0x1ea8('0x31')]=_[_0x1ea8('0x32')](_0x11fab9[_0x1ea8('0x2e')],_0x11fab9[_0x1ea8('0x2f')]);_0x5378fd[_0x1ea8('0x33')]=_['intersection'](_0x11fab9[_0x1ea8('0x2e')],qs[_0x1ea8('0x34')](_0x12b70e[_0x1ea8('0x2f')]['fields']));_0x5378fd[_0x1ea8('0x33')]=_0x5378fd['attributes'][_0x1ea8('0x40')]?_0x5378fd[_0x1ea8('0x33')]:_0x11fab9[_0x1ea8('0x2e')];if(_0x12b70e[_0x1ea8('0x2f')][_0x1ea8('0x41')]){_0x5378fd[_0x1ea8('0x42')]=[{'all':!![]}];}_0x5378fd=_[_0x1ea8('0x3a')]({},_0x5378fd,_0x12b70e[_0x1ea8('0x43')]);return db[_0x1ea8('0x29')]['find'](_0x5378fd)['then'](handleEntityNotFound(_0x19b36f,null))[_0x1ea8('0x23')](respondWithResult(_0x19b36f,null))[_0x1ea8('0x3e')](handleError(_0x19b36f,null));};exports[_0x1ea8('0x44')]=function(_0x3c53ca,_0x30284c){return db['JscriptyAnswerReport'][_0x1ea8('0x44')](_0x3c53ca[_0x1ea8('0x45')],{})[_0x1ea8('0x23')](respondWithResult(_0x30284c,0xc9))[_0x1ea8('0x3e')](handleError(_0x30284c,null));};exports[_0x1ea8('0x46')]=function(_0x1d4e1e,_0x1d1f66){if(_0x1d4e1e[_0x1ea8('0x45')]['id']){delete _0x1d4e1e['body']['id'];}return db[_0x1ea8('0x29')]['find']({'where':{'id':_0x1d4e1e[_0x1ea8('0x3f')]['id']}})[_0x1ea8('0x23')](handleEntityNotFound(_0x1d1f66,null))[_0x1ea8('0x23')](saveUpdates(_0x1d4e1e['body'],null))['then'](respondWithResult(_0x1d1f66,null))['catch'](handleError(_0x1d1f66,null));};exports[_0x1ea8('0x47')]=function(_0x2a8bd7,_0x3bb40c){return db['JscriptyAnswerReport'][_0x1ea8('0x48')]({'where':{'id':_0x2a8bd7[_0x1ea8('0x3f')]['id']}})['then'](handleEntityNotFound(_0x3bb40c,null))[_0x1ea8('0x23')](removeEntity(_0x3bb40c,null))[_0x1ea8('0x3e')](handleError(_0x3bb40c,null));};exports[_0x1ea8('0x49')]=function(_0xed1cd5,_0x2df89b){return db[_0x1ea8('0x29')][_0x1ea8('0x49')]()[_0x1ea8('0x23')](respondWithResult(_0x2df89b,null))[_0x1ea8('0x3e')](handleError(_0x2df89b,null));};
\ No newline at end of file