Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / api / chatMessage / chatMessage.rpc.js
1 'use strict';const a100_0x230e=['@config/logger','209vuYfpA','1RhwrQB','5rUfIpp','info','3257VuPpHw','debug','231126zKrngr','rpc','428923yglDXf','101448biHVTd','then','./chatMessage.socket','message','register','options','create','7bndrpx','stringify','268074bCcIkL','raw','error','1085850XmHBRz','900871dABzaU','ChatMessage','CreateChatMessage','1YwxtCq'];const a100_0x2764=function(_0x212511,_0x5c97e4){_0x212511=_0x212511-0xfa;let _0x230ed4=a100_0x230e[_0x212511];return _0x230ed4;};const a100_0xd925e4=a100_0x2764;(function(_0x482260,_0x222f2){const _0x58c48b=a100_0x2764;while(!![]){try{const _0x43ae5c=parseInt(_0x58c48b(0x10d))*-parseInt(_0x58c48b(0x111))+-parseInt(_0x58c48b(0x10b))*parseInt(_0x58c48b(0x10f))+parseInt(_0x58c48b(0x109))*parseInt(_0x58c48b(0x106))+-parseInt(_0x58c48b(0x105))+-parseInt(_0x58c48b(0x102))*parseInt(_0x58c48b(0x10c))+-parseInt(_0x58c48b(0x114))+-parseInt(_0x58c48b(0x113))*-parseInt(_0x58c48b(0x100));if(_0x43ae5c===_0x222f2)break;else _0x482260['push'](_0x482260['shift']());}catch(_0x114179){_0x482260['push'](_0x482260['shift']());}}}(a100_0x230e,0x95521));const db=require('@mysqldb')['db'],logger=require(a100_0xd925e4(0x10a))(a100_0xd925e4(0x112)),{getSocket}=require('@rediscache'),socket=getSocket();require(a100_0xd925e4(0xfb))[a100_0xd925e4(0xfd)](socket),exports['CreateChatMessage']=function(_0x56f8e6){const _0x2b882f=this;return new Promise(function(_0x4d4190,_0x347fe9){const _0x29a4bf=a100_0x2764;return db[_0x29a4bf(0x107)][_0x29a4bf(0xff)](_0x56f8e6['body'],{'raw':_0x56f8e6[_0x29a4bf(0xfe)]?_0x56f8e6[_0x29a4bf(0xfe)][_0x29a4bf(0x103)]===undefined?!![]:![]:!![]})[_0x29a4bf(0xfa)](function(_0x155df4){const _0x480716=_0x29a4bf;logger[_0x480716(0x10e)](_0x480716(0x108),_0x56f8e6),logger[_0x480716(0x110)](_0x480716(0x108),_0x56f8e6,JSON[_0x480716(0x101)](_0x155df4)),_0x4d4190(_0x155df4);})['catch'](function(_0x91a1f4){const _0x5ac3e9=_0x29a4bf;logger[_0x5ac3e9(0x104)](_0x5ac3e9(0x108),_0x91a1f4[_0x5ac3e9(0xfc)],_0x56f8e6),_0x347fe9(_0x2b882f[_0x5ac3e9(0x104)](0x1f4,_0x91a1f4[_0x5ac3e9(0xfc)]));});});};