Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / chatInternalMessage / chatInternalMessage.rpc.js
index 9236078..b399fb9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4bed=['./chatInternalMessage.socket','register','then','info','ChatInternalMessage,\x20%s,\x20%s','debug','ChatInternalMessage,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../config/utils','rpc','../../config/environment','jayson/promise','client','redis','defaults','localhost','socket.io-emitter'];(function(_0x3d941f,_0x247f26){var _0x352a9f=function(_0x537c02){while(--_0x537c02){_0x3d941f['push'](_0x3d941f['shift']());}};_0x352a9f(++_0x247f26);}(_0x4bed,0x109));var _0xd4be=function(_0x178c19,_0x4508d9){_0x178c19=_0x178c19-0x0;var _0xfc9847=_0x4bed[_0x178c19];return _0xfc9847;};'use strict';var _=require(_0xd4be('0x0'));var util=require(_0xd4be('0x1'));var moment=require(_0xd4be('0x2'));var BPromise=require(_0xd4be('0x3'));var rs=require(_0xd4be('0x4'));var fs=require('fs');var Redis=require(_0xd4be('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0xd4be('0x6'));var logger=require('../../config/logger')(_0xd4be('0x7'));var config=require(_0xd4be('0x8'));var jayson=require(_0xd4be('0x9'));var client=jayson[_0xd4be('0xa')]['http']({'port':0x232a});config[_0xd4be('0xb')]=_[_0xd4be('0xc')](config[_0xd4be('0xb')],{'host':_0xd4be('0xd'),'port':0x18eb});var socket=require(_0xd4be('0xe'))(new Redis(config[_0xd4be('0xb')]));require(_0xd4be('0xf'))[_0xd4be('0x10')](socket);function respondWithRpcPromise(_0x244067,_0x6dfd22,_0xf48775){return new BPromise(function(_0xa55c90,_0x3d09c1){return client['request'](_0x244067,_0xf48775)[_0xd4be('0x11')](function(_0x1dc4ec){logger[_0xd4be('0x12')](_0xd4be('0x13'),_0x6dfd22,'request\x20sent');logger[_0xd4be('0x14')](_0xd4be('0x15'),_0x6dfd22,_0xd4be('0x16'),JSON[_0xd4be('0x17')](_0x1dc4ec));if(_0x1dc4ec[_0xd4be('0x18')]){if(_0x1dc4ec[_0xd4be('0x18')][_0xd4be('0x19')]===0x1f4){logger[_0xd4be('0x18')]('ChatInternalMessage,\x20%s,\x20%s',_0x6dfd22,_0x1dc4ec['error'][_0xd4be('0x1a')]);return _0x3d09c1(_0x1dc4ec['error'][_0xd4be('0x1a')]);}logger[_0xd4be('0x18')](_0xd4be('0x13'),_0x6dfd22,_0x1dc4ec[_0xd4be('0x18')][_0xd4be('0x1a')]);return _0xa55c90(_0x1dc4ec[_0xd4be('0x18')][_0xd4be('0x1a')]);}else{logger[_0xd4be('0x12')]('ChatInternalMessage,\x20%s,\x20%s',_0x6dfd22,_0xd4be('0x16'));_0xa55c90(_0x1dc4ec['result'][_0xd4be('0x1a')]);}})[_0xd4be('0x1b')](function(_0x302355){logger[_0xd4be('0x18')](_0xd4be('0x13'),_0x6dfd22,_0x302355);_0x3d09c1(_0x302355);});});}
\ No newline at end of file
+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