Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / userChatQueue / userChatQueue.rpc.js
index 11e0045..53c2f1a 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x12f7=['util','bluebird','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','then','info','UserChatQueue,\x20%s,\x20%s','request\x20sent','debug','UserChatQueue,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','lodash'];(function(_0x87eee5,_0x581852){var _0x17e2dc=function(_0x1122d2){while(--_0x1122d2){_0x87eee5['push'](_0x87eee5['shift']());}};_0x17e2dc(++_0x581852);}(_0x12f7,0x103));var _0x712f=function(_0x51e86c,_0x4779bb){_0x51e86c=_0x51e86c-0x0;var _0x36099f=_0x12f7[_0x51e86c];return _0x36099f;};'use strict';var _=require(_0x712f('0x0'));var util=require(_0x712f('0x1'));var moment=require('moment');var BPromise=require(_0x712f('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x712f('0x3'))(_0x712f('0x4'));var config=require(_0x712f('0x5'));var jayson=require(_0x712f('0x6'));var client=jayson['client'][_0x712f('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x593ef0,_0x2451c7,_0x5a0163){return new BPromise(function(_0x4de939,_0x54b305){return client[_0x712f('0x8')](_0x593ef0,_0x5a0163)[_0x712f('0x9')](function(_0x31ca6a){logger[_0x712f('0xa')](_0x712f('0xb'),_0x2451c7,_0x712f('0xc'));logger[_0x712f('0xd')](_0x712f('0xe'),_0x2451c7,'request\x20sent',JSON[_0x712f('0xf')](_0x31ca6a));if(_0x31ca6a[_0x712f('0x10')]){if(_0x31ca6a[_0x712f('0x10')][_0x712f('0x11')]===0x1f4){logger[_0x712f('0x10')]('UserChatQueue,\x20%s,\x20%s',_0x2451c7,_0x31ca6a['error'][_0x712f('0x12')]);return _0x54b305(_0x31ca6a[_0x712f('0x10')][_0x712f('0x12')]);}logger[_0x712f('0x10')](_0x712f('0xb'),_0x2451c7,_0x31ca6a[_0x712f('0x10')][_0x712f('0x12')]);return _0x4de939(_0x31ca6a[_0x712f('0x10')][_0x712f('0x12')]);}else{logger[_0x712f('0xa')](_0x712f('0xb'),_0x2451c7,'request\x20sent');_0x4de939(_0x31ca6a[_0x712f('0x13')][_0x712f('0x12')]);}})['catch'](function(_0x2573d0){logger[_0x712f('0x10')](_0x712f('0xb'),_0x2451c7,_0x2573d0);_0x54b305(_0x2573d0);});});}
\ No newline at end of file
+var _0x98a2=['result','catch','lodash','moment','bluebird','randomstring','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent','UserChatQueue,\x20%s,\x20%s,\x20%s','stringify','error','code','UserChatQueue,\x20%s,\x20%s','message'];(function(_0x19950b,_0x53d0d7){var _0x3c6b41=function(_0x3924ad){while(--_0x3924ad){_0x19950b['push'](_0x19950b['shift']());}};_0x3c6b41(++_0x53d0d7);}(_0x98a2,0x144));var _0x298a=function(_0x24b72c,_0x40591b){_0x24b72c=_0x24b72c-0x0;var _0x161705=_0x98a2[_0x24b72c];return _0x161705;};'use strict';var _=require(_0x298a('0x0'));var util=require('util');var moment=require(_0x298a('0x1'));var BPromise=require(_0x298a('0x2'));var rs=require(_0x298a('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x298a('0x4'))['db'];var utils=require(_0x298a('0x5'));var logger=require(_0x298a('0x6'))('rpc');var config=require(_0x298a('0x7'));var jayson=require(_0x298a('0x8'));var client=jayson[_0x298a('0x9')][_0x298a('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x30c6d8,_0xd65f7a,_0x25b8e7){return new BPromise(function(_0x406731,_0x237080){return client[_0x298a('0xb')](_0x30c6d8,_0x25b8e7)[_0x298a('0xc')](function(_0x38b6ea){logger[_0x298a('0xd')]('UserChatQueue,\x20%s,\x20%s',_0xd65f7a,_0x298a('0xe'));logger['debug'](_0x298a('0xf'),_0xd65f7a,_0x298a('0xe'),JSON[_0x298a('0x10')](_0x38b6ea));if(_0x38b6ea[_0x298a('0x11')]){if(_0x38b6ea[_0x298a('0x11')][_0x298a('0x12')]===0x1f4){logger[_0x298a('0x11')](_0x298a('0x13'),_0xd65f7a,_0x38b6ea['error'][_0x298a('0x14')]);return _0x237080(_0x38b6ea[_0x298a('0x11')][_0x298a('0x14')]);}logger[_0x298a('0x11')](_0x298a('0x13'),_0xd65f7a,_0x38b6ea[_0x298a('0x11')]['message']);return _0x406731(_0x38b6ea[_0x298a('0x11')]['message']);}else{logger[_0x298a('0xd')]('UserChatQueue,\x20%s,\x20%s',_0xd65f7a,_0x298a('0xe'));_0x406731(_0x38b6ea[_0x298a('0x15')][_0x298a('0x14')]);}})[_0x298a('0x16')](function(_0x2bbb06){logger['error'](_0x298a('0x13'),_0xd65f7a,_0x2bbb06);_0x237080(_0x2bbb06);});});}
\ No newline at end of file