Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / chatInternalMessage / chatInternalMessage.rpc.js
index 55d38e5..e18074a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x12dc=['lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','redis','defaults','localhost','socket.io-emitter','./chatInternalMessage.socket','register','request','then','info','ChatInternalMessage,\x20%s,\x20%s','request\x20sent','debug','ChatInternalMessage,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result'];(function(_0x416a27,_0x220cd8){var _0x2c4e1b=function(_0x275b2c){while(--_0x275b2c){_0x416a27['push'](_0x416a27['shift']());}};_0x2c4e1b(++_0x220cd8);}(_0x12dc,0xb4));var _0xc12d=function(_0x11ec43,_0x2316c9){_0x11ec43=_0x11ec43-0x0;var _0x5d0e8f=_0x12dc[_0x11ec43];return _0x5d0e8f;};'use strict';var _=require(_0xc12d('0x0'));var util=require(_0xc12d('0x1'));var moment=require('moment');var BPromise=require(_0xc12d('0x2'));var rs=require(_0xc12d('0x3'));var fs=require('fs');var Redis=require(_0xc12d('0x4'));var db=require(_0xc12d('0x5'))['db'];var utils=require(_0xc12d('0x6'));var logger=require(_0xc12d('0x7'))(_0xc12d('0x8'));var config=require(_0xc12d('0x9'));var jayson=require(_0xc12d('0xa'));var client=jayson['client'][_0xc12d('0xb')]({'port':0x232a});config[_0xc12d('0xc')]=_[_0xc12d('0xd')](config[_0xc12d('0xc')],{'host':_0xc12d('0xe'),'port':0x18eb});var socket=require(_0xc12d('0xf'))(new Redis(config['redis']));require(_0xc12d('0x10'))[_0xc12d('0x11')](socket);function respondWithRpcPromise(_0x55c2e7,_0xe2f46d,_0x42a169){return new BPromise(function(_0x305101,_0x477d32){return client[_0xc12d('0x12')](_0x55c2e7,_0x42a169)[_0xc12d('0x13')](function(_0x2ad6ac){logger[_0xc12d('0x14')](_0xc12d('0x15'),_0xe2f46d,_0xc12d('0x16'));logger[_0xc12d('0x17')](_0xc12d('0x18'),_0xe2f46d,_0xc12d('0x16'),JSON[_0xc12d('0x19')](_0x2ad6ac));if(_0x2ad6ac[_0xc12d('0x1a')]){if(_0x2ad6ac['error'][_0xc12d('0x1b')]===0x1f4){logger[_0xc12d('0x1a')]('ChatInternalMessage,\x20%s,\x20%s',_0xe2f46d,_0x2ad6ac[_0xc12d('0x1a')][_0xc12d('0x1c')]);return _0x477d32(_0x2ad6ac[_0xc12d('0x1a')][_0xc12d('0x1c')]);}logger[_0xc12d('0x1a')](_0xc12d('0x15'),_0xe2f46d,_0x2ad6ac[_0xc12d('0x1a')][_0xc12d('0x1c')]);return _0x305101(_0x2ad6ac[_0xc12d('0x1a')][_0xc12d('0x1c')]);}else{logger[_0xc12d('0x14')](_0xc12d('0x15'),_0xe2f46d,_0xc12d('0x16'));_0x305101(_0x2ad6ac[_0xc12d('0x1d')][_0xc12d('0x1c')]);}})['catch'](function(_0x2f7199){logger[_0xc12d('0x1a')](_0xc12d('0x15'),_0xe2f46d,_0x2f7199);_0x477d32(_0x2f7199);});});}
\ No newline at end of file
+var _0x0ccb=['socket.io-emitter','./chatInternalMessage.socket','info','ChatInternalMessage,\x20%s,\x20%s','request\x20sent','debug','error','code','message','lodash','util','randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client','http','redis','defaults','localhost'];(function(_0x5ad2ca,_0x3fd18c){var _0x47c908=function(_0x5250c9){while(--_0x5250c9){_0x5ad2ca['push'](_0x5ad2ca['shift']());}};_0x47c908(++_0x3fd18c);}(_0x0ccb,0x77));var _0xb0cc=function(_0x5188a4,_0x41866d){_0x5188a4=_0x5188a4-0x0;var _0x218c30=_0x0ccb[_0x5188a4];return _0x218c30;};'use strict';var _=require(_0xb0cc('0x0'));var util=require(_0xb0cc('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0xb0cc('0x2'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xb0cc('0x3'))['db'];var utils=require(_0xb0cc('0x4'));var logger=require(_0xb0cc('0x5'))(_0xb0cc('0x6'));var config=require(_0xb0cc('0x7'));var jayson=require('jayson/promise');var client=jayson[_0xb0cc('0x8')][_0xb0cc('0x9')]({'port':0x232a});config[_0xb0cc('0xa')]=_[_0xb0cc('0xb')](config[_0xb0cc('0xa')],{'host':_0xb0cc('0xc'),'port':0x18eb});var socket=require(_0xb0cc('0xd'))(new Redis(config[_0xb0cc('0xa')]));require(_0xb0cc('0xe'))['register'](socket);function respondWithRpcPromise(_0x135560,_0x49a12d,_0x1e7650){return new BPromise(function(_0x52944b,_0x2cb1f7){return client['request'](_0x135560,_0x1e7650)['then'](function(_0x3e7361){logger[_0xb0cc('0xf')](_0xb0cc('0x10'),_0x49a12d,_0xb0cc('0x11'));logger[_0xb0cc('0x12')]('ChatInternalMessage,\x20%s,\x20%s,\x20%s',_0x49a12d,_0xb0cc('0x11'),JSON['stringify'](_0x3e7361));if(_0x3e7361[_0xb0cc('0x13')]){if(_0x3e7361['error'][_0xb0cc('0x14')]===0x1f4){logger['error'](_0xb0cc('0x10'),_0x49a12d,_0x3e7361[_0xb0cc('0x13')][_0xb0cc('0x15')]);return _0x2cb1f7(_0x3e7361[_0xb0cc('0x13')][_0xb0cc('0x15')]);}logger['error']('ChatInternalMessage,\x20%s,\x20%s',_0x49a12d,_0x3e7361[_0xb0cc('0x13')]['message']);return _0x52944b(_0x3e7361[_0xb0cc('0x13')][_0xb0cc('0x15')]);}else{logger['info'](_0xb0cc('0x10'),_0x49a12d,_0xb0cc('0x11'));_0x52944b(_0x3e7361['result'][_0xb0cc('0x15')]);}})['catch'](function(_0x2fd3d3){logger[_0xb0cc('0x13')]('ChatInternalMessage,\x20%s,\x20%s',_0x49a12d,_0x2fd3d3);_0x2cb1f7(_0x2fd3d3);});});}
\ No newline at end of file