Built motion from commit bab6f49e.|2.6.17
[motion2.git] / server / api / team / team.rpc.js
index ed0bfe2..f9be5b6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf40f=['lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','redis','defaults','localhost','./team.socket','register','then','Team,\x20%s,\x20%s','request\x20sent','debug','error','code','message','info','result','catch'];(function(_0x11fe67,_0x3cbc74){var _0x1de450=function(_0x334e04){while(--_0x334e04){_0x11fe67['push'](_0x11fe67['shift']());}};_0x1de450(++_0x3cbc74);}(_0xf40f,0x129));var _0xff40=function(_0x40005d,_0x2a47bf){_0x40005d=_0x40005d-0x0;var _0x106958=_0xf40f[_0x40005d];return _0x106958;};'use strict';var _=require(_0xff40('0x0'));var util=require(_0xff40('0x1'));var moment=require(_0xff40('0x2'));var BPromise=require(_0xff40('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xff40('0x4'));var db=require(_0xff40('0x5'))['db'];var utils=require(_0xff40('0x6'));var logger=require(_0xff40('0x7'))(_0xff40('0x8'));var config=require(_0xff40('0x9'));var jayson=require(_0xff40('0xa'));var client=jayson[_0xff40('0xb')]['http']({'port':0x232a});config[_0xff40('0xc')]=_[_0xff40('0xd')](config[_0xff40('0xc')],{'host':_0xff40('0xe'),'port':0x18eb});var socket=require('socket.io-emitter')(new Redis(config[_0xff40('0xc')]));require(_0xff40('0xf'))[_0xff40('0x10')](socket);function respondWithRpcPromise(_0x221d18,_0x217f30,_0x92cec5){return new BPromise(function(_0x1a53fc,_0x244af2){return client['request'](_0x221d18,_0x92cec5)[_0xff40('0x11')](function(_0x7d1644){logger['info'](_0xff40('0x12'),_0x217f30,_0xff40('0x13'));logger[_0xff40('0x14')]('Team,\x20%s,\x20%s,\x20%s',_0x217f30,'request\x20sent',JSON['stringify'](_0x7d1644));if(_0x7d1644[_0xff40('0x15')]){if(_0x7d1644['error'][_0xff40('0x16')]===0x1f4){logger[_0xff40('0x15')]('Team,\x20%s,\x20%s',_0x217f30,_0x7d1644[_0xff40('0x15')][_0xff40('0x17')]);return _0x244af2(_0x7d1644[_0xff40('0x15')][_0xff40('0x17')]);}logger[_0xff40('0x15')]('Team,\x20%s,\x20%s',_0x217f30,_0x7d1644['error'][_0xff40('0x17')]);return _0x1a53fc(_0x7d1644['error']['message']);}else{logger[_0xff40('0x18')](_0xff40('0x12'),_0x217f30,_0xff40('0x13'));_0x1a53fc(_0x7d1644[_0xff40('0x19')]['message']);}})[_0xff40('0x1a')](function(_0x18602b){logger[_0xff40('0x15')]('Team,\x20%s,\x20%s',_0x217f30,_0x18602b);_0x244af2(_0x18602b);});});}
\ No newline at end of file
+var _0xaf8e=['register','request','then','info','request\x20sent','debug','Team,\x20%s,\x20%s,\x20%s','stringify','error','code','Team,\x20%s,\x20%s','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','redis','defaults','localhost','./team.socket'];(function(_0x504b3d,_0x5ca6b9){var _0x3386a5=function(_0x1e51f5){while(--_0x1e51f5){_0x504b3d['push'](_0x504b3d['shift']());}};_0x3386a5(++_0x5ca6b9);}(_0xaf8e,0xce));var _0xeaf8=function(_0x560c02,_0x178ab5){_0x560c02=_0x560c02-0x0;var _0x200b1d=_0xaf8e[_0x560c02];return _0x200b1d;};'use strict';var _=require(_0xeaf8('0x0'));var util=require(_0xeaf8('0x1'));var moment=require(_0xeaf8('0x2'));var BPromise=require(_0xeaf8('0x3'));var rs=require(_0xeaf8('0x4'));var fs=require('fs');var Redis=require(_0xeaf8('0x5'));var db=require(_0xeaf8('0x6'))['db'];var utils=require(_0xeaf8('0x7'));var logger=require(_0xeaf8('0x8'))(_0xeaf8('0x9'));var config=require(_0xeaf8('0xa'));var jayson=require(_0xeaf8('0xb'));var client=jayson[_0xeaf8('0xc')][_0xeaf8('0xd')]({'port':0x232a});config[_0xeaf8('0xe')]=_[_0xeaf8('0xf')](config['redis'],{'host':_0xeaf8('0x10'),'port':0x18eb});var socket=require('socket.io-emitter')(new Redis(config[_0xeaf8('0xe')]));require(_0xeaf8('0x11'))[_0xeaf8('0x12')](socket);function respondWithRpcPromise(_0x5cbae0,_0x143167,_0x16d049){return new BPromise(function(_0x5cec14,_0x2052df){return client[_0xeaf8('0x13')](_0x5cbae0,_0x16d049)[_0xeaf8('0x14')](function(_0x4eac97){logger[_0xeaf8('0x15')]('Team,\x20%s,\x20%s',_0x143167,_0xeaf8('0x16'));logger[_0xeaf8('0x17')](_0xeaf8('0x18'),_0x143167,_0xeaf8('0x16'),JSON[_0xeaf8('0x19')](_0x4eac97));if(_0x4eac97[_0xeaf8('0x1a')]){if(_0x4eac97[_0xeaf8('0x1a')][_0xeaf8('0x1b')]===0x1f4){logger['error'](_0xeaf8('0x1c'),_0x143167,_0x4eac97[_0xeaf8('0x1a')][_0xeaf8('0x1d')]);return _0x2052df(_0x4eac97['error']['message']);}logger[_0xeaf8('0x1a')](_0xeaf8('0x1c'),_0x143167,_0x4eac97[_0xeaf8('0x1a')][_0xeaf8('0x1d')]);return _0x5cec14(_0x4eac97[_0xeaf8('0x1a')][_0xeaf8('0x1d')]);}else{logger[_0xeaf8('0x15')]('Team,\x20%s,\x20%s',_0x143167,_0xeaf8('0x16'));_0x5cec14(_0x4eac97[_0xeaf8('0x1e')][_0xeaf8('0x1d')]);}})[_0xeaf8('0x1f')](function(_0x38cd2a){logger[_0xeaf8('0x1a')](_0xeaf8('0x1c'),_0x143167,_0x38cd2a);_0x2052df(_0x38cd2a);});});}
\ No newline at end of file