Built motion from commit 1fa89557.|2.6.10
[motion2.git] / server / api / userChatQueue / userChatQueue.rpc.js
index 14aaea6..1bd3480 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb1c0=['client','http','request','then','info','UserChatQueue,\x20%s,\x20%s','request\x20sent','debug','UserChatQueue,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise'];(function(_0x5b52d4,_0x1d3600){var _0x34cce1=function(_0x34363f){while(--_0x34363f){_0x5b52d4['push'](_0x5b52d4['shift']());}};_0x34cce1(++_0x1d3600);}(_0xb1c0,0xbd));var _0x0b1c=function(_0x4b7895,_0x3c4f5d){_0x4b7895=_0x4b7895-0x0;var _0x264180=_0xb1c0[_0x4b7895];return _0x264180;};'use strict';var _=require(_0x0b1c('0x0'));var util=require(_0x0b1c('0x1'));var moment=require(_0x0b1c('0x2'));var BPromise=require(_0x0b1c('0x3'));var rs=require(_0x0b1c('0x4'));var fs=require('fs');var Redis=require(_0x0b1c('0x5'));var db=require(_0x0b1c('0x6'))['db'];var utils=require('../../config/utils');var logger=require(_0x0b1c('0x7'))(_0x0b1c('0x8'));var config=require(_0x0b1c('0x9'));var jayson=require(_0x0b1c('0xa'));var client=jayson[_0x0b1c('0xb')][_0x0b1c('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x1f6dab,_0x1d079f,_0x311b5d){return new BPromise(function(_0x34aa2a,_0x28b9e8){return client[_0x0b1c('0xd')](_0x1f6dab,_0x311b5d)[_0x0b1c('0xe')](function(_0x4035d6){logger[_0x0b1c('0xf')](_0x0b1c('0x10'),_0x1d079f,_0x0b1c('0x11'));logger[_0x0b1c('0x12')](_0x0b1c('0x13'),_0x1d079f,_0x0b1c('0x11'),JSON[_0x0b1c('0x14')](_0x4035d6));if(_0x4035d6[_0x0b1c('0x15')]){if(_0x4035d6[_0x0b1c('0x15')][_0x0b1c('0x16')]===0x1f4){logger[_0x0b1c('0x15')](_0x0b1c('0x10'),_0x1d079f,_0x4035d6[_0x0b1c('0x15')][_0x0b1c('0x17')]);return _0x28b9e8(_0x4035d6['error']['message']);}logger[_0x0b1c('0x15')]('UserChatQueue,\x20%s,\x20%s',_0x1d079f,_0x4035d6[_0x0b1c('0x15')][_0x0b1c('0x17')]);return _0x34aa2a(_0x4035d6[_0x0b1c('0x15')]['message']);}else{logger['info'](_0x0b1c('0x10'),_0x1d079f,_0x0b1c('0x11'));_0x34aa2a(_0x4035d6['result'][_0x0b1c('0x17')]);}})[_0x0b1c('0x18')](function(_0x267f46){logger[_0x0b1c('0x15')](_0x0b1c('0x10'),_0x1d079f,_0x267f46);_0x28b9e8(_0x267f46);});});}
\ No newline at end of file
+var _0x8ac5=['request','info','UserChatQueue,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','catch','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','client','http'];(function(_0x236092,_0x2f90ba){var _0x353481=function(_0x591807){while(--_0x591807){_0x236092['push'](_0x236092['shift']());}};_0x353481(++_0x2f90ba);}(_0x8ac5,0x1d9));var _0x58ac=function(_0xfd2148,_0x1cee56){_0xfd2148=_0xfd2148-0x0;var _0xd8fbc8=_0x8ac5[_0xfd2148];return _0xd8fbc8;};'use strict';var _=require('lodash');var util=require(_0x58ac('0x0'));var moment=require(_0x58ac('0x1'));var BPromise=require(_0x58ac('0x2'));var rs=require(_0x58ac('0x3'));var fs=require('fs');var Redis=require(_0x58ac('0x4'));var db=require(_0x58ac('0x5'))['db'];var utils=require(_0x58ac('0x6'));var logger=require(_0x58ac('0x7'))(_0x58ac('0x8'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0x58ac('0x9')][_0x58ac('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x7f6c33,_0x22fcf4,_0x55b141){return new BPromise(function(_0x132d19,_0x4c7a27){return client[_0x58ac('0xb')](_0x7f6c33,_0x55b141)['then'](function(_0x3e24d4){logger[_0x58ac('0xc')](_0x58ac('0xd'),_0x22fcf4,_0x58ac('0xe'));logger[_0x58ac('0xf')]('UserChatQueue,\x20%s,\x20%s,\x20%s',_0x22fcf4,_0x58ac('0xe'),JSON[_0x58ac('0x10')](_0x3e24d4));if(_0x3e24d4[_0x58ac('0x11')]){if(_0x3e24d4[_0x58ac('0x11')][_0x58ac('0x12')]===0x1f4){logger[_0x58ac('0x11')]('UserChatQueue,\x20%s,\x20%s',_0x22fcf4,_0x3e24d4['error']['message']);return _0x4c7a27(_0x3e24d4[_0x58ac('0x11')][_0x58ac('0x13')]);}logger[_0x58ac('0x11')]('UserChatQueue,\x20%s,\x20%s',_0x22fcf4,_0x3e24d4[_0x58ac('0x11')][_0x58ac('0x13')]);return _0x132d19(_0x3e24d4[_0x58ac('0x11')]['message']);}else{logger[_0x58ac('0xc')](_0x58ac('0xd'),_0x22fcf4,_0x58ac('0xe'));_0x132d19(_0x3e24d4[_0x58ac('0x14')][_0x58ac('0x13')]);}})[_0x58ac('0x15')](function(_0xea6db9){logger[_0x58ac('0x11')]('UserChatQueue,\x20%s,\x20%s',_0x22fcf4,_0xea6db9);_0x4c7a27(_0xea6db9);});});}
\ No newline at end of file