Built motion from commit a9fb64cc6defd8fb3a5cc199221f878e91c0e969. Version 3.0.0...
[motion-next.git] / server / api / jscriptySessionReport / jscriptySessionReport.controller.js
index 98c9152..74fea47 100644 (file)
@@ -1 +1 @@
-const a386_0x5c8f=['nolimit','end','where','body','describe','JscriptyQuestionReport','findOne','key','show','rawAttributes','length','Content-Range','limit','update','filter','send','options','destroy','SessionId','../../mysqldb','JscriptySessionReport','offset','intersection','../../config/logger','params','map','model','keys','includeAll','name','like','set','type','include','create','sendStatus','sort','query','catch','filters','rows','then','json','status','undefined','stack','merge','fieldName','order','attributes','../../components/parsers/qs','fields','pick','findAll','count'];(function(_0x35f977,_0x5c8f40){const _0x20f79f=function(_0x2d7d3e){while(--_0x2d7d3e){_0x35f977['push'](_0x35f977['shift']());}};_0x20f79f(++_0x5c8f40);}(a386_0x5c8f,0x162));const a386_0x20f7=function(_0x35f977,_0x5c8f40){_0x35f977=_0x35f977-0x0;let _0x20f79f=a386_0x5c8f[_0x35f977];return _0x20f79f;};const _0x1be8b4=a386_0x20f7;'use strict';const _=require('lodash'),qs=require(_0x1be8b4('0x1a')),logger=require(_0x1be8b4('0x36'))('api'),db=require(_0x1be8b4('0x32'))['db'],{Op}=require('sequelize');function respondWithResult(_0x2d7d3e,_0x56485b){return _0x56485b=_0x56485b||0xc8,function(_0x8520aa){const _0x2c2359=a386_0x20f7;if(_0x8520aa)return _0x2d7d3e[_0x2c2359('0x13')](_0x56485b)[_0x2c2359('0x12')](_0x8520aa);};}function respondWithFilteredResult(_0x5dcfe6,_0x482295){return function(_0x143285){const _0x29c225=a386_0x20f7;if(_0x143285){const _0x2ec16c=_0x143285[_0x29c225('0x1e')],_0x486a65=_0x482295[_0x29c225('0x34')];let _0x3b0aca=_0x482295[_0x29c225('0x34')]+_0x482295[_0x29c225('0x2b')],_0x4d255d;return _0x3b0aca>=_0x2ec16c?(_0x3b0aca=_0x2ec16c,_0x4d255d=0xc8):_0x4d255d=0xce,_0x5dcfe6['status'](_0x4d255d),_0x5dcfe6[_0x29c225('0x7')](_0x29c225('0x2a'),_0x486a65+'-'+_0x3b0aca+'/'+_0x2ec16c)[_0x29c225('0x12')](_0x143285);}return null;};}function saveUpdates(_0x53a313){return function(_0x1203d5){const _0x4b3cb6=a386_0x20f7;if(_0x1203d5)return _0x1203d5['update'](_0x53a313)[_0x4b3cb6('0x11')](function(_0x2f2fe3){return _0x2f2fe3;});return null;};}function removeEntity(_0x3af374){return function(_0x40d3d2){const _0xe500bf=a386_0x20f7;if(_0x40d3d2)return _0x40d3d2[_0xe500bf('0x30')]()['then'](function(){const _0x2be1fe=_0xe500bf;_0x3af374[_0x2be1fe('0x13')](0xcc)[_0x2be1fe('0x20')]();});};}function handleEntityNotFound(_0xcda2c7){return function(_0xff9982){const _0x43f0e6=a386_0x20f7;return!_0xff9982&&_0xcda2c7[_0x43f0e6('0xb')](0x194),_0xff9982;};}function handleError(_0xa75f18,_0x193d4){return _0x193d4=_0x193d4||0x1f4,function(_0x46866c){const _0x485ffe=a386_0x20f7;logger['error'](_0x46866c[_0x485ffe('0x15')]),_0x46866c[_0x485ffe('0x5')]&&delete _0x46866c['name'],_0xa75f18[_0x485ffe('0x13')](_0x193d4)[_0x485ffe('0x2e')](_0x46866c);};}exports['index']=function(_0x13b381,_0x514bd3){const _0x257e58=_0x1be8b4;let _0x21af0c={};const _0x467532={},_0x13d28c={'count':0x0,'rows':[]},_0x3952ad=_['map'](db[_0x257e58('0x33')]['rawAttributes'],function(_0x69a8ec){const _0x2b6dcf=_0x257e58;return{'name':_0x69a8ec[_0x2b6dcf('0x17')],'type':_0x69a8ec['type'][_0x2b6dcf('0x26')]};});_0x467532[_0x257e58('0x2')]=_['map'](_0x3952ad,'name'),_0x467532[_0x257e58('0xd')]=_[_0x257e58('0x3')](_0x13b381[_0x257e58('0xd')]),_0x467532[_0x257e58('0xf')]=_['intersection'](_0x467532[_0x257e58('0x2')],_0x467532[_0x257e58('0xd')]),_0x21af0c[_0x257e58('0x19')]=_['intersection'](_0x467532[_0x257e58('0x2')],qs[_0x257e58('0x1b')](_0x13b381['query'][_0x257e58('0x1b')])),_0x21af0c[_0x257e58('0x19')]=_0x21af0c['attributes'][_0x257e58('0x29')]?_0x21af0c['attributes']:_0x467532['model'];typeof _0x13b381[_0x257e58('0xd')][_0x257e58('0x1f')]===_0x257e58('0x14')&&(_0x21af0c[_0x257e58('0x2b')]=qs[_0x257e58('0x2b')](_0x13b381[_0x257e58('0xd')][_0x257e58('0x2b')]),_0x21af0c['offset']=qs[_0x257e58('0x34')](_0x13b381['query'][_0x257e58('0x34')]));_0x21af0c[_0x257e58('0x18')]=qs[_0x257e58('0xc')](_0x13b381[_0x257e58('0xd')]['sort']),_0x21af0c[_0x257e58('0x21')]=qs[_0x257e58('0xf')](_[_0x257e58('0x1c')](_0x13b381[_0x257e58('0xd')],_0x467532[_0x257e58('0xf')]),_0x3952ad);_0x13b381[_0x257e58('0xd')][_0x257e58('0x2d')]&&(_0x21af0c[_0x257e58('0x21')]=_[_0x257e58('0x16')](_0x21af0c[_0x257e58('0x21')],{[Op['or']]:_[_0x257e58('0x1')](_0x3952ad,function(_0xed4217){const _0x41dfe2=_0x257e58;if(_0xed4217[_0x41dfe2('0x8')]!=='VIRTUAL'){const _0x3c9f34={};return _0x3c9f34[_0xed4217[_0x41dfe2('0x5')]]={[Op[_0x41dfe2('0x6')]]:'%'+_0x13b381[_0x41dfe2('0xd')][_0x41dfe2('0x2d')]+'%'},_0x3c9f34;}})}));_0x21af0c=_[_0x257e58('0x16')]({},_0x21af0c,_0x13b381['options']);const _0x49398b={'where':_0x21af0c[_0x257e58('0x21')]};return db[_0x257e58('0x33')][_0x257e58('0x1e')](_0x49398b)['then'](function(_0x12b190){const _0xaee9e3=_0x257e58;return _0x13d28c[_0xaee9e3('0x1e')]=_0x12b190,_0x13b381[_0xaee9e3('0xd')][_0xaee9e3('0x4')]&&(_0x21af0c['include']=[{'all':!![]}]),db['JscriptySessionReport']['findAll'](_0x21af0c);})[_0x257e58('0x11')](function(_0x24db47){return _0x13d28c['rows']=_0x24db47,_0x13d28c;})['then'](respondWithFilteredResult(_0x514bd3,_0x21af0c))[_0x257e58('0xe')](handleError(_0x514bd3,null));},exports[_0x1be8b4('0x27')]=function(_0x446ff3,_0x3e22aa){const _0x281308=_0x1be8b4;let _0x55cd42={'raw':!![],'where':{'id':_0x446ff3[_0x281308('0x0')]['id']}};const _0x5537c2={};return _0x5537c2[_0x281308('0x2')]=_[_0x281308('0x3')](db[_0x281308('0x33')][_0x281308('0x28')]),_0x5537c2[_0x281308('0xd')]=_[_0x281308('0x3')](_0x446ff3[_0x281308('0xd')]),_0x5537c2[_0x281308('0xf')]=_[_0x281308('0x35')](_0x5537c2[_0x281308('0x2')],_0x5537c2['query']),_0x55cd42[_0x281308('0x19')]=_[_0x281308('0x35')](_0x5537c2[_0x281308('0x2')],qs[_0x281308('0x1b')](_0x446ff3['query']['fields'])),_0x55cd42[_0x281308('0x19')]=_0x55cd42[_0x281308('0x19')][_0x281308('0x29')]?_0x55cd42[_0x281308('0x19')]:_0x5537c2[_0x281308('0x2')],_0x446ff3['query'][_0x281308('0x4')]&&(_0x55cd42[_0x281308('0x9')]=[{'all':!![]}]),_0x55cd42=_['merge']({},_0x55cd42,_0x446ff3[_0x281308('0x2f')]),db[_0x281308('0x33')][_0x281308('0x25')](_0x55cd42)['then'](handleEntityNotFound(_0x3e22aa,null))[_0x281308('0x11')](respondWithResult(_0x3e22aa,null))[_0x281308('0xe')](handleError(_0x3e22aa,null));},exports[_0x1be8b4('0xa')]=function(_0x3d9db8,_0x227d92){const _0x137651=_0x1be8b4;return db['JscriptySessionReport']['create'](_0x3d9db8[_0x137651('0x22')],{})[_0x137651('0x11')](respondWithResult(_0x227d92,0xc9))[_0x137651('0xe')](handleError(_0x227d92,null));},exports[_0x1be8b4('0x2c')]=function(_0x291a79,_0x49741f){const _0x212da2=_0x1be8b4;return _0x291a79[_0x212da2('0x22')]['id']&&delete _0x291a79[_0x212da2('0x22')]['id'],db['JscriptySessionReport']['findOne']({'where':{'id':_0x291a79[_0x212da2('0x0')]['id']}})[_0x212da2('0x11')](handleEntityNotFound(_0x49741f,null))[_0x212da2('0x11')](saveUpdates(_0x291a79['body'],null))['then'](respondWithResult(_0x49741f,null))[_0x212da2('0xe')](handleError(_0x49741f,null));},exports[_0x1be8b4('0x30')]=function(_0x31def7,_0x11e81d){const _0x34214c=_0x1be8b4;return db[_0x34214c('0x33')][_0x34214c('0x25')]({'where':{'id':_0x31def7[_0x34214c('0x0')]['id']}})[_0x34214c('0x11')](handleEntityNotFound(_0x11e81d,null))[_0x34214c('0x11')](removeEntity(_0x11e81d,null))[_0x34214c('0xe')](handleError(_0x11e81d,null));},exports[_0x1be8b4('0x23')]=function(_0x3cd557,_0x520234){return db['JscriptySessionReport']['describe']()['then'](respondWithResult(_0x520234,null))['catch'](handleError(_0x520234,null));},exports['getQuestions']=function(_0x3c0ecb,_0x41bcab){const _0x4bc6a4=_0x1be8b4;let _0xe75156={'raw':!![],'where':{}};const _0x2367a1={},_0x47d49b={'count':0x0,'rows':[]};return db['JscriptySessionReport']['findOne']({'where':{'id':_0x3c0ecb['params']['id']}})[_0x4bc6a4('0x11')](handleEntityNotFound(_0x41bcab,null))['then'](function(_0x4bc7eb){const _0x3a980f=_0x4bc6a4;if(_0x4bc7eb)return _0x2367a1[_0x3a980f('0x2')]=_[_0x3a980f('0x3')](db[_0x3a980f('0x24')][_0x3a980f('0x28')]),_0x2367a1['query']=_[_0x3a980f('0x3')](_0x3c0ecb[_0x3a980f('0xd')]),_0x2367a1[_0x3a980f('0xf')]=_['intersection'](_0x2367a1[_0x3a980f('0x2')],_0x2367a1[_0x3a980f('0xd')]),_0xe75156[_0x3a980f('0x19')]=_['intersection'](_0x2367a1[_0x3a980f('0x2')],qs[_0x3a980f('0x1b')](_0x3c0ecb[_0x3a980f('0xd')][_0x3a980f('0x1b')])),_0xe75156['attributes']=_0xe75156[_0x3a980f('0x19')]['length']?_0xe75156[_0x3a980f('0x19')]:_0x2367a1['model'],typeof _0x3c0ecb[_0x3a980f('0xd')][_0x3a980f('0x1f')]===_0x3a980f('0x14')&&(_0xe75156['limit']=qs[_0x3a980f('0x2b')](_0x3c0ecb[_0x3a980f('0xd')][_0x3a980f('0x2b')]),_0xe75156[_0x3a980f('0x34')]=qs['offset'](_0x3c0ecb[_0x3a980f('0xd')]['offset'])),_0xe75156['order']=qs[_0x3a980f('0xc')](_0x3c0ecb['query'][_0x3a980f('0xc')]),_0xe75156[_0x3a980f('0x21')]=qs[_0x3a980f('0xf')](_['pick'](_0x3c0ecb[_0x3a980f('0xd')],_0x2367a1[_0x3a980f('0xf')])),_0xe75156[_0x3a980f('0x21')][_0x3a980f('0x31')]=_0x4bc7eb['id'],_0x3c0ecb[_0x3a980f('0xd')]['filter']&&(_0xe75156['where']=_[_0x3a980f('0x16')](_0xe75156[_0x3a980f('0x21')],{[Op['or']]:_[_0x3a980f('0x1')](_0xe75156[_0x3a980f('0x19')],function(_0x309c89){const _0x180c31=_0x3a980f,_0x3ae272={};return _0x3ae272[_0x309c89]={[Op['like']]:'%'+_0x3c0ecb[_0x180c31('0xd')][_0x180c31('0x2d')]+'%'},_0x3ae272;})})),_0xe75156=_[_0x3a980f('0x16')]({},_0xe75156,_0x3c0ecb[_0x3a980f('0x2f')]),db[_0x3a980f('0x24')][_0x3a980f('0x1e')]({'where':_0xe75156[_0x3a980f('0x21')]})['then'](function(_0x523bcb){const _0x2cd1c9=_0x3a980f;return _0x47d49b[_0x2cd1c9('0x1e')]=_0x523bcb,_0x3c0ecb[_0x2cd1c9('0xd')]['includeAll']&&(_0xe75156[_0x2cd1c9('0x9')]=[{'all':!![]}]),db[_0x2cd1c9('0x24')][_0x2cd1c9('0x1d')](_0xe75156);})[_0x3a980f('0x11')](function(_0x8b1ea5){const _0x40332a=_0x3a980f;return _0x47d49b[_0x40332a('0x10')]=_0x8b1ea5,_0x47d49b;});})[_0x4bc6a4('0x11')](respondWithFilteredResult(_0x41bcab,_0xe75156))[_0x4bc6a4('0xe')](handleError(_0x41bcab,null));};
\ No newline at end of file
+const a386_0x3bad=['index','params','order','key','SessionId','show','JscriptyQuestionReport','includeAll','filter','status','catch','fields','nolimit','pick','sort','VIRTUAL','end','stack','limit','../../mysqldb','keys','attributes','../../components/parsers/qs','findAll','update','Content-Range','lodash','type','fieldName','JscriptySessionReport','getQuestions','undefined','merge','map','where','count','describe','findOne','json','rawAttributes','like','sendStatus','destroy','create','intersection','model','length','name','offset','rows','include','filters','body','then','query','options'];(function(_0x37663e,_0x3bad74){const _0x56283b=function(_0x154e87){while(--_0x154e87){_0x37663e['push'](_0x37663e['shift']());}};_0x56283b(++_0x3bad74);}(a386_0x3bad,0x109));const a386_0x5628=function(_0x37663e,_0x3bad74){_0x37663e=_0x37663e-0x0;let _0x56283b=a386_0x3bad[_0x37663e];return _0x56283b;};const _0x458adf=a386_0x5628;'use strict';const _=require(_0x458adf('0x29')),qs=require(_0x458adf('0x25')),logger=require('../../config/logger')('api'),db=require(_0x458adf('0x22'))['db'],{Op}=require('sequelize');function respondWithResult(_0x154e87,_0x362ed8){return _0x362ed8=_0x362ed8||0xc8,function(_0x1607b1){const _0x16dd90=a386_0x5628;if(_0x1607b1)return _0x154e87['status'](_0x362ed8)[_0x16dd90('0x35')](_0x1607b1);};}function respondWithFilteredResult(_0x4ea7ed,_0x412757){return function(_0x138b68){const _0x9688aa=a386_0x5628;if(_0x138b68){const _0x55a77c=_0x138b68[_0x9688aa('0x32')],_0x448781=_0x412757[_0x9688aa('0x7')];let _0x173df8=_0x412757[_0x9688aa('0x7')]+_0x412757[_0x9688aa('0x21')],_0x60a785;return _0x173df8>=_0x55a77c?(_0x173df8=_0x55a77c,_0x60a785=0xc8):_0x60a785=0xce,_0x4ea7ed['status'](_0x60a785),_0x4ea7ed['set'](_0x9688aa('0x28'),_0x448781+'-'+_0x173df8+'/'+_0x55a77c)['json'](_0x138b68);}return null;};}function saveUpdates(_0x451a84){return function(_0x27bd36){const _0x487094=a386_0x5628;if(_0x27bd36)return _0x27bd36[_0x487094('0x27')](_0x451a84)[_0x487094('0xc')](function(_0x165091){return _0x165091;});return null;};}function removeEntity(_0x1cd5ab){return function(_0x6d77ec){const _0x202116=a386_0x5628;if(_0x6d77ec)return _0x6d77ec['destroy']()[_0x202116('0xc')](function(){const _0x5c910c=_0x202116;_0x1cd5ab[_0x5c910c('0x18')](0xcc)[_0x5c910c('0x1f')]();});};}function handleEntityNotFound(_0x1a1c12){return function(_0x2ce199){const _0x45751f=a386_0x5628;return!_0x2ce199&&_0x1a1c12[_0x45751f('0x0')](0x194),_0x2ce199;};}function handleError(_0x3170d7,_0x11de57){return _0x11de57=_0x11de57||0x1f4,function(_0x4c8628){const _0x2290c6=a386_0x5628;logger['error'](_0x4c8628[_0x2290c6('0x20')]),_0x4c8628[_0x2290c6('0x6')]&&delete _0x4c8628[_0x2290c6('0x6')],_0x3170d7[_0x2290c6('0x18')](_0x11de57)['send'](_0x4c8628);};}exports[_0x458adf('0xf')]=function(_0x1c1426,_0x3a341b){const _0x1c396c=_0x458adf;let _0xcc9cc5={};const _0x3a47d6={},_0x38ac95={'count':0x0,'rows':[]},_0x15a59e=_[_0x1c396c('0x30')](db[_0x1c396c('0x2c')][_0x1c396c('0x36')],function(_0xd84cdc){const _0x1565d0=_0x1c396c;return{'name':_0xd84cdc[_0x1565d0('0x2b')],'type':_0xd84cdc['type'][_0x1565d0('0x12')]};});_0x3a47d6['model']=_['map'](_0x15a59e,_0x1c396c('0x6')),_0x3a47d6[_0x1c396c('0xd')]=_[_0x1c396c('0x23')](_0x1c1426[_0x1c396c('0xd')]),_0x3a47d6[_0x1c396c('0xa')]=_[_0x1c396c('0x3')](_0x3a47d6[_0x1c396c('0x4')],_0x3a47d6[_0x1c396c('0xd')]),_0xcc9cc5['attributes']=_[_0x1c396c('0x3')](_0x3a47d6[_0x1c396c('0x4')],qs[_0x1c396c('0x1a')](_0x1c1426[_0x1c396c('0xd')][_0x1c396c('0x1a')])),_0xcc9cc5[_0x1c396c('0x24')]=_0xcc9cc5[_0x1c396c('0x24')]['length']?_0xcc9cc5['attributes']:_0x3a47d6[_0x1c396c('0x4')];typeof _0x1c1426[_0x1c396c('0xd')][_0x1c396c('0x1b')]===_0x1c396c('0x2e')&&(_0xcc9cc5[_0x1c396c('0x21')]=qs[_0x1c396c('0x21')](_0x1c1426[_0x1c396c('0xd')][_0x1c396c('0x21')]),_0xcc9cc5[_0x1c396c('0x7')]=qs[_0x1c396c('0x7')](_0x1c1426[_0x1c396c('0xd')][_0x1c396c('0x7')]));_0xcc9cc5[_0x1c396c('0x11')]=qs[_0x1c396c('0x1d')](_0x1c1426[_0x1c396c('0xd')][_0x1c396c('0x1d')]),_0xcc9cc5[_0x1c396c('0x31')]=qs[_0x1c396c('0xa')](_[_0x1c396c('0x1c')](_0x1c1426[_0x1c396c('0xd')],_0x3a47d6['filters']),_0x15a59e);_0x1c1426['query'][_0x1c396c('0x17')]&&(_0xcc9cc5[_0x1c396c('0x31')]=_[_0x1c396c('0x2f')](_0xcc9cc5[_0x1c396c('0x31')],{[Op['or']]:_[_0x1c396c('0x30')](_0x15a59e,function(_0xc68b55){const _0x5db707=_0x1c396c;if(_0xc68b55[_0x5db707('0x2a')]!==_0x5db707('0x1e')){const _0x76e9b1={};return _0x76e9b1[_0xc68b55['name']]={[Op[_0x5db707('0x37')]]:'%'+_0x1c1426['query']['filter']+'%'},_0x76e9b1;}})}));_0xcc9cc5=_[_0x1c396c('0x2f')]({},_0xcc9cc5,_0x1c1426[_0x1c396c('0xe')]);const _0xe6fa30={'where':_0xcc9cc5['where']};return db[_0x1c396c('0x2c')]['count'](_0xe6fa30)[_0x1c396c('0xc')](function(_0x520d4c){const _0x291651=_0x1c396c;return _0x38ac95[_0x291651('0x32')]=_0x520d4c,_0x1c1426[_0x291651('0xd')][_0x291651('0x16')]&&(_0xcc9cc5[_0x291651('0x9')]=[{'all':!![]}]),db['JscriptySessionReport'][_0x291651('0x26')](_0xcc9cc5);})[_0x1c396c('0xc')](function(_0x4269d2){const _0x7a1813=_0x1c396c;return _0x38ac95[_0x7a1813('0x8')]=_0x4269d2,_0x38ac95;})['then'](respondWithFilteredResult(_0x3a341b,_0xcc9cc5))['catch'](handleError(_0x3a341b,null));},exports[_0x458adf('0x14')]=function(_0x56f6e4,_0x412109){const _0x33a517=_0x458adf;let _0x33c1ce={'raw':!![],'where':{'id':_0x56f6e4[_0x33a517('0x10')]['id']}};const _0x2853ee={};return _0x2853ee[_0x33a517('0x4')]=_['keys'](db[_0x33a517('0x2c')][_0x33a517('0x36')]),_0x2853ee['query']=_[_0x33a517('0x23')](_0x56f6e4[_0x33a517('0xd')]),_0x2853ee['filters']=_['intersection'](_0x2853ee['model'],_0x2853ee['query']),_0x33c1ce[_0x33a517('0x24')]=_['intersection'](_0x2853ee[_0x33a517('0x4')],qs['fields'](_0x56f6e4[_0x33a517('0xd')][_0x33a517('0x1a')])),_0x33c1ce[_0x33a517('0x24')]=_0x33c1ce['attributes'][_0x33a517('0x5')]?_0x33c1ce[_0x33a517('0x24')]:_0x2853ee['model'],_0x56f6e4[_0x33a517('0xd')]['includeAll']&&(_0x33c1ce[_0x33a517('0x9')]=[{'all':!![]}]),_0x33c1ce=_[_0x33a517('0x2f')]({},_0x33c1ce,_0x56f6e4[_0x33a517('0xe')]),db['JscriptySessionReport'][_0x33a517('0x34')](_0x33c1ce)[_0x33a517('0xc')](handleEntityNotFound(_0x412109,null))[_0x33a517('0xc')](respondWithResult(_0x412109,null))[_0x33a517('0x19')](handleError(_0x412109,null));},exports[_0x458adf('0x2')]=function(_0x204815,_0x301d6a){const _0x109de5=_0x458adf;return db['JscriptySessionReport']['create'](_0x204815['body'],{})[_0x109de5('0xc')](respondWithResult(_0x301d6a,0xc9))[_0x109de5('0x19')](handleError(_0x301d6a,null));},exports[_0x458adf('0x27')]=function(_0x2f888f,_0x5a8158){const _0x1fb996=_0x458adf;return _0x2f888f[_0x1fb996('0xb')]['id']&&delete _0x2f888f[_0x1fb996('0xb')]['id'],db[_0x1fb996('0x2c')]['findOne']({'where':{'id':_0x2f888f['params']['id']}})['then'](handleEntityNotFound(_0x5a8158,null))[_0x1fb996('0xc')](saveUpdates(_0x2f888f[_0x1fb996('0xb')],null))[_0x1fb996('0xc')](respondWithResult(_0x5a8158,null))[_0x1fb996('0x19')](handleError(_0x5a8158,null));},exports[_0x458adf('0x1')]=function(_0x303e57,_0x1d84b3){const _0x13d6ef=_0x458adf;return db[_0x13d6ef('0x2c')]['findOne']({'where':{'id':_0x303e57[_0x13d6ef('0x10')]['id']}})[_0x13d6ef('0xc')](handleEntityNotFound(_0x1d84b3,null))['then'](removeEntity(_0x1d84b3,null))[_0x13d6ef('0x19')](handleError(_0x1d84b3,null));},exports[_0x458adf('0x33')]=function(_0x3ec22d,_0x405f86){const _0x45ffa8=_0x458adf;return db[_0x45ffa8('0x2c')]['describe']()['then'](respondWithResult(_0x405f86,null))[_0x45ffa8('0x19')](handleError(_0x405f86,null));},exports[_0x458adf('0x2d')]=function(_0x323763,_0xc4e87e){const _0x36bcda=_0x458adf;let _0x4b1162={'raw':!![],'where':{}};const _0x215080={},_0x4ad71a={'count':0x0,'rows':[]};return db[_0x36bcda('0x2c')][_0x36bcda('0x34')]({'where':{'id':_0x323763['params']['id']}})[_0x36bcda('0xc')](handleEntityNotFound(_0xc4e87e,null))[_0x36bcda('0xc')](function(_0x22a2e7){const _0x4bc451=_0x36bcda;if(_0x22a2e7)return _0x215080[_0x4bc451('0x4')]=_[_0x4bc451('0x23')](db['JscriptyQuestionReport']['rawAttributes']),_0x215080[_0x4bc451('0xd')]=_[_0x4bc451('0x23')](_0x323763[_0x4bc451('0xd')]),_0x215080[_0x4bc451('0xa')]=_[_0x4bc451('0x3')](_0x215080['model'],_0x215080['query']),_0x4b1162[_0x4bc451('0x24')]=_[_0x4bc451('0x3')](_0x215080[_0x4bc451('0x4')],qs[_0x4bc451('0x1a')](_0x323763[_0x4bc451('0xd')][_0x4bc451('0x1a')])),_0x4b1162[_0x4bc451('0x24')]=_0x4b1162[_0x4bc451('0x24')][_0x4bc451('0x5')]?_0x4b1162[_0x4bc451('0x24')]:_0x215080[_0x4bc451('0x4')],typeof _0x323763[_0x4bc451('0xd')][_0x4bc451('0x1b')]===_0x4bc451('0x2e')&&(_0x4b1162[_0x4bc451('0x21')]=qs[_0x4bc451('0x21')](_0x323763[_0x4bc451('0xd')]['limit']),_0x4b1162[_0x4bc451('0x7')]=qs[_0x4bc451('0x7')](_0x323763[_0x4bc451('0xd')][_0x4bc451('0x7')])),_0x4b1162[_0x4bc451('0x11')]=qs['sort'](_0x323763[_0x4bc451('0xd')][_0x4bc451('0x1d')]),_0x4b1162[_0x4bc451('0x31')]=qs[_0x4bc451('0xa')](_[_0x4bc451('0x1c')](_0x323763[_0x4bc451('0xd')],_0x215080[_0x4bc451('0xa')])),_0x4b1162[_0x4bc451('0x31')][_0x4bc451('0x13')]=_0x22a2e7['id'],_0x323763['query'][_0x4bc451('0x17')]&&(_0x4b1162[_0x4bc451('0x31')]=_['merge'](_0x4b1162['where'],{[Op['or']]:_[_0x4bc451('0x30')](_0x4b1162['attributes'],function(_0xd71035){const _0xa4b35f=_0x4bc451,_0x279dec={};return _0x279dec[_0xd71035]={[Op['like']]:'%'+_0x323763[_0xa4b35f('0xd')][_0xa4b35f('0x17')]+'%'},_0x279dec;})})),_0x4b1162=_[_0x4bc451('0x2f')]({},_0x4b1162,_0x323763[_0x4bc451('0xe')]),db[_0x4bc451('0x15')][_0x4bc451('0x32')]({'where':_0x4b1162[_0x4bc451('0x31')]})[_0x4bc451('0xc')](function(_0x2b846a){const _0xdfc885=_0x4bc451;return _0x4ad71a['count']=_0x2b846a,_0x323763[_0xdfc885('0xd')][_0xdfc885('0x16')]&&(_0x4b1162[_0xdfc885('0x9')]=[{'all':!![]}]),db['JscriptyQuestionReport'][_0xdfc885('0x26')](_0x4b1162);})[_0x4bc451('0xc')](function(_0x23e56d){return _0x4ad71a['rows']=_0x23e56d,_0x4ad71a;});})[_0x36bcda('0xc')](respondWithFilteredResult(_0xc4e87e,_0x4b1162))['catch'](handleError(_0xc4e87e,null));};
\ No newline at end of file