Built motion from commit 10af8726.|2.6.34
[motion2.git] / server / api / chatInternalMessage / chatInternalMessage.rpc.js
index b399fb9..af9d868 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x400b=['rpc','../../config/environment','jayson/promise','http','defaults','redis','localhost','socket.io-emitter','register','request','then','info','ChatInternalMessage,\x20%s,\x20%s','debug','ChatInternalMessage,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','message','result','catch','lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger'];(function(_0x320cf5,_0x4e437d){var _0xa77006=function(_0x854b9c){while(--_0x854b9c){_0x320cf5['push'](_0x320cf5['shift']());}};_0xa77006(++_0x4e437d);}(_0x400b,0x1e5));var _0xb400=function(_0x3098a7,_0x490909){_0x3098a7=_0x3098a7-0x0;var _0x530a7b=_0x400b[_0x3098a7];return _0x530a7b;};'use strict';var _=require(_0xb400('0x0'));var util=require(_0xb400('0x1'));var moment=require(_0xb400('0x2'));var BPromise=require(_0xb400('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xb400('0x4'));var db=require(_0xb400('0x5'))['db'];var utils=require(_0xb400('0x6'));var logger=require(_0xb400('0x7'))(_0xb400('0x8'));var config=require(_0xb400('0x9'));var jayson=require(_0xb400('0xa'));var client=jayson['client'][_0xb400('0xb')]({'port':0x232a});config['redis']=_[_0xb400('0xc')](config[_0xb400('0xd')],{'host':_0xb400('0xe'),'port':0x18eb});var socket=require(_0xb400('0xf'))(new Redis(config['redis']));require('./chatInternalMessage.socket')[_0xb400('0x10')](socket);function respondWithRpcPromise(_0x1299ef,_0x2811ab,_0x4c7373){return new BPromise(function(_0x438f8c,_0xe35775){return client[_0xb400('0x11')](_0x1299ef,_0x4c7373)[_0xb400('0x12')](function(_0xa63c5){logger[_0xb400('0x13')](_0xb400('0x14'),_0x2811ab,'request\x20sent');logger[_0xb400('0x15')](_0xb400('0x16'),_0x2811ab,_0xb400('0x17'),JSON[_0xb400('0x18')](_0xa63c5));if(_0xa63c5['error']){if(_0xa63c5[_0xb400('0x19')]['code']===0x1f4){logger[_0xb400('0x19')](_0xb400('0x14'),_0x2811ab,_0xa63c5[_0xb400('0x19')][_0xb400('0x1a')]);return _0xe35775(_0xa63c5[_0xb400('0x19')]['message']);}logger[_0xb400('0x19')]('ChatInternalMessage,\x20%s,\x20%s',_0x2811ab,_0xa63c5[_0xb400('0x19')][_0xb400('0x1a')]);return _0x438f8c(_0xa63c5[_0xb400('0x19')][_0xb400('0x1a')]);}else{logger[_0xb400('0x13')](_0xb400('0x14'),_0x2811ab,_0xb400('0x17'));_0x438f8c(_0xa63c5[_0xb400('0x1b')][_0xb400('0x1a')]);}})[_0xb400('0x1c')](function(_0x4251d7){logger[_0xb400('0x19')](_0xb400('0x14'),_0x2811ab,_0x4251d7);_0xe35775(_0x4251d7);});});}
\ No newline at end of file
+var _0xa63f=['debug','ChatInternalMessage,\x20%s,\x20%s,\x20%s','error','code','message','result','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','client','http','redis','defaults','./chatInternalMessage.socket','register','request','then','info','ChatInternalMessage,\x20%s,\x20%s','request\x20sent'];(function(_0x4205bc,_0x2aa6d4){var _0x58d4b2=function(_0x16dbe5){while(--_0x16dbe5){_0x4205bc['push'](_0x4205bc['shift']());}};_0x58d4b2(++_0x2aa6d4);}(_0xa63f,0x1b6));var _0xfa63=function(_0x3cbe1c,_0x4bcabd){_0x3cbe1c=_0x3cbe1c-0x0;var _0x5ee08b=_0xa63f[_0x3cbe1c];return _0x5ee08b;};'use strict';var _=require(_0xfa63('0x0'));var util=require(_0xfa63('0x1'));var moment=require(_0xfa63('0x2'));var BPromise=require(_0xfa63('0x3'));var rs=require(_0xfa63('0x4'));var fs=require('fs');var Redis=require(_0xfa63('0x5'));var db=require(_0xfa63('0x6'))['db'];var utils=require(_0xfa63('0x7'));var logger=require(_0xfa63('0x8'))(_0xfa63('0x9'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0xfa63('0xa')][_0xfa63('0xb')]({'port':0x232a});config[_0xfa63('0xc')]=_[_0xfa63('0xd')](config['redis'],{'host':'localhost','port':0x18eb});var socket=require('socket.io-emitter')(new Redis(config[_0xfa63('0xc')]));require(_0xfa63('0xe'))[_0xfa63('0xf')](socket);function respondWithRpcPromise(_0x47d90d,_0x181fec,_0x57faed){return new BPromise(function(_0xfcb3d1,_0x4b1959){return client[_0xfa63('0x10')](_0x47d90d,_0x57faed)[_0xfa63('0x11')](function(_0x3e5bfc){logger[_0xfa63('0x12')](_0xfa63('0x13'),_0x181fec,_0xfa63('0x14'));logger[_0xfa63('0x15')](_0xfa63('0x16'),_0x181fec,'request\x20sent',JSON['stringify'](_0x3e5bfc));if(_0x3e5bfc[_0xfa63('0x17')]){if(_0x3e5bfc[_0xfa63('0x17')][_0xfa63('0x18')]===0x1f4){logger['error'](_0xfa63('0x13'),_0x181fec,_0x3e5bfc['error'][_0xfa63('0x19')]);return _0x4b1959(_0x3e5bfc[_0xfa63('0x17')]['message']);}logger[_0xfa63('0x17')](_0xfa63('0x13'),_0x181fec,_0x3e5bfc[_0xfa63('0x17')][_0xfa63('0x19')]);return _0xfcb3d1(_0x3e5bfc[_0xfa63('0x17')][_0xfa63('0x19')]);}else{logger['info'](_0xfa63('0x13'),_0x181fec,_0xfa63('0x14'));_0xfcb3d1(_0x3e5bfc[_0xfa63('0x1a')][_0xfa63('0x19')]);}})['catch'](function(_0x58211b){logger[_0xfa63('0x17')](_0xfa63('0x13'),_0x181fec,_0x58211b);_0x4b1959(_0x58211b);});});}
\ No newline at end of file