Built motion from commit f861bcb808219e66da88ba48b61bddb35224a65e. Version 3.0.0...
[motion-next.git] / server / api / squareMessage / squareMessage.rpc.js
1 'use strict';const a699_0x598a=['7oNWamm','message','options','484718IiEUCl','body','then','catch','debug','CreateSquareMessage','907903caJZhH','172139iapNME','471256kUYiDD','@config/logger','6046KmgptI','raw','SquareMessage','480149okKmmr','info','2HqpZUH','rpc','create','1878676dPBtrR','2HdvoWs','error'];const a699_0x191d=function(_0x680e11,_0x1297b9){_0x680e11=_0x680e11-0x190;let _0x598a59=a699_0x598a[_0x680e11];return _0x598a59;};const a699_0x29e343=a699_0x191d;(function(_0x3a2359,_0x26438a){const _0x3a951e=a699_0x191d;while(!![]){try{const _0xac22b7=parseInt(_0x3a951e(0x198))*-parseInt(_0x3a951e(0x1a6))+parseInt(_0x3a951e(0x19e))+-parseInt(_0x3a951e(0x19b))*-parseInt(_0x3a951e(0x1a0))+parseInt(_0x3a951e(0x199))*-parseInt(_0x3a951e(0x1a4))+-parseInt(_0x3a951e(0x191))+parseInt(_0x3a951e(0x197))+parseInt(_0x3a951e(0x1a3));if(_0xac22b7===_0x26438a)break;else _0x3a2359['push'](_0x3a2359['shift']());}catch(_0x420fd3){_0x3a2359['push'](_0x3a2359['shift']());}}}(a699_0x598a,0x9ddd9));const db=require('@mysqldb')['db'],logger=require(a699_0x29e343(0x19a))(a699_0x29e343(0x1a1));exports[a699_0x29e343(0x196)]=function(_0x9e4a8b){const _0x3ee0fc=this;return new Promise(function(_0x4a73b7,_0x47c4f9){const _0x2ee8ef=a699_0x191d;return db[_0x2ee8ef(0x19d)][_0x2ee8ef(0x1a2)](_0x9e4a8b[_0x2ee8ef(0x192)],{'raw':_0x9e4a8b['options']?_0x9e4a8b[_0x2ee8ef(0x190)][_0x2ee8ef(0x19c)]===undefined?!![]:![]:!![]})[_0x2ee8ef(0x193)](function(_0x2e15e8){const _0x2c240d=_0x2ee8ef;logger[_0x2c240d(0x19f)]('CreateSquareMessage',_0x9e4a8b),logger[_0x2c240d(0x195)]('CreateSquareMessage',_0x9e4a8b,JSON['stringify'](_0x2e15e8)),_0x4a73b7(_0x2e15e8);})[_0x2ee8ef(0x194)](function(_0x859353){const _0x792bd6=_0x2ee8ef;logger[_0x792bd6(0x1a5)](_0x792bd6(0x196),_0x859353[_0x792bd6(0x1a7)],_0x9e4a8b),_0x47c4f9(_0x3ee0fc['error'](0x1f4,_0x859353[_0x792bd6(0x1a7)]));});});};