Built motion from commit (unavailable).|2.5.31
[motion2.git] / server / api / chatInternalMessage / chatInternalMessage.rpc.js
index 9236078..ceb8aa3 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 _0xde1c=['client','http','redis','defaults','localhost','socket.io-emitter','./chatInternalMessage.socket','register','request','then','ChatInternalMessage,\x20%s,\x20%s','debug','ChatInternalMessage,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','info','result','catch','lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise'];(function(_0x50d61e,_0x26dbbd){var _0x16d1dc=function(_0x22fd1c){while(--_0x22fd1c){_0x50d61e['push'](_0x50d61e['shift']());}};_0x16d1dc(++_0x26dbbd);}(_0xde1c,0xee));var _0xcde1=function(_0x57bfca,_0x1d2611){_0x57bfca=_0x57bfca-0x0;var _0x5a58c2=_0xde1c[_0x57bfca];return _0x5a58c2;};'use strict';var _=require(_0xcde1('0x0'));var util=require(_0xcde1('0x1'));var moment=require(_0xcde1('0x2'));var BPromise=require(_0xcde1('0x3'));var rs=require(_0xcde1('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xcde1('0x5'))['db'];var utils=require(_0xcde1('0x6'));var logger=require(_0xcde1('0x7'))('rpc');var config=require(_0xcde1('0x8'));var jayson=require(_0xcde1('0x9'));var client=jayson[_0xcde1('0xa')][_0xcde1('0xb')]({'port':0x232a});config[_0xcde1('0xc')]=_[_0xcde1('0xd')](config[_0xcde1('0xc')],{'host':_0xcde1('0xe'),'port':0x18eb});var socket=require(_0xcde1('0xf'))(new Redis(config[_0xcde1('0xc')]));require(_0xcde1('0x10'))[_0xcde1('0x11')](socket);function respondWithRpcPromise(_0x1210a6,_0x531061,_0x255635){return new BPromise(function(_0x2172e3,_0x4ed5d7){return client[_0xcde1('0x12')](_0x1210a6,_0x255635)[_0xcde1('0x13')](function(_0x1ffa1f){logger['info'](_0xcde1('0x14'),_0x531061,'request\x20sent');logger[_0xcde1('0x15')](_0xcde1('0x16'),_0x531061,_0xcde1('0x17'),JSON[_0xcde1('0x18')](_0x1ffa1f));if(_0x1ffa1f[_0xcde1('0x19')]){if(_0x1ffa1f['error'][_0xcde1('0x1a')]===0x1f4){logger[_0xcde1('0x19')](_0xcde1('0x14'),_0x531061,_0x1ffa1f['error'][_0xcde1('0x1b')]);return _0x4ed5d7(_0x1ffa1f[_0xcde1('0x19')][_0xcde1('0x1b')]);}logger[_0xcde1('0x19')]('ChatInternalMessage,\x20%s,\x20%s',_0x531061,_0x1ffa1f['error']['message']);return _0x2172e3(_0x1ffa1f[_0xcde1('0x19')][_0xcde1('0x1b')]);}else{logger[_0xcde1('0x1c')](_0xcde1('0x14'),_0x531061,'request\x20sent');_0x2172e3(_0x1ffa1f[_0xcde1('0x1d')]['message']);}})[_0xcde1('0x1e')](function(_0x249895){logger[_0xcde1('0x19')](_0xcde1('0x14'),_0x531061,_0x249895);_0x4ed5d7(_0x249895);});});}
\ No newline at end of file