Built motion from commit df3e9871f6bcc3432fec345b2f4facbd4dba8b5c. Version 3.0.0...
[motion-next.git] / server / api / sound / sound.rpc.js
index 9270324..e606643 100644 (file)
@@ -1 +1 @@
-const a585_0x96ba=['message','include','options','raw','lodash','findOne','map','error','then','attributes','../../config/logger','Sound','../../mysqldb','ShowSound','model','catch'];(function(_0x11296d,_0x96ba7d){const _0x487108=function(_0x50cadb){while(--_0x50cadb){_0x11296d['push'](_0x11296d['shift']());}};_0x487108(++_0x96ba7d);}(a585_0x96ba,0xb3));const a585_0x4871=function(_0x11296d,_0x96ba7d){_0x11296d=_0x11296d-0x0;let _0x487108=a585_0x96ba[_0x11296d];return _0x487108;};const _0x59bb13=a585_0x4871;'use strict';const db=require(_0x59bb13('0x9'))['db'],logger=require(_0x59bb13('0x7'))('rpc'),_=require(_0x59bb13('0x1'));exports[_0x59bb13('0xa')]=function(_0x50cadb){const _0x2d77ff=this;return new Promise(function(_0x2750d2,_0x161ee2){const _0x3b36ab=a585_0x4871;return db[_0x3b36ab('0x8')][_0x3b36ab('0x2')]({'raw':_0x50cadb[_0x3b36ab('0xf')]?_0x50cadb[_0x3b36ab('0xf')][_0x3b36ab('0x0')]===undefined?!![]:![]:!![],'where':_0x50cadb['options']?_0x50cadb[_0x3b36ab('0xf')]['where']||null:null,'attributes':_0x50cadb[_0x3b36ab('0xf')]?_0x50cadb['options']['attributes']||null:null,'include':_0x50cadb[_0x3b36ab('0xf')]?_0x50cadb[_0x3b36ab('0xf')][_0x3b36ab('0xe')]?_['map'](_0x50cadb[_0x3b36ab('0xf')]['include'],function(_0x41beef){const _0x20f60c=_0x3b36ab;return{'model':db[_0x41beef[_0x20f60c('0xb')]],'as':_0x41beef['as'],'attributes':_0x41beef['attributes'],'include':_0x41beef[_0x20f60c('0xe')]?_['map'](_0x41beef['include'],function(_0x6e779f){const _0x5d913d=_0x20f60c;return{'model':db[_0x6e779f[_0x5d913d('0xb')]],'as':_0x6e779f['as'],'attributes':_0x6e779f[_0x5d913d('0x6')],'include':_0x6e779f[_0x5d913d('0xe')]?_[_0x5d913d('0x3')](_0x6e779f[_0x5d913d('0xe')],function(_0x3b888d){const _0x3af96f=_0x5d913d;return{'model':db[_0x3b888d[_0x3af96f('0xb')]],'as':_0x3b888d['as'],'attributes':_0x3b888d['attributes']};}):[]};}):[]};}):[]:[]})[_0x3b36ab('0x5')](function(_0x54cb27){const _0x16c125=_0x3b36ab;logger['info']('ShowSound',_0x50cadb),logger['debug'](_0x16c125('0xa'),_0x50cadb,JSON['stringify'](_0x54cb27)),_0x2750d2(_0x54cb27);})[_0x3b36ab('0xc')](function(_0x5b32f8){const _0x546389=_0x3b36ab;logger[_0x546389('0x4')](_0x546389('0xa'),_0x5b32f8[_0x546389('0xd')],_0x50cadb),_0x161ee2(_0x2d77ff[_0x546389('0x4')](0x1f4,_0x5b32f8['message']));});});};
\ No newline at end of file
+const a585_0xb417=['where','raw','then','../../config/logger','info','ShowSound','../../mysqldb','model','include','Sound','findOne','debug','stringify','attributes','error','lodash','options','message'];(function(_0x802c52,_0xb417de){const _0x279967=function(_0x638b79){while(--_0x638b79){_0x802c52['push'](_0x802c52['shift']());}};_0x279967(++_0xb417de);}(a585_0xb417,0x104));const a585_0x2799=function(_0x802c52,_0xb417de){_0x802c52=_0x802c52-0x0;let _0x279967=a585_0xb417[_0x802c52];return _0x279967;};const _0x3246a2=a585_0x2799;'use strict';const db=require(_0x3246a2('0x10'))['db'],logger=require(_0x3246a2('0xd'))('rpc'),_=require(_0x3246a2('0x7'));exports[_0x3246a2('0xf')]=function(_0x638b79){const _0x17e852=this;return new Promise(function(_0x418a53,_0x4a143a){const _0x495c9b=a585_0x2799;return db[_0x495c9b('0x1')][_0x495c9b('0x2')]({'raw':_0x638b79[_0x495c9b('0x8')]?_0x638b79[_0x495c9b('0x8')][_0x495c9b('0xb')]===undefined?!![]:![]:!![],'where':_0x638b79[_0x495c9b('0x8')]?_0x638b79[_0x495c9b('0x8')][_0x495c9b('0xa')]||null:null,'attributes':_0x638b79['options']?_0x638b79[_0x495c9b('0x8')][_0x495c9b('0x5')]||null:null,'include':_0x638b79[_0x495c9b('0x8')]?_0x638b79[_0x495c9b('0x8')][_0x495c9b('0x0')]?_['map'](_0x638b79['options']['include'],function(_0x54230e){const _0x55ba62=_0x495c9b;return{'model':db[_0x54230e[_0x55ba62('0x11')]],'as':_0x54230e['as'],'attributes':_0x54230e['attributes'],'include':_0x54230e[_0x55ba62('0x0')]?_['map'](_0x54230e['include'],function(_0x1b5a3d){const _0x5cf062=_0x55ba62;return{'model':db[_0x1b5a3d[_0x5cf062('0x11')]],'as':_0x1b5a3d['as'],'attributes':_0x1b5a3d[_0x5cf062('0x5')],'include':_0x1b5a3d[_0x5cf062('0x0')]?_['map'](_0x1b5a3d['include'],function(_0x2a4fcb){const _0x3e5283=_0x5cf062;return{'model':db[_0x2a4fcb[_0x3e5283('0x11')]],'as':_0x2a4fcb['as'],'attributes':_0x2a4fcb[_0x3e5283('0x5')]};}):[]};}):[]};}):[]:[]})[_0x495c9b('0xc')](function(_0x4e55fa){const _0x429007=_0x495c9b;logger[_0x429007('0xe')](_0x429007('0xf'),_0x638b79),logger[_0x429007('0x3')](_0x429007('0xf'),_0x638b79,JSON[_0x429007('0x4')](_0x4e55fa)),_0x418a53(_0x4e55fa);})['catch'](function(_0x91b145){const _0x459a80=_0x495c9b;logger['error'](_0x459a80('0xf'),_0x91b145[_0x459a80('0x9')],_0x638b79),_0x4a143a(_0x17e852[_0x459a80('0x6')](0x1f4,_0x91b145[_0x459a80('0x9')]));});});};
\ No newline at end of file