e51f0703f37fbd5f852c60118aad3dcd1fc0dbd9
[motion.git] / server / config / rpc / client.js
1 var _0x96f8=["\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"];_0x96f8[0];var jayson=require(_0x96f8[1]);var Promise=require(_0x96f8[2]);var client=jayson[_0x96f8[4]][_0x96f8[3]]({port:9001});module[_0x96f8[5]]= {request:function(_0xe540x4,_0xe540x5){return  new Promise(function(_0xe540x6,_0xe540x7){client[_0x96f8[8]](_0xe540x4,_0xe540x5,function(_0xe540x8,_0xe540x9){if(_0xe540x8){_0xe540x7(_0xe540x8)}else {if(_0xe540x9[_0x96f8[6]]){_0xe540x7(_0xe540x9[_0x96f8[6]])}else {_0xe540x6(_0xe540x9[_0x96f8[7]])}}})})}}