Built motion from commit 0ad9c269e.|1.0.31
[motion.git] / server / config / rpc / client.js
1 var _0xd582=["\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74","\x6A\x61\x79\x73\x6F\x6E","\x62\x6C\x75\x65\x62\x69\x72\x64","\x68\x74\x74\x70","\x63\x6C\x69\x65\x6E\x74","\x65\x78\x70\x6F\x72\x74\x73","\x65\x72\x72\x6F\x72","\x72\x65\x73\x75\x6C\x74","\x72\x65\x71\x75\x65\x73\x74"];_0xd582[0];var jayson=require(_0xd582[1]);var Promise=require(_0xd582[2]);var client=jayson[_0xd582[4]][_0xd582[3]]({port:9001});module[_0xd582[5]]= {request:function(_0x1e32x4,_0x1e32x5){return  new Promise(function(_0x1e32x6,_0x1e32x7){client[_0xd582[8]](_0x1e32x4,_0x1e32x5,function(_0x1e32x8,_0x1e32x9){if(_0x1e32x8){_0x1e32x7(_0x1e32x8)}else {if(_0x1e32x9[_0xd582[6]]){_0x1e32x7(_0x1e32x9[_0xd582[6]])}else {_0x1e32x6(_0x1e32x9[_0xd582[7]])}}})})}}