Built motion from commit 709aa6fb5ed03aa61bc373fcdbf622215d37d30b. Version 3.0.0...
[motion-next.git] / server / api / jscriptySessionReport / jscriptySessionReport.controller.js
index 68d021b..359a39d 100644 (file)
@@ -1 +1 @@
-const a386_0x5272=['nolimit','JscriptyQuestionReport','body','filter','destroy','index','status','includeAll','../../mysqldb','rawAttributes','sequelize','count','JscriptySessionReport','rows','name','offset','fieldName','length','type','sendStatus','pick','set','query','Content-Range','key','order','model','getQuestions','send','undefined','like','findOne','fields','sort','findAll','params','include','where','then','json','lodash','keys','VIRTUAL','filters','map','error','limit','catch','end','create','update','show','describe','options','merge','intersection','attributes'];(function(_0x388701,_0x52725e){const _0x51675c=function(_0x435a8e){while(--_0x435a8e){_0x388701['push'](_0x388701['shift']());}};_0x51675c(++_0x52725e);}(a386_0x5272,0x1c4));const a386_0x5167=function(_0x388701,_0x52725e){_0x388701=_0x388701-0x0;let _0x51675c=a386_0x5272[_0x388701];return _0x51675c;};const _0x1e2f9e=a386_0x5167;'use strict';const _=require(_0x1e2f9e('0x2c')),qs=require('../../components/parsers/qs'),logger=require('../../config/logger')('api'),db=require(_0x1e2f9e('0xc'))['db'],{Op}=require(_0x1e2f9e('0xe'));function respondWithResult(_0x435a8e,_0x3d8d9b){return _0x3d8d9b=_0x3d8d9b||0xc8,function(_0x1563fa){const _0x113cce=a386_0x5167;if(_0x1563fa)return _0x435a8e[_0x113cce('0xa')](_0x3d8d9b)[_0x113cce('0x2b')](_0x1563fa);};}function respondWithFilteredResult(_0x314b3a,_0xe98c9b){return function(_0x14f5e7){const _0x54d713=a386_0x5167;if(_0x14f5e7){const _0x3ee48a=_0x14f5e7[_0x54d713('0xf')],_0x507cd6=_0xe98c9b[_0x54d713('0x13')];let _0x40d674=_0xe98c9b[_0x54d713('0x13')]+_0xe98c9b[_0x54d713('0x32')],_0x4d1cd0;return _0x40d674>=_0x3ee48a?(_0x40d674=_0x3ee48a,_0x4d1cd0=0xc8):_0x4d1cd0=0xce,_0x314b3a[_0x54d713('0xa')](_0x4d1cd0),_0x314b3a[_0x54d713('0x19')](_0x54d713('0x1b'),_0x507cd6+'-'+_0x40d674+'/'+_0x3ee48a)[_0x54d713('0x2b')](_0x14f5e7);}return null;};}function saveUpdates(_0x20b425){return function(_0x204b01){const _0x6ac335=a386_0x5167;if(_0x204b01)return _0x204b01[_0x6ac335('0x36')](_0x20b425)[_0x6ac335('0x2a')](function(_0x5f1052){return _0x5f1052;});return null;};}function removeEntity(_0x35372f){return function(_0x121d9a){const _0x719db4=a386_0x5167;if(_0x121d9a)return _0x121d9a[_0x719db4('0x8')]()[_0x719db4('0x2a')](function(){const _0x16828f=_0x719db4;_0x35372f[_0x16828f('0xa')](0xcc)[_0x16828f('0x34')]();});};}function handleEntityNotFound(_0x2548f7){return function(_0x51f442){const _0x387140=a386_0x5167;return!_0x51f442&&_0x2548f7[_0x387140('0x17')](0x194),_0x51f442;};}function handleError(_0x558960,_0xf1a118){return _0xf1a118=_0xf1a118||0x1f4,function(_0x2e5d7e){const _0x5dd124=a386_0x5167;logger[_0x5dd124('0x31')](_0x2e5d7e['stack']),_0x2e5d7e[_0x5dd124('0x12')]&&delete _0x2e5d7e[_0x5dd124('0x12')],_0x558960[_0x5dd124('0xa')](_0xf1a118)[_0x5dd124('0x20')](_0x2e5d7e);};}exports[_0x1e2f9e('0x9')]=function(_0x1ee1b9,_0x458543){const _0x41bc18=_0x1e2f9e;let _0x281b52={};const _0x17713e={},_0x599e46={'count':0x0,'rows':[]},_0xc22f00=_[_0x41bc18('0x30')](db[_0x41bc18('0x10')][_0x41bc18('0xd')],function(_0x1061e6){const _0x184aa7=_0x41bc18;return{'name':_0x1061e6[_0x184aa7('0x14')],'type':_0x1061e6[_0x184aa7('0x16')][_0x184aa7('0x1c')]};});_0x17713e[_0x41bc18('0x1e')]=_[_0x41bc18('0x30')](_0xc22f00,_0x41bc18('0x12')),_0x17713e[_0x41bc18('0x1a')]=_[_0x41bc18('0x2d')](_0x1ee1b9['query']),_0x17713e[_0x41bc18('0x2f')]=_[_0x41bc18('0x2')](_0x17713e[_0x41bc18('0x1e')],_0x17713e[_0x41bc18('0x1a')]),_0x281b52[_0x41bc18('0x3')]=_['intersection'](_0x17713e['model'],qs[_0x41bc18('0x24')](_0x1ee1b9[_0x41bc18('0x1a')][_0x41bc18('0x24')])),_0x281b52['attributes']=_0x281b52['attributes'][_0x41bc18('0x15')]?_0x281b52[_0x41bc18('0x3')]:_0x17713e[_0x41bc18('0x1e')];typeof _0x1ee1b9[_0x41bc18('0x1a')][_0x41bc18('0x4')]==='undefined'&&(_0x281b52['limit']=qs[_0x41bc18('0x32')](_0x1ee1b9['query'][_0x41bc18('0x32')]),_0x281b52['offset']=qs[_0x41bc18('0x13')](_0x1ee1b9[_0x41bc18('0x1a')]['offset']));_0x281b52[_0x41bc18('0x1d')]=qs[_0x41bc18('0x25')](_0x1ee1b9[_0x41bc18('0x1a')][_0x41bc18('0x25')]),_0x281b52[_0x41bc18('0x29')]=qs[_0x41bc18('0x2f')](_[_0x41bc18('0x18')](_0x1ee1b9[_0x41bc18('0x1a')],_0x17713e['filters']),_0xc22f00);_0x1ee1b9[_0x41bc18('0x1a')][_0x41bc18('0x7')]&&(_0x281b52['where']=_[_0x41bc18('0x1')](_0x281b52[_0x41bc18('0x29')],{[Op['or']]:_[_0x41bc18('0x30')](_0xc22f00,function(_0x20e60a){const _0x31de45=_0x41bc18;if(_0x20e60a[_0x31de45('0x16')]!==_0x31de45('0x2e')){const _0x418711={};return _0x418711[_0x20e60a[_0x31de45('0x12')]]={[Op[_0x31de45('0x22')]]:'%'+_0x1ee1b9[_0x31de45('0x1a')][_0x31de45('0x7')]+'%'},_0x418711;}})}));_0x281b52=_[_0x41bc18('0x1')]({},_0x281b52,_0x1ee1b9[_0x41bc18('0x0')]);const _0x429090={'where':_0x281b52['where']};return db[_0x41bc18('0x10')][_0x41bc18('0xf')](_0x429090)[_0x41bc18('0x2a')](function(_0xf7b199){const _0x17e7ae=_0x41bc18;return _0x599e46[_0x17e7ae('0xf')]=_0xf7b199,_0x1ee1b9[_0x17e7ae('0x1a')][_0x17e7ae('0xb')]&&(_0x281b52[_0x17e7ae('0x28')]=[{'all':!![]}]),db['JscriptySessionReport'][_0x17e7ae('0x26')](_0x281b52);})['then'](function(_0x218afe){const _0x34dbc7=_0x41bc18;return _0x599e46[_0x34dbc7('0x11')]=_0x218afe,_0x599e46;})[_0x41bc18('0x2a')](respondWithFilteredResult(_0x458543,_0x281b52))[_0x41bc18('0x33')](handleError(_0x458543,null));},exports[_0x1e2f9e('0x37')]=function(_0x3aec43,_0x3c6c11){const _0x58078e=_0x1e2f9e;let _0x57a247={'raw':!![],'where':{'id':_0x3aec43[_0x58078e('0x27')]['id']}};const _0x1aae2d={};return _0x1aae2d[_0x58078e('0x1e')]=_[_0x58078e('0x2d')](db['JscriptySessionReport'][_0x58078e('0xd')]),_0x1aae2d[_0x58078e('0x1a')]=_[_0x58078e('0x2d')](_0x3aec43['query']),_0x1aae2d['filters']=_[_0x58078e('0x2')](_0x1aae2d[_0x58078e('0x1e')],_0x1aae2d[_0x58078e('0x1a')]),_0x57a247[_0x58078e('0x3')]=_[_0x58078e('0x2')](_0x1aae2d[_0x58078e('0x1e')],qs[_0x58078e('0x24')](_0x3aec43['query'][_0x58078e('0x24')])),_0x57a247[_0x58078e('0x3')]=_0x57a247['attributes'][_0x58078e('0x15')]?_0x57a247[_0x58078e('0x3')]:_0x1aae2d[_0x58078e('0x1e')],_0x3aec43[_0x58078e('0x1a')][_0x58078e('0xb')]&&(_0x57a247[_0x58078e('0x28')]=[{'all':!![]}]),_0x57a247=_['merge']({},_0x57a247,_0x3aec43[_0x58078e('0x0')]),db['JscriptySessionReport'][_0x58078e('0x23')](_0x57a247)['then'](handleEntityNotFound(_0x3c6c11,null))[_0x58078e('0x2a')](respondWithResult(_0x3c6c11,null))['catch'](handleError(_0x3c6c11,null));},exports[_0x1e2f9e('0x35')]=function(_0x3f032a,_0xdfe4ce){const _0xef0cfa=_0x1e2f9e;return db[_0xef0cfa('0x10')][_0xef0cfa('0x35')](_0x3f032a[_0xef0cfa('0x6')],{})[_0xef0cfa('0x2a')](respondWithResult(_0xdfe4ce,0xc9))[_0xef0cfa('0x33')](handleError(_0xdfe4ce,null));},exports[_0x1e2f9e('0x36')]=function(_0x4d62f7,_0x7a157c){const _0x1353cb=_0x1e2f9e;return _0x4d62f7['body']['id']&&delete _0x4d62f7[_0x1353cb('0x6')]['id'],db[_0x1353cb('0x10')]['findOne']({'where':{'id':_0x4d62f7['params']['id']}})[_0x1353cb('0x2a')](handleEntityNotFound(_0x7a157c,null))[_0x1353cb('0x2a')](saveUpdates(_0x4d62f7['body'],null))[_0x1353cb('0x2a')](respondWithResult(_0x7a157c,null))[_0x1353cb('0x33')](handleError(_0x7a157c,null));},exports[_0x1e2f9e('0x8')]=function(_0x2bd071,_0x2872b6){const _0x52a07b=_0x1e2f9e;return db[_0x52a07b('0x10')][_0x52a07b('0x23')]({'where':{'id':_0x2bd071[_0x52a07b('0x27')]['id']}})[_0x52a07b('0x2a')](handleEntityNotFound(_0x2872b6,null))[_0x52a07b('0x2a')](removeEntity(_0x2872b6,null))['catch'](handleError(_0x2872b6,null));},exports['describe']=function(_0x4ce71f,_0x36fa6c){const _0x415d7d=_0x1e2f9e;return db['JscriptySessionReport'][_0x415d7d('0x38')]()[_0x415d7d('0x2a')](respondWithResult(_0x36fa6c,null))[_0x415d7d('0x33')](handleError(_0x36fa6c,null));},exports[_0x1e2f9e('0x1f')]=function(_0x105aa1,_0xf23ae8){const _0x25cb35=_0x1e2f9e;let _0x4553a3={'raw':!![],'where':{}};const _0x2c1562={},_0x1c4a4a={'count':0x0,'rows':[]};return db['JscriptySessionReport'][_0x25cb35('0x23')]({'where':{'id':_0x105aa1[_0x25cb35('0x27')]['id']}})[_0x25cb35('0x2a')](handleEntityNotFound(_0xf23ae8,null))[_0x25cb35('0x2a')](function(_0x30e77){const _0x430a65=_0x25cb35;if(_0x30e77)return _0x2c1562[_0x430a65('0x1e')]=_[_0x430a65('0x2d')](db[_0x430a65('0x5')][_0x430a65('0xd')]),_0x2c1562['query']=_[_0x430a65('0x2d')](_0x105aa1[_0x430a65('0x1a')]),_0x2c1562[_0x430a65('0x2f')]=_['intersection'](_0x2c1562[_0x430a65('0x1e')],_0x2c1562[_0x430a65('0x1a')]),_0x4553a3[_0x430a65('0x3')]=_[_0x430a65('0x2')](_0x2c1562[_0x430a65('0x1e')],qs[_0x430a65('0x24')](_0x105aa1['query'][_0x430a65('0x24')])),_0x4553a3['attributes']=_0x4553a3['attributes'][_0x430a65('0x15')]?_0x4553a3[_0x430a65('0x3')]:_0x2c1562[_0x430a65('0x1e')],typeof _0x105aa1[_0x430a65('0x1a')][_0x430a65('0x4')]===_0x430a65('0x21')&&(_0x4553a3['limit']=qs[_0x430a65('0x32')](_0x105aa1[_0x430a65('0x1a')][_0x430a65('0x32')]),_0x4553a3[_0x430a65('0x13')]=qs['offset'](_0x105aa1[_0x430a65('0x1a')][_0x430a65('0x13')])),_0x4553a3[_0x430a65('0x1d')]=qs[_0x430a65('0x25')](_0x105aa1[_0x430a65('0x1a')][_0x430a65('0x25')]),_0x4553a3[_0x430a65('0x29')]=qs[_0x430a65('0x2f')](_['pick'](_0x105aa1[_0x430a65('0x1a')],_0x2c1562[_0x430a65('0x2f')])),_0x4553a3['where']['SessionId']=_0x30e77['id'],_0x105aa1[_0x430a65('0x1a')][_0x430a65('0x7')]&&(_0x4553a3[_0x430a65('0x29')]=_[_0x430a65('0x1')](_0x4553a3[_0x430a65('0x29')],{[Op['or']]:_[_0x430a65('0x30')](_0x4553a3['attributes'],function(_0x3ce6e2){const _0xafcad1=_0x430a65,_0x126601={};return _0x126601[_0x3ce6e2]={[Op[_0xafcad1('0x22')]]:'%'+_0x105aa1[_0xafcad1('0x1a')][_0xafcad1('0x7')]+'%'},_0x126601;})})),_0x4553a3=_['merge']({},_0x4553a3,_0x105aa1['options']),db[_0x430a65('0x5')][_0x430a65('0xf')]({'where':_0x4553a3[_0x430a65('0x29')]})[_0x430a65('0x2a')](function(_0x3fdf13){const _0x3aea63=_0x430a65;return _0x1c4a4a[_0x3aea63('0xf')]=_0x3fdf13,_0x105aa1[_0x3aea63('0x1a')]['includeAll']&&(_0x4553a3[_0x3aea63('0x28')]=[{'all':!![]}]),db[_0x3aea63('0x5')][_0x3aea63('0x26')](_0x4553a3);})[_0x430a65('0x2a')](function(_0x3e2655){return _0x1c4a4a['rows']=_0x3e2655,_0x1c4a4a;});})[_0x25cb35('0x2a')](respondWithFilteredResult(_0xf23ae8,_0x4553a3))['catch'](handleError(_0xf23ae8,null));};
\ No newline at end of file
+const a386_0x30b0=['rows','name','status','options','order','pick','update','sequelize','params','JscriptyQuestionReport','../../config/logger','body','destroy','describe','show','model','findAll','sort','filter','keys','sendStatus','intersection','VIRTUAL','set','where','type','findOne','../../mysqldb','error','fields','length','offset','merge','then','map','nolimit','api','rawAttributes','includeAll','key','json','../../components/parsers/qs','JscriptySessionReport','catch','query','filters','lodash','getQuestions','attributes','like','limit','create','count','send','stack','undefined','include','SessionId'];(function(_0x417ada,_0x30b05b){const _0x49057a=function(_0x59efb7){while(--_0x59efb7){_0x417ada['push'](_0x417ada['shift']());}};_0x49057a(++_0x30b05b);}(a386_0x30b0,0xc7));const a386_0x4905=function(_0x417ada,_0x30b05b){_0x417ada=_0x417ada-0x0;let _0x49057a=a386_0x30b0[_0x417ada];return _0x49057a;};const _0x4d2929=a386_0x4905;'use strict';const _=require(_0x4d2929('0x15')),qs=require(_0x4d2929('0x10')),logger=require(_0x4d2929('0x2b'))(_0x4d2929('0xb')),db=require(_0x4d2929('0x2'))['db'],{Op}=require(_0x4d2929('0x28'));function respondWithResult(_0x59efb7,_0xeae53d){return _0xeae53d=_0xeae53d||0xc8,function(_0x57e36d){const _0x2bf61e=a386_0x4905;if(_0x57e36d)return _0x59efb7[_0x2bf61e('0x23')](_0xeae53d)[_0x2bf61e('0xf')](_0x57e36d);};}function respondWithFilteredResult(_0x4c9c3a,_0xc1af80){return function(_0x46097c){const _0x8c2a82=a386_0x4905;if(_0x46097c){const _0x3cbe1c=_0x46097c['count'],_0x1dbb3c=_0xc1af80['offset'];let _0xc6620b=_0xc1af80[_0x8c2a82('0x6')]+_0xc1af80[_0x8c2a82('0x19')],_0x186cce;return _0xc6620b>=_0x3cbe1c?(_0xc6620b=_0x3cbe1c,_0x186cce=0xc8):_0x186cce=0xce,_0x4c9c3a[_0x8c2a82('0x23')](_0x186cce),_0x4c9c3a[_0x8c2a82('0x38')]('Content-Range',_0x1dbb3c+'-'+_0xc6620b+'/'+_0x3cbe1c)[_0x8c2a82('0xf')](_0x46097c);}return null;};}function saveUpdates(_0x28807c){return function(_0x2c7e3d){const _0x4c198b=a386_0x4905;if(_0x2c7e3d)return _0x2c7e3d[_0x4c198b('0x27')](_0x28807c)[_0x4c198b('0x8')](function(_0x23c6c6){return _0x23c6c6;});return null;};}function removeEntity(_0x9cf4a0){return function(_0x3f5a70){const _0x5b2dd4=a386_0x4905;if(_0x3f5a70)return _0x3f5a70[_0x5b2dd4('0x2d')]()['then'](function(){const _0x50bf52=_0x5b2dd4;_0x9cf4a0[_0x50bf52('0x23')](0xcc)['end']();});};}function handleEntityNotFound(_0x141c24){return function(_0x27f0b0){const _0x1658a3=a386_0x4905;return!_0x27f0b0&&_0x141c24[_0x1658a3('0x35')](0x194),_0x27f0b0;};}function handleError(_0x53810d,_0x186832){return _0x186832=_0x186832||0x1f4,function(_0x5d206f){const _0x5a9a9f=a386_0x4905;logger[_0x5a9a9f('0x3')](_0x5d206f[_0x5a9a9f('0x1d')]),_0x5d206f[_0x5a9a9f('0x22')]&&delete _0x5d206f[_0x5a9a9f('0x22')],_0x53810d[_0x5a9a9f('0x23')](_0x186832)[_0x5a9a9f('0x1c')](_0x5d206f);};}exports['index']=function(_0x493d59,_0x3ff814){const _0x39a15a=_0x4d2929;let _0x46bab9={};const _0x53f404={},_0x25166f={'count':0x0,'rows':[]},_0x5ab4e8=_['map'](db[_0x39a15a('0x11')][_0x39a15a('0xc')],function(_0x1aa86b){const _0x15036e=_0x39a15a;return{'name':_0x1aa86b['fieldName'],'type':_0x1aa86b[_0x15036e('0x0')][_0x15036e('0xe')]};});_0x53f404[_0x39a15a('0x30')]=_[_0x39a15a('0x9')](_0x5ab4e8,'name'),_0x53f404[_0x39a15a('0x13')]=_[_0x39a15a('0x34')](_0x493d59[_0x39a15a('0x13')]),_0x53f404[_0x39a15a('0x14')]=_[_0x39a15a('0x36')](_0x53f404['model'],_0x53f404['query']),_0x46bab9[_0x39a15a('0x17')]=_[_0x39a15a('0x36')](_0x53f404[_0x39a15a('0x30')],qs[_0x39a15a('0x4')](_0x493d59['query'][_0x39a15a('0x4')])),_0x46bab9[_0x39a15a('0x17')]=_0x46bab9[_0x39a15a('0x17')][_0x39a15a('0x5')]?_0x46bab9['attributes']:_0x53f404[_0x39a15a('0x30')];typeof _0x493d59[_0x39a15a('0x13')][_0x39a15a('0xa')]===_0x39a15a('0x1e')&&(_0x46bab9[_0x39a15a('0x19')]=qs[_0x39a15a('0x19')](_0x493d59[_0x39a15a('0x13')][_0x39a15a('0x19')]),_0x46bab9[_0x39a15a('0x6')]=qs['offset'](_0x493d59['query'][_0x39a15a('0x6')]));_0x46bab9[_0x39a15a('0x25')]=qs['sort'](_0x493d59[_0x39a15a('0x13')][_0x39a15a('0x32')]),_0x46bab9[_0x39a15a('0x39')]=qs[_0x39a15a('0x14')](_[_0x39a15a('0x26')](_0x493d59[_0x39a15a('0x13')],_0x53f404[_0x39a15a('0x14')]),_0x5ab4e8);_0x493d59['query'][_0x39a15a('0x33')]&&(_0x46bab9[_0x39a15a('0x39')]=_['merge'](_0x46bab9[_0x39a15a('0x39')],{[Op['or']]:_[_0x39a15a('0x9')](_0x5ab4e8,function(_0xd72a1c){const _0x5290ea=_0x39a15a;if(_0xd72a1c[_0x5290ea('0x0')]!==_0x5290ea('0x37')){const _0xee17a8={};return _0xee17a8[_0xd72a1c['name']]={[Op[_0x5290ea('0x18')]]:'%'+_0x493d59[_0x5290ea('0x13')][_0x5290ea('0x33')]+'%'},_0xee17a8;}})}));_0x46bab9=_[_0x39a15a('0x7')]({},_0x46bab9,_0x493d59[_0x39a15a('0x24')]);const _0x3a213c={'where':_0x46bab9['where']};return db['JscriptySessionReport'][_0x39a15a('0x1b')](_0x3a213c)['then'](function(_0x3872cd){const _0xbc38f9=_0x39a15a;return _0x25166f[_0xbc38f9('0x1b')]=_0x3872cd,_0x493d59[_0xbc38f9('0x13')]['includeAll']&&(_0x46bab9[_0xbc38f9('0x1f')]=[{'all':!![]}]),db[_0xbc38f9('0x11')][_0xbc38f9('0x31')](_0x46bab9);})['then'](function(_0x4516ff){const _0x3e03ee=_0x39a15a;return _0x25166f[_0x3e03ee('0x21')]=_0x4516ff,_0x25166f;})['then'](respondWithFilteredResult(_0x3ff814,_0x46bab9))[_0x39a15a('0x12')](handleError(_0x3ff814,null));},exports[_0x4d2929('0x2f')]=function(_0x331cda,_0x4b0b53){const _0xc65722=_0x4d2929;let _0x33d6c5={'raw':!![],'where':{'id':_0x331cda[_0xc65722('0x29')]['id']}};const _0x22e131={};return _0x22e131['model']=_[_0xc65722('0x34')](db[_0xc65722('0x11')][_0xc65722('0xc')]),_0x22e131[_0xc65722('0x13')]=_[_0xc65722('0x34')](_0x331cda[_0xc65722('0x13')]),_0x22e131[_0xc65722('0x14')]=_[_0xc65722('0x36')](_0x22e131[_0xc65722('0x30')],_0x22e131['query']),_0x33d6c5[_0xc65722('0x17')]=_[_0xc65722('0x36')](_0x22e131[_0xc65722('0x30')],qs[_0xc65722('0x4')](_0x331cda[_0xc65722('0x13')]['fields'])),_0x33d6c5[_0xc65722('0x17')]=_0x33d6c5[_0xc65722('0x17')][_0xc65722('0x5')]?_0x33d6c5[_0xc65722('0x17')]:_0x22e131[_0xc65722('0x30')],_0x331cda['query']['includeAll']&&(_0x33d6c5[_0xc65722('0x1f')]=[{'all':!![]}]),_0x33d6c5=_[_0xc65722('0x7')]({},_0x33d6c5,_0x331cda[_0xc65722('0x24')]),db[_0xc65722('0x11')][_0xc65722('0x1')](_0x33d6c5)['then'](handleEntityNotFound(_0x4b0b53,null))[_0xc65722('0x8')](respondWithResult(_0x4b0b53,null))[_0xc65722('0x12')](handleError(_0x4b0b53,null));},exports[_0x4d2929('0x1a')]=function(_0x3ce9a1,_0xd22792){const _0x29097a=_0x4d2929;return db['JscriptySessionReport'][_0x29097a('0x1a')](_0x3ce9a1[_0x29097a('0x2c')],{})['then'](respondWithResult(_0xd22792,0xc9))['catch'](handleError(_0xd22792,null));},exports[_0x4d2929('0x27')]=function(_0x516407,_0x14e0b0){const _0x3d0846=_0x4d2929;return _0x516407['body']['id']&&delete _0x516407[_0x3d0846('0x2c')]['id'],db[_0x3d0846('0x11')][_0x3d0846('0x1')]({'where':{'id':_0x516407[_0x3d0846('0x29')]['id']}})[_0x3d0846('0x8')](handleEntityNotFound(_0x14e0b0,null))[_0x3d0846('0x8')](saveUpdates(_0x516407['body'],null))['then'](respondWithResult(_0x14e0b0,null))[_0x3d0846('0x12')](handleError(_0x14e0b0,null));},exports[_0x4d2929('0x2d')]=function(_0x596cba,_0x320eac){const _0xedf956=_0x4d2929;return db[_0xedf956('0x11')][_0xedf956('0x1')]({'where':{'id':_0x596cba[_0xedf956('0x29')]['id']}})[_0xedf956('0x8')](handleEntityNotFound(_0x320eac,null))[_0xedf956('0x8')](removeEntity(_0x320eac,null))['catch'](handleError(_0x320eac,null));},exports['describe']=function(_0x2a6787,_0x13136a){const _0x2be233=_0x4d2929;return db['JscriptySessionReport'][_0x2be233('0x2e')]()[_0x2be233('0x8')](respondWithResult(_0x13136a,null))[_0x2be233('0x12')](handleError(_0x13136a,null));},exports[_0x4d2929('0x16')]=function(_0x47bede,_0x20c3f6){const _0x346a2f=_0x4d2929;let _0x20b2fc={'raw':!![],'where':{}};const _0x3e660e={},_0x3e5c98={'count':0x0,'rows':[]};return db[_0x346a2f('0x11')]['findOne']({'where':{'id':_0x47bede['params']['id']}})[_0x346a2f('0x8')](handleEntityNotFound(_0x20c3f6,null))['then'](function(_0x4a43eb){const _0x56ac55=_0x346a2f;if(_0x4a43eb)return _0x3e660e['model']=_['keys'](db[_0x56ac55('0x2a')][_0x56ac55('0xc')]),_0x3e660e[_0x56ac55('0x13')]=_[_0x56ac55('0x34')](_0x47bede[_0x56ac55('0x13')]),_0x3e660e[_0x56ac55('0x14')]=_[_0x56ac55('0x36')](_0x3e660e[_0x56ac55('0x30')],_0x3e660e[_0x56ac55('0x13')]),_0x20b2fc[_0x56ac55('0x17')]=_[_0x56ac55('0x36')](_0x3e660e[_0x56ac55('0x30')],qs[_0x56ac55('0x4')](_0x47bede['query'][_0x56ac55('0x4')])),_0x20b2fc['attributes']=_0x20b2fc['attributes']['length']?_0x20b2fc['attributes']:_0x3e660e[_0x56ac55('0x30')],typeof _0x47bede[_0x56ac55('0x13')][_0x56ac55('0xa')]===_0x56ac55('0x1e')&&(_0x20b2fc[_0x56ac55('0x19')]=qs[_0x56ac55('0x19')](_0x47bede[_0x56ac55('0x13')][_0x56ac55('0x19')]),_0x20b2fc[_0x56ac55('0x6')]=qs[_0x56ac55('0x6')](_0x47bede['query']['offset'])),_0x20b2fc[_0x56ac55('0x25')]=qs['sort'](_0x47bede[_0x56ac55('0x13')][_0x56ac55('0x32')]),_0x20b2fc['where']=qs[_0x56ac55('0x14')](_[_0x56ac55('0x26')](_0x47bede[_0x56ac55('0x13')],_0x3e660e[_0x56ac55('0x14')])),_0x20b2fc[_0x56ac55('0x39')][_0x56ac55('0x20')]=_0x4a43eb['id'],_0x47bede[_0x56ac55('0x13')][_0x56ac55('0x33')]&&(_0x20b2fc[_0x56ac55('0x39')]=_[_0x56ac55('0x7')](_0x20b2fc[_0x56ac55('0x39')],{[Op['or']]:_[_0x56ac55('0x9')](_0x20b2fc[_0x56ac55('0x17')],function(_0x4e45f6){const _0x321efa=_0x56ac55,_0x48ce51={};return _0x48ce51[_0x4e45f6]={[Op[_0x321efa('0x18')]]:'%'+_0x47bede[_0x321efa('0x13')]['filter']+'%'},_0x48ce51;})})),_0x20b2fc=_[_0x56ac55('0x7')]({},_0x20b2fc,_0x47bede['options']),db[_0x56ac55('0x2a')][_0x56ac55('0x1b')]({'where':_0x20b2fc[_0x56ac55('0x39')]})['then'](function(_0x41af93){const _0x3ead05=_0x56ac55;return _0x3e5c98[_0x3ead05('0x1b')]=_0x41af93,_0x47bede[_0x3ead05('0x13')][_0x3ead05('0xd')]&&(_0x20b2fc['include']=[{'all':!![]}]),db[_0x3ead05('0x2a')][_0x3ead05('0x31')](_0x20b2fc);})[_0x56ac55('0x8')](function(_0x15f37e){return _0x3e5c98['rows']=_0x15f37e,_0x3e5c98;});})['then'](respondWithFilteredResult(_0x20c3f6,_0x20b2fc))[_0x346a2f('0x12')](handleError(_0x20c3f6,null));};
\ No newline at end of file