Built motion from commit 0900f080.|2.5.45
[motion2.git] / server / api / userChatQueue / userChatQueue.rpc.js
index 93637de..5b42fa4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x865c=['http','request','then','info','request\x20sent','UserChatQueue,\x20%s,\x20%s,\x20%s','stringify','error','UserChatQueue,\x20%s,\x20%s','message','catch','lodash','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/environment','jayson/promise'];(function(_0x75edae,_0x805c87){var _0x41688c=function(_0x5938d9){while(--_0x5938d9){_0x75edae['push'](_0x75edae['shift']());}};_0x41688c(++_0x805c87);}(_0x865c,0xef));var _0xc865=function(_0x4b2c6c,_0x41f73d){_0x4b2c6c=_0x4b2c6c-0x0;var _0x54a44c=_0x865c[_0x4b2c6c];return _0x54a44c;};'use strict';var _=require(_0xc865('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0xc865('0x1'));var rs=require(_0xc865('0x2'));var fs=require('fs');var Redis=require(_0xc865('0x3'));var db=require(_0xc865('0x4'))['db'];var utils=require(_0xc865('0x5'));var logger=require('../../config/logger')('rpc');var config=require(_0xc865('0x6'));var jayson=require(_0xc865('0x7'));var client=jayson['client'][_0xc865('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x4843d9,_0xe5b9b8,_0x1b71b1){return new BPromise(function(_0x2d8af5,_0x18c285){return client[_0xc865('0x9')](_0x4843d9,_0x1b71b1)[_0xc865('0xa')](function(_0x1e36d7){logger[_0xc865('0xb')]('UserChatQueue,\x20%s,\x20%s',_0xe5b9b8,_0xc865('0xc'));logger['debug'](_0xc865('0xd'),_0xe5b9b8,_0xc865('0xc'),JSON[_0xc865('0xe')](_0x1e36d7));if(_0x1e36d7[_0xc865('0xf')]){if(_0x1e36d7[_0xc865('0xf')]['code']===0x1f4){logger[_0xc865('0xf')](_0xc865('0x10'),_0xe5b9b8,_0x1e36d7[_0xc865('0xf')]['message']);return _0x18c285(_0x1e36d7['error'][_0xc865('0x11')]);}logger[_0xc865('0xf')]('UserChatQueue,\x20%s,\x20%s',_0xe5b9b8,_0x1e36d7[_0xc865('0xf')][_0xc865('0x11')]);return _0x2d8af5(_0x1e36d7['error'][_0xc865('0x11')]);}else{logger[_0xc865('0xb')](_0xc865('0x10'),_0xe5b9b8,_0xc865('0xc'));_0x2d8af5(_0x1e36d7['result'][_0xc865('0x11')]);}})[_0xc865('0x12')](function(_0x597ed1){logger[_0xc865('0xf')](_0xc865('0x10'),_0xe5b9b8,_0x597ed1);_0x18c285(_0x597ed1);});});}
\ No newline at end of file
+var _0x6d62=['UserChatQueue,\x20%s,\x20%s,\x20%s','error','code','message','info','result','catch','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','then','UserChatQueue,\x20%s,\x20%s','request\x20sent','debug'];(function(_0x1b6573,_0x4a150f){var _0x1219b5=function(_0x4f39b3){while(--_0x4f39b3){_0x1b6573['push'](_0x1b6573['shift']());}};_0x1219b5(++_0x4a150f);}(_0x6d62,0x187));var _0x26d6=function(_0x45cb89,_0x99520e){_0x45cb89=_0x45cb89-0x0;var _0x5948c1=_0x6d62[_0x45cb89];return _0x5948c1;};'use strict';var _=require(_0x26d6('0x0'));var util=require(_0x26d6('0x1'));var moment=require('moment');var BPromise=require(_0x26d6('0x2'));var rs=require(_0x26d6('0x3'));var fs=require('fs');var Redis=require(_0x26d6('0x4'));var db=require(_0x26d6('0x5'))['db'];var utils=require(_0x26d6('0x6'));var logger=require(_0x26d6('0x7'))(_0x26d6('0x8'));var config=require(_0x26d6('0x9'));var jayson=require(_0x26d6('0xa'));var client=jayson[_0x26d6('0xb')][_0x26d6('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x198acc,_0x51c11f,_0x3a437f){return new BPromise(function(_0x46d48e,_0x41bb0c){return client['request'](_0x198acc,_0x3a437f)[_0x26d6('0xd')](function(_0xea4582){logger['info'](_0x26d6('0xe'),_0x51c11f,_0x26d6('0xf'));logger[_0x26d6('0x10')](_0x26d6('0x11'),_0x51c11f,'request\x20sent',JSON['stringify'](_0xea4582));if(_0xea4582[_0x26d6('0x12')]){if(_0xea4582[_0x26d6('0x12')][_0x26d6('0x13')]===0x1f4){logger[_0x26d6('0x12')](_0x26d6('0xe'),_0x51c11f,_0xea4582[_0x26d6('0x12')]['message']);return _0x41bb0c(_0xea4582[_0x26d6('0x12')]['message']);}logger[_0x26d6('0x12')](_0x26d6('0xe'),_0x51c11f,_0xea4582[_0x26d6('0x12')][_0x26d6('0x14')]);return _0x46d48e(_0xea4582['error'][_0x26d6('0x14')]);}else{logger[_0x26d6('0x15')]('UserChatQueue,\x20%s,\x20%s',_0x51c11f,_0x26d6('0xf'));_0x46d48e(_0xea4582[_0x26d6('0x16')]['message']);}})[_0x26d6('0x17')](function(_0x2de69c){logger[_0x26d6('0x12')](_0x26d6('0xe'),_0x51c11f,_0x2de69c);_0x41bb0c(_0x2de69c);});});}
\ No newline at end of file