Built motion from commit c49361c37b5f784889c8087ac6e0e91b7e6b561a. Version 3.0.0...
[motion-next.git] / server / api / plugin / plugin.rpc.js
index 1293400..1f2bf95 100644 (file)
@@ -1 +1 @@
-const a518_0x1f81=['body','CreatePlugin','error','catch','./plugin.socket','../../config/logger','Plugin','message','../../mysqldb','register','rpc','create','info','options'];(function(_0x4814ae,_0x1f819b){const _0x42763f=function(_0x1fb6f1){while(--_0x1fb6f1){_0x4814ae['push'](_0x4814ae['shift']());}};_0x42763f(++_0x1f819b);}(a518_0x1f81,0x1a8));const a518_0x4276=function(_0x4814ae,_0x1f819b){_0x4814ae=_0x4814ae-0x0;let _0x42763f=a518_0x1f81[_0x4814ae];return _0x42763f;};const _0xbedb0f=a518_0x4276;'use strict';const db=require(_0xbedb0f('0x4'))['db'],logger=require(_0xbedb0f('0x1'))(_0xbedb0f('0x6')),{getSocket}=require('../../rediscache'),socket=getSocket();require(_0xbedb0f('0x0'))[_0xbedb0f('0x5')](socket),exports[_0xbedb0f('0xb')]=function(_0x1fb6f1){const _0x3efa82=this;return new Promise(function(_0xbac5d4,_0xb2ee6f){const _0x342a73=a518_0x4276;return db[_0x342a73('0x2')][_0x342a73('0x7')](_0x1fb6f1[_0x342a73('0xa')],{'raw':_0x1fb6f1[_0x342a73('0x9')]?_0x1fb6f1[_0x342a73('0x9')]['raw']===undefined?!![]:![]:!![]})['then'](function(_0x40bf90){const _0x3fa041=_0x342a73;logger[_0x3fa041('0x8')](_0x3fa041('0xb'),_0x1fb6f1),logger['debug'](_0x3fa041('0xb'),_0x1fb6f1,JSON['stringify'](_0x40bf90)),_0xbac5d4(_0x40bf90);})[_0x342a73('0xd')](function(_0x416c58){const _0x27ae43=_0x342a73;logger['error']('CreatePlugin',_0x416c58[_0x27ae43('0x3')],_0x1fb6f1),_0xb2ee6f(_0x3efa82[_0x27ae43('0xc')](0x1f4,_0x416c58[_0x27ae43('0x3')]));});});};
\ No newline at end of file
+const a518_0x4ed8=['catch','options','create','error','CreatePlugin','body','../../rediscache','Plugin','register','message','debug','then','info','../../config/logger','raw','./plugin.socket','stringify'];(function(_0x5e662a,_0x4ed84d){const _0x33d6b0=function(_0xc94054){while(--_0xc94054){_0x5e662a['push'](_0x5e662a['shift']());}};_0x33d6b0(++_0x4ed84d);}(a518_0x4ed8,0x1ef));const a518_0x33d6=function(_0x5e662a,_0x4ed84d){_0x5e662a=_0x5e662a-0x0;let _0x33d6b0=a518_0x4ed8[_0x5e662a];return _0x33d6b0;};const _0x21bc9d=a518_0x33d6;'use strict';const db=require('../../mysqldb')['db'],logger=require(_0x21bc9d('0xb'))('rpc'),{getSocket}=require(_0x21bc9d('0x4')),socket=getSocket();require(_0x21bc9d('0xd'))[_0x21bc9d('0x6')](socket),exports[_0x21bc9d('0x2')]=function(_0xc94054){const _0x26154f=this;return new Promise(function(_0x111b34,_0x1e1a8a){const _0x2e8aca=a518_0x33d6;return db[_0x2e8aca('0x5')][_0x2e8aca('0x0')](_0xc94054[_0x2e8aca('0x3')],{'raw':_0xc94054[_0x2e8aca('0x10')]?_0xc94054[_0x2e8aca('0x10')][_0x2e8aca('0xc')]===undefined?!![]:![]:!![]})[_0x2e8aca('0x9')](function(_0x56f386){const _0x53b8a5=_0x2e8aca;logger[_0x53b8a5('0xa')](_0x53b8a5('0x2'),_0xc94054),logger[_0x53b8a5('0x8')](_0x53b8a5('0x2'),_0xc94054,JSON[_0x53b8a5('0xe')](_0x56f386)),_0x111b34(_0x56f386);})[_0x2e8aca('0xf')](function(_0x335512){const _0x4bccfd=_0x2e8aca;logger[_0x4bccfd('0x1')](_0x4bccfd('0x2'),_0x335512[_0x4bccfd('0x7')],_0xc94054),_0x1e1a8a(_0x26154f['error'](0x1f4,_0x335512['message']));});});};
\ No newline at end of file