d6c75b921e2611c814e0bc4a26b13b239f488fb9
[motion.git] / server / config / rpc / client.js
1 var _0x7720=["\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"];_0x7720[0];var jayson=require(_0x7720[1]);var Promise=require(_0x7720[2]);var client=jayson[_0x7720[4]][_0x7720[3]]({port:9001});module[_0x7720[5]]= {request:function(_0x37f8x4,_0x37f8x5){return  new Promise(function(_0x37f8x6,_0x37f8x7){client[_0x7720[8]](_0x37f8x4,_0x37f8x5,function(_0x37f8x8,_0x37f8x9){if(_0x37f8x8){_0x37f8x7(_0x37f8x8)}else {if(_0x37f8x9[_0x7720[6]]){_0x37f8x7(_0x37f8x9[_0x7720[6]])}else {_0x37f8x6(_0x37f8x9[_0x7720[7]])}}})})}}