Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / jscriptyQuestionReport / jscriptyQuestionReport.controller.js
index 73c814a..9372006 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7cca=['body','describe','eml-format','zip-dir','fast-json-patch','request-promise','mustache','util','path','sox','lodash','squel','jsforce','desk.js','to-csv','querystring','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','../../config/utils','../../config/environment','sendStatus','status','json','count','offset','limit','set','Content-Range','reject','save','update','then','destroy','end','error','stack','name','send','index','JscriptyQuestionReport','rawAttributes','fieldName','key','query','keys','filters','model','attributes','intersection','fields','hasOwnProperty','order','sort','where','pick','filter','merge','type','VIRTUAL','options','findAll','rows','catch','params','length','includeAll','include','find','create'];(function(_0x464e1f,_0x2aa86f){var _0x1c1ce2=function(_0x543c79){while(--_0x543c79){_0x464e1f['push'](_0x464e1f['shift']());}};_0x1c1ce2(++_0x2aa86f);}(_0x7cca,0x16f));var _0xa7cc=function(_0x6778c5,_0x565f6c){_0x6778c5=_0x6778c5-0x0;var _0x1f7db2=_0x7cca[_0x6778c5];return _0x1f7db2;};'use strict';var pdf=require('html-pdf');var emlformat=require(_0xa7cc('0x0'));var rimraf=require('rimraf');var zipdir=require(_0xa7cc('0x1'));var jsonpatch=require(_0xa7cc('0x2'));var rp=require(_0xa7cc('0x3'));var moment=require('moment');var BPromise=require('bluebird');var Mustache=require(_0xa7cc('0x4'));var util=require(_0xa7cc('0x5'));var path=require(_0xa7cc('0x6'));var sox=require(_0xa7cc('0x7'));var csv=require('to-csv');var ejs=require('ejs');var fs=require('fs');var _=require(_0xa7cc('0x8'));var squel=require(_0xa7cc('0x9'));var crypto=require('crypto');var jsforce=require(_0xa7cc('0xa'));var deskjs=require(_0xa7cc('0xb'));var toCsv=require(_0xa7cc('0xc'));var querystring=require(_0xa7cc('0xd'));var Papa=require('papaparse');var Redis=require(_0xa7cc('0xe'));var authService=require(_0xa7cc('0xf'));var qs=require(_0xa7cc('0x10'));var as=require(_0xa7cc('0x11'));var hardwareService=require(_0xa7cc('0x12'));var logger=require(_0xa7cc('0x13'))('api');var utils=require(_0xa7cc('0x14'));var config=require(_0xa7cc('0x15'));var db=require('../../mysqldb')['db'];function respondWithStatusCode(_0x165e97,_0x5d5cd9){_0x5d5cd9=_0x5d5cd9||0xcc;return function(_0x1fc1f7){if(_0x1fc1f7){return _0x165e97[_0xa7cc('0x16')](_0x5d5cd9);}return _0x165e97[_0xa7cc('0x17')](_0x5d5cd9)['end']();};}function respondWithResult(_0x806317,_0x13ae28){_0x13ae28=_0x13ae28||0xc8;return function(_0x139318){if(_0x139318){return _0x806317[_0xa7cc('0x17')](_0x13ae28)[_0xa7cc('0x18')](_0x139318);}};}function respondWithFilteredResult(_0x394ebf,_0xe784e6){return function(_0x42ce87){if(_0x42ce87){var _0x3e1ce7=_0x42ce87[_0xa7cc('0x19')],_0x4959db=_0xe784e6[_0xa7cc('0x1a')],_0x19ede1=_0xe784e6[_0xa7cc('0x1a')]+_0xe784e6[_0xa7cc('0x1b')],_0x4fe76d;if(_0x19ede1>=_0x3e1ce7){_0x19ede1=_0x3e1ce7;_0x4fe76d=0xc8;}else{_0x4fe76d=0xce;}_0x394ebf['status'](_0x4fe76d);return _0x394ebf[_0xa7cc('0x1c')](_0xa7cc('0x1d'),_0x4959db+'-'+_0x19ede1+'/'+_0x3e1ce7)[_0xa7cc('0x18')](_0x42ce87);}return null;};}function patchUpdates(_0x54d434){return function(_0x5efb84){try{jsonpatch['apply'](_0x5efb84,_0x54d434,!![]);}catch(_0x28d162){return BPromise[_0xa7cc('0x1e')](_0x28d162);}return _0x5efb84[_0xa7cc('0x1f')]();};}function saveUpdates(_0x24d0ae,_0x33de9d){return function(_0x133a01){if(_0x133a01){return _0x133a01[_0xa7cc('0x20')](_0x24d0ae)[_0xa7cc('0x21')](function(_0x37ba59){return _0x37ba59;});}return null;};}function removeEntity(_0x38652b,_0x1f0f0c){return function(_0x55b32e){if(_0x55b32e){return _0x55b32e[_0xa7cc('0x22')]()[_0xa7cc('0x21')](function(){_0x38652b[_0xa7cc('0x17')](0xcc)[_0xa7cc('0x23')]();});}};}function handleEntityNotFound(_0x4da453,_0x21711f){return function(_0x2fabc7){if(!_0x2fabc7){_0x4da453[_0xa7cc('0x16')](0x194);}return _0x2fabc7;};}function handleError(_0x158ce2,_0x5b8768){_0x5b8768=_0x5b8768||0x1f4;return function(_0x576a6b){logger[_0xa7cc('0x24')](_0x576a6b[_0xa7cc('0x25')]);if(_0x576a6b[_0xa7cc('0x26')]){delete _0x576a6b[_0xa7cc('0x26')];}_0x158ce2[_0xa7cc('0x17')](_0x5b8768)[_0xa7cc('0x27')](_0x576a6b);};}exports[_0xa7cc('0x28')]=function(_0x7cd09,_0x3dfc20){var _0x5124b8={},_0x2bfd81={},_0x5e49b4={'count':0x0,'rows':[]};var _0x2f23bd=_['map'](db[_0xa7cc('0x29')][_0xa7cc('0x2a')],function(_0x40678d){return{'name':_0x40678d[_0xa7cc('0x2b')],'type':_0x40678d['type'][_0xa7cc('0x2c')]};});_0x2bfd81['model']=_['map'](_0x2f23bd,_0xa7cc('0x26'));_0x2bfd81[_0xa7cc('0x2d')]=_[_0xa7cc('0x2e')](_0x7cd09[_0xa7cc('0x2d')]);_0x2bfd81[_0xa7cc('0x2f')]=_['intersection'](_0x2bfd81[_0xa7cc('0x30')],_0x2bfd81[_0xa7cc('0x2d')]);_0x5124b8[_0xa7cc('0x31')]=_[_0xa7cc('0x32')](_0x2bfd81[_0xa7cc('0x30')],qs[_0xa7cc('0x33')](_0x7cd09[_0xa7cc('0x2d')][_0xa7cc('0x33')]));_0x5124b8[_0xa7cc('0x31')]=_0x5124b8['attributes']['length']?_0x5124b8[_0xa7cc('0x31')]:_0x2bfd81[_0xa7cc('0x30')];if(!_0x7cd09[_0xa7cc('0x2d')][_0xa7cc('0x34')]('nolimit')){_0x5124b8[_0xa7cc('0x1b')]=qs[_0xa7cc('0x1b')](_0x7cd09['query'][_0xa7cc('0x1b')]);_0x5124b8[_0xa7cc('0x1a')]=qs[_0xa7cc('0x1a')](_0x7cd09[_0xa7cc('0x2d')][_0xa7cc('0x1a')]);}_0x5124b8[_0xa7cc('0x35')]=qs[_0xa7cc('0x36')](_0x7cd09[_0xa7cc('0x2d')][_0xa7cc('0x36')]);_0x5124b8[_0xa7cc('0x37')]=qs[_0xa7cc('0x2f')](_[_0xa7cc('0x38')](_0x7cd09[_0xa7cc('0x2d')],_0x2bfd81['filters']),_0x2f23bd);if(_0x7cd09[_0xa7cc('0x2d')][_0xa7cc('0x39')]){_0x5124b8[_0xa7cc('0x37')]=_[_0xa7cc('0x3a')](_0x5124b8[_0xa7cc('0x37')],{'$or':_['map'](_0x2f23bd,function(_0xcbc688){if(_0xcbc688[_0xa7cc('0x3b')]!==_0xa7cc('0x3c')){var _0xf6d1c1={};_0xf6d1c1[_0xcbc688[_0xa7cc('0x26')]]={'$like':'%'+_0x7cd09[_0xa7cc('0x2d')][_0xa7cc('0x39')]+'%'};return _0xf6d1c1;}})});}_0x5124b8=_[_0xa7cc('0x3a')]({},_0x5124b8,_0x7cd09[_0xa7cc('0x3d')]);var _0x443d28={'where':_0x5124b8[_0xa7cc('0x37')]};return db[_0xa7cc('0x29')][_0xa7cc('0x19')](_0x443d28)[_0xa7cc('0x21')](function(_0x5a1122){_0x5e49b4['count']=_0x5a1122;if(_0x7cd09['query']['includeAll']){_0x5124b8['include']=[{'all':!![]}];}return db['JscriptyQuestionReport'][_0xa7cc('0x3e')](_0x5124b8);})['then'](function(_0x32c6e8){_0x5e49b4[_0xa7cc('0x3f')]=_0x32c6e8;return _0x5e49b4;})[_0xa7cc('0x21')](respondWithFilteredResult(_0x3dfc20,_0x5124b8))[_0xa7cc('0x40')](handleError(_0x3dfc20,null));};exports['show']=function(_0x177163,_0x3a8c98){var _0x500453={'raw':!![],'where':{'id':_0x177163[_0xa7cc('0x41')]['id']}},_0x46f969={};_0x46f969[_0xa7cc('0x30')]=_[_0xa7cc('0x2e')](db['JscriptyQuestionReport']['rawAttributes']);_0x46f969[_0xa7cc('0x2d')]=_[_0xa7cc('0x2e')](_0x177163[_0xa7cc('0x2d')]);_0x46f969[_0xa7cc('0x2f')]=_[_0xa7cc('0x32')](_0x46f969['model'],_0x46f969[_0xa7cc('0x2d')]);_0x500453[_0xa7cc('0x31')]=_[_0xa7cc('0x32')](_0x46f969[_0xa7cc('0x30')],qs[_0xa7cc('0x33')](_0x177163[_0xa7cc('0x2d')][_0xa7cc('0x33')]));_0x500453['attributes']=_0x500453[_0xa7cc('0x31')][_0xa7cc('0x42')]?_0x500453[_0xa7cc('0x31')]:_0x46f969[_0xa7cc('0x30')];if(_0x177163[_0xa7cc('0x2d')][_0xa7cc('0x43')]){_0x500453[_0xa7cc('0x44')]=[{'all':!![]}];}_0x500453=_[_0xa7cc('0x3a')]({},_0x500453,_0x177163[_0xa7cc('0x3d')]);return db[_0xa7cc('0x29')][_0xa7cc('0x45')](_0x500453)[_0xa7cc('0x21')](handleEntityNotFound(_0x3a8c98,null))[_0xa7cc('0x21')](respondWithResult(_0x3a8c98,null))[_0xa7cc('0x40')](handleError(_0x3a8c98,null));};exports['create']=function(_0x238240,_0x25112f){return db[_0xa7cc('0x29')][_0xa7cc('0x46')](_0x238240[_0xa7cc('0x47')],{})[_0xa7cc('0x21')](respondWithResult(_0x25112f,0xc9))[_0xa7cc('0x40')](handleError(_0x25112f,null));};exports[_0xa7cc('0x20')]=function(_0x2d2545,_0x1e268b){if(_0x2d2545['body']['id']){delete _0x2d2545['body']['id'];}return db['JscriptyQuestionReport']['find']({'where':{'id':_0x2d2545[_0xa7cc('0x41')]['id']}})[_0xa7cc('0x21')](handleEntityNotFound(_0x1e268b,null))['then'](saveUpdates(_0x2d2545[_0xa7cc('0x47')],null))['then'](respondWithResult(_0x1e268b,null))[_0xa7cc('0x40')](handleError(_0x1e268b,null));};exports[_0xa7cc('0x22')]=function(_0x26abbd,_0xfb16c4){return db[_0xa7cc('0x29')][_0xa7cc('0x45')]({'where':{'id':_0x26abbd[_0xa7cc('0x41')]['id']}})[_0xa7cc('0x21')](handleEntityNotFound(_0xfb16c4,null))[_0xa7cc('0x21')](removeEntity(_0xfb16c4,null))[_0xa7cc('0x40')](handleError(_0xfb16c4,null));};exports[_0xa7cc('0x48')]=function(_0x34c6ac,_0x5ae05b){return db['JscriptyQuestionReport']['describe']()[_0xa7cc('0x21')](respondWithResult(_0x5ae05b,null))[_0xa7cc('0x40')](handleError(_0x5ae05b,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