Built motion from commit 0900f080.|2.5.45
[motion2.git] / server / api / jscriptyQuestionReport / jscriptyQuestionReport.controller.js
index a42362f..ff6f55f 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1c5a=['undefined','limit','Content-Range','apply','save','then','destroy','error','stack','name','map','fieldName','model','filters','query','intersection','fields','length','attributes','hasOwnProperty','nolimit','order','where','pick','merge','type','filter','count','includeAll','include','JscriptyQuestionReport','findAll','rows','params','keys','rawAttributes','catch','create','body','update','find','rimraf','fast-json-patch','request-promise','moment','bluebird','mustache','util','path','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','papaparse','ioredis','../../components/auth/service','../../components/parsers/qs','../../components/parsers/advancedSearch','../../config/license/hardware','../../config/logger','api','../../mysqldb','sendStatus','status','end','json','offset'];(function(_0x1cf0fd,_0x3f043e){var _0x5690e1=function(_0x1c2d29){while(--_0x1c2d29){_0x1cf0fd['push'](_0x1cf0fd['shift']());}};_0x5690e1(++_0x3f043e);}(_0x1c5a,0x145));var _0xa1c5=function(_0x1969a7,_0x5a133a){_0x1969a7=_0x1969a7-0x0;var _0x3d665f=_0x1c5a[_0x1969a7];return _0x3d665f;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0xa1c5('0x0'));var zipdir=require('zip-dir');var jsonpatch=require(_0xa1c5('0x1'));var rp=require(_0xa1c5('0x2'));var moment=require(_0xa1c5('0x3'));var BPromise=require(_0xa1c5('0x4'));var Mustache=require(_0xa1c5('0x5'));var util=require(_0xa1c5('0x6'));var path=require(_0xa1c5('0x7'));var sox=require(_0xa1c5('0x8'));var csv=require(_0xa1c5('0x9'));var ejs=require(_0xa1c5('0xa'));var fs=require('fs');var fs_extra=require(_0xa1c5('0xb'));var _=require(_0xa1c5('0xc'));var squel=require(_0xa1c5('0xd'));var crypto=require(_0xa1c5('0xe'));var jsforce=require(_0xa1c5('0xf'));var deskjs=require('desk.js');var toCsv=require(_0xa1c5('0x9'));var querystring=require('querystring');var Papa=require(_0xa1c5('0x10'));var Redis=require(_0xa1c5('0x11'));var authService=require(_0xa1c5('0x12'));var qs=require(_0xa1c5('0x13'));var as=require(_0xa1c5('0x14'));var hardwareService=require(_0xa1c5('0x15'));var logger=require(_0xa1c5('0x16'))(_0xa1c5('0x17'));var utils=require('../../config/utils');var config=require('../../config/environment');var licenseUtil=require('../../config/license/util');var db=require(_0xa1c5('0x18'))['db'];function respondWithStatusCode(_0x1c8e87,_0x1f587c){_0x1f587c=_0x1f587c||0xcc;return function(_0x7636fc){if(_0x7636fc){return _0x1c8e87[_0xa1c5('0x19')](_0x1f587c);}return _0x1c8e87[_0xa1c5('0x1a')](_0x1f587c)[_0xa1c5('0x1b')]();};}function respondWithResult(_0x1e25b5,_0x392132){_0x392132=_0x392132||0xc8;return function(_0x202225){if(_0x202225){return _0x1e25b5[_0xa1c5('0x1a')](_0x392132)[_0xa1c5('0x1c')](_0x202225);}};}function respondWithFilteredResult(_0x3a9d35,_0x3160e9){return function(_0x238fb7){if(_0x238fb7){var _0x11f1d1=typeof _0x3160e9[_0xa1c5('0x1d')]===_0xa1c5('0x1e')&&typeof _0x3160e9[_0xa1c5('0x1f')]===_0xa1c5('0x1e');var _0x3e68e7=_0x238fb7['count'];var _0x2bf329=_0x11f1d1?0x0:_0x3160e9['offset'];var _0x346c5d=_0x11f1d1?_0x238fb7['count']:_0x3160e9[_0xa1c5('0x1d')]+_0x3160e9[_0xa1c5('0x1f')];var _0x3aa66f;if(_0x346c5d>=_0x3e68e7){_0x346c5d=_0x3e68e7;_0x3aa66f=0xc8;}else{_0x3aa66f=0xce;}_0x3a9d35[_0xa1c5('0x1a')](_0x3aa66f);return _0x3a9d35['set'](_0xa1c5('0x20'),_0x2bf329+'-'+_0x346c5d+'/'+_0x3e68e7)[_0xa1c5('0x1c')](_0x238fb7);}return null;};}function patchUpdates(_0x55abd4){return function(_0x59936c){try{jsonpatch[_0xa1c5('0x21')](_0x59936c,_0x55abd4,!![]);}catch(_0x4a46b6){return BPromise['reject'](_0x4a46b6);}return _0x59936c[_0xa1c5('0x22')]();};}function saveUpdates(_0x2a46a9,_0x3494f5){return function(_0x97e692){if(_0x97e692){return _0x97e692['update'](_0x2a46a9)[_0xa1c5('0x23')](function(_0x746ace){return _0x746ace;});}return null;};}function removeEntity(_0x340cb2,_0x3c5ad3){return function(_0x4080f1){if(_0x4080f1){return _0x4080f1[_0xa1c5('0x24')]()[_0xa1c5('0x23')](function(){_0x340cb2[_0xa1c5('0x1a')](0xcc)[_0xa1c5('0x1b')]();});}};}function handleEntityNotFound(_0x130a32,_0x931dc7){return function(_0x1bdac9){if(!_0x1bdac9){_0x130a32['sendStatus'](0x194);}return _0x1bdac9;};}function handleError(_0x3e37ea,_0x17490b){_0x17490b=_0x17490b||0x1f4;return function(_0x6fc2d){logger[_0xa1c5('0x25')](_0x6fc2d[_0xa1c5('0x26')]);if(_0x6fc2d['name']){delete _0x6fc2d[_0xa1c5('0x27')];}_0x3e37ea[_0xa1c5('0x1a')](_0x17490b)['send'](_0x6fc2d);};}exports['index']=function(_0xf125d4,_0x4dcca0){var _0x2016d9={},_0x2997da={},_0x4221f9={'count':0x0,'rows':[]};var _0x5576a7=_[_0xa1c5('0x28')](db['JscriptyQuestionReport']['rawAttributes'],function(_0x3b905b){return{'name':_0x3b905b[_0xa1c5('0x29')],'type':_0x3b905b['type']['key']};});_0x2997da[_0xa1c5('0x2a')]=_['map'](_0x5576a7,'name');_0x2997da['query']=_['keys'](_0xf125d4['query']);_0x2997da[_0xa1c5('0x2b')]=_['intersection'](_0x2997da[_0xa1c5('0x2a')],_0x2997da[_0xa1c5('0x2c')]);_0x2016d9['attributes']=_[_0xa1c5('0x2d')](_0x2997da[_0xa1c5('0x2a')],qs[_0xa1c5('0x2e')](_0xf125d4[_0xa1c5('0x2c')][_0xa1c5('0x2e')]));_0x2016d9['attributes']=_0x2016d9['attributes'][_0xa1c5('0x2f')]?_0x2016d9[_0xa1c5('0x30')]:_0x2997da[_0xa1c5('0x2a')];if(!_0xf125d4[_0xa1c5('0x2c')][_0xa1c5('0x31')](_0xa1c5('0x32'))){_0x2016d9[_0xa1c5('0x1f')]=qs[_0xa1c5('0x1f')](_0xf125d4[_0xa1c5('0x2c')]['limit']);_0x2016d9[_0xa1c5('0x1d')]=qs[_0xa1c5('0x1d')](_0xf125d4['query'][_0xa1c5('0x1d')]);}_0x2016d9[_0xa1c5('0x33')]=qs['sort'](_0xf125d4[_0xa1c5('0x2c')]['sort']);_0x2016d9[_0xa1c5('0x34')]=qs[_0xa1c5('0x2b')](_[_0xa1c5('0x35')](_0xf125d4[_0xa1c5('0x2c')],_0x2997da[_0xa1c5('0x2b')]),_0x5576a7);if(_0xf125d4['query']['filter']){_0x2016d9['where']=_[_0xa1c5('0x36')](_0x2016d9['where'],{'$or':_[_0xa1c5('0x28')](_0x5576a7,function(_0x195f30){if(_0x195f30[_0xa1c5('0x37')]!=='VIRTUAL'){var _0x3e1b45={};_0x3e1b45[_0x195f30[_0xa1c5('0x27')]]={'$like':'%'+_0xf125d4[_0xa1c5('0x2c')][_0xa1c5('0x38')]+'%'};return _0x3e1b45;}})});}_0x2016d9=_[_0xa1c5('0x36')]({},_0x2016d9,_0xf125d4['options']);var _0x4241a8={'where':_0x2016d9['where']};return db['JscriptyQuestionReport']['count'](_0x4241a8)[_0xa1c5('0x23')](function(_0x34aafb){_0x4221f9[_0xa1c5('0x39')]=_0x34aafb;if(_0xf125d4['query'][_0xa1c5('0x3a')]){_0x2016d9[_0xa1c5('0x3b')]=[{'all':!![]}];}return db[_0xa1c5('0x3c')][_0xa1c5('0x3d')](_0x2016d9);})[_0xa1c5('0x23')](function(_0x42faef){_0x4221f9[_0xa1c5('0x3e')]=_0x42faef;return _0x4221f9;})[_0xa1c5('0x23')](respondWithFilteredResult(_0x4dcca0,_0x2016d9))['catch'](handleError(_0x4dcca0,null));};exports['show']=function(_0x28d872,_0x46a9d7){var _0x1fbf0c={'raw':!![],'where':{'id':_0x28d872[_0xa1c5('0x3f')]['id']}},_0x1e167d={};_0x1e167d[_0xa1c5('0x2a')]=_[_0xa1c5('0x40')](db[_0xa1c5('0x3c')][_0xa1c5('0x41')]);_0x1e167d[_0xa1c5('0x2c')]=_[_0xa1c5('0x40')](_0x28d872[_0xa1c5('0x2c')]);_0x1e167d['filters']=_[_0xa1c5('0x2d')](_0x1e167d[_0xa1c5('0x2a')],_0x1e167d['query']);_0x1fbf0c[_0xa1c5('0x30')]=_['intersection'](_0x1e167d[_0xa1c5('0x2a')],qs['fields'](_0x28d872['query'][_0xa1c5('0x2e')]));_0x1fbf0c[_0xa1c5('0x30')]=_0x1fbf0c['attributes'][_0xa1c5('0x2f')]?_0x1fbf0c[_0xa1c5('0x30')]:_0x1e167d[_0xa1c5('0x2a')];if(_0x28d872[_0xa1c5('0x2c')][_0xa1c5('0x3a')]){_0x1fbf0c[_0xa1c5('0x3b')]=[{'all':!![]}];}_0x1fbf0c=_['merge']({},_0x1fbf0c,_0x28d872['options']);return db['JscriptyQuestionReport']['find'](_0x1fbf0c)[_0xa1c5('0x23')](handleEntityNotFound(_0x46a9d7,null))['then'](respondWithResult(_0x46a9d7,null))[_0xa1c5('0x42')](handleError(_0x46a9d7,null));};exports[_0xa1c5('0x43')]=function(_0x1837de,_0x1ad73a){return db['JscriptyQuestionReport'][_0xa1c5('0x43')](_0x1837de[_0xa1c5('0x44')],{})[_0xa1c5('0x23')](respondWithResult(_0x1ad73a,0xc9))[_0xa1c5('0x42')](handleError(_0x1ad73a,null));};exports[_0xa1c5('0x45')]=function(_0x398b16,_0x47cdc3){if(_0x398b16[_0xa1c5('0x44')]['id']){delete _0x398b16[_0xa1c5('0x44')]['id'];}return db[_0xa1c5('0x3c')][_0xa1c5('0x46')]({'where':{'id':_0x398b16[_0xa1c5('0x3f')]['id']}})[_0xa1c5('0x23')](handleEntityNotFound(_0x47cdc3,null))['then'](saveUpdates(_0x398b16[_0xa1c5('0x44')],null))['then'](respondWithResult(_0x47cdc3,null))[_0xa1c5('0x42')](handleError(_0x47cdc3,null));};exports['destroy']=function(_0x214736,_0x1a8ffd){return db[_0xa1c5('0x3c')][_0xa1c5('0x46')]({'where':{'id':_0x214736[_0xa1c5('0x3f')]['id']}})['then'](handleEntityNotFound(_0x1a8ffd,null))[_0xa1c5('0x23')](removeEntity(_0x1a8ffd,null))[_0xa1c5('0x42')](handleError(_0x1a8ffd,null));};exports['describe']=function(_0x3049d7,_0x563a9c){return db['JscriptyQuestionReport']['describe']()[_0xa1c5('0x23')](respondWithResult(_0x563a9c,null))[_0xa1c5('0x42')](handleError(_0x563a9c,null));};
\ No newline at end of file
+var _0xf413=['end','offset','undefined','limit','count','set','Content-Range','apply','reject','save','update','then','stack','name','map','rawAttributes','fieldName','type','model','query','keys','intersection','attributes','fields','length','hasOwnProperty','order','sort','where','filters','pick','filter','merge','VIRTUAL','options','JscriptyQuestionReport','includeAll','include','findAll','rows','catch','show','params','find','create','body','destroy','describe','rimraf','zip-dir','request-promise','moment','bluebird','mustache','path','sox','to-csv','ejs','fs-extra','lodash','squel','crypto','jsforce','desk.js','ioredis','../../components/auth/service','../../components/parsers/qs','../../config/license/hardware','../../config/logger','api','../../config/utils','../../config/environment','../../config/license/util','../../mysqldb','sendStatus','status'];(function(_0x1627ae,_0x2aaa24){var _0x34b38f=function(_0x5c4332){while(--_0x5c4332){_0x1627ae['push'](_0x1627ae['shift']());}};_0x34b38f(++_0x2aaa24);}(_0xf413,0x160));var _0x3f41=function(_0x20eb0e,_0x956000){_0x20eb0e=_0x20eb0e-0x0;var _0x3c5ce7=_0xf413[_0x20eb0e];return _0x3c5ce7;};'use strict';var emlformat=require('eml-format');var rimraf=require(_0x3f41('0x0'));var zipdir=require(_0x3f41('0x1'));var jsonpatch=require('fast-json-patch');var rp=require(_0x3f41('0x2'));var moment=require(_0x3f41('0x3'));var BPromise=require(_0x3f41('0x4'));var Mustache=require(_0x3f41('0x5'));var util=require('util');var path=require(_0x3f41('0x6'));var sox=require(_0x3f41('0x7'));var csv=require(_0x3f41('0x8'));var ejs=require(_0x3f41('0x9'));var fs=require('fs');var fs_extra=require(_0x3f41('0xa'));var _=require(_0x3f41('0xb'));var squel=require(_0x3f41('0xc'));var crypto=require(_0x3f41('0xd'));var jsforce=require(_0x3f41('0xe'));var deskjs=require(_0x3f41('0xf'));var toCsv=require(_0x3f41('0x8'));var querystring=require('querystring');var Papa=require('papaparse');var Redis=require(_0x3f41('0x10'));var authService=require(_0x3f41('0x11'));var qs=require(_0x3f41('0x12'));var as=require('../../components/parsers/advancedSearch');var hardwareService=require(_0x3f41('0x13'));var logger=require(_0x3f41('0x14'))(_0x3f41('0x15'));var utils=require(_0x3f41('0x16'));var config=require(_0x3f41('0x17'));var licenseUtil=require(_0x3f41('0x18'));var db=require(_0x3f41('0x19'))['db'];function respondWithStatusCode(_0x146dce,_0x3f34a7){_0x3f34a7=_0x3f34a7||0xcc;return function(_0x56c1dc){if(_0x56c1dc){return _0x146dce[_0x3f41('0x1a')](_0x3f34a7);}return _0x146dce[_0x3f41('0x1b')](_0x3f34a7)[_0x3f41('0x1c')]();};}function respondWithResult(_0x4a8aed,_0x128abe){_0x128abe=_0x128abe||0xc8;return function(_0xc11936){if(_0xc11936){return _0x4a8aed[_0x3f41('0x1b')](_0x128abe)['json'](_0xc11936);}};}function respondWithFilteredResult(_0x23b907,_0x1a9c9b){return function(_0x326b6f){if(_0x326b6f){var _0x1f19b9=typeof _0x1a9c9b[_0x3f41('0x1d')]===_0x3f41('0x1e')&&typeof _0x1a9c9b[_0x3f41('0x1f')]===_0x3f41('0x1e');var _0x508e66=_0x326b6f[_0x3f41('0x20')];var _0x587efa=_0x1f19b9?0x0:_0x1a9c9b[_0x3f41('0x1d')];var _0x58abb1=_0x1f19b9?_0x326b6f[_0x3f41('0x20')]:_0x1a9c9b[_0x3f41('0x1d')]+_0x1a9c9b[_0x3f41('0x1f')];var _0x22bdbc;if(_0x58abb1>=_0x508e66){_0x58abb1=_0x508e66;_0x22bdbc=0xc8;}else{_0x22bdbc=0xce;}_0x23b907[_0x3f41('0x1b')](_0x22bdbc);return _0x23b907[_0x3f41('0x21')](_0x3f41('0x22'),_0x587efa+'-'+_0x58abb1+'/'+_0x508e66)['json'](_0x326b6f);}return null;};}function patchUpdates(_0x391387){return function(_0x38a8dc){try{jsonpatch[_0x3f41('0x23')](_0x38a8dc,_0x391387,!![]);}catch(_0x1e5304){return BPromise[_0x3f41('0x24')](_0x1e5304);}return _0x38a8dc[_0x3f41('0x25')]();};}function saveUpdates(_0x5a3ab6,_0x3c1273){return function(_0x234aa6){if(_0x234aa6){return _0x234aa6[_0x3f41('0x26')](_0x5a3ab6)[_0x3f41('0x27')](function(_0x3c764b){return _0x3c764b;});}return null;};}function removeEntity(_0x33f448,_0x4ae63b){return function(_0x39eeff){if(_0x39eeff){return _0x39eeff['destroy']()[_0x3f41('0x27')](function(){_0x33f448['status'](0xcc)['end']();});}};}function handleEntityNotFound(_0x22dcb9,_0x2d2adc){return function(_0x898e89){if(!_0x898e89){_0x22dcb9[_0x3f41('0x1a')](0x194);}return _0x898e89;};}function handleError(_0x50a0a5,_0x4c4493){_0x4c4493=_0x4c4493||0x1f4;return function(_0x358ae9){logger['error'](_0x358ae9[_0x3f41('0x28')]);if(_0x358ae9[_0x3f41('0x29')]){delete _0x358ae9[_0x3f41('0x29')];}_0x50a0a5['status'](_0x4c4493)['send'](_0x358ae9);};}exports['index']=function(_0x4c1cd0,_0x214f9b){var _0xa5a1d0={},_0x4460d4={},_0xedd029={'count':0x0,'rows':[]};var _0x511f1c=_[_0x3f41('0x2a')](db['JscriptyQuestionReport'][_0x3f41('0x2b')],function(_0x1cbd3c){return{'name':_0x1cbd3c[_0x3f41('0x2c')],'type':_0x1cbd3c[_0x3f41('0x2d')]['key']};});_0x4460d4[_0x3f41('0x2e')]=_[_0x3f41('0x2a')](_0x511f1c,_0x3f41('0x29'));_0x4460d4[_0x3f41('0x2f')]=_[_0x3f41('0x30')](_0x4c1cd0['query']);_0x4460d4['filters']=_[_0x3f41('0x31')](_0x4460d4['model'],_0x4460d4[_0x3f41('0x2f')]);_0xa5a1d0[_0x3f41('0x32')]=_[_0x3f41('0x31')](_0x4460d4[_0x3f41('0x2e')],qs[_0x3f41('0x33')](_0x4c1cd0[_0x3f41('0x2f')][_0x3f41('0x33')]));_0xa5a1d0[_0x3f41('0x32')]=_0xa5a1d0[_0x3f41('0x32')][_0x3f41('0x34')]?_0xa5a1d0[_0x3f41('0x32')]:_0x4460d4['model'];if(!_0x4c1cd0['query'][_0x3f41('0x35')]('nolimit')){_0xa5a1d0[_0x3f41('0x1f')]=qs[_0x3f41('0x1f')](_0x4c1cd0['query'][_0x3f41('0x1f')]);_0xa5a1d0[_0x3f41('0x1d')]=qs[_0x3f41('0x1d')](_0x4c1cd0[_0x3f41('0x2f')][_0x3f41('0x1d')]);}_0xa5a1d0[_0x3f41('0x36')]=qs['sort'](_0x4c1cd0[_0x3f41('0x2f')][_0x3f41('0x37')]);_0xa5a1d0[_0x3f41('0x38')]=qs[_0x3f41('0x39')](_[_0x3f41('0x3a')](_0x4c1cd0[_0x3f41('0x2f')],_0x4460d4[_0x3f41('0x39')]),_0x511f1c);if(_0x4c1cd0[_0x3f41('0x2f')][_0x3f41('0x3b')]){_0xa5a1d0[_0x3f41('0x38')]=_[_0x3f41('0x3c')](_0xa5a1d0['where'],{'$or':_[_0x3f41('0x2a')](_0x511f1c,function(_0x3f4e83){if(_0x3f4e83[_0x3f41('0x2d')]!==_0x3f41('0x3d')){var _0x1e82c3={};_0x1e82c3[_0x3f4e83[_0x3f41('0x29')]]={'$like':'%'+_0x4c1cd0[_0x3f41('0x2f')][_0x3f41('0x3b')]+'%'};return _0x1e82c3;}})});}_0xa5a1d0=_[_0x3f41('0x3c')]({},_0xa5a1d0,_0x4c1cd0[_0x3f41('0x3e')]);var _0x232fc3={'where':_0xa5a1d0[_0x3f41('0x38')]};return db[_0x3f41('0x3f')]['count'](_0x232fc3)[_0x3f41('0x27')](function(_0x8d4d2d){_0xedd029['count']=_0x8d4d2d;if(_0x4c1cd0[_0x3f41('0x2f')][_0x3f41('0x40')]){_0xa5a1d0[_0x3f41('0x41')]=[{'all':!![]}];}return db[_0x3f41('0x3f')][_0x3f41('0x42')](_0xa5a1d0);})[_0x3f41('0x27')](function(_0x5714b2){_0xedd029[_0x3f41('0x43')]=_0x5714b2;return _0xedd029;})[_0x3f41('0x27')](respondWithFilteredResult(_0x214f9b,_0xa5a1d0))[_0x3f41('0x44')](handleError(_0x214f9b,null));};exports[_0x3f41('0x45')]=function(_0x5f2fd8,_0x1d8ee8){var _0x2f7685={'raw':!![],'where':{'id':_0x5f2fd8[_0x3f41('0x46')]['id']}},_0x357c7c={};_0x357c7c['model']=_[_0x3f41('0x30')](db[_0x3f41('0x3f')][_0x3f41('0x2b')]);_0x357c7c[_0x3f41('0x2f')]=_[_0x3f41('0x30')](_0x5f2fd8[_0x3f41('0x2f')]);_0x357c7c['filters']=_[_0x3f41('0x31')](_0x357c7c['model'],_0x357c7c['query']);_0x2f7685['attributes']=_['intersection'](_0x357c7c[_0x3f41('0x2e')],qs[_0x3f41('0x33')](_0x5f2fd8['query'][_0x3f41('0x33')]));_0x2f7685[_0x3f41('0x32')]=_0x2f7685[_0x3f41('0x32')][_0x3f41('0x34')]?_0x2f7685['attributes']:_0x357c7c[_0x3f41('0x2e')];if(_0x5f2fd8[_0x3f41('0x2f')]['includeAll']){_0x2f7685['include']=[{'all':!![]}];}_0x2f7685=_[_0x3f41('0x3c')]({},_0x2f7685,_0x5f2fd8[_0x3f41('0x3e')]);return db[_0x3f41('0x3f')][_0x3f41('0x47')](_0x2f7685)[_0x3f41('0x27')](handleEntityNotFound(_0x1d8ee8,null))[_0x3f41('0x27')](respondWithResult(_0x1d8ee8,null))['catch'](handleError(_0x1d8ee8,null));};exports[_0x3f41('0x48')]=function(_0x1ced8a,_0x23469a){return db[_0x3f41('0x3f')][_0x3f41('0x48')](_0x1ced8a[_0x3f41('0x49')],{})[_0x3f41('0x27')](respondWithResult(_0x23469a,0xc9))['catch'](handleError(_0x23469a,null));};exports['update']=function(_0x2cfd8f,_0x17a98b){if(_0x2cfd8f['body']['id']){delete _0x2cfd8f['body']['id'];}return db[_0x3f41('0x3f')][_0x3f41('0x47')]({'where':{'id':_0x2cfd8f['params']['id']}})[_0x3f41('0x27')](handleEntityNotFound(_0x17a98b,null))['then'](saveUpdates(_0x2cfd8f[_0x3f41('0x49')],null))[_0x3f41('0x27')](respondWithResult(_0x17a98b,null))['catch'](handleError(_0x17a98b,null));};exports[_0x3f41('0x4a')]=function(_0x39d8a9,_0x36da6b){return db[_0x3f41('0x3f')]['find']({'where':{'id':_0x39d8a9[_0x3f41('0x46')]['id']}})['then'](handleEntityNotFound(_0x36da6b,null))[_0x3f41('0x27')](removeEntity(_0x36da6b,null))[_0x3f41('0x44')](handleError(_0x36da6b,null));};exports[_0x3f41('0x4b')]=function(_0x2a766f,_0x10f616){return db['JscriptyQuestionReport'][_0x3f41('0x4b')]()[_0x3f41('0x27')](respondWithResult(_0x10f616,null))[_0x3f41('0x44')](handleError(_0x10f616,null));};
\ No newline at end of file