Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / jscriptyQuestionReport / jscriptyQuestionReport.controller.js
index 06a01e8..9372006 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0bb5=['attributes','fields','length','hasOwnProperty','nolimit','limit','order','sort','merge','where','VIRTUAL','options','findAll','show','params','rawAttributes','includeAll','include','find','catch','create','body','update','describe','eml-format','rimraf','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','lodash','squel','crypto','jsforce','querystring','papaparse','ioredis','../../components/auth/service','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','sendStatus','status','json','offset','undefined','count','set','Content-Range','apply','reject','save','then','destroy','end','name','send','index','map','JscriptyQuestionReport','fieldName','type','key','model','query','keys','filters','intersection'];(function(_0x3f123a,_0x5369f9){var _0x39dd80=function(_0x10cca6){while(--_0x10cca6){_0x3f123a['push'](_0x3f123a['shift']());}};_0x39dd80(++_0x5369f9);}(_0x0bb5,0x148));var _0x50bb=function(_0x3c25e9,_0x4c26a0){_0x3c25e9=_0x3c25e9-0x0;var _0x4438af=_0x0bb5[_0x3c25e9];return _0x4438af;};'use strict';var emlformat=require(_0x50bb('0x0'));var rimraf=require(_0x50bb('0x1'));var zipdir=require('zip-dir');var jsonpatch=require('fast-json-patch');var rp=require(_0x50bb('0x2'));var moment=require(_0x50bb('0x3'));var BPromise=require(_0x50bb('0x4'));var Mustache=require(_0x50bb('0x5'));var util=require(_0x50bb('0x6'));var path=require(_0x50bb('0x7'));var sox=require(_0x50bb('0x8'));var csv=require(_0x50bb('0x9'));var ejs=require('ejs');var fs=require('fs');var fs_extra=require('fs-extra');var _=require(_0x50bb('0xa'));var squel=require(_0x50bb('0xb'));var crypto=require(_0x50bb('0xc'));var jsforce=require(_0x50bb('0xd'));var deskjs=require('desk.js');var toCsv=require('to-csv');var querystring=require(_0x50bb('0xe'));var Papa=require(_0x50bb('0xf'));var Redis=require(_0x50bb('0x10'));var authService=require(_0x50bb('0x11'));var qs=require('../../components/parsers/qs');var as=require(_0x50bb('0x12'));var hardwareService=require(_0x50bb('0x13'));var logger=require(_0x50bb('0x14'))(_0x50bb('0x15'));var utils=require(_0x50bb('0x16'));var config=require(_0x50bb('0x17'));var licenseUtil=require(_0x50bb('0x18'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x226370,_0x58837d){_0x58837d=_0x58837d||0xcc;return function(_0x283f04){if(_0x283f04){return _0x226370[_0x50bb('0x19')](_0x58837d);}return _0x226370[_0x50bb('0x1a')](_0x58837d)['end']();};}function respondWithResult(_0x17007f,_0x309986){_0x309986=_0x309986||0xc8;return function(_0x3094f2){if(_0x3094f2){return _0x17007f['status'](_0x309986)[_0x50bb('0x1b')](_0x3094f2);}};}function respondWithFilteredResult(_0x5e8478,_0x21befa){return function(_0x3e1a51){if(_0x3e1a51){var _0x253073=typeof _0x21befa[_0x50bb('0x1c')]===_0x50bb('0x1d')&&typeof _0x21befa['limit']===_0x50bb('0x1d');var _0x174065=_0x3e1a51['count'];var _0x24ba19=_0x253073?0x0:_0x21befa['offset'];var _0x301f61=_0x253073?_0x3e1a51[_0x50bb('0x1e')]:_0x21befa['offset']+_0x21befa['limit'];var _0x43465b;if(_0x301f61>=_0x174065){_0x301f61=_0x174065;_0x43465b=0xc8;}else{_0x43465b=0xce;}_0x5e8478[_0x50bb('0x1a')](_0x43465b);return _0x5e8478[_0x50bb('0x1f')](_0x50bb('0x20'),_0x24ba19+'-'+_0x301f61+'/'+_0x174065)['json'](_0x3e1a51);}return null;};}function patchUpdates(_0x19dc5d){return function(_0x32bfc3){try{jsonpatch[_0x50bb('0x21')](_0x32bfc3,_0x19dc5d,!![]);}catch(_0x597e95){return BPromise[_0x50bb('0x22')](_0x597e95);}return _0x32bfc3[_0x50bb('0x23')]();};}function saveUpdates(_0x1344ec,_0x4825f8){return function(_0x1dbba2){if(_0x1dbba2){return _0x1dbba2['update'](_0x1344ec)[_0x50bb('0x24')](function(_0x3391da){return _0x3391da;});}return null;};}function removeEntity(_0x1a2a0b,_0x2ee87a){return function(_0x846311){if(_0x846311){return _0x846311[_0x50bb('0x25')]()['then'](function(){_0x1a2a0b[_0x50bb('0x1a')](0xcc)[_0x50bb('0x26')]();});}};}function handleEntityNotFound(_0x284a76,_0x3462c1){return function(_0x5234d7){if(!_0x5234d7){_0x284a76[_0x50bb('0x19')](0x194);}return _0x5234d7;};}function handleError(_0x4d38f7,_0x55e87b){_0x55e87b=_0x55e87b||0x1f4;return function(_0x2befd9){logger['error'](_0x2befd9['stack']);if(_0x2befd9[_0x50bb('0x27')]){delete _0x2befd9[_0x50bb('0x27')];}_0x4d38f7[_0x50bb('0x1a')](_0x55e87b)[_0x50bb('0x28')](_0x2befd9);};}exports[_0x50bb('0x29')]=function(_0x269479,_0x41a8ad){var _0x41d479={},_0x4f7514={},_0x44ce86={'count':0x0,'rows':[]};var _0x461cf3=_[_0x50bb('0x2a')](db[_0x50bb('0x2b')]['rawAttributes'],function(_0x13dc3c){return{'name':_0x13dc3c[_0x50bb('0x2c')],'type':_0x13dc3c[_0x50bb('0x2d')][_0x50bb('0x2e')]};});_0x4f7514[_0x50bb('0x2f')]=_[_0x50bb('0x2a')](_0x461cf3,_0x50bb('0x27'));_0x4f7514[_0x50bb('0x30')]=_[_0x50bb('0x31')](_0x269479[_0x50bb('0x30')]);_0x4f7514[_0x50bb('0x32')]=_[_0x50bb('0x33')](_0x4f7514['model'],_0x4f7514[_0x50bb('0x30')]);_0x41d479[_0x50bb('0x34')]=_[_0x50bb('0x33')](_0x4f7514[_0x50bb('0x2f')],qs[_0x50bb('0x35')](_0x269479[_0x50bb('0x30')][_0x50bb('0x35')]));_0x41d479[_0x50bb('0x34')]=_0x41d479[_0x50bb('0x34')][_0x50bb('0x36')]?_0x41d479[_0x50bb('0x34')]:_0x4f7514['model'];if(!_0x269479[_0x50bb('0x30')][_0x50bb('0x37')](_0x50bb('0x38'))){_0x41d479[_0x50bb('0x39')]=qs[_0x50bb('0x39')](_0x269479[_0x50bb('0x30')]['limit']);_0x41d479['offset']=qs[_0x50bb('0x1c')](_0x269479['query'][_0x50bb('0x1c')]);}_0x41d479[_0x50bb('0x3a')]=qs[_0x50bb('0x3b')](_0x269479[_0x50bb('0x30')][_0x50bb('0x3b')]);_0x41d479['where']=qs[_0x50bb('0x32')](_['pick'](_0x269479[_0x50bb('0x30')],_0x4f7514[_0x50bb('0x32')]),_0x461cf3);if(_0x269479[_0x50bb('0x30')]['filter']){_0x41d479['where']=_[_0x50bb('0x3c')](_0x41d479[_0x50bb('0x3d')],{'$or':_[_0x50bb('0x2a')](_0x461cf3,function(_0x21a180){if(_0x21a180['type']!==_0x50bb('0x3e')){var _0x4b75dc={};_0x4b75dc[_0x21a180['name']]={'$like':'%'+_0x269479[_0x50bb('0x30')]['filter']+'%'};return _0x4b75dc;}})});}_0x41d479=_[_0x50bb('0x3c')]({},_0x41d479,_0x269479[_0x50bb('0x3f')]);var _0x1ef231={'where':_0x41d479[_0x50bb('0x3d')]};return db[_0x50bb('0x2b')][_0x50bb('0x1e')](_0x1ef231)[_0x50bb('0x24')](function(_0x1cf782){_0x44ce86[_0x50bb('0x1e')]=_0x1cf782;if(_0x269479[_0x50bb('0x30')]['includeAll']){_0x41d479['include']=[{'all':!![]}];}return db[_0x50bb('0x2b')][_0x50bb('0x40')](_0x41d479);})[_0x50bb('0x24')](function(_0x1d929d){_0x44ce86['rows']=_0x1d929d;return _0x44ce86;})[_0x50bb('0x24')](respondWithFilteredResult(_0x41a8ad,_0x41d479))['catch'](handleError(_0x41a8ad,null));};exports[_0x50bb('0x41')]=function(_0x473a4c,_0x379944){var _0x40748d={'raw':!![],'where':{'id':_0x473a4c[_0x50bb('0x42')]['id']}},_0x1c438b={};_0x1c438b[_0x50bb('0x2f')]=_[_0x50bb('0x31')](db[_0x50bb('0x2b')][_0x50bb('0x43')]);_0x1c438b[_0x50bb('0x30')]=_[_0x50bb('0x31')](_0x473a4c[_0x50bb('0x30')]);_0x1c438b[_0x50bb('0x32')]=_[_0x50bb('0x33')](_0x1c438b[_0x50bb('0x2f')],_0x1c438b['query']);_0x40748d[_0x50bb('0x34')]=_['intersection'](_0x1c438b[_0x50bb('0x2f')],qs[_0x50bb('0x35')](_0x473a4c[_0x50bb('0x30')][_0x50bb('0x35')]));_0x40748d[_0x50bb('0x34')]=_0x40748d[_0x50bb('0x34')][_0x50bb('0x36')]?_0x40748d[_0x50bb('0x34')]:_0x1c438b[_0x50bb('0x2f')];if(_0x473a4c[_0x50bb('0x30')][_0x50bb('0x44')]){_0x40748d[_0x50bb('0x45')]=[{'all':!![]}];}_0x40748d=_[_0x50bb('0x3c')]({},_0x40748d,_0x473a4c[_0x50bb('0x3f')]);return db['JscriptyQuestionReport'][_0x50bb('0x46')](_0x40748d)['then'](handleEntityNotFound(_0x379944,null))[_0x50bb('0x24')](respondWithResult(_0x379944,null))[_0x50bb('0x47')](handleError(_0x379944,null));};exports[_0x50bb('0x48')]=function(_0x35b440,_0x650e91){return db[_0x50bb('0x2b')][_0x50bb('0x48')](_0x35b440[_0x50bb('0x49')],{})['then'](respondWithResult(_0x650e91,0xc9))[_0x50bb('0x47')](handleError(_0x650e91,null));};exports[_0x50bb('0x4a')]=function(_0xf52a22,_0x13afe2){if(_0xf52a22[_0x50bb('0x49')]['id']){delete _0xf52a22['body']['id'];}return db[_0x50bb('0x2b')][_0x50bb('0x46')]({'where':{'id':_0xf52a22[_0x50bb('0x42')]['id']}})[_0x50bb('0x24')](handleEntityNotFound(_0x13afe2,null))[_0x50bb('0x24')](saveUpdates(_0xf52a22['body'],null))['then'](respondWithResult(_0x13afe2,null))[_0x50bb('0x47')](handleError(_0x13afe2,null));};exports['destroy']=function(_0x357d08,_0x57ee0e){return db[_0x50bb('0x2b')][_0x50bb('0x46')]({'where':{'id':_0x357d08[_0x50bb('0x42')]['id']}})['then'](handleEntityNotFound(_0x57ee0e,null))[_0x50bb('0x24')](removeEntity(_0x57ee0e,null))[_0x50bb('0x47')](handleError(_0x57ee0e,null));};exports['describe']=function(_0x184147,_0x1dff6a){return db[_0x50bb('0x2b')][_0x50bb('0x4b')]()['then'](respondWithResult(_0x1dff6a,null))[_0x50bb('0x47')](handleError(_0x1dff6a,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