Built motion from commit f738f9592c388b9f9eb3948f400a5c9d717a3561. Version 3.0.0...
[motion-next.git] / server / api / jscriptySessionReport / jscriptySessionReport.controller.js
index a9f8d50..d3a158c 100644 (file)
@@ -1 +1 @@
-const a465_0x289b=['offset','filters','JscriptyQuestionReport','options','index','create','model','where','pick','length','status','end','like','describe','nolimit','update','key','merge','VIRTUAL','limit','order','include','fields','json','JscriptySessionReport','intersection','catch','send','destroy','../../config/logger','stack','query','rawAttributes','sendStatus','api','SessionId','map','set','undefined','name','fieldName','filter','findOne','rows','params','type','then','findAll','show','sort','body','attributes','keys','includeAll','lodash','Content-Range','sequelize','count','../../mysqldb'];(function(_0x301872,_0x3d1253){const _0x289bc8=function(_0x39900a){while(--_0x39900a){_0x301872['push'](_0x301872['shift']());}};_0x289bc8(++_0x3d1253);}(a465_0x289b,0x1b1));const a465_0x3990=function(_0x301872,_0x3d1253){_0x301872=_0x301872-0x70;let _0x289bc8=a465_0x289b[_0x301872];return _0x289bc8;};const a465_0x5806ad=a465_0x3990;'use strict';const _=require(a465_0x5806ad(0x92)),qs=require('../../components/parsers/qs'),logger=require(a465_0x5806ad(0x79))(a465_0x5806ad(0x7e)),{db}=require(a465_0x5806ad(0x96)),{Op}=require(a465_0x5806ad(0x94));function respondWithResult(_0x33609a,_0x2ed6fb){return _0x2ed6fb=_0x2ed6fb||0xc8,function(_0x4a85bc){const _0x505fe6=a465_0x3990;if(_0x4a85bc)return _0x33609a['status'](_0x2ed6fb)[_0x505fe6(0x73)](_0x4a85bc);};}function respondWithFilteredResult(_0x1fcf80,_0x6b1f5a){return function(_0x27e2da){const _0x364715=a465_0x3990;if(_0x27e2da){const _0x1b0f9c=_0x27e2da['count'],_0x174316=_0x6b1f5a[_0x364715(0x97)];let _0x393055=_0x6b1f5a[_0x364715(0x97)]+_0x6b1f5a[_0x364715(0xaa)],_0x51ec9a;return _0x393055>=_0x1b0f9c?(_0x393055=_0x1b0f9c,_0x51ec9a=0xc8):_0x51ec9a=0xce,_0x1fcf80['status'](_0x51ec9a),_0x1fcf80[_0x364715(0x81)](_0x364715(0x93),_0x174316+'-'+_0x393055+'/'+_0x1b0f9c)[_0x364715(0x73)](_0x27e2da);}return null;};}function saveUpdates(_0x234693){return function(_0xbc2416){const _0x3acc57=a465_0x3990;if(_0xbc2416)return _0xbc2416[_0x3acc57(0xa6)](_0x234693)[_0x3acc57(0x8a)](function(_0x415767){return _0x415767;});return null;};}function removeEntity(_0xc8e0ae){return function(_0x150774){const _0x3bfb78=a465_0x3990;if(_0x150774)return _0x150774[_0x3bfb78(0x78)]()[_0x3bfb78(0x8a)](function(){const _0x136ee4=_0x3bfb78;_0xc8e0ae[_0x136ee4(0xa1)](0xcc)[_0x136ee4(0xa2)]();});};}function handleEntityNotFound(_0x38a7b4){return function(_0x14e6b4){const _0x5059e0=a465_0x3990;return!_0x14e6b4&&_0x38a7b4[_0x5059e0(0x7d)](0x194),_0x14e6b4;};}function handleError(_0xa8e3a6,_0xc13e3d){return _0xc13e3d=_0xc13e3d||0x1f4,function(_0x5017f4){const _0x4183d2=a465_0x3990;logger['error'](_0x5017f4[_0x4183d2(0x7a)]),_0x5017f4['name']&&delete _0x5017f4[_0x4183d2(0x83)],_0xa8e3a6[_0x4183d2(0xa1)](_0xc13e3d)[_0x4183d2(0x77)](_0x5017f4);};}exports[a465_0x5806ad(0x9b)]=function(_0xb97561,_0x5d66b9){const _0x1ed21c=a465_0x5806ad;let _0x42f255={};const _0xae1e2e={},_0x5b2ba1={'count':0x0,'rows':[]},_0x23ebd2=_[_0x1ed21c(0x80)](db[_0x1ed21c(0x74)][_0x1ed21c(0x7c)],function(_0x5f1323){const _0x3e29ef=_0x1ed21c;return{'name':_0x5f1323[_0x3e29ef(0x84)],'type':_0x5f1323['type'][_0x3e29ef(0xa7)]};});_0xae1e2e['model']=_[_0x1ed21c(0x80)](_0x23ebd2,_0x1ed21c(0x83)),_0xae1e2e[_0x1ed21c(0x7b)]=_[_0x1ed21c(0x90)](_0xb97561[_0x1ed21c(0x7b)]),_0xae1e2e[_0x1ed21c(0x98)]=_[_0x1ed21c(0x75)](_0xae1e2e[_0x1ed21c(0x9d)],_0xae1e2e['query']),_0x42f255[_0x1ed21c(0x8f)]=_['intersection'](_0xae1e2e[_0x1ed21c(0x9d)],qs[_0x1ed21c(0x72)](_0xb97561[_0x1ed21c(0x7b)][_0x1ed21c(0x72)])),_0x42f255[_0x1ed21c(0x8f)]=_0x42f255['attributes']['length']?_0x42f255[_0x1ed21c(0x8f)]:_0xae1e2e[_0x1ed21c(0x9d)];typeof _0xb97561[_0x1ed21c(0x7b)][_0x1ed21c(0xa5)]===_0x1ed21c(0x82)&&(_0x42f255['limit']=qs['limit'](_0xb97561[_0x1ed21c(0x7b)][_0x1ed21c(0xaa)]),_0x42f255[_0x1ed21c(0x97)]=qs['offset'](_0xb97561[_0x1ed21c(0x7b)][_0x1ed21c(0x97)]));_0x42f255[_0x1ed21c(0x70)]=qs[_0x1ed21c(0x8d)](_0xb97561[_0x1ed21c(0x7b)]['sort']),_0x42f255[_0x1ed21c(0x9e)]=qs[_0x1ed21c(0x98)](_[_0x1ed21c(0x9f)](_0xb97561[_0x1ed21c(0x7b)],_0xae1e2e['filters']),_0x23ebd2);_0xb97561[_0x1ed21c(0x7b)]['filter']&&(_0x42f255[_0x1ed21c(0x9e)]=_[_0x1ed21c(0xa8)](_0x42f255['where'],{[Op['or']]:_[_0x1ed21c(0x80)](_0x23ebd2,function(_0x3eb3c6){const _0xa503ea=_0x1ed21c;if(_0x3eb3c6[_0xa503ea(0x89)]!==_0xa503ea(0xa9)){const _0x5a5155={};return _0x5a5155[_0x3eb3c6[_0xa503ea(0x83)]]={[Op['like']]:'%'+_0xb97561[_0xa503ea(0x7b)][_0xa503ea(0x85)]+'%'},_0x5a5155;}})}));_0x42f255=_[_0x1ed21c(0xa8)]({},_0x42f255,_0xb97561[_0x1ed21c(0x9a)]);const _0x91cbfa={'where':_0x42f255['where']};return db[_0x1ed21c(0x74)]['count'](_0x91cbfa)[_0x1ed21c(0x8a)](function(_0x4d3b89){const _0x55d74a=_0x1ed21c;return _0x5b2ba1['count']=_0x4d3b89,_0xb97561['query'][_0x55d74a(0x91)]&&(_0x42f255['include']=[{'all':!![]}]),db[_0x55d74a(0x74)][_0x55d74a(0x8b)](_0x42f255);})[_0x1ed21c(0x8a)](function(_0xc77516){const _0x3a3c94=_0x1ed21c;return _0x5b2ba1[_0x3a3c94(0x87)]=_0xc77516,_0x5b2ba1;})[_0x1ed21c(0x8a)](respondWithFilteredResult(_0x5d66b9,_0x42f255))[_0x1ed21c(0x76)](handleError(_0x5d66b9,null));},exports[a465_0x5806ad(0x8c)]=function(_0x480775,_0x4b0e4d){const _0x46840b=a465_0x5806ad;let _0x3e67a9={'raw':!![],'where':{'id':_0x480775[_0x46840b(0x88)]['id']}};const _0x225adb={};return _0x225adb[_0x46840b(0x9d)]=_[_0x46840b(0x90)](db['JscriptySessionReport'][_0x46840b(0x7c)]),_0x225adb['query']=_[_0x46840b(0x90)](_0x480775['query']),_0x225adb[_0x46840b(0x98)]=_['intersection'](_0x225adb[_0x46840b(0x9d)],_0x225adb[_0x46840b(0x7b)]),_0x3e67a9['attributes']=_['intersection'](_0x225adb[_0x46840b(0x9d)],qs[_0x46840b(0x72)](_0x480775['query'][_0x46840b(0x72)])),_0x3e67a9['attributes']=_0x3e67a9[_0x46840b(0x8f)][_0x46840b(0xa0)]?_0x3e67a9[_0x46840b(0x8f)]:_0x225adb[_0x46840b(0x9d)],_0x480775['query'][_0x46840b(0x91)]&&(_0x3e67a9[_0x46840b(0x71)]=[{'all':!![]}]),_0x3e67a9=_[_0x46840b(0xa8)]({},_0x3e67a9,_0x480775['options']),db['JscriptySessionReport'][_0x46840b(0x86)](_0x3e67a9)[_0x46840b(0x8a)](handleEntityNotFound(_0x4b0e4d,null))['then'](respondWithResult(_0x4b0e4d,null))[_0x46840b(0x76)](handleError(_0x4b0e4d,null));},exports[a465_0x5806ad(0x9c)]=function(_0x4da04c,_0x36c0be){const _0x42612d=a465_0x5806ad;return db[_0x42612d(0x74)][_0x42612d(0x9c)](_0x4da04c[_0x42612d(0x8e)],{})['then'](respondWithResult(_0x36c0be,0xc9))[_0x42612d(0x76)](handleError(_0x36c0be,null));},exports[a465_0x5806ad(0xa6)]=function(_0x20f7d5,_0x8bcbe2){const _0x44ef6b=a465_0x5806ad;return _0x20f7d5[_0x44ef6b(0x8e)]['id']&&delete _0x20f7d5[_0x44ef6b(0x8e)]['id'],db[_0x44ef6b(0x74)][_0x44ef6b(0x86)]({'where':{'id':_0x20f7d5[_0x44ef6b(0x88)]['id']}})[_0x44ef6b(0x8a)](handleEntityNotFound(_0x8bcbe2,null))[_0x44ef6b(0x8a)](saveUpdates(_0x20f7d5['body'],null))['then'](respondWithResult(_0x8bcbe2,null))[_0x44ef6b(0x76)](handleError(_0x8bcbe2,null));},exports[a465_0x5806ad(0x78)]=function(_0x5dbdea,_0x338b39){const _0x1b5de7=a465_0x5806ad;return db[_0x1b5de7(0x74)][_0x1b5de7(0x86)]({'where':{'id':_0x5dbdea[_0x1b5de7(0x88)]['id']}})['then'](handleEntityNotFound(_0x338b39,null))[_0x1b5de7(0x8a)](removeEntity(_0x338b39,null))[_0x1b5de7(0x76)](handleError(_0x338b39,null));},exports[a465_0x5806ad(0xa4)]=function(_0x1749c1,_0x52159b){const _0xf20f93=a465_0x5806ad;return db[_0xf20f93(0x74)]['describe']()[_0xf20f93(0x8a)](respondWithResult(_0x52159b,null))['catch'](handleError(_0x52159b,null));},exports['getQuestions']=function(_0x1de10a,_0x56ef7a){const _0x8a9d8e=a465_0x5806ad;let _0xe35f24={'raw':!![],'where':{}};const _0x1458cb={},_0x530859={'count':0x0,'rows':[]};return db['JscriptySessionReport'][_0x8a9d8e(0x86)]({'where':{'id':_0x1de10a[_0x8a9d8e(0x88)]['id']}})[_0x8a9d8e(0x8a)](handleEntityNotFound(_0x56ef7a,null))[_0x8a9d8e(0x8a)](function(_0x84f86c){const _0x2e3f74=_0x8a9d8e;if(_0x84f86c)return _0x1458cb[_0x2e3f74(0x9d)]=_[_0x2e3f74(0x90)](db[_0x2e3f74(0x99)]['rawAttributes']),_0x1458cb[_0x2e3f74(0x7b)]=_['keys'](_0x1de10a[_0x2e3f74(0x7b)]),_0x1458cb[_0x2e3f74(0x98)]=_[_0x2e3f74(0x75)](_0x1458cb[_0x2e3f74(0x9d)],_0x1458cb[_0x2e3f74(0x7b)]),_0xe35f24[_0x2e3f74(0x8f)]=_['intersection'](_0x1458cb[_0x2e3f74(0x9d)],qs[_0x2e3f74(0x72)](_0x1de10a['query'][_0x2e3f74(0x72)])),_0xe35f24[_0x2e3f74(0x8f)]=_0xe35f24[_0x2e3f74(0x8f)][_0x2e3f74(0xa0)]?_0xe35f24[_0x2e3f74(0x8f)]:_0x1458cb['model'],typeof _0x1de10a[_0x2e3f74(0x7b)][_0x2e3f74(0xa5)]===_0x2e3f74(0x82)&&(_0xe35f24[_0x2e3f74(0xaa)]=qs[_0x2e3f74(0xaa)](_0x1de10a[_0x2e3f74(0x7b)][_0x2e3f74(0xaa)]),_0xe35f24['offset']=qs['offset'](_0x1de10a['query'][_0x2e3f74(0x97)])),_0xe35f24['order']=qs[_0x2e3f74(0x8d)](_0x1de10a[_0x2e3f74(0x7b)]['sort']),_0xe35f24['where']=qs[_0x2e3f74(0x98)](_[_0x2e3f74(0x9f)](_0x1de10a[_0x2e3f74(0x7b)],_0x1458cb[_0x2e3f74(0x98)])),_0xe35f24[_0x2e3f74(0x9e)][_0x2e3f74(0x7f)]=_0x84f86c['id'],_0x1de10a['query'][_0x2e3f74(0x85)]&&(_0xe35f24[_0x2e3f74(0x9e)]=_[_0x2e3f74(0xa8)](_0xe35f24[_0x2e3f74(0x9e)],{[Op['or']]:_[_0x2e3f74(0x80)](_0xe35f24['attributes'],function(_0x4541bb){const _0x149a71=_0x2e3f74,_0x5dc2e7={};return _0x5dc2e7[_0x4541bb]={[Op[_0x149a71(0xa3)]]:'%'+_0x1de10a[_0x149a71(0x7b)][_0x149a71(0x85)]+'%'},_0x5dc2e7;})})),_0xe35f24=_[_0x2e3f74(0xa8)]({},_0xe35f24,_0x1de10a['options']),db[_0x2e3f74(0x99)][_0x2e3f74(0x95)]({'where':_0xe35f24[_0x2e3f74(0x9e)]})[_0x2e3f74(0x8a)](function(_0x4848c1){const _0x537b99=_0x2e3f74;return _0x530859[_0x537b99(0x95)]=_0x4848c1,_0x1de10a['query'][_0x537b99(0x91)]&&(_0xe35f24[_0x537b99(0x71)]=[{'all':!![]}]),db[_0x537b99(0x99)][_0x537b99(0x8b)](_0xe35f24);})[_0x2e3f74(0x8a)](function(_0x3578d8){const _0x3e15f5=_0x2e3f74;return _0x530859[_0x3e15f5(0x87)]=_0x3578d8,_0x530859;});})[_0x8a9d8e(0x8a)](respondWithFilteredResult(_0x56ef7a,_0xe35f24))[_0x8a9d8e(0x76)](handleError(_0x56ef7a,null));};
\ No newline at end of file
+const a465_0x1058=['where','show','fields','JscriptyQuestionReport','length','findOne','json','sort','create','sequelize','query','lodash','end','intersection','attributes','set','findAll','undefined','destroy','catch','params','options','rawAttributes','update','pick','status','type','includeAll','key','sendStatus','fieldName','body','map','stack','SessionId','model','rows','JscriptySessionReport','describe','offset','name','filter','order','merge','send','../../components/parsers/qs','../../mysqldb','../../config/logger','Content-Range','limit','index','keys','filters','nolimit','then','count','api','VIRTUAL','include','like'];(function(_0x308e7a,_0x366e69){const _0x10587b=function(_0x5a2af3){while(--_0x5a2af3){_0x308e7a['push'](_0x308e7a['shift']());}};_0x10587b(++_0x366e69);}(a465_0x1058,0x1b3));const a465_0x5a2a=function(_0x308e7a,_0x366e69){_0x308e7a=_0x308e7a-0xd6;let _0x10587b=a465_0x1058[_0x308e7a];return _0x10587b;};const a465_0x40b2e4=a465_0x5a2a;'use strict';const _=require(a465_0x40b2e4(0x10e)),qs=require(a465_0x40b2e4(0xf4)),logger=require(a465_0x40b2e4(0xf6))(a465_0x40b2e4(0xff)),{db}=require(a465_0x40b2e4(0xf5)),{Op}=require(a465_0x40b2e4(0x10c));function respondWithResult(_0x5ec702,_0x4e6716){return _0x4e6716=_0x4e6716||0xc8,function(_0x51f866){const _0x2510b3=a465_0x5a2a;if(_0x51f866)return _0x5ec702[_0x2510b3(0xe0)](_0x4e6716)[_0x2510b3(0x109)](_0x51f866);};}function respondWithFilteredResult(_0x5a0738,_0x527661){return function(_0x35c585){const _0xa597cc=a465_0x5a2a;if(_0x35c585){const _0x2e551c=_0x35c585[_0xa597cc(0xfe)],_0x34615c=_0x527661[_0xa597cc(0xee)];let _0x2904e7=_0x527661[_0xa597cc(0xee)]+_0x527661['limit'],_0x2eeefa;return _0x2904e7>=_0x2e551c?(_0x2904e7=_0x2e551c,_0x2eeefa=0xc8):_0x2eeefa=0xce,_0x5a0738[_0xa597cc(0xe0)](_0x2eeefa),_0x5a0738[_0xa597cc(0xd6)](_0xa597cc(0xf7),_0x34615c+'-'+_0x2904e7+'/'+_0x2e551c)[_0xa597cc(0x109)](_0x35c585);}return null;};}function saveUpdates(_0x2f0ebe){return function(_0x1d52ce){if(_0x1d52ce)return _0x1d52ce['update'](_0x2f0ebe)['then'](function(_0x4bfdc7){return _0x4bfdc7;});return null;};}function removeEntity(_0x387399){return function(_0x4d4c68){const _0x553160=a465_0x5a2a;if(_0x4d4c68)return _0x4d4c68[_0x553160(0xd9)]()[_0x553160(0xfd)](function(){const _0x23ec69=_0x553160;_0x387399['status'](0xcc)[_0x23ec69(0x10f)]();});};}function handleEntityNotFound(_0x102e5e){return function(_0x4ab125){const _0xb89416=a465_0x5a2a;return!_0x4ab125&&_0x102e5e[_0xb89416(0xe4)](0x194),_0x4ab125;};}function handleError(_0x2b6ce9,_0x5090bd){return _0x5090bd=_0x5090bd||0x1f4,function(_0x368652){const _0x194eca=a465_0x5a2a;logger['error'](_0x368652[_0x194eca(0xe8)]),_0x368652[_0x194eca(0xef)]&&delete _0x368652[_0x194eca(0xef)],_0x2b6ce9['status'](_0x5090bd)[_0x194eca(0xf3)](_0x368652);};}exports[a465_0x40b2e4(0xf9)]=function(_0x1e2d20,_0x42ad5d){const _0x208e54=a465_0x40b2e4;let _0x371a6a={};const _0x53a567={},_0x5d9fa3={'count':0x0,'rows':[]},_0x9f182f=_[_0x208e54(0xe7)](db[_0x208e54(0xec)][_0x208e54(0xdd)],function(_0x54192f){const _0x53b038=_0x208e54;return{'name':_0x54192f[_0x53b038(0xe5)],'type':_0x54192f['type'][_0x53b038(0xe3)]};});_0x53a567[_0x208e54(0xea)]=_['map'](_0x9f182f,_0x208e54(0xef)),_0x53a567[_0x208e54(0x10d)]=_['keys'](_0x1e2d20[_0x208e54(0x10d)]),_0x53a567[_0x208e54(0xfb)]=_['intersection'](_0x53a567['model'],_0x53a567[_0x208e54(0x10d)]),_0x371a6a[_0x208e54(0x111)]=_['intersection'](_0x53a567[_0x208e54(0xea)],qs['fields'](_0x1e2d20[_0x208e54(0x10d)][_0x208e54(0x105)])),_0x371a6a['attributes']=_0x371a6a[_0x208e54(0x111)]['length']?_0x371a6a[_0x208e54(0x111)]:_0x53a567[_0x208e54(0xea)];typeof _0x1e2d20[_0x208e54(0x10d)][_0x208e54(0xfc)]===_0x208e54(0xd8)&&(_0x371a6a['limit']=qs[_0x208e54(0xf8)](_0x1e2d20[_0x208e54(0x10d)][_0x208e54(0xf8)]),_0x371a6a[_0x208e54(0xee)]=qs[_0x208e54(0xee)](_0x1e2d20[_0x208e54(0x10d)]['offset']));_0x371a6a[_0x208e54(0xf1)]=qs[_0x208e54(0x10a)](_0x1e2d20[_0x208e54(0x10d)][_0x208e54(0x10a)]),_0x371a6a[_0x208e54(0x103)]=qs['filters'](_[_0x208e54(0xdf)](_0x1e2d20[_0x208e54(0x10d)],_0x53a567['filters']),_0x9f182f);_0x1e2d20[_0x208e54(0x10d)][_0x208e54(0xf0)]&&(_0x371a6a[_0x208e54(0x103)]=_[_0x208e54(0xf2)](_0x371a6a[_0x208e54(0x103)],{[Op['or']]:_[_0x208e54(0xe7)](_0x9f182f,function(_0x3f1fef){const _0xec7361=_0x208e54;if(_0x3f1fef[_0xec7361(0xe1)]!==_0xec7361(0x100)){const _0x34aedf={};return _0x34aedf[_0x3f1fef[_0xec7361(0xef)]]={[Op[_0xec7361(0x102)]]:'%'+_0x1e2d20[_0xec7361(0x10d)]['filter']+'%'},_0x34aedf;}})}));_0x371a6a=_[_0x208e54(0xf2)]({},_0x371a6a,_0x1e2d20[_0x208e54(0xdc)]);const _0x1a7b0c={'where':_0x371a6a['where']};return db[_0x208e54(0xec)][_0x208e54(0xfe)](_0x1a7b0c)['then'](function(_0x1cf482){const _0x397931=_0x208e54;return _0x5d9fa3['count']=_0x1cf482,_0x1e2d20[_0x397931(0x10d)][_0x397931(0xe2)]&&(_0x371a6a[_0x397931(0x101)]=[{'all':!![]}]),db[_0x397931(0xec)]['findAll'](_0x371a6a);})[_0x208e54(0xfd)](function(_0x152c89){const _0x9704a4=_0x208e54;return _0x5d9fa3[_0x9704a4(0xeb)]=_0x152c89,_0x5d9fa3;})[_0x208e54(0xfd)](respondWithFilteredResult(_0x42ad5d,_0x371a6a))['catch'](handleError(_0x42ad5d,null));},exports[a465_0x40b2e4(0x104)]=function(_0x181f83,_0x54782a){const _0x3c1b97=a465_0x40b2e4;let _0x2127dc={'raw':!![],'where':{'id':_0x181f83[_0x3c1b97(0xdb)]['id']}};const _0x426357={};return _0x426357[_0x3c1b97(0xea)]=_['keys'](db[_0x3c1b97(0xec)][_0x3c1b97(0xdd)]),_0x426357[_0x3c1b97(0x10d)]=_[_0x3c1b97(0xfa)](_0x181f83[_0x3c1b97(0x10d)]),_0x426357[_0x3c1b97(0xfb)]=_[_0x3c1b97(0x110)](_0x426357[_0x3c1b97(0xea)],_0x426357[_0x3c1b97(0x10d)]),_0x2127dc[_0x3c1b97(0x111)]=_[_0x3c1b97(0x110)](_0x426357['model'],qs[_0x3c1b97(0x105)](_0x181f83[_0x3c1b97(0x10d)][_0x3c1b97(0x105)])),_0x2127dc[_0x3c1b97(0x111)]=_0x2127dc['attributes'][_0x3c1b97(0x107)]?_0x2127dc[_0x3c1b97(0x111)]:_0x426357[_0x3c1b97(0xea)],_0x181f83[_0x3c1b97(0x10d)][_0x3c1b97(0xe2)]&&(_0x2127dc['include']=[{'all':!![]}]),_0x2127dc=_[_0x3c1b97(0xf2)]({},_0x2127dc,_0x181f83[_0x3c1b97(0xdc)]),db['JscriptySessionReport'][_0x3c1b97(0x108)](_0x2127dc)[_0x3c1b97(0xfd)](handleEntityNotFound(_0x54782a,null))[_0x3c1b97(0xfd)](respondWithResult(_0x54782a,null))[_0x3c1b97(0xda)](handleError(_0x54782a,null));},exports[a465_0x40b2e4(0x10b)]=function(_0x3a2403,_0x3ba8ba){const _0x2f3ab3=a465_0x40b2e4;return db[_0x2f3ab3(0xec)]['create'](_0x3a2403[_0x2f3ab3(0xe6)],{})[_0x2f3ab3(0xfd)](respondWithResult(_0x3ba8ba,0xc9))[_0x2f3ab3(0xda)](handleError(_0x3ba8ba,null));},exports[a465_0x40b2e4(0xde)]=function(_0x3a3ce1,_0x17387e){const _0x3879c6=a465_0x40b2e4;return _0x3a3ce1[_0x3879c6(0xe6)]['id']&&delete _0x3a3ce1[_0x3879c6(0xe6)]['id'],db[_0x3879c6(0xec)]['findOne']({'where':{'id':_0x3a3ce1['params']['id']}})[_0x3879c6(0xfd)](handleEntityNotFound(_0x17387e,null))['then'](saveUpdates(_0x3a3ce1[_0x3879c6(0xe6)],null))[_0x3879c6(0xfd)](respondWithResult(_0x17387e,null))[_0x3879c6(0xda)](handleError(_0x17387e,null));},exports[a465_0x40b2e4(0xd9)]=function(_0x336a6c,_0x2b3e7b){const _0x2a08ac=a465_0x40b2e4;return db[_0x2a08ac(0xec)][_0x2a08ac(0x108)]({'where':{'id':_0x336a6c['params']['id']}})[_0x2a08ac(0xfd)](handleEntityNotFound(_0x2b3e7b,null))[_0x2a08ac(0xfd)](removeEntity(_0x2b3e7b,null))[_0x2a08ac(0xda)](handleError(_0x2b3e7b,null));},exports[a465_0x40b2e4(0xed)]=function(_0x174a27,_0x559a4a){const _0x2d670a=a465_0x40b2e4;return db[_0x2d670a(0xec)]['describe']()[_0x2d670a(0xfd)](respondWithResult(_0x559a4a,null))[_0x2d670a(0xda)](handleError(_0x559a4a,null));},exports['getQuestions']=function(_0x1e6fcf,_0xefbecb){const _0x1b23cd=a465_0x40b2e4;let _0x5bc2ca={'raw':!![],'where':{}};const _0x8904da={},_0x49ad48={'count':0x0,'rows':[]};return db[_0x1b23cd(0xec)][_0x1b23cd(0x108)]({'where':{'id':_0x1e6fcf['params']['id']}})[_0x1b23cd(0xfd)](handleEntityNotFound(_0xefbecb,null))[_0x1b23cd(0xfd)](function(_0x41f372){const _0xfc509e=_0x1b23cd;if(_0x41f372)return _0x8904da[_0xfc509e(0xea)]=_['keys'](db[_0xfc509e(0x106)][_0xfc509e(0xdd)]),_0x8904da[_0xfc509e(0x10d)]=_[_0xfc509e(0xfa)](_0x1e6fcf[_0xfc509e(0x10d)]),_0x8904da['filters']=_['intersection'](_0x8904da[_0xfc509e(0xea)],_0x8904da[_0xfc509e(0x10d)]),_0x5bc2ca[_0xfc509e(0x111)]=_[_0xfc509e(0x110)](_0x8904da[_0xfc509e(0xea)],qs[_0xfc509e(0x105)](_0x1e6fcf[_0xfc509e(0x10d)]['fields'])),_0x5bc2ca[_0xfc509e(0x111)]=_0x5bc2ca[_0xfc509e(0x111)][_0xfc509e(0x107)]?_0x5bc2ca[_0xfc509e(0x111)]:_0x8904da[_0xfc509e(0xea)],typeof _0x1e6fcf[_0xfc509e(0x10d)][_0xfc509e(0xfc)]===_0xfc509e(0xd8)&&(_0x5bc2ca[_0xfc509e(0xf8)]=qs['limit'](_0x1e6fcf['query'][_0xfc509e(0xf8)]),_0x5bc2ca[_0xfc509e(0xee)]=qs[_0xfc509e(0xee)](_0x1e6fcf[_0xfc509e(0x10d)][_0xfc509e(0xee)])),_0x5bc2ca['order']=qs[_0xfc509e(0x10a)](_0x1e6fcf[_0xfc509e(0x10d)][_0xfc509e(0x10a)]),_0x5bc2ca[_0xfc509e(0x103)]=qs['filters'](_[_0xfc509e(0xdf)](_0x1e6fcf['query'],_0x8904da[_0xfc509e(0xfb)])),_0x5bc2ca[_0xfc509e(0x103)][_0xfc509e(0xe9)]=_0x41f372['id'],_0x1e6fcf[_0xfc509e(0x10d)][_0xfc509e(0xf0)]&&(_0x5bc2ca[_0xfc509e(0x103)]=_[_0xfc509e(0xf2)](_0x5bc2ca['where'],{[Op['or']]:_[_0xfc509e(0xe7)](_0x5bc2ca[_0xfc509e(0x111)],function(_0x5aa4a0){const _0x1f7027=_0xfc509e,_0x1d0ce5={};return _0x1d0ce5[_0x5aa4a0]={[Op[_0x1f7027(0x102)]]:'%'+_0x1e6fcf[_0x1f7027(0x10d)][_0x1f7027(0xf0)]+'%'},_0x1d0ce5;})})),_0x5bc2ca=_['merge']({},_0x5bc2ca,_0x1e6fcf[_0xfc509e(0xdc)]),db[_0xfc509e(0x106)][_0xfc509e(0xfe)]({'where':_0x5bc2ca[_0xfc509e(0x103)]})['then'](function(_0x2c9297){const _0x30c033=_0xfc509e;return _0x49ad48[_0x30c033(0xfe)]=_0x2c9297,_0x1e6fcf[_0x30c033(0x10d)][_0x30c033(0xe2)]&&(_0x5bc2ca[_0x30c033(0x101)]=[{'all':!![]}]),db[_0x30c033(0x106)][_0x30c033(0xd7)](_0x5bc2ca);})[_0xfc509e(0xfd)](function(_0x3349e7){const _0xbc5ccc=_0xfc509e;return _0x49ad48[_0xbc5ccc(0xeb)]=_0x3349e7,_0x49ad48;});})[_0x1b23cd(0xfd)](respondWithFilteredResult(_0xefbecb,_0x5bc2ca))[_0x1b23cd(0xda)](handleError(_0xefbecb,null));};
\ No newline at end of file