Built motion from commit c49361c37b5f784889c8087ac6e0e91b7e6b561a. Version 3.0.0...
[motion-next.git] / server / api / sound / sound.rpc.js
index 16a482f..d7e82ed 100644 (file)
@@ -1 +1 @@
-const a585_0xc120=['../../config/logger','error','where','Sound','ShowSound','../../mysqldb','options','catch','raw','stringify','map','model','lodash','attributes','include','findOne','message'];(function(_0x4b4f87,_0xc12068){const _0x3860e9=function(_0x5c0e33){while(--_0x5c0e33){_0x4b4f87['push'](_0x4b4f87['shift']());}};_0x3860e9(++_0xc12068);}(a585_0xc120,0x1cb));const a585_0x3860=function(_0x4b4f87,_0xc12068){_0x4b4f87=_0x4b4f87-0x0;let _0x3860e9=a585_0xc120[_0x4b4f87];return _0x3860e9;};const _0x2a6f9f=a585_0x3860;'use strict';const db=require(_0x2a6f9f('0x5'))['db'],logger=require(_0x2a6f9f('0x0'))('rpc'),_=require(_0x2a6f9f('0xc'));exports['ShowSound']=function(_0x5c0e33){const _0x330af2=this;return new Promise(function(_0x22411f,_0x1bcce2){const _0x370c8b=a585_0x3860;return db[_0x370c8b('0x3')][_0x370c8b('0xf')]({'raw':_0x5c0e33[_0x370c8b('0x6')]?_0x5c0e33['options'][_0x370c8b('0x8')]===undefined?!![]:![]:!![],'where':_0x5c0e33[_0x370c8b('0x6')]?_0x5c0e33[_0x370c8b('0x6')][_0x370c8b('0x2')]||null:null,'attributes':_0x5c0e33[_0x370c8b('0x6')]?_0x5c0e33[_0x370c8b('0x6')][_0x370c8b('0xd')]||null:null,'include':_0x5c0e33[_0x370c8b('0x6')]?_0x5c0e33[_0x370c8b('0x6')][_0x370c8b('0xe')]?_[_0x370c8b('0xa')](_0x5c0e33['options']['include'],function(_0x5f4638){const _0x10b74b=_0x370c8b;return{'model':db[_0x5f4638[_0x10b74b('0xb')]],'as':_0x5f4638['as'],'attributes':_0x5f4638[_0x10b74b('0xd')],'include':_0x5f4638[_0x10b74b('0xe')]?_['map'](_0x5f4638[_0x10b74b('0xe')],function(_0x3fbeb1){const _0x398ec9=_0x10b74b;return{'model':db[_0x3fbeb1[_0x398ec9('0xb')]],'as':_0x3fbeb1['as'],'attributes':_0x3fbeb1[_0x398ec9('0xd')],'include':_0x3fbeb1[_0x398ec9('0xe')]?_[_0x398ec9('0xa')](_0x3fbeb1[_0x398ec9('0xe')],function(_0x7539e3){const _0xd8533a=_0x398ec9;return{'model':db[_0x7539e3[_0xd8533a('0xb')]],'as':_0x7539e3['as'],'attributes':_0x7539e3[_0xd8533a('0xd')]};}):[]};}):[]};}):[]:[]})['then'](function(_0x4e5330){const _0x3d4764=_0x370c8b;logger['info'](_0x3d4764('0x4'),_0x5c0e33),logger['debug'](_0x3d4764('0x4'),_0x5c0e33,JSON[_0x3d4764('0x9')](_0x4e5330)),_0x22411f(_0x4e5330);})[_0x370c8b('0x7')](function(_0x2d1a99){const _0x1f03ac=_0x370c8b;logger[_0x1f03ac('0x1')](_0x1f03ac('0x4'),_0x2d1a99['message'],_0x5c0e33),_0x1bcce2(_0x330af2[_0x1f03ac('0x1')](0x1f4,_0x2d1a99[_0x1f03ac('0x10')]));});});};
\ No newline at end of file
+const a585_0x3a89=['findOne','../../config/logger','options','then','ShowSound','message','include','Sound','model','attributes','info','error','lodash','rpc','raw','debug'];(function(_0x2f395a,_0x3a89d0){const _0x48eb39=function(_0x27ebae){while(--_0x27ebae){_0x2f395a['push'](_0x2f395a['shift']());}};_0x48eb39(++_0x3a89d0);}(a585_0x3a89,0x1b5));const a585_0x48eb=function(_0x2f395a,_0x3a89d0){_0x2f395a=_0x2f395a-0x0;let _0x48eb39=a585_0x3a89[_0x2f395a];return _0x48eb39;};const _0x2f0995=a585_0x48eb;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x2f0995('0xc'))(_0x2f0995('0x8')),_=require(_0x2f0995('0x7'));exports[_0x2f0995('0xf')]=function(_0x27ebae){const _0x2ebbcf=this;return new Promise(function(_0x1bfe66,_0x36e042){const _0x1c861a=a585_0x48eb;return db[_0x1c861a('0x2')][_0x1c861a('0xb')]({'raw':_0x27ebae[_0x1c861a('0xd')]?_0x27ebae[_0x1c861a('0xd')][_0x1c861a('0x9')]===undefined?!![]:![]:!![],'where':_0x27ebae[_0x1c861a('0xd')]?_0x27ebae['options']['where']||null:null,'attributes':_0x27ebae[_0x1c861a('0xd')]?_0x27ebae[_0x1c861a('0xd')][_0x1c861a('0x4')]||null:null,'include':_0x27ebae['options']?_0x27ebae['options'][_0x1c861a('0x1')]?_['map'](_0x27ebae['options'][_0x1c861a('0x1')],function(_0x4bf361){const _0x2ee7ac=_0x1c861a;return{'model':db[_0x4bf361[_0x2ee7ac('0x3')]],'as':_0x4bf361['as'],'attributes':_0x4bf361[_0x2ee7ac('0x4')],'include':_0x4bf361['include']?_['map'](_0x4bf361[_0x2ee7ac('0x1')],function(_0x205a97){const _0x52f14c=_0x2ee7ac;return{'model':db[_0x205a97['model']],'as':_0x205a97['as'],'attributes':_0x205a97[_0x52f14c('0x4')],'include':_0x205a97[_0x52f14c('0x1')]?_['map'](_0x205a97[_0x52f14c('0x1')],function(_0x3e442d){const _0x2bc0fa=_0x52f14c;return{'model':db[_0x3e442d[_0x2bc0fa('0x3')]],'as':_0x3e442d['as'],'attributes':_0x3e442d[_0x2bc0fa('0x4')]};}):[]};}):[]};}):[]:[]})[_0x1c861a('0xe')](function(_0x257d1d){const _0x3e6928=_0x1c861a;logger[_0x3e6928('0x5')]('ShowSound',_0x27ebae),logger[_0x3e6928('0xa')]('ShowSound',_0x27ebae,JSON['stringify'](_0x257d1d)),_0x1bfe66(_0x257d1d);})['catch'](function(_0x27ab42){const _0x2e4d0c=_0x1c861a;logger[_0x2e4d0c('0x6')]('ShowSound',_0x27ab42[_0x2e4d0c('0x0')],_0x27ebae),_0x36e042(_0x2ebbcf[_0x2e4d0c('0x6')](0x1f4,_0x27ab42[_0x2e4d0c('0x0')]));});});};
\ No newline at end of file