Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / chatGroup / chatGroup.rpc.js
index d991fb6..6e5d627 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfa29=['./chatGroup.socket','register','then','info','ChatGroup,\x20%s,\x20%s','request\x20sent','debug','error','message','result','catch','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','defaults','localhost','socket.io-emitter','redis'];(function(_0xd2d993,_0x2ec36c){var _0x296464=function(_0x2cae7e){while(--_0x2cae7e){_0xd2d993['push'](_0xd2d993['shift']());}};_0x296464(++_0x2ec36c);}(_0xfa29,0x185));var _0x9fa2=function(_0x593787,_0x462df7){_0x593787=_0x593787-0x0;var _0x330f09=_0xfa29[_0x593787];return _0x330f09;};'use strict';var _=require('lodash');var util=require(_0x9fa2('0x0'));var moment=require(_0x9fa2('0x1'));var BPromise=require(_0x9fa2('0x2'));var rs=require(_0x9fa2('0x3'));var fs=require('fs');var Redis=require(_0x9fa2('0x4'));var db=require(_0x9fa2('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x9fa2('0x6'))(_0x9fa2('0x7'));var config=require(_0x9fa2('0x8'));var jayson=require(_0x9fa2('0x9'));var client=jayson[_0x9fa2('0xa')][_0x9fa2('0xb')]({'port':0x232a});config['redis']=_[_0x9fa2('0xc')](config['redis'],{'host':_0x9fa2('0xd'),'port':0x18eb});var socket=require(_0x9fa2('0xe'))(new Redis(config[_0x9fa2('0xf')]));require(_0x9fa2('0x10'))[_0x9fa2('0x11')](socket);function respondWithRpcPromise(_0x14b634,_0x327872,_0x42592c){return new BPromise(function(_0x16cf5e,_0x3a444f){return client['request'](_0x14b634,_0x42592c)[_0x9fa2('0x12')](function(_0x6beb20){logger[_0x9fa2('0x13')](_0x9fa2('0x14'),_0x327872,_0x9fa2('0x15'));logger[_0x9fa2('0x16')]('ChatGroup,\x20%s,\x20%s,\x20%s',_0x327872,'request\x20sent',JSON['stringify'](_0x6beb20));if(_0x6beb20[_0x9fa2('0x17')]){if(_0x6beb20['error']['code']===0x1f4){logger[_0x9fa2('0x17')](_0x9fa2('0x14'),_0x327872,_0x6beb20[_0x9fa2('0x17')][_0x9fa2('0x18')]);return _0x3a444f(_0x6beb20[_0x9fa2('0x17')]['message']);}logger['error'](_0x9fa2('0x14'),_0x327872,_0x6beb20[_0x9fa2('0x17')][_0x9fa2('0x18')]);return _0x16cf5e(_0x6beb20[_0x9fa2('0x17')][_0x9fa2('0x18')]);}else{logger[_0x9fa2('0x13')](_0x9fa2('0x14'),_0x327872,_0x9fa2('0x15'));_0x16cf5e(_0x6beb20[_0x9fa2('0x19')]['message']);}})[_0x9fa2('0x1a')](function(_0x4386fb){logger[_0x9fa2('0x17')](_0x9fa2('0x14'),_0x327872,_0x4386fb);_0x3a444f(_0x4386fb);});});}
\ No newline at end of file
+var _0xcdd0=['./chatGroup.socket','register','then','ChatGroup,\x20%s,\x20%s','request\x20sent','ChatGroup,\x20%s,\x20%s,\x20%s','stringify','error','info','catch','lodash','util','moment','bluebird','ioredis','../../config/logger','../../config/environment','jayson/promise','client','redis','defaults','localhost','socket.io-emitter'];(function(_0x3dc258,_0x4c1713){var _0x5a089d=function(_0x41f414){while(--_0x41f414){_0x3dc258['push'](_0x3dc258['shift']());}};_0x5a089d(++_0x4c1713);}(_0xcdd0,0xd9));var _0x0cdd=function(_0x5447fd,_0x52a6b5){_0x5447fd=_0x5447fd-0x0;var _0x15b28a=_0xcdd0[_0x5447fd];return _0x15b28a;};'use strict';var _=require(_0x0cdd('0x0'));var util=require(_0x0cdd('0x1'));var moment=require(_0x0cdd('0x2'));var BPromise=require(_0x0cdd('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x0cdd('0x4'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x0cdd('0x5'))('rpc');var config=require(_0x0cdd('0x6'));var jayson=require(_0x0cdd('0x7'));var client=jayson[_0x0cdd('0x8')]['http']({'port':0x232a});config[_0x0cdd('0x9')]=_[_0x0cdd('0xa')](config[_0x0cdd('0x9')],{'host':_0x0cdd('0xb'),'port':0x18eb});var socket=require(_0x0cdd('0xc'))(new Redis(config[_0x0cdd('0x9')]));require(_0x0cdd('0xd'))[_0x0cdd('0xe')](socket);function respondWithRpcPromise(_0x1708e2,_0x25f1fb,_0x2e2187){return new BPromise(function(_0x246486,_0xe81d8c){return client['request'](_0x1708e2,_0x2e2187)[_0x0cdd('0xf')](function(_0x359813){logger['info'](_0x0cdd('0x10'),_0x25f1fb,_0x0cdd('0x11'));logger['debug'](_0x0cdd('0x12'),_0x25f1fb,'request\x20sent',JSON[_0x0cdd('0x13')](_0x359813));if(_0x359813[_0x0cdd('0x14')]){if(_0x359813['error']['code']===0x1f4){logger[_0x0cdd('0x14')]('ChatGroup,\x20%s,\x20%s',_0x25f1fb,_0x359813['error']['message']);return _0xe81d8c(_0x359813[_0x0cdd('0x14')]['message']);}logger[_0x0cdd('0x14')](_0x0cdd('0x10'),_0x25f1fb,_0x359813[_0x0cdd('0x14')]['message']);return _0x246486(_0x359813[_0x0cdd('0x14')]['message']);}else{logger[_0x0cdd('0x15')](_0x0cdd('0x10'),_0x25f1fb,_0x0cdd('0x11'));_0x246486(_0x359813['result']['message']);}})[_0x0cdd('0x16')](function(_0x534b8f){logger[_0x0cdd('0x14')](_0x0cdd('0x10'),_0x25f1fb,_0x534b8f);_0xe81d8c(_0x534b8f);});});}
\ No newline at end of file