Built motion from commit (unavailable).|2.5.13
[motion2.git] / server / api / chatInternalMessage / chatInternalMessage.rpc.js
index 65b3e66..7ff06ee 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3ee6=['rpc','../../config/environment','jayson/promise','defaults','redis','localhost','socket.io-emitter','./chatInternalMessage.socket','request','then','info','ChatInternalMessage,\x20%s,\x20%s','request\x20sent','debug','ChatInternalMessage,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger'];(function(_0x44c31c,_0x265b05){var _0x2c716a=function(_0xcda6f0){while(--_0xcda6f0){_0x44c31c['push'](_0x44c31c['shift']());}};_0x2c716a(++_0x265b05);}(_0x3ee6,0xab));var _0x63ee=function(_0x151bfd,_0x247cc1){_0x151bfd=_0x151bfd-0x0;var _0x58c40d=_0x3ee6[_0x151bfd];return _0x58c40d;};'use strict';var _=require(_0x63ee('0x0'));var util=require(_0x63ee('0x1'));var moment=require(_0x63ee('0x2'));var BPromise=require(_0x63ee('0x3'));var rs=require(_0x63ee('0x4'));var fs=require('fs');var Redis=require(_0x63ee('0x5'));var db=require(_0x63ee('0x6'))['db'];var utils=require(_0x63ee('0x7'));var logger=require(_0x63ee('0x8'))(_0x63ee('0x9'));var config=require(_0x63ee('0xa'));var jayson=require(_0x63ee('0xb'));var client=jayson['client']['http']({'port':0x232a});config['redis']=_[_0x63ee('0xc')](config[_0x63ee('0xd')],{'host':_0x63ee('0xe'),'port':0x18eb});var socket=require(_0x63ee('0xf'))(new Redis(config['redis']));require(_0x63ee('0x10'))['register'](socket);function respondWithRpcPromise(_0x543883,_0x1a8ffa,_0x7051f1){return new BPromise(function(_0x2f83e4,_0x136603){return client[_0x63ee('0x11')](_0x543883,_0x7051f1)[_0x63ee('0x12')](function(_0x2c175b){logger[_0x63ee('0x13')](_0x63ee('0x14'),_0x1a8ffa,_0x63ee('0x15'));logger[_0x63ee('0x16')](_0x63ee('0x17'),_0x1a8ffa,_0x63ee('0x15'),JSON[_0x63ee('0x18')](_0x2c175b));if(_0x2c175b[_0x63ee('0x19')]){if(_0x2c175b[_0x63ee('0x19')][_0x63ee('0x1a')]===0x1f4){logger[_0x63ee('0x19')]('ChatInternalMessage,\x20%s,\x20%s',_0x1a8ffa,_0x2c175b[_0x63ee('0x19')][_0x63ee('0x1b')]);return _0x136603(_0x2c175b['error'][_0x63ee('0x1b')]);}logger[_0x63ee('0x19')](_0x63ee('0x14'),_0x1a8ffa,_0x2c175b[_0x63ee('0x19')][_0x63ee('0x1b')]);return _0x2f83e4(_0x2c175b['error']['message']);}else{logger[_0x63ee('0x13')]('ChatInternalMessage,\x20%s,\x20%s',_0x1a8ffa,_0x63ee('0x15'));_0x2f83e4(_0x2c175b[_0x63ee('0x1c')]['message']);}})[_0x63ee('0x1d')](function(_0x292b19){logger[_0x63ee('0x19')]('ChatInternalMessage,\x20%s,\x20%s',_0x1a8ffa,_0x292b19);_0x136603(_0x292b19);});});}
\ No newline at end of file
+var _0xcc9c=['http','redis','defaults','socket.io-emitter','./chatInternalMessage.socket','register','request','then','ChatInternalMessage,\x20%s,\x20%s','request\x20sent','debug','ChatInternalMessage,\x20%s,\x20%s,\x20%s','stringify','code','error','message','info','lodash','util','moment','bluebird','randomstring','ioredis','../../config/utils','jayson/promise','client'];(function(_0x139a3c,_0x4fc883){var _0x2b375b=function(_0x525dbf){while(--_0x525dbf){_0x139a3c['push'](_0x139a3c['shift']());}};_0x2b375b(++_0x4fc883);}(_0xcc9c,0xfb));var _0xccc9=function(_0x29b149,_0x2f7315){_0x29b149=_0x29b149-0x0;var _0x2da8d7=_0xcc9c[_0x29b149];return _0x2da8d7;};'use strict';var _=require(_0xccc9('0x0'));var util=require(_0xccc9('0x1'));var moment=require(_0xccc9('0x2'));var BPromise=require(_0xccc9('0x3'));var rs=require(_0xccc9('0x4'));var fs=require('fs');var Redis=require(_0xccc9('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0xccc9('0x6'));var logger=require('../../config/logger')('rpc');var config=require('../../config/environment');var jayson=require(_0xccc9('0x7'));var client=jayson[_0xccc9('0x8')][_0xccc9('0x9')]({'port':0x232a});config[_0xccc9('0xa')]=_[_0xccc9('0xb')](config['redis'],{'host':'localhost','port':0x18eb});var socket=require(_0xccc9('0xc'))(new Redis(config[_0xccc9('0xa')]));require(_0xccc9('0xd'))[_0xccc9('0xe')](socket);function respondWithRpcPromise(_0x2f7f02,_0x1856c6,_0x1bdb1d){return new BPromise(function(_0x12e4f8,_0x21a9a6){return client[_0xccc9('0xf')](_0x2f7f02,_0x1bdb1d)[_0xccc9('0x10')](function(_0x5dc59d){logger['info'](_0xccc9('0x11'),_0x1856c6,_0xccc9('0x12'));logger[_0xccc9('0x13')](_0xccc9('0x14'),_0x1856c6,_0xccc9('0x12'),JSON[_0xccc9('0x15')](_0x5dc59d));if(_0x5dc59d['error']){if(_0x5dc59d['error'][_0xccc9('0x16')]===0x1f4){logger[_0xccc9('0x17')](_0xccc9('0x11'),_0x1856c6,_0x5dc59d[_0xccc9('0x17')]['message']);return _0x21a9a6(_0x5dc59d['error'][_0xccc9('0x18')]);}logger['error'](_0xccc9('0x11'),_0x1856c6,_0x5dc59d['error'][_0xccc9('0x18')]);return _0x12e4f8(_0x5dc59d['error'][_0xccc9('0x18')]);}else{logger[_0xccc9('0x19')](_0xccc9('0x11'),_0x1856c6,_0xccc9('0x12'));_0x12e4f8(_0x5dc59d['result'][_0xccc9('0x18')]);}})['catch'](function(_0x340b38){logger[_0xccc9('0x17')](_0xccc9('0x11'),_0x1856c6,_0x340b38);_0x21a9a6(_0x340b38);});});}
\ No newline at end of file