Built motion from commit 616d3211.|2.6.4
[motion2.git] / server / api / jscriptyAnswerReport / jscriptyAnswerReport.controller.js
index 4ebcb6a..68af564 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7eff=['util','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','querystring','papaparse','../../components/auth/service','../../config/license/hardware','api','../../mysqldb','sendStatus','status','end','json','offset','undefined','limit','count','set','Content-Range','reject','save','then','destroy','error','stack','name','send','index','map','rawAttributes','fieldName','type','model','keys','query','filters','intersection','attributes','fields','length','hasOwnProperty','order','sort','pick','filter','where','merge','options','JscriptyAnswerReport','includeAll','include','findAll','rows','catch','params','find','create','body','update','describe','rimraf','zip-dir','fast-json-patch','moment','bluebird','mustache'];(function(_0x40b2a9,_0x5eb469){var _0x94ff9=function(_0x4fd252){while(--_0x4fd252){_0x40b2a9['push'](_0x40b2a9['shift']());}};_0x94ff9(++_0x5eb469);}(_0x7eff,0x162));var _0xf7ef=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x7eff[_0x321bb2];return _0x9c12ed;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xf7ef('0x0'));var zipdir=require(_0xf7ef('0x1'));var jsonpatch=require(_0xf7ef('0x2'));var rp=require('request-promise');var moment=require(_0xf7ef('0x3'));var BPromise=require(_0xf7ef('0x4'));var Mustache=require(_0xf7ef('0x5'));var util=require(_0xf7ef('0x6'));var path=require('path');var sox=require('sox');var csv=require(_0xf7ef('0x7'));var ejs=require(_0xf7ef('0x8'));var fs=require('fs');var fs_extra=require(_0xf7ef('0x9'));var _=require(_0xf7ef('0xa'));var squel=require(_0xf7ef('0xb'));var crypto=require(_0xf7ef('0xc'));var jsforce=require(_0xf7ef('0xd'));var deskjs=require(_0xf7ef('0xe'));var toCsv=require('to-csv');var querystring=require(_0xf7ef('0xf'));var Papa=require(_0xf7ef('0x10'));var Redis=require('ioredis');var authService=require(_0xf7ef('0x11'));var qs=require('../../components/parsers/qs');var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0xf7ef('0x12'));var logger=require('../../config/logger')(_0xf7ef('0x13'));var utils=require('../../config/utils');var config=require('../../config/environment');var licenseUtil=require('../../config/license/util');var db=require(_0xf7ef('0x14'))['db'];function respondWithStatusCode(_0x4e45fd,_0x5e6a8e){_0x5e6a8e=_0x5e6a8e||0xcc;return function(_0x56b5d7){if(_0x56b5d7){return _0x4e45fd[_0xf7ef('0x15')](_0x5e6a8e);}return _0x4e45fd[_0xf7ef('0x16')](_0x5e6a8e)[_0xf7ef('0x17')]();};}function respondWithResult(_0xf6e5a0,_0x5d5112){_0x5d5112=_0x5d5112||0xc8;return function(_0x27a4a7){if(_0x27a4a7){return _0xf6e5a0['status'](_0x5d5112)[_0xf7ef('0x18')](_0x27a4a7);}};}function respondWithFilteredResult(_0x35746b,_0x4996b7){return function(_0x39ef6f){if(_0x39ef6f){var _0x4856bd=typeof _0x4996b7[_0xf7ef('0x19')]===_0xf7ef('0x1a')&&typeof _0x4996b7[_0xf7ef('0x1b')]===_0xf7ef('0x1a');var _0x15ad8c=_0x39ef6f[_0xf7ef('0x1c')];var _0x466612=_0x4856bd?0x0:_0x4996b7['offset'];var _0x4fa0c6=_0x4856bd?_0x39ef6f['count']:_0x4996b7[_0xf7ef('0x19')]+_0x4996b7['limit'];var _0x371688;if(_0x4fa0c6>=_0x15ad8c){_0x4fa0c6=_0x15ad8c;_0x371688=0xc8;}else{_0x371688=0xce;}_0x35746b[_0xf7ef('0x16')](_0x371688);return _0x35746b[_0xf7ef('0x1d')](_0xf7ef('0x1e'),_0x466612+'-'+_0x4fa0c6+'/'+_0x15ad8c)[_0xf7ef('0x18')](_0x39ef6f);}return null;};}function patchUpdates(_0x29cbf1){return function(_0x4d1cf0){try{jsonpatch['apply'](_0x4d1cf0,_0x29cbf1,!![]);}catch(_0x578525){return BPromise[_0xf7ef('0x1f')](_0x578525);}return _0x4d1cf0[_0xf7ef('0x20')]();};}function saveUpdates(_0x1a95c6,_0x20c27b){return function(_0x5d70f5){if(_0x5d70f5){return _0x5d70f5['update'](_0x1a95c6)[_0xf7ef('0x21')](function(_0x36c8c8){return _0x36c8c8;});}return null;};}function removeEntity(_0x5e1c75,_0x168da4){return function(_0x39e820){if(_0x39e820){return _0x39e820[_0xf7ef('0x22')]()['then'](function(){_0x5e1c75[_0xf7ef('0x16')](0xcc)[_0xf7ef('0x17')]();});}};}function handleEntityNotFound(_0x47c243,_0x15997a){return function(_0x3ee27d){if(!_0x3ee27d){_0x47c243[_0xf7ef('0x15')](0x194);}return _0x3ee27d;};}function handleError(_0x205aaa,_0x11768b){_0x11768b=_0x11768b||0x1f4;return function(_0xaa0cc4){logger[_0xf7ef('0x23')](_0xaa0cc4[_0xf7ef('0x24')]);if(_0xaa0cc4[_0xf7ef('0x25')]){delete _0xaa0cc4['name'];}_0x205aaa[_0xf7ef('0x16')](_0x11768b)[_0xf7ef('0x26')](_0xaa0cc4);};}exports[_0xf7ef('0x27')]=function(_0x3a9292,_0x49ea57){var _0x392364={},_0x3becba={},_0x486c2a={'count':0x0,'rows':[]};var _0x5e40ac=_[_0xf7ef('0x28')](db['JscriptyAnswerReport'][_0xf7ef('0x29')],function(_0xbd4571){return{'name':_0xbd4571[_0xf7ef('0x2a')],'type':_0xbd4571[_0xf7ef('0x2b')]['key']};});_0x3becba[_0xf7ef('0x2c')]=_[_0xf7ef('0x28')](_0x5e40ac,_0xf7ef('0x25'));_0x3becba['query']=_[_0xf7ef('0x2d')](_0x3a9292[_0xf7ef('0x2e')]);_0x3becba[_0xf7ef('0x2f')]=_[_0xf7ef('0x30')](_0x3becba[_0xf7ef('0x2c')],_0x3becba[_0xf7ef('0x2e')]);_0x392364[_0xf7ef('0x31')]=_[_0xf7ef('0x30')](_0x3becba[_0xf7ef('0x2c')],qs['fields'](_0x3a9292[_0xf7ef('0x2e')][_0xf7ef('0x32')]));_0x392364[_0xf7ef('0x31')]=_0x392364[_0xf7ef('0x31')][_0xf7ef('0x33')]?_0x392364[_0xf7ef('0x31')]:_0x3becba[_0xf7ef('0x2c')];if(!_0x3a9292[_0xf7ef('0x2e')][_0xf7ef('0x34')]('nolimit')){_0x392364['limit']=qs[_0xf7ef('0x1b')](_0x3a9292[_0xf7ef('0x2e')][_0xf7ef('0x1b')]);_0x392364[_0xf7ef('0x19')]=qs[_0xf7ef('0x19')](_0x3a9292[_0xf7ef('0x2e')][_0xf7ef('0x19')]);}_0x392364[_0xf7ef('0x35')]=qs['sort'](_0x3a9292[_0xf7ef('0x2e')][_0xf7ef('0x36')]);_0x392364['where']=qs['filters'](_[_0xf7ef('0x37')](_0x3a9292[_0xf7ef('0x2e')],_0x3becba[_0xf7ef('0x2f')]),_0x5e40ac);if(_0x3a9292[_0xf7ef('0x2e')][_0xf7ef('0x38')]){_0x392364[_0xf7ef('0x39')]=_[_0xf7ef('0x3a')](_0x392364[_0xf7ef('0x39')],{'$or':_['map'](_0x5e40ac,function(_0x55fd01){if(_0x55fd01[_0xf7ef('0x2b')]!=='VIRTUAL'){var _0x300e05={};_0x300e05[_0x55fd01[_0xf7ef('0x25')]]={'$like':'%'+_0x3a9292[_0xf7ef('0x2e')][_0xf7ef('0x38')]+'%'};return _0x300e05;}})});}_0x392364=_[_0xf7ef('0x3a')]({},_0x392364,_0x3a9292[_0xf7ef('0x3b')]);var _0x2052a9={'where':_0x392364[_0xf7ef('0x39')]};return db[_0xf7ef('0x3c')]['count'](_0x2052a9)[_0xf7ef('0x21')](function(_0x2bad42){_0x486c2a['count']=_0x2bad42;if(_0x3a9292[_0xf7ef('0x2e')][_0xf7ef('0x3d')]){_0x392364[_0xf7ef('0x3e')]=[{'all':!![]}];}return db[_0xf7ef('0x3c')][_0xf7ef('0x3f')](_0x392364);})[_0xf7ef('0x21')](function(_0x2323d7){_0x486c2a[_0xf7ef('0x40')]=_0x2323d7;return _0x486c2a;})[_0xf7ef('0x21')](respondWithFilteredResult(_0x49ea57,_0x392364))[_0xf7ef('0x41')](handleError(_0x49ea57,null));};exports['show']=function(_0x5c54af,_0x58783d){var _0x3a27cd={'raw':!![],'where':{'id':_0x5c54af[_0xf7ef('0x42')]['id']}},_0x540783={};_0x540783[_0xf7ef('0x2c')]=_[_0xf7ef('0x2d')](db['JscriptyAnswerReport'][_0xf7ef('0x29')]);_0x540783['query']=_[_0xf7ef('0x2d')](_0x5c54af[_0xf7ef('0x2e')]);_0x540783[_0xf7ef('0x2f')]=_[_0xf7ef('0x30')](_0x540783[_0xf7ef('0x2c')],_0x540783[_0xf7ef('0x2e')]);_0x3a27cd[_0xf7ef('0x31')]=_[_0xf7ef('0x30')](_0x540783[_0xf7ef('0x2c')],qs[_0xf7ef('0x32')](_0x5c54af[_0xf7ef('0x2e')][_0xf7ef('0x32')]));_0x3a27cd[_0xf7ef('0x31')]=_0x3a27cd[_0xf7ef('0x31')][_0xf7ef('0x33')]?_0x3a27cd[_0xf7ef('0x31')]:_0x540783[_0xf7ef('0x2c')];if(_0x5c54af[_0xf7ef('0x2e')][_0xf7ef('0x3d')]){_0x3a27cd[_0xf7ef('0x3e')]=[{'all':!![]}];}_0x3a27cd=_[_0xf7ef('0x3a')]({},_0x3a27cd,_0x5c54af['options']);return db[_0xf7ef('0x3c')][_0xf7ef('0x43')](_0x3a27cd)[_0xf7ef('0x21')](handleEntityNotFound(_0x58783d,null))['then'](respondWithResult(_0x58783d,null))[_0xf7ef('0x41')](handleError(_0x58783d,null));};exports[_0xf7ef('0x44')]=function(_0x238d5a,_0x442191){return db[_0xf7ef('0x3c')][_0xf7ef('0x44')](_0x238d5a[_0xf7ef('0x45')],{})[_0xf7ef('0x21')](respondWithResult(_0x442191,0xc9))[_0xf7ef('0x41')](handleError(_0x442191,null));};exports[_0xf7ef('0x46')]=function(_0x17584a,_0x5670c8){if(_0x17584a['body']['id']){delete _0x17584a['body']['id'];}return db[_0xf7ef('0x3c')]['find']({'where':{'id':_0x17584a[_0xf7ef('0x42')]['id']}})[_0xf7ef('0x21')](handleEntityNotFound(_0x5670c8,null))[_0xf7ef('0x21')](saveUpdates(_0x17584a[_0xf7ef('0x45')],null))[_0xf7ef('0x21')](respondWithResult(_0x5670c8,null))['catch'](handleError(_0x5670c8,null));};exports['destroy']=function(_0x23c6d8,_0x284dbb){return db[_0xf7ef('0x3c')][_0xf7ef('0x43')]({'where':{'id':_0x23c6d8[_0xf7ef('0x42')]['id']}})['then'](handleEntityNotFound(_0x284dbb,null))[_0xf7ef('0x21')](removeEntity(_0x284dbb,null))[_0xf7ef('0x41')](handleError(_0x284dbb,null));};exports['describe']=function(_0x342da3,_0x3af64f){return db[_0xf7ef('0x3c')][_0xf7ef('0x47')]()[_0xf7ef('0x21')](respondWithResult(_0x3af64f,null))['catch'](handleError(_0x3af64f,null));};
\ No newline at end of file
+var _0x31f0=['rawAttributes','fieldName','type','key','model','keys','query','filters','intersection','attributes','fields','length','hasOwnProperty','order','sort','filter','where','merge','VIRTUAL','options','includeAll','include','findAll','rows','catch','show','params','find','create','body','describe','eml-format','zip-dir','request-promise','moment','bluebird','mustache','path','sox','lodash','crypto','jsforce','desk.js','to-csv','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','end','status','offset','limit','undefined','count','set','Content-Range','json','apply','reject','update','destroy','then','stack','name','send','index','map','JscriptyAnswerReport'];(function(_0x40a045,_0x516f0e){var _0x1a687c=function(_0x48c9fe){while(--_0x48c9fe){_0x40a045['push'](_0x40a045['shift']());}};_0x1a687c(++_0x516f0e);}(_0x31f0,0xb7));var _0x031f=function(_0x616dc9,_0x159928){_0x616dc9=_0x616dc9-0x0;var _0x53e0fe=_0x31f0[_0x616dc9];return _0x53e0fe;};'use strict';var emlformat=require(_0x031f('0x0'));var rimraf=require('rimraf');var zipdir=require(_0x031f('0x1'));var jsonpatch=require('fast-json-patch');var rp=require(_0x031f('0x2'));var moment=require(_0x031f('0x3'));var BPromise=require(_0x031f('0x4'));var Mustache=require(_0x031f('0x5'));var util=require('util');var path=require(_0x031f('0x6'));var sox=require(_0x031f('0x7'));var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x031f('0x8'));var squel=require('squel');var crypto=require(_0x031f('0x9'));var jsforce=require(_0x031f('0xa'));var deskjs=require(_0x031f('0xb'));var toCsv=require(_0x031f('0xc'));var querystring=require('querystring');var Papa=require(_0x031f('0xd'));var Redis=require(_0x031f('0xe'));var authService=require(_0x031f('0xf'));var qs=require(_0x031f('0x10'));var as=require(_0x031f('0x11'));var hardwareService=require(_0x031f('0x12'));var logger=require(_0x031f('0x13'))(_0x031f('0x14'));var utils=require('../../config/utils');var config=require(_0x031f('0x15'));var licenseUtil=require(_0x031f('0x16'));var db=require(_0x031f('0x17'))['db'];function respondWithStatusCode(_0x351052,_0x3819bb){_0x3819bb=_0x3819bb||0xcc;return function(_0x405896){if(_0x405896){return _0x351052[_0x031f('0x18')](_0x3819bb);}return _0x351052['status'](_0x3819bb)[_0x031f('0x19')]();};}function respondWithResult(_0x23b40c,_0x17a699){_0x17a699=_0x17a699||0xc8;return function(_0x2e3dfe){if(_0x2e3dfe){return _0x23b40c[_0x031f('0x1a')](_0x17a699)['json'](_0x2e3dfe);}};}function respondWithFilteredResult(_0x4b7011,_0x1f08db){return function(_0x3a10aa){if(_0x3a10aa){var _0xe4fc1d=typeof _0x1f08db[_0x031f('0x1b')]==='undefined'&&typeof _0x1f08db[_0x031f('0x1c')]===_0x031f('0x1d');var _0x5d0c70=_0x3a10aa[_0x031f('0x1e')];var _0x535e70=_0xe4fc1d?0x0:_0x1f08db[_0x031f('0x1b')];var _0x5f2199=_0xe4fc1d?_0x3a10aa[_0x031f('0x1e')]:_0x1f08db[_0x031f('0x1b')]+_0x1f08db[_0x031f('0x1c')];var _0x26cb5e;if(_0x5f2199>=_0x5d0c70){_0x5f2199=_0x5d0c70;_0x26cb5e=0xc8;}else{_0x26cb5e=0xce;}_0x4b7011[_0x031f('0x1a')](_0x26cb5e);return _0x4b7011[_0x031f('0x1f')](_0x031f('0x20'),_0x535e70+'-'+_0x5f2199+'/'+_0x5d0c70)[_0x031f('0x21')](_0x3a10aa);}return null;};}function patchUpdates(_0x29dd6e){return function(_0x48a76e){try{jsonpatch[_0x031f('0x22')](_0x48a76e,_0x29dd6e,!![]);}catch(_0x33926c){return BPromise[_0x031f('0x23')](_0x33926c);}return _0x48a76e['save']();};}function saveUpdates(_0x5c4184,_0xa11a2b){return function(_0x4d0f92){if(_0x4d0f92){return _0x4d0f92[_0x031f('0x24')](_0x5c4184)['then'](function(_0x54d054){return _0x54d054;});}return null;};}function removeEntity(_0x47d639,_0x971691){return function(_0x12c406){if(_0x12c406){return _0x12c406[_0x031f('0x25')]()[_0x031f('0x26')](function(){_0x47d639['status'](0xcc)[_0x031f('0x19')]();});}};}function handleEntityNotFound(_0x5a64c0,_0x40cb1c){return function(_0x1f5a14){if(!_0x1f5a14){_0x5a64c0[_0x031f('0x18')](0x194);}return _0x1f5a14;};}function handleError(_0x567666,_0x35af16){_0x35af16=_0x35af16||0x1f4;return function(_0x3b2a51){logger['error'](_0x3b2a51[_0x031f('0x27')]);if(_0x3b2a51[_0x031f('0x28')]){delete _0x3b2a51[_0x031f('0x28')];}_0x567666['status'](_0x35af16)[_0x031f('0x29')](_0x3b2a51);};}exports[_0x031f('0x2a')]=function(_0xb6ed6c,_0xaf5bea){var _0xfaa36={},_0x301bd2={},_0x52b544={'count':0x0,'rows':[]};var _0x1f62eb=_[_0x031f('0x2b')](db[_0x031f('0x2c')][_0x031f('0x2d')],function(_0x428ec4){return{'name':_0x428ec4[_0x031f('0x2e')],'type':_0x428ec4[_0x031f('0x2f')][_0x031f('0x30')]};});_0x301bd2[_0x031f('0x31')]=_[_0x031f('0x2b')](_0x1f62eb,_0x031f('0x28'));_0x301bd2['query']=_[_0x031f('0x32')](_0xb6ed6c[_0x031f('0x33')]);_0x301bd2[_0x031f('0x34')]=_[_0x031f('0x35')](_0x301bd2[_0x031f('0x31')],_0x301bd2[_0x031f('0x33')]);_0xfaa36[_0x031f('0x36')]=_[_0x031f('0x35')](_0x301bd2[_0x031f('0x31')],qs[_0x031f('0x37')](_0xb6ed6c[_0x031f('0x33')][_0x031f('0x37')]));_0xfaa36[_0x031f('0x36')]=_0xfaa36['attributes'][_0x031f('0x38')]?_0xfaa36[_0x031f('0x36')]:_0x301bd2['model'];if(!_0xb6ed6c[_0x031f('0x33')][_0x031f('0x39')]('nolimit')){_0xfaa36[_0x031f('0x1c')]=qs[_0x031f('0x1c')](_0xb6ed6c[_0x031f('0x33')][_0x031f('0x1c')]);_0xfaa36['offset']=qs['offset'](_0xb6ed6c[_0x031f('0x33')]['offset']);}_0xfaa36[_0x031f('0x3a')]=qs[_0x031f('0x3b')](_0xb6ed6c[_0x031f('0x33')]['sort']);_0xfaa36['where']=qs[_0x031f('0x34')](_['pick'](_0xb6ed6c['query'],_0x301bd2[_0x031f('0x34')]),_0x1f62eb);if(_0xb6ed6c[_0x031f('0x33')][_0x031f('0x3c')]){_0xfaa36[_0x031f('0x3d')]=_[_0x031f('0x3e')](_0xfaa36[_0x031f('0x3d')],{'$or':_[_0x031f('0x2b')](_0x1f62eb,function(_0x55c85f){if(_0x55c85f[_0x031f('0x2f')]!==_0x031f('0x3f')){var _0xb3b188={};_0xb3b188[_0x55c85f[_0x031f('0x28')]]={'$like':'%'+_0xb6ed6c['query'][_0x031f('0x3c')]+'%'};return _0xb3b188;}})});}_0xfaa36=_[_0x031f('0x3e')]({},_0xfaa36,_0xb6ed6c[_0x031f('0x40')]);var _0x5895f6={'where':_0xfaa36[_0x031f('0x3d')]};return db[_0x031f('0x2c')]['count'](_0x5895f6)[_0x031f('0x26')](function(_0x268dc7){_0x52b544['count']=_0x268dc7;if(_0xb6ed6c['query'][_0x031f('0x41')]){_0xfaa36[_0x031f('0x42')]=[{'all':!![]}];}return db[_0x031f('0x2c')][_0x031f('0x43')](_0xfaa36);})[_0x031f('0x26')](function(_0xf0fb95){_0x52b544[_0x031f('0x44')]=_0xf0fb95;return _0x52b544;})['then'](respondWithFilteredResult(_0xaf5bea,_0xfaa36))[_0x031f('0x45')](handleError(_0xaf5bea,null));};exports[_0x031f('0x46')]=function(_0x4d701e,_0x12279a){var _0x505e93={'raw':!![],'where':{'id':_0x4d701e[_0x031f('0x47')]['id']}},_0x456a98={};_0x456a98['model']=_[_0x031f('0x32')](db[_0x031f('0x2c')][_0x031f('0x2d')]);_0x456a98['query']=_[_0x031f('0x32')](_0x4d701e[_0x031f('0x33')]);_0x456a98[_0x031f('0x34')]=_[_0x031f('0x35')](_0x456a98[_0x031f('0x31')],_0x456a98[_0x031f('0x33')]);_0x505e93[_0x031f('0x36')]=_[_0x031f('0x35')](_0x456a98[_0x031f('0x31')],qs['fields'](_0x4d701e[_0x031f('0x33')][_0x031f('0x37')]));_0x505e93[_0x031f('0x36')]=_0x505e93[_0x031f('0x36')][_0x031f('0x38')]?_0x505e93[_0x031f('0x36')]:_0x456a98[_0x031f('0x31')];if(_0x4d701e[_0x031f('0x33')][_0x031f('0x41')]){_0x505e93['include']=[{'all':!![]}];}_0x505e93=_[_0x031f('0x3e')]({},_0x505e93,_0x4d701e['options']);return db['JscriptyAnswerReport'][_0x031f('0x48')](_0x505e93)[_0x031f('0x26')](handleEntityNotFound(_0x12279a,null))[_0x031f('0x26')](respondWithResult(_0x12279a,null))[_0x031f('0x45')](handleError(_0x12279a,null));};exports[_0x031f('0x49')]=function(_0x553f01,_0x309642){return db[_0x031f('0x2c')][_0x031f('0x49')](_0x553f01['body'],{})[_0x031f('0x26')](respondWithResult(_0x309642,0xc9))[_0x031f('0x45')](handleError(_0x309642,null));};exports[_0x031f('0x24')]=function(_0x318829,_0x2c93ea){if(_0x318829[_0x031f('0x4a')]['id']){delete _0x318829['body']['id'];}return db['JscriptyAnswerReport'][_0x031f('0x48')]({'where':{'id':_0x318829['params']['id']}})[_0x031f('0x26')](handleEntityNotFound(_0x2c93ea,null))[_0x031f('0x26')](saveUpdates(_0x318829['body'],null))[_0x031f('0x26')](respondWithResult(_0x2c93ea,null))['catch'](handleError(_0x2c93ea,null));};exports['destroy']=function(_0x35a949,_0x48ca85){return db[_0x031f('0x2c')]['find']({'where':{'id':_0x35a949[_0x031f('0x47')]['id']}})[_0x031f('0x26')](handleEntityNotFound(_0x48ca85,null))['then'](removeEntity(_0x48ca85,null))[_0x031f('0x45')](handleError(_0x48ca85,null));};exports[_0x031f('0x4b')]=function(_0x57e32d,_0x46471a){return db['JscriptyAnswerReport'][_0x031f('0x4b')]()['then'](respondWithResult(_0x46471a,null))[_0x031f('0x45')](handleError(_0x46471a,null));};
\ No newline at end of file