Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / jscriptyQuestionReport / jscriptyQuestionReport.controller.js
index 93a63d5..9372006 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9c36=['then','destroy','sendStatus','stack','name','send','map','JscriptyQuestionReport','rawAttributes','type','key','model','query','keys','filters','intersection','fields','attributes','length','hasOwnProperty','nolimit','order','sort','where','pick','merge','VIRTUAL','options','includeAll','include','findAll','show','find','catch','create','body','params','describe','eml-format','zip-dir','fast-json-patch','moment','bluebird','util','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','../../config/license/util','end','status','json','limit','undefined','count','offset','set','apply','save','update'];(function(_0x45fa48,_0x82cc2f){var _0x9a43f6=function(_0x4604b0){while(--_0x4604b0){_0x45fa48['push'](_0x45fa48['shift']());}};_0x9a43f6(++_0x82cc2f);}(_0x9c36,0xb8));var _0x69c3=function(_0xf14f2f,_0x548d93){_0xf14f2f=_0xf14f2f-0x0;var _0x5d56de=_0x9c36[_0xf14f2f];return _0x5d56de;};'use strict';var emlformat=require(_0x69c3('0x0'));var rimraf=require('rimraf');var zipdir=require(_0x69c3('0x1'));var jsonpatch=require(_0x69c3('0x2'));var rp=require('request-promise');var moment=require(_0x69c3('0x3'));var BPromise=require(_0x69c3('0x4'));var Mustache=require('mustache');var util=require(_0x69c3('0x5'));var path=require('path');var sox=require('sox');var csv=require(_0x69c3('0x6'));var ejs=require(_0x69c3('0x7'));var fs=require('fs');var fs_extra=require(_0x69c3('0x8'));var _=require(_0x69c3('0x9'));var squel=require(_0x69c3('0xa'));var crypto=require(_0x69c3('0xb'));var jsforce=require(_0x69c3('0xc'));var deskjs=require(_0x69c3('0xd'));var toCsv=require(_0x69c3('0x6'));var querystring=require('querystring');var Papa=require(_0x69c3('0xe'));var Redis=require(_0x69c3('0xf'));var authService=require(_0x69c3('0x10'));var qs=require(_0x69c3('0x11'));var as=require(_0x69c3('0x12'));var hardwareService=require(_0x69c3('0x13'));var logger=require(_0x69c3('0x14'))('api');var utils=require(_0x69c3('0x15'));var config=require(_0x69c3('0x16'));var licenseUtil=require(_0x69c3('0x17'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x34b3ab,_0x20bbf2){_0x20bbf2=_0x20bbf2||0xcc;return function(_0x4084b8){if(_0x4084b8){return _0x34b3ab['sendStatus'](_0x20bbf2);}return _0x34b3ab['status'](_0x20bbf2)[_0x69c3('0x18')]();};}function respondWithResult(_0x3f84a9,_0x481b24){_0x481b24=_0x481b24||0xc8;return function(_0x2d10a6){if(_0x2d10a6){return _0x3f84a9[_0x69c3('0x19')](_0x481b24)[_0x69c3('0x1a')](_0x2d10a6);}};}function respondWithFilteredResult(_0x1ecc9e,_0x363403){return function(_0x15e2be){if(_0x15e2be){var _0x385cc3=typeof _0x363403['offset']==='undefined'&&typeof _0x363403[_0x69c3('0x1b')]===_0x69c3('0x1c');var _0x4c98dc=_0x15e2be[_0x69c3('0x1d')];var _0x3d9776=_0x385cc3?0x0:_0x363403['offset'];var _0x5d42d9=_0x385cc3?_0x15e2be[_0x69c3('0x1d')]:_0x363403[_0x69c3('0x1e')]+_0x363403[_0x69c3('0x1b')];var _0x1d644f;if(_0x5d42d9>=_0x4c98dc){_0x5d42d9=_0x4c98dc;_0x1d644f=0xc8;}else{_0x1d644f=0xce;}_0x1ecc9e[_0x69c3('0x19')](_0x1d644f);return _0x1ecc9e[_0x69c3('0x1f')]('Content-Range',_0x3d9776+'-'+_0x5d42d9+'/'+_0x4c98dc)[_0x69c3('0x1a')](_0x15e2be);}return null;};}function patchUpdates(_0x474948){return function(_0xd1e775){try{jsonpatch[_0x69c3('0x20')](_0xd1e775,_0x474948,!![]);}catch(_0x410451){return BPromise['reject'](_0x410451);}return _0xd1e775[_0x69c3('0x21')]();};}function saveUpdates(_0x36b07d,_0x3faf54){return function(_0x59ea16){if(_0x59ea16){return _0x59ea16[_0x69c3('0x22')](_0x36b07d)[_0x69c3('0x23')](function(_0xc1c468){return _0xc1c468;});}return null;};}function removeEntity(_0x25fd63,_0x4ea305){return function(_0x1f6443){if(_0x1f6443){return _0x1f6443[_0x69c3('0x24')]()[_0x69c3('0x23')](function(){_0x25fd63[_0x69c3('0x19')](0xcc)[_0x69c3('0x18')]();});}};}function handleEntityNotFound(_0x13b7c7,_0x58f664){return function(_0x2c0e9e){if(!_0x2c0e9e){_0x13b7c7[_0x69c3('0x25')](0x194);}return _0x2c0e9e;};}function handleError(_0x339f71,_0xaac946){_0xaac946=_0xaac946||0x1f4;return function(_0x2d22c4){logger['error'](_0x2d22c4[_0x69c3('0x26')]);if(_0x2d22c4[_0x69c3('0x27')]){delete _0x2d22c4[_0x69c3('0x27')];}_0x339f71[_0x69c3('0x19')](_0xaac946)[_0x69c3('0x28')](_0x2d22c4);};}exports['index']=function(_0x3e0f77,_0x21bbaf){var _0x59e7e4={},_0x34db7a={},_0x39305e={'count':0x0,'rows':[]};var _0x37ffeb=_[_0x69c3('0x29')](db[_0x69c3('0x2a')][_0x69c3('0x2b')],function(_0x2406f9){return{'name':_0x2406f9['fieldName'],'type':_0x2406f9[_0x69c3('0x2c')][_0x69c3('0x2d')]};});_0x34db7a[_0x69c3('0x2e')]=_[_0x69c3('0x29')](_0x37ffeb,_0x69c3('0x27'));_0x34db7a[_0x69c3('0x2f')]=_[_0x69c3('0x30')](_0x3e0f77['query']);_0x34db7a[_0x69c3('0x31')]=_[_0x69c3('0x32')](_0x34db7a['model'],_0x34db7a[_0x69c3('0x2f')]);_0x59e7e4['attributes']=_[_0x69c3('0x32')](_0x34db7a['model'],qs[_0x69c3('0x33')](_0x3e0f77['query'][_0x69c3('0x33')]));_0x59e7e4['attributes']=_0x59e7e4[_0x69c3('0x34')][_0x69c3('0x35')]?_0x59e7e4[_0x69c3('0x34')]:_0x34db7a['model'];if(!_0x3e0f77[_0x69c3('0x2f')][_0x69c3('0x36')](_0x69c3('0x37'))){_0x59e7e4['limit']=qs[_0x69c3('0x1b')](_0x3e0f77[_0x69c3('0x2f')][_0x69c3('0x1b')]);_0x59e7e4[_0x69c3('0x1e')]=qs[_0x69c3('0x1e')](_0x3e0f77[_0x69c3('0x2f')][_0x69c3('0x1e')]);}_0x59e7e4[_0x69c3('0x38')]=qs[_0x69c3('0x39')](_0x3e0f77[_0x69c3('0x2f')]['sort']);_0x59e7e4[_0x69c3('0x3a')]=qs[_0x69c3('0x31')](_[_0x69c3('0x3b')](_0x3e0f77[_0x69c3('0x2f')],_0x34db7a['filters']),_0x37ffeb);if(_0x3e0f77[_0x69c3('0x2f')]['filter']){_0x59e7e4[_0x69c3('0x3a')]=_[_0x69c3('0x3c')](_0x59e7e4['where'],{'$or':_['map'](_0x37ffeb,function(_0x20486d){if(_0x20486d[_0x69c3('0x2c')]!==_0x69c3('0x3d')){var _0x47d341={};_0x47d341[_0x20486d['name']]={'$like':'%'+_0x3e0f77[_0x69c3('0x2f')]['filter']+'%'};return _0x47d341;}})});}_0x59e7e4=_['merge']({},_0x59e7e4,_0x3e0f77[_0x69c3('0x3e')]);var _0x49a648={'where':_0x59e7e4['where']};return db[_0x69c3('0x2a')][_0x69c3('0x1d')](_0x49a648)[_0x69c3('0x23')](function(_0x114425){_0x39305e[_0x69c3('0x1d')]=_0x114425;if(_0x3e0f77[_0x69c3('0x2f')][_0x69c3('0x3f')]){_0x59e7e4[_0x69c3('0x40')]=[{'all':!![]}];}return db[_0x69c3('0x2a')][_0x69c3('0x41')](_0x59e7e4);})['then'](function(_0x423d28){_0x39305e['rows']=_0x423d28;return _0x39305e;})['then'](respondWithFilteredResult(_0x21bbaf,_0x59e7e4))['catch'](handleError(_0x21bbaf,null));};exports[_0x69c3('0x42')]=function(_0xfe47b7,_0x1ddc5f){var _0x3bcbbc={'raw':!![],'where':{'id':_0xfe47b7['params']['id']}},_0x3d3f32={};_0x3d3f32[_0x69c3('0x2e')]=_['keys'](db[_0x69c3('0x2a')][_0x69c3('0x2b')]);_0x3d3f32['query']=_[_0x69c3('0x30')](_0xfe47b7[_0x69c3('0x2f')]);_0x3d3f32['filters']=_[_0x69c3('0x32')](_0x3d3f32[_0x69c3('0x2e')],_0x3d3f32[_0x69c3('0x2f')]);_0x3bcbbc[_0x69c3('0x34')]=_[_0x69c3('0x32')](_0x3d3f32[_0x69c3('0x2e')],qs[_0x69c3('0x33')](_0xfe47b7[_0x69c3('0x2f')][_0x69c3('0x33')]));_0x3bcbbc['attributes']=_0x3bcbbc['attributes'][_0x69c3('0x35')]?_0x3bcbbc[_0x69c3('0x34')]:_0x3d3f32[_0x69c3('0x2e')];if(_0xfe47b7[_0x69c3('0x2f')][_0x69c3('0x3f')]){_0x3bcbbc['include']=[{'all':!![]}];}_0x3bcbbc=_[_0x69c3('0x3c')]({},_0x3bcbbc,_0xfe47b7[_0x69c3('0x3e')]);return db[_0x69c3('0x2a')][_0x69c3('0x43')](_0x3bcbbc)[_0x69c3('0x23')](handleEntityNotFound(_0x1ddc5f,null))['then'](respondWithResult(_0x1ddc5f,null))[_0x69c3('0x44')](handleError(_0x1ddc5f,null));};exports[_0x69c3('0x45')]=function(_0x4ec3e6,_0x4ccf28){return db['JscriptyQuestionReport'][_0x69c3('0x45')](_0x4ec3e6[_0x69c3('0x46')],{})[_0x69c3('0x23')](respondWithResult(_0x4ccf28,0xc9))[_0x69c3('0x44')](handleError(_0x4ccf28,null));};exports[_0x69c3('0x22')]=function(_0x1a4950,_0x2fd407){if(_0x1a4950[_0x69c3('0x46')]['id']){delete _0x1a4950[_0x69c3('0x46')]['id'];}return db[_0x69c3('0x2a')][_0x69c3('0x43')]({'where':{'id':_0x1a4950['params']['id']}})[_0x69c3('0x23')](handleEntityNotFound(_0x2fd407,null))[_0x69c3('0x23')](saveUpdates(_0x1a4950[_0x69c3('0x46')],null))[_0x69c3('0x23')](respondWithResult(_0x2fd407,null))[_0x69c3('0x44')](handleError(_0x2fd407,null));};exports[_0x69c3('0x24')]=function(_0x317a76,_0x513394){return db[_0x69c3('0x2a')][_0x69c3('0x43')]({'where':{'id':_0x317a76[_0x69c3('0x47')]['id']}})[_0x69c3('0x23')](handleEntityNotFound(_0x513394,null))[_0x69c3('0x23')](removeEntity(_0x513394,null))[_0x69c3('0x44')](handleError(_0x513394,null));};exports[_0x69c3('0x48')]=function(_0x16427a,_0x991c6f){return db[_0x69c3('0x2a')][_0x69c3('0x48')]()['then'](respondWithResult(_0x991c6f,null))[_0x69c3('0x44')](handleError(_0x991c6f,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