Built motion from commit (unavailable).|2.5.27
[motion2.git] / server / api / chatInternalMessage / chatInternalMessage.rpc.js
index c7b15bf..3ae0226 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xe4b7=['message','request\x20sent','result','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','redis','defaults','localhost','socket.io-emitter','./chatInternalMessage.socket','register','request','then','info','ChatInternalMessage,\x20%s,\x20%s','debug','ChatInternalMessage,\x20%s,\x20%s,\x20%s','error','code'];(function(_0x2c8a32,_0x46f29e){var _0x22b3d7=function(_0x4d681a){while(--_0x4d681a){_0x2c8a32['push'](_0x2c8a32['shift']());}};_0x22b3d7(++_0x46f29e);}(_0xe4b7,0x189));var _0x7e4b=function(_0x23b106,_0x50acec){_0x23b106=_0x23b106-0x0;var _0x3c88e5=_0xe4b7[_0x23b106];return _0x3c88e5;};'use strict';var _=require(_0x7e4b('0x0'));var util=require(_0x7e4b('0x1'));var moment=require(_0x7e4b('0x2'));var BPromise=require(_0x7e4b('0x3'));var rs=require(_0x7e4b('0x4'));var fs=require('fs');var Redis=require(_0x7e4b('0x5'));var db=require(_0x7e4b('0x6'))['db'];var utils=require(_0x7e4b('0x7'));var logger=require(_0x7e4b('0x8'))(_0x7e4b('0x9'));var config=require(_0x7e4b('0xa'));var jayson=require(_0x7e4b('0xb'));var client=jayson[_0x7e4b('0xc')]['http']({'port':0x232a});config[_0x7e4b('0xd')]=_[_0x7e4b('0xe')](config[_0x7e4b('0xd')],{'host':_0x7e4b('0xf'),'port':0x18eb});var socket=require(_0x7e4b('0x10'))(new Redis(config[_0x7e4b('0xd')]));require(_0x7e4b('0x11'))[_0x7e4b('0x12')](socket);function respondWithRpcPromise(_0x4705e5,_0x1a5cb9,_0x1d224d){return new BPromise(function(_0x1873d4,_0x4d357c){return client[_0x7e4b('0x13')](_0x4705e5,_0x1d224d)[_0x7e4b('0x14')](function(_0x27b559){logger[_0x7e4b('0x15')](_0x7e4b('0x16'),_0x1a5cb9,'request\x20sent');logger[_0x7e4b('0x17')](_0x7e4b('0x18'),_0x1a5cb9,'request\x20sent',JSON['stringify'](_0x27b559));if(_0x27b559[_0x7e4b('0x19')]){if(_0x27b559[_0x7e4b('0x19')][_0x7e4b('0x1a')]===0x1f4){logger['error'](_0x7e4b('0x16'),_0x1a5cb9,_0x27b559['error'][_0x7e4b('0x1b')]);return _0x4d357c(_0x27b559[_0x7e4b('0x19')]['message']);}logger[_0x7e4b('0x19')]('ChatInternalMessage,\x20%s,\x20%s',_0x1a5cb9,_0x27b559[_0x7e4b('0x19')]['message']);return _0x1873d4(_0x27b559['error'][_0x7e4b('0x1b')]);}else{logger['info'](_0x7e4b('0x16'),_0x1a5cb9,_0x7e4b('0x1c'));_0x1873d4(_0x27b559[_0x7e4b('0x1d')][_0x7e4b('0x1b')]);}})['catch'](function(_0x34bd98){logger[_0x7e4b('0x19')](_0x7e4b('0x16'),_0x1a5cb9,_0x34bd98);_0x4d357c(_0x34bd98);});});}
\ No newline at end of file
+var _0xc1ab=['redis','defaults','localhost','./chatInternalMessage.socket','request','then','info','ChatInternalMessage,\x20%s,\x20%s','request\x20sent','debug','ChatInternalMessage,\x20%s,\x20%s,\x20%s','error','code','message','catch','lodash','util','moment','../../config/utils','../../config/logger','rpc','../../config/environment'];(function(_0x589f71,_0x212326){var _0x5763bd=function(_0x2cb8e1){while(--_0x2cb8e1){_0x589f71['push'](_0x589f71['shift']());}};_0x5763bd(++_0x212326);}(_0xc1ab,0x67));var _0xbc1a=function(_0x481748,_0x19cfc9){_0x481748=_0x481748-0x0;var _0x3c36ab=_0xc1ab[_0x481748];return _0x3c36ab;};'use strict';var _=require(_0xbc1a('0x0'));var util=require(_0xbc1a('0x1'));var moment=require(_0xbc1a('0x2'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0xbc1a('0x3'));var logger=require(_0xbc1a('0x4'))(_0xbc1a('0x5'));var config=require(_0xbc1a('0x6'));var jayson=require('jayson/promise');var client=jayson['client']['http']({'port':0x232a});config[_0xbc1a('0x7')]=_[_0xbc1a('0x8')](config[_0xbc1a('0x7')],{'host':_0xbc1a('0x9'),'port':0x18eb});var socket=require('socket.io-emitter')(new Redis(config['redis']));require(_0xbc1a('0xa'))['register'](socket);function respondWithRpcPromise(_0x5d30b5,_0x42d8ab,_0x46a6f9){return new BPromise(function(_0x14ac9d,_0x39c830){return client[_0xbc1a('0xb')](_0x5d30b5,_0x46a6f9)[_0xbc1a('0xc')](function(_0x59acbd){logger[_0xbc1a('0xd')](_0xbc1a('0xe'),_0x42d8ab,_0xbc1a('0xf'));logger[_0xbc1a('0x10')](_0xbc1a('0x11'),_0x42d8ab,'request\x20sent',JSON['stringify'](_0x59acbd));if(_0x59acbd['error']){if(_0x59acbd[_0xbc1a('0x12')][_0xbc1a('0x13')]===0x1f4){logger[_0xbc1a('0x12')](_0xbc1a('0xe'),_0x42d8ab,_0x59acbd[_0xbc1a('0x12')]['message']);return _0x39c830(_0x59acbd['error']['message']);}logger[_0xbc1a('0x12')]('ChatInternalMessage,\x20%s,\x20%s',_0x42d8ab,_0x59acbd[_0xbc1a('0x12')][_0xbc1a('0x14')]);return _0x14ac9d(_0x59acbd['error'][_0xbc1a('0x14')]);}else{logger[_0xbc1a('0xd')]('ChatInternalMessage,\x20%s,\x20%s',_0x42d8ab,_0xbc1a('0xf'));_0x14ac9d(_0x59acbd['result'][_0xbc1a('0x14')]);}})[_0xbc1a('0x15')](function(_0x54dbe7){logger['error'](_0xbc1a('0xe'),_0x42d8ab,_0x54dbe7);_0x39c830(_0x54dbe7);});});}
\ No newline at end of file