Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / team / team.rpc.js
index 276a32f..854b4e7 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb9fe=['then','info','Team,\x20%s,\x20%s','debug','Team,\x20%s,\x20%s,\x20%s','request\x20sent','error','code','message','result','lodash','util','moment','bluebird','ioredis','../../config/logger','rpc','../../config/environment','client','http','defaults','redis','socket.io-emitter','register','request'];(function(_0x1a0774,_0xa03762){var _0x1b3d8b=function(_0x48113d){while(--_0x48113d){_0x1a0774['push'](_0x1a0774['shift']());}};_0x1b3d8b(++_0xa03762);}(_0xb9fe,0xb9));var _0xeb9f=function(_0x577fbc,_0x34ce19){_0x577fbc=_0x577fbc-0x0;var _0x128708=_0xb9fe[_0x577fbc];return _0x128708;};'use strict';var _=require(_0xeb9f('0x0'));var util=require(_0xeb9f('0x1'));var moment=require(_0xeb9f('0x2'));var BPromise=require(_0xeb9f('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xeb9f('0x4'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0xeb9f('0x5'))(_0xeb9f('0x6'));var config=require(_0xeb9f('0x7'));var jayson=require('jayson/promise');var client=jayson[_0xeb9f('0x8')][_0xeb9f('0x9')]({'port':0x232a});config['redis']=_[_0xeb9f('0xa')](config[_0xeb9f('0xb')],{'host':'localhost','port':0x18eb});var socket=require(_0xeb9f('0xc'))(new Redis(config[_0xeb9f('0xb')]));require('./team.socket')[_0xeb9f('0xd')](socket);function respondWithRpcPromise(_0xe0715b,_0x37b99d,_0x3794b3){return new BPromise(function(_0x3ed5b7,_0x59e4f4){return client[_0xeb9f('0xe')](_0xe0715b,_0x3794b3)[_0xeb9f('0xf')](function(_0x5e021f){logger[_0xeb9f('0x10')](_0xeb9f('0x11'),_0x37b99d,'request\x20sent');logger[_0xeb9f('0x12')](_0xeb9f('0x13'),_0x37b99d,_0xeb9f('0x14'),JSON['stringify'](_0x5e021f));if(_0x5e021f[_0xeb9f('0x15')]){if(_0x5e021f['error'][_0xeb9f('0x16')]===0x1f4){logger[_0xeb9f('0x15')]('Team,\x20%s,\x20%s',_0x37b99d,_0x5e021f[_0xeb9f('0x15')][_0xeb9f('0x17')]);return _0x59e4f4(_0x5e021f[_0xeb9f('0x15')][_0xeb9f('0x17')]);}logger[_0xeb9f('0x15')](_0xeb9f('0x11'),_0x37b99d,_0x5e021f[_0xeb9f('0x15')][_0xeb9f('0x17')]);return _0x3ed5b7(_0x5e021f[_0xeb9f('0x15')][_0xeb9f('0x17')]);}else{logger[_0xeb9f('0x10')]('Team,\x20%s,\x20%s',_0x37b99d,_0xeb9f('0x14'));_0x3ed5b7(_0x5e021f[_0xeb9f('0x18')][_0xeb9f('0x17')]);}})['catch'](function(_0xc22fc8){logger[_0xeb9f('0x15')](_0xeb9f('0x11'),_0x37b99d,_0xc22fc8);_0x59e4f4(_0xc22fc8);});});}
\ No newline at end of file
+var _0xbfe2=['info','Team,\x20%s,\x20%s','request\x20sent','debug','error','code','message','result','catch','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','defaults','localhost','socket.io-emitter','redis','register','request'];(function(_0x5c6be5,_0x3ff1d5){var _0x151348=function(_0x3df6c6){while(--_0x3df6c6){_0x5c6be5['push'](_0x5c6be5['shift']());}};_0x151348(++_0x3ff1d5);}(_0xbfe2,0x75));var _0x2bfe=function(_0x693f3a,_0x3dce46){_0x693f3a=_0x693f3a-0x0;var _0x3225d0=_0xbfe2[_0x693f3a];return _0x3225d0;};'use strict';var _=require(_0x2bfe('0x0'));var util=require(_0x2bfe('0x1'));var moment=require('moment');var BPromise=require(_0x2bfe('0x2'));var rs=require(_0x2bfe('0x3'));var fs=require('fs');var Redis=require(_0x2bfe('0x4'));var db=require(_0x2bfe('0x5'))['db'];var utils=require(_0x2bfe('0x6'));var logger=require(_0x2bfe('0x7'))('rpc');var config=require(_0x2bfe('0x8'));var jayson=require(_0x2bfe('0x9'));var client=jayson[_0x2bfe('0xa')][_0x2bfe('0xb')]({'port':0x232a});config['redis']=_[_0x2bfe('0xc')](config['redis'],{'host':_0x2bfe('0xd'),'port':0x18eb});var socket=require(_0x2bfe('0xe'))(new Redis(config[_0x2bfe('0xf')]));require('./team.socket')[_0x2bfe('0x10')](socket);function respondWithRpcPromise(_0x3f2a8c,_0x28ec35,_0x546f8a){return new BPromise(function(_0x25f0e0,_0x2dd935){return client[_0x2bfe('0x11')](_0x3f2a8c,_0x546f8a)['then'](function(_0x369bf6){logger[_0x2bfe('0x12')](_0x2bfe('0x13'),_0x28ec35,_0x2bfe('0x14'));logger[_0x2bfe('0x15')]('Team,\x20%s,\x20%s,\x20%s',_0x28ec35,_0x2bfe('0x14'),JSON['stringify'](_0x369bf6));if(_0x369bf6[_0x2bfe('0x16')]){if(_0x369bf6[_0x2bfe('0x16')][_0x2bfe('0x17')]===0x1f4){logger['error']('Team,\x20%s,\x20%s',_0x28ec35,_0x369bf6[_0x2bfe('0x16')][_0x2bfe('0x18')]);return _0x2dd935(_0x369bf6['error'][_0x2bfe('0x18')]);}logger['error'](_0x2bfe('0x13'),_0x28ec35,_0x369bf6[_0x2bfe('0x16')][_0x2bfe('0x18')]);return _0x25f0e0(_0x369bf6[_0x2bfe('0x16')][_0x2bfe('0x18')]);}else{logger[_0x2bfe('0x12')](_0x2bfe('0x13'),_0x28ec35,_0x2bfe('0x14'));_0x25f0e0(_0x369bf6[_0x2bfe('0x19')]['message']);}})[_0x2bfe('0x1a')](function(_0x52134e){logger[_0x2bfe('0x16')](_0x2bfe('0x13'),_0x28ec35,_0x52134e);_0x2dd935(_0x52134e);});});}
\ No newline at end of file