Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / api / userChatQueue / userChatQueue.rpc.js
index ef35350..77af426 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xdcce=['request','UserChatQueue,\x20%s,\x20%s','request\x20sent','debug','UserChatQueue,\x20%s,\x20%s,\x20%s','error','code','message','catch','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http'];(function(_0x10df5c,_0x14c714){var _0x9fcba6=function(_0x4d4554){while(--_0x4d4554){_0x10df5c['push'](_0x10df5c['shift']());}};_0x9fcba6(++_0x14c714);}(_0xdcce,0xfb));var _0xedcc=function(_0x81e6f,_0x40c197){_0x81e6f=_0x81e6f-0x0;var _0x522ab3=_0xdcce[_0x81e6f];return _0x522ab3;};'use strict';var _=require('lodash');var util=require(_0xedcc('0x0'));var moment=require(_0xedcc('0x1'));var BPromise=require(_0xedcc('0x2'));var rs=require(_0xedcc('0x3'));var fs=require('fs');var Redis=require(_0xedcc('0x4'));var db=require(_0xedcc('0x5'))['db'];var utils=require(_0xedcc('0x6'));var logger=require(_0xedcc('0x7'))(_0xedcc('0x8'));var config=require(_0xedcc('0x9'));var jayson=require(_0xedcc('0xa'));var client=jayson[_0xedcc('0xb')][_0xedcc('0xc')]({'port':0x232a});function respondWithRpcPromise(_0xc184b2,_0x4f414d,_0x266cb7){return new BPromise(function(_0x752811,_0x441e0e){return client[_0xedcc('0xd')](_0xc184b2,_0x266cb7)['then'](function(_0x4523bf){logger['info'](_0xedcc('0xe'),_0x4f414d,_0xedcc('0xf'));logger[_0xedcc('0x10')](_0xedcc('0x11'),_0x4f414d,_0xedcc('0xf'),JSON['stringify'](_0x4523bf));if(_0x4523bf[_0xedcc('0x12')]){if(_0x4523bf['error'][_0xedcc('0x13')]===0x1f4){logger['error'](_0xedcc('0xe'),_0x4f414d,_0x4523bf[_0xedcc('0x12')][_0xedcc('0x14')]);return _0x441e0e(_0x4523bf[_0xedcc('0x12')][_0xedcc('0x14')]);}logger[_0xedcc('0x12')](_0xedcc('0xe'),_0x4f414d,_0x4523bf[_0xedcc('0x12')][_0xedcc('0x14')]);return _0x752811(_0x4523bf['error']['message']);}else{logger['info'](_0xedcc('0xe'),_0x4f414d,_0xedcc('0xf'));_0x752811(_0x4523bf['result']['message']);}})[_0xedcc('0x15')](function(_0x5a815a){logger['error'](_0xedcc('0xe'),_0x4f414d,_0x5a815a);_0x441e0e(_0x5a815a);});});}
\ 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