Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / api / userChatQueue / userChatQueue.rpc.js
index db44886..77af426 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x835e=['../../config/environment','jayson/promise','http','then','info','UserChatQueue,\x20%s,\x20%s','request\x20sent','UserChatQueue,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','randomstring','ioredis','../../mysqldb','../../config/utils','rpc'];(function(_0x259fdf,_0x4f0314){var _0x181ba1=function(_0x484872){while(--_0x484872){_0x259fdf['push'](_0x259fdf['shift']());}};_0x181ba1(++_0x4f0314);}(_0x835e,0x1b2));var _0xe835=function(_0x899ff6,_0x39b79c){_0x899ff6=_0x899ff6-0x0;var _0x219cbc=_0x835e[_0x899ff6];return _0x219cbc;};'use strict';var _=require(_0xe835('0x0'));var util=require(_0xe835('0x1'));var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0xe835('0x2'));var fs=require('fs');var Redis=require(_0xe835('0x3'));var db=require(_0xe835('0x4'))['db'];var utils=require(_0xe835('0x5'));var logger=require('../../config/logger')(_0xe835('0x6'));var config=require(_0xe835('0x7'));var jayson=require(_0xe835('0x8'));var client=jayson['client'][_0xe835('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x32f5f5,_0xd227c7,_0xbf7143){return new BPromise(function(_0x57baf3,_0x4d4fdd){return client['request'](_0x32f5f5,_0xbf7143)[_0xe835('0xa')](function(_0x2f491e){logger[_0xe835('0xb')](_0xe835('0xc'),_0xd227c7,_0xe835('0xd'));logger['debug'](_0xe835('0xe'),_0xd227c7,_0xe835('0xd'),JSON[_0xe835('0xf')](_0x2f491e));if(_0x2f491e[_0xe835('0x10')]){if(_0x2f491e[_0xe835('0x10')][_0xe835('0x11')]===0x1f4){logger[_0xe835('0x10')](_0xe835('0xc'),_0xd227c7,_0x2f491e[_0xe835('0x10')][_0xe835('0x12')]);return _0x4d4fdd(_0x2f491e[_0xe835('0x10')][_0xe835('0x12')]);}logger[_0xe835('0x10')](_0xe835('0xc'),_0xd227c7,_0x2f491e[_0xe835('0x10')]['message']);return _0x57baf3(_0x2f491e[_0xe835('0x10')]['message']);}else{logger[_0xe835('0xb')](_0xe835('0xc'),_0xd227c7,_0xe835('0xd'));_0x57baf3(_0x2f491e[_0xe835('0x13')][_0xe835('0x12')]);}})[_0xe835('0x14')](function(_0x464743){logger[_0xe835('0x10')](_0xe835('0xc'),_0xd227c7,_0x464743);_0x4d4fdd(_0x464743);});});}
\ No newline at end of file
+var _0xf497=['../../config/utils','rpc','client','http','request','info','request\x20sent','debug','UserChatQueue,\x20%s,\x20%s,\x20%s','stringify','error','code','UserChatQueue,\x20%s,\x20%s','message','result','util','bluebird','randomstring','ioredis','../../mysqldb'];(function(_0x33032e,_0x31411a){var _0x13316b=function(_0x2fb049){while(--_0x2fb049){_0x33032e['push'](_0x33032e['shift']());}};_0x13316b(++_0x31411a);}(_0xf497,0x18b));var _0x7f49=function(_0x160672,_0x570380){_0x160672=_0x160672-0x0;var _0x51fa43=_0xf497[_0x160672];return _0x51fa43;};'use strict';var _=require('lodash');var util=require(_0x7f49('0x0'));var moment=require('moment');var BPromise=require(_0x7f49('0x1'));var rs=require(_0x7f49('0x2'));var fs=require('fs');var Redis=require(_0x7f49('0x3'));var db=require(_0x7f49('0x4'))['db'];var utils=require(_0x7f49('0x5'));var logger=require('../../config/logger')(_0x7f49('0x6'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0x7f49('0x7')][_0x7f49('0x8')]({'port':0x232a});function respondWithRpcPromise(_0xea03f2,_0x415e53,_0x5a12bc){return new BPromise(function(_0x436017,_0x44e4fc){return client[_0x7f49('0x9')](_0xea03f2,_0x5a12bc)['then'](function(_0x28c466){logger[_0x7f49('0xa')]('UserChatQueue,\x20%s,\x20%s',_0x415e53,_0x7f49('0xb'));logger[_0x7f49('0xc')](_0x7f49('0xd'),_0x415e53,'request\x20sent',JSON[_0x7f49('0xe')](_0x28c466));if(_0x28c466[_0x7f49('0xf')]){if(_0x28c466[_0x7f49('0xf')][_0x7f49('0x10')]===0x1f4){logger[_0x7f49('0xf')](_0x7f49('0x11'),_0x415e53,_0x28c466[_0x7f49('0xf')][_0x7f49('0x12')]);return _0x44e4fc(_0x28c466[_0x7f49('0xf')][_0x7f49('0x12')]);}logger[_0x7f49('0xf')](_0x7f49('0x11'),_0x415e53,_0x28c466[_0x7f49('0xf')][_0x7f49('0x12')]);return _0x436017(_0x28c466[_0x7f49('0xf')]['message']);}else{logger[_0x7f49('0xa')](_0x7f49('0x11'),_0x415e53,'request\x20sent');_0x436017(_0x28c466[_0x7f49('0x13')]['message']);}})['catch'](function(_0x31796d){logger[_0x7f49('0xf')](_0x7f49('0x11'),_0x415e53,_0x31796d);_0x44e4fc(_0x31796d);});});}
\ No newline at end of file