Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / api / userChatQueue / userChatQueue.rpc.js
index a9596a0..77af426 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf5a9=['stringify','error','code','message','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','client','http','request','then','info','UserChatQueue,\x20%s,\x20%s','request\x20sent','debug','UserChatQueue,\x20%s,\x20%s,\x20%s'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0xf5a9,0x13d));var _0x9f5a=function(_0x38d47c,_0x14dcc2){_0x38d47c=_0x38d47c-0x0;var _0x149d45=_0xf5a9[_0x38d47c];return _0x149d45;};'use strict';var _=require(_0x9f5a('0x0'));var util=require(_0x9f5a('0x1'));var moment=require(_0x9f5a('0x2'));var BPromise=require(_0x9f5a('0x3'));var rs=require(_0x9f5a('0x4'));var fs=require('fs');var Redis=require(_0x9f5a('0x5'));var db=require(_0x9f5a('0x6'))['db'];var utils=require(_0x9f5a('0x7'));var logger=require(_0x9f5a('0x8'))(_0x9f5a('0x9'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0x9f5a('0xa')][_0x9f5a('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x5c8caf,_0x392548,_0x27dac4){return new BPromise(function(_0x388042,_0x6f25e1){return client[_0x9f5a('0xc')](_0x5c8caf,_0x27dac4)[_0x9f5a('0xd')](function(_0x5a2d4d){logger[_0x9f5a('0xe')](_0x9f5a('0xf'),_0x392548,_0x9f5a('0x10'));logger[_0x9f5a('0x11')](_0x9f5a('0x12'),_0x392548,_0x9f5a('0x10'),JSON[_0x9f5a('0x13')](_0x5a2d4d));if(_0x5a2d4d['error']){if(_0x5a2d4d[_0x9f5a('0x14')][_0x9f5a('0x15')]===0x1f4){logger[_0x9f5a('0x14')](_0x9f5a('0xf'),_0x392548,_0x5a2d4d[_0x9f5a('0x14')][_0x9f5a('0x16')]);return _0x6f25e1(_0x5a2d4d[_0x9f5a('0x14')][_0x9f5a('0x16')]);}logger['error'](_0x9f5a('0xf'),_0x392548,_0x5a2d4d[_0x9f5a('0x14')]['message']);return _0x388042(_0x5a2d4d[_0x9f5a('0x14')][_0x9f5a('0x16')]);}else{logger['info'](_0x9f5a('0xf'),_0x392548,_0x9f5a('0x10'));_0x388042(_0x5a2d4d['result']['message']);}})[_0x9f5a('0x17')](function(_0x5e5d96){logger[_0x9f5a('0x14')](_0x9f5a('0xf'),_0x392548,_0x5e5d96);_0x6f25e1(_0x5e5d96);});});}
\ 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