Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / jscriptyQuestionReport / jscriptyQuestionReport.controller.js
index a6f794a..9372006 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x38fb=['options','JscriptyQuestionReport','includeAll','include','findAll','catch','show','params','keys','length','create','body','find','describe','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','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','api','../../config/utils','../../config/license/util','../../mysqldb','sendStatus','status','json','offset','limit','undefined','count','set','apply','reject','save','update','then','destroy','end','error','name','send','index','map','rawAttributes','fieldName','type','model','query','filters','intersection','attributes','fields','sort','where','pick','merge','VIRTUAL','filter'];(function(_0x5aa9fd,_0x1dd5c9){var _0xe0b403=function(_0x426ac9){while(--_0x426ac9){_0x5aa9fd['push'](_0x5aa9fd['shift']());}};_0xe0b403(++_0x1dd5c9);}(_0x38fb,0xf8));var _0xb38f=function(_0x3158d2,_0x277d23){_0x3158d2=_0x3158d2-0x0;var _0x57c15a=_0x38fb[_0x3158d2];return _0x57c15a;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xb38f('0x0'));var zipdir=require(_0xb38f('0x1'));var jsonpatch=require(_0xb38f('0x2'));var rp=require(_0xb38f('0x3'));var moment=require(_0xb38f('0x4'));var BPromise=require(_0xb38f('0x5'));var Mustache=require(_0xb38f('0x6'));var util=require(_0xb38f('0x7'));var path=require(_0xb38f('0x8'));var sox=require(_0xb38f('0x9'));var csv=require(_0xb38f('0xa'));var ejs=require(_0xb38f('0xb'));var fs=require('fs');var fs_extra=require(_0xb38f('0xc'));var _=require(_0xb38f('0xd'));var squel=require(_0xb38f('0xe'));var crypto=require(_0xb38f('0xf'));var jsforce=require(_0xb38f('0x10'));var deskjs=require(_0xb38f('0x11'));var toCsv=require(_0xb38f('0xa'));var querystring=require(_0xb38f('0x12'));var Papa=require(_0xb38f('0x13'));var Redis=require(_0xb38f('0x14'));var authService=require(_0xb38f('0x15'));var qs=require(_0xb38f('0x16'));var as=require(_0xb38f('0x17'));var hardwareService=require(_0xb38f('0x18'));var logger=require('../../config/logger')(_0xb38f('0x19'));var utils=require(_0xb38f('0x1a'));var config=require('../../config/environment');var licenseUtil=require(_0xb38f('0x1b'));var db=require(_0xb38f('0x1c'))['db'];function respondWithStatusCode(_0x126951,_0x5ac843){_0x5ac843=_0x5ac843||0xcc;return function(_0x7361b3){if(_0x7361b3){return _0x126951[_0xb38f('0x1d')](_0x5ac843);}return _0x126951[_0xb38f('0x1e')](_0x5ac843)['end']();};}function respondWithResult(_0x37a5a1,_0x33e91b){_0x33e91b=_0x33e91b||0xc8;return function(_0x50eb20){if(_0x50eb20){return _0x37a5a1[_0xb38f('0x1e')](_0x33e91b)[_0xb38f('0x1f')](_0x50eb20);}};}function respondWithFilteredResult(_0x3ac6e3,_0x1f4a38){return function(_0x196ea8){if(_0x196ea8){var _0x5880c7=typeof _0x1f4a38[_0xb38f('0x20')]==='undefined'&&typeof _0x1f4a38[_0xb38f('0x21')]===_0xb38f('0x22');var _0x5afe98=_0x196ea8[_0xb38f('0x23')];var _0x1bf61e=_0x5880c7?0x0:_0x1f4a38[_0xb38f('0x20')];var _0xeaddfa=_0x5880c7?_0x196ea8['count']:_0x1f4a38[_0xb38f('0x20')]+_0x1f4a38[_0xb38f('0x21')];var _0x31304f;if(_0xeaddfa>=_0x5afe98){_0xeaddfa=_0x5afe98;_0x31304f=0xc8;}else{_0x31304f=0xce;}_0x3ac6e3[_0xb38f('0x1e')](_0x31304f);return _0x3ac6e3[_0xb38f('0x24')]('Content-Range',_0x1bf61e+'-'+_0xeaddfa+'/'+_0x5afe98)[_0xb38f('0x1f')](_0x196ea8);}return null;};}function patchUpdates(_0x1a4a11){return function(_0x33a6f8){try{jsonpatch[_0xb38f('0x25')](_0x33a6f8,_0x1a4a11,!![]);}catch(_0xc18be4){return BPromise[_0xb38f('0x26')](_0xc18be4);}return _0x33a6f8[_0xb38f('0x27')]();};}function saveUpdates(_0x5dd9f0,_0x498d98){return function(_0x22a1e5){if(_0x22a1e5){return _0x22a1e5[_0xb38f('0x28')](_0x5dd9f0)[_0xb38f('0x29')](function(_0x3d8ab9){return _0x3d8ab9;});}return null;};}function removeEntity(_0x4dc9ba,_0x943a07){return function(_0x31e5e5){if(_0x31e5e5){return _0x31e5e5[_0xb38f('0x2a')]()[_0xb38f('0x29')](function(){_0x4dc9ba[_0xb38f('0x1e')](0xcc)[_0xb38f('0x2b')]();});}};}function handleEntityNotFound(_0x1d642a,_0x5e7a2c){return function(_0xcfcdb6){if(!_0xcfcdb6){_0x1d642a[_0xb38f('0x1d')](0x194);}return _0xcfcdb6;};}function handleError(_0x3f1e83,_0x3e746d){_0x3e746d=_0x3e746d||0x1f4;return function(_0x1ba44e){logger[_0xb38f('0x2c')](_0x1ba44e['stack']);if(_0x1ba44e[_0xb38f('0x2d')]){delete _0x1ba44e[_0xb38f('0x2d')];}_0x3f1e83[_0xb38f('0x1e')](_0x3e746d)[_0xb38f('0x2e')](_0x1ba44e);};}exports[_0xb38f('0x2f')]=function(_0xe332df,_0x243f84){var _0x563495={},_0x8f486b={},_0x2a1313={'count':0x0,'rows':[]};var _0x17e27e=_[_0xb38f('0x30')](db['JscriptyQuestionReport'][_0xb38f('0x31')],function(_0x1820a6){return{'name':_0x1820a6[_0xb38f('0x32')],'type':_0x1820a6[_0xb38f('0x33')]['key']};});_0x8f486b[_0xb38f('0x34')]=_[_0xb38f('0x30')](_0x17e27e,'name');_0x8f486b[_0xb38f('0x35')]=_['keys'](_0xe332df[_0xb38f('0x35')]);_0x8f486b[_0xb38f('0x36')]=_[_0xb38f('0x37')](_0x8f486b[_0xb38f('0x34')],_0x8f486b[_0xb38f('0x35')]);_0x563495[_0xb38f('0x38')]=_[_0xb38f('0x37')](_0x8f486b[_0xb38f('0x34')],qs[_0xb38f('0x39')](_0xe332df['query'][_0xb38f('0x39')]));_0x563495['attributes']=_0x563495['attributes']['length']?_0x563495[_0xb38f('0x38')]:_0x8f486b[_0xb38f('0x34')];if(!_0xe332df[_0xb38f('0x35')]['hasOwnProperty']('nolimit')){_0x563495[_0xb38f('0x21')]=qs[_0xb38f('0x21')](_0xe332df[_0xb38f('0x35')][_0xb38f('0x21')]);_0x563495[_0xb38f('0x20')]=qs[_0xb38f('0x20')](_0xe332df[_0xb38f('0x35')][_0xb38f('0x20')]);}_0x563495['order']=qs['sort'](_0xe332df[_0xb38f('0x35')][_0xb38f('0x3a')]);_0x563495[_0xb38f('0x3b')]=qs[_0xb38f('0x36')](_[_0xb38f('0x3c')](_0xe332df[_0xb38f('0x35')],_0x8f486b['filters']),_0x17e27e);if(_0xe332df['query']['filter']){_0x563495[_0xb38f('0x3b')]=_[_0xb38f('0x3d')](_0x563495['where'],{'$or':_[_0xb38f('0x30')](_0x17e27e,function(_0x19e971){if(_0x19e971[_0xb38f('0x33')]!==_0xb38f('0x3e')){var _0x179afa={};_0x179afa[_0x19e971[_0xb38f('0x2d')]]={'$like':'%'+_0xe332df[_0xb38f('0x35')][_0xb38f('0x3f')]+'%'};return _0x179afa;}})});}_0x563495=_[_0xb38f('0x3d')]({},_0x563495,_0xe332df[_0xb38f('0x40')]);var _0x16253c={'where':_0x563495[_0xb38f('0x3b')]};return db[_0xb38f('0x41')][_0xb38f('0x23')](_0x16253c)[_0xb38f('0x29')](function(_0x5f2d9){_0x2a1313[_0xb38f('0x23')]=_0x5f2d9;if(_0xe332df[_0xb38f('0x35')][_0xb38f('0x42')]){_0x563495[_0xb38f('0x43')]=[{'all':!![]}];}return db['JscriptyQuestionReport'][_0xb38f('0x44')](_0x563495);})[_0xb38f('0x29')](function(_0x3a0942){_0x2a1313['rows']=_0x3a0942;return _0x2a1313;})['then'](respondWithFilteredResult(_0x243f84,_0x563495))[_0xb38f('0x45')](handleError(_0x243f84,null));};exports[_0xb38f('0x46')]=function(_0x556639,_0x3b48bf){var _0x32d2a6={'raw':!![],'where':{'id':_0x556639[_0xb38f('0x47')]['id']}},_0x305827={};_0x305827['model']=_[_0xb38f('0x48')](db[_0xb38f('0x41')][_0xb38f('0x31')]);_0x305827[_0xb38f('0x35')]=_[_0xb38f('0x48')](_0x556639['query']);_0x305827[_0xb38f('0x36')]=_[_0xb38f('0x37')](_0x305827[_0xb38f('0x34')],_0x305827[_0xb38f('0x35')]);_0x32d2a6['attributes']=_[_0xb38f('0x37')](_0x305827[_0xb38f('0x34')],qs[_0xb38f('0x39')](_0x556639[_0xb38f('0x35')]['fields']));_0x32d2a6['attributes']=_0x32d2a6['attributes'][_0xb38f('0x49')]?_0x32d2a6['attributes']:_0x305827['model'];if(_0x556639[_0xb38f('0x35')][_0xb38f('0x42')]){_0x32d2a6[_0xb38f('0x43')]=[{'all':!![]}];}_0x32d2a6=_['merge']({},_0x32d2a6,_0x556639[_0xb38f('0x40')]);return db[_0xb38f('0x41')]['find'](_0x32d2a6)[_0xb38f('0x29')](handleEntityNotFound(_0x3b48bf,null))['then'](respondWithResult(_0x3b48bf,null))[_0xb38f('0x45')](handleError(_0x3b48bf,null));};exports['create']=function(_0x750b8d,_0x38b477){return db[_0xb38f('0x41')][_0xb38f('0x4a')](_0x750b8d[_0xb38f('0x4b')],{})['then'](respondWithResult(_0x38b477,0xc9))['catch'](handleError(_0x38b477,null));};exports['update']=function(_0x26b405,_0x275d47){if(_0x26b405[_0xb38f('0x4b')]['id']){delete _0x26b405[_0xb38f('0x4b')]['id'];}return db[_0xb38f('0x41')][_0xb38f('0x4c')]({'where':{'id':_0x26b405[_0xb38f('0x47')]['id']}})[_0xb38f('0x29')](handleEntityNotFound(_0x275d47,null))['then'](saveUpdates(_0x26b405['body'],null))['then'](respondWithResult(_0x275d47,null))[_0xb38f('0x45')](handleError(_0x275d47,null));};exports[_0xb38f('0x2a')]=function(_0x2ebdf0,_0x538fac){return db['JscriptyQuestionReport']['find']({'where':{'id':_0x2ebdf0[_0xb38f('0x47')]['id']}})[_0xb38f('0x29')](handleEntityNotFound(_0x538fac,null))[_0xb38f('0x29')](removeEntity(_0x538fac,null))['catch'](handleError(_0x538fac,null));};exports[_0xb38f('0x4d')]=function(_0x5da861,_0x18428e){return db['JscriptyQuestionReport']['describe']()[_0xb38f('0x29')](respondWithResult(_0x18428e,null))[_0xb38f('0x45')](handleError(_0x18428e,null));};
\ No newline at end of file
+var _0xbb3a=['fields','order','sort','where','pick','filter','merge','options','includeAll','include','findAll','rows','catch','show','params','create','body','find','describe','eml-format','rimraf','zip-dir','fast-json-patch','request-promise','moment','bluebird','mustache','util','sox','to-csv','ejs','fs-extra','squel','crypto','jsforce','desk.js','papaparse','ioredis','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../mysqldb','end','status','json','undefined','limit','count','offset','set','Content-Range','reject','save','update','destroy','then','sendStatus','error','stack','name','index','map','JscriptyQuestionReport','rawAttributes','fieldName','type','key','model','keys','query','filters','intersection','attributes'];(function(_0x4fd75d,_0x167b74){var _0x575327=function(_0x13417b){while(--_0x13417b){_0x4fd75d['push'](_0x4fd75d['shift']());}};_0x575327(++_0x167b74);}(_0xbb3a,0x143));var _0xabb3=function(_0x34ac15,_0x173e93){_0x34ac15=_0x34ac15-0x0;var _0x272ccc=_0xbb3a[_0x34ac15];return _0x272ccc;};'use strict';var emlformat=require(_0xabb3('0x0'));var rimraf=require(_0xabb3('0x1'));var zipdir=require(_0xabb3('0x2'));var jsonpatch=require(_0xabb3('0x3'));var rp=require(_0xabb3('0x4'));var moment=require(_0xabb3('0x5'));var BPromise=require(_0xabb3('0x6'));var Mustache=require(_0xabb3('0x7'));var util=require(_0xabb3('0x8'));var path=require('path');var sox=require(_0xabb3('0x9'));var csv=require(_0xabb3('0xa'));var ejs=require(_0xabb3('0xb'));var fs=require('fs');var fs_extra=require(_0xabb3('0xc'));var _=require('lodash');var squel=require(_0xabb3('0xd'));var crypto=require(_0xabb3('0xe'));var jsforce=require(_0xabb3('0xf'));var deskjs=require(_0xabb3('0x10'));var toCsv=require(_0xabb3('0xa'));var querystring=require('querystring');var Papa=require(_0xabb3('0x11'));var Redis=require(_0xabb3('0x12'));var authService=require('../../components/auth/service');var qs=require(_0xabb3('0x13'));var as=require(_0xabb3('0x14'));var hardwareService=require(_0xabb3('0x15'));var logger=require(_0xabb3('0x16'))(_0xabb3('0x17'));var utils=require(_0xabb3('0x18'));var config=require('../../config/environment');var licenseUtil=require('../../config/license/util');var db=require(_0xabb3('0x19'))['db'];function respondWithStatusCode(_0x15cb1b,_0x2da2ee){_0x2da2ee=_0x2da2ee||0xcc;return function(_0x1bf684){if(_0x1bf684){return _0x15cb1b['sendStatus'](_0x2da2ee);}return _0x15cb1b['status'](_0x2da2ee)[_0xabb3('0x1a')]();};}function respondWithResult(_0x4af4db,_0xfb9dcb){_0xfb9dcb=_0xfb9dcb||0xc8;return function(_0x3c3c7b){if(_0x3c3c7b){return _0x4af4db[_0xabb3('0x1b')](_0xfb9dcb)[_0xabb3('0x1c')](_0x3c3c7b);}};}function respondWithFilteredResult(_0x534c25,_0x148c32){return function(_0x596d50){if(_0x596d50){var _0x29e125=typeof _0x148c32['offset']===_0xabb3('0x1d')&&typeof _0x148c32[_0xabb3('0x1e')]===_0xabb3('0x1d');var _0x4e0fc9=_0x596d50[_0xabb3('0x1f')];var _0x590e0c=_0x29e125?0x0:_0x148c32[_0xabb3('0x20')];var _0x25bdc1=_0x29e125?_0x596d50['count']:_0x148c32[_0xabb3('0x20')]+_0x148c32[_0xabb3('0x1e')];var _0x2e21f5;if(_0x25bdc1>=_0x4e0fc9){_0x25bdc1=_0x4e0fc9;_0x2e21f5=0xc8;}else{_0x2e21f5=0xce;}_0x534c25[_0xabb3('0x1b')](_0x2e21f5);return _0x534c25[_0xabb3('0x21')](_0xabb3('0x22'),_0x590e0c+'-'+_0x25bdc1+'/'+_0x4e0fc9)[_0xabb3('0x1c')](_0x596d50);}return null;};}function patchUpdates(_0x265718){return function(_0x46018d){try{jsonpatch['apply'](_0x46018d,_0x265718,!![]);}catch(_0x52762f){return BPromise[_0xabb3('0x23')](_0x52762f);}return _0x46018d[_0xabb3('0x24')]();};}function saveUpdates(_0x3a791e,_0x417214){return function(_0x1e4660){if(_0x1e4660){return _0x1e4660[_0xabb3('0x25')](_0x3a791e)['then'](function(_0x33cc71){return _0x33cc71;});}return null;};}function removeEntity(_0x5f296a,_0x29f6a4){return function(_0x43f9d9){if(_0x43f9d9){return _0x43f9d9[_0xabb3('0x26')]()[_0xabb3('0x27')](function(){_0x5f296a[_0xabb3('0x1b')](0xcc)[_0xabb3('0x1a')]();});}};}function handleEntityNotFound(_0x49c353,_0x17f404){return function(_0x40ff66){if(!_0x40ff66){_0x49c353[_0xabb3('0x28')](0x194);}return _0x40ff66;};}function handleError(_0x414918,_0x41d32f){_0x41d32f=_0x41d32f||0x1f4;return function(_0x442aac){logger[_0xabb3('0x29')](_0x442aac[_0xabb3('0x2a')]);if(_0x442aac[_0xabb3('0x2b')]){delete _0x442aac['name'];}_0x414918[_0xabb3('0x1b')](_0x41d32f)['send'](_0x442aac);};}exports[_0xabb3('0x2c')]=function(_0x253ec8,_0x1beaa1){var _0x383e46={},_0x2baad4={},_0x383e26={'count':0x0,'rows':[]};var _0x54b473=_[_0xabb3('0x2d')](db[_0xabb3('0x2e')][_0xabb3('0x2f')],function(_0x43cfbf){return{'name':_0x43cfbf[_0xabb3('0x30')],'type':_0x43cfbf[_0xabb3('0x31')][_0xabb3('0x32')]};});_0x2baad4[_0xabb3('0x33')]=_[_0xabb3('0x2d')](_0x54b473,_0xabb3('0x2b'));_0x2baad4['query']=_[_0xabb3('0x34')](_0x253ec8[_0xabb3('0x35')]);_0x2baad4[_0xabb3('0x36')]=_[_0xabb3('0x37')](_0x2baad4[_0xabb3('0x33')],_0x2baad4[_0xabb3('0x35')]);_0x383e46[_0xabb3('0x38')]=_['intersection'](_0x2baad4[_0xabb3('0x33')],qs['fields'](_0x253ec8[_0xabb3('0x35')][_0xabb3('0x39')]));_0x383e46['attributes']=_0x383e46[_0xabb3('0x38')]['length']?_0x383e46[_0xabb3('0x38')]:_0x2baad4[_0xabb3('0x33')];if(!_0x253ec8['query']['hasOwnProperty']('nolimit')){_0x383e46[_0xabb3('0x1e')]=qs[_0xabb3('0x1e')](_0x253ec8[_0xabb3('0x35')][_0xabb3('0x1e')]);_0x383e46[_0xabb3('0x20')]=qs[_0xabb3('0x20')](_0x253ec8['query'][_0xabb3('0x20')]);}_0x383e46[_0xabb3('0x3a')]=qs['sort'](_0x253ec8[_0xabb3('0x35')][_0xabb3('0x3b')]);_0x383e46[_0xabb3('0x3c')]=qs[_0xabb3('0x36')](_[_0xabb3('0x3d')](_0x253ec8[_0xabb3('0x35')],_0x2baad4['filters']),_0x54b473);if(_0x253ec8['query'][_0xabb3('0x3e')]){_0x383e46[_0xabb3('0x3c')]=_['merge'](_0x383e46['where'],{'$or':_[_0xabb3('0x2d')](_0x54b473,function(_0x59a30c){if(_0x59a30c[_0xabb3('0x31')]!=='VIRTUAL'){var _0x1443b2={};_0x1443b2[_0x59a30c[_0xabb3('0x2b')]]={'$like':'%'+_0x253ec8[_0xabb3('0x35')][_0xabb3('0x3e')]+'%'};return _0x1443b2;}})});}_0x383e46=_[_0xabb3('0x3f')]({},_0x383e46,_0x253ec8[_0xabb3('0x40')]);var _0x296045={'where':_0x383e46['where']};return db[_0xabb3('0x2e')]['count'](_0x296045)[_0xabb3('0x27')](function(_0x469940){_0x383e26['count']=_0x469940;if(_0x253ec8[_0xabb3('0x35')][_0xabb3('0x41')]){_0x383e46[_0xabb3('0x42')]=[{'all':!![]}];}return db['JscriptyQuestionReport'][_0xabb3('0x43')](_0x383e46);})[_0xabb3('0x27')](function(_0x27c4a1){_0x383e26[_0xabb3('0x44')]=_0x27c4a1;return _0x383e26;})['then'](respondWithFilteredResult(_0x1beaa1,_0x383e46))[_0xabb3('0x45')](handleError(_0x1beaa1,null));};exports[_0xabb3('0x46')]=function(_0xd45659,_0x3957bc){var _0x42a00d={'raw':!![],'where':{'id':_0xd45659[_0xabb3('0x47')]['id']}},_0x25f53b={};_0x25f53b[_0xabb3('0x33')]=_[_0xabb3('0x34')](db['JscriptyQuestionReport']['rawAttributes']);_0x25f53b[_0xabb3('0x35')]=_[_0xabb3('0x34')](_0xd45659['query']);_0x25f53b[_0xabb3('0x36')]=_[_0xabb3('0x37')](_0x25f53b['model'],_0x25f53b['query']);_0x42a00d[_0xabb3('0x38')]=_[_0xabb3('0x37')](_0x25f53b[_0xabb3('0x33')],qs[_0xabb3('0x39')](_0xd45659[_0xabb3('0x35')][_0xabb3('0x39')]));_0x42a00d[_0xabb3('0x38')]=_0x42a00d[_0xabb3('0x38')]['length']?_0x42a00d[_0xabb3('0x38')]:_0x25f53b[_0xabb3('0x33')];if(_0xd45659['query']['includeAll']){_0x42a00d[_0xabb3('0x42')]=[{'all':!![]}];}_0x42a00d=_['merge']({},_0x42a00d,_0xd45659[_0xabb3('0x40')]);return db[_0xabb3('0x2e')]['find'](_0x42a00d)[_0xabb3('0x27')](handleEntityNotFound(_0x3957bc,null))[_0xabb3('0x27')](respondWithResult(_0x3957bc,null))['catch'](handleError(_0x3957bc,null));};exports[_0xabb3('0x48')]=function(_0x35dded,_0x1b931c){return db[_0xabb3('0x2e')][_0xabb3('0x48')](_0x35dded[_0xabb3('0x49')],{})[_0xabb3('0x27')](respondWithResult(_0x1b931c,0xc9))['catch'](handleError(_0x1b931c,null));};exports[_0xabb3('0x25')]=function(_0x1c4a99,_0x2ef086){if(_0x1c4a99[_0xabb3('0x49')]['id']){delete _0x1c4a99[_0xabb3('0x49')]['id'];}return db[_0xabb3('0x2e')][_0xabb3('0x4a')]({'where':{'id':_0x1c4a99[_0xabb3('0x47')]['id']}})[_0xabb3('0x27')](handleEntityNotFound(_0x2ef086,null))[_0xabb3('0x27')](saveUpdates(_0x1c4a99['body'],null))['then'](respondWithResult(_0x2ef086,null))[_0xabb3('0x45')](handleError(_0x2ef086,null));};exports['destroy']=function(_0x54311e,_0x28bdc1){return db['JscriptyQuestionReport'][_0xabb3('0x4a')]({'where':{'id':_0x54311e['params']['id']}})['then'](handleEntityNotFound(_0x28bdc1,null))[_0xabb3('0x27')](removeEntity(_0x28bdc1,null))[_0xabb3('0x45')](handleError(_0x28bdc1,null));};exports[_0xabb3('0x4b')]=function(_0x2740e0,_0x4d6b6a){return db[_0xabb3('0x2e')][_0xabb3('0x4b')]()[_0xabb3('0x27')](respondWithResult(_0x4d6b6a,null))[_0xabb3('0x45')](handleError(_0x4d6b6a,null));};
\ No newline at end of file