Built motion from commit (unavailable).|2.5.25
[motion2.git] / server / api / userOpenchannelQueue / userOpenchannelQueue.rpc.js
index 296462b..3dc2707 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xdf31=['moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','then','info','request\x20sent','debug','stringify','error','UserOpenchannelQueue,\x20%s,\x20%s','message','result','lodash','util'];(function(_0x44f3f5,_0x32d7b4){var _0x120c35=function(_0x587b90){while(--_0x587b90){_0x44f3f5['push'](_0x44f3f5['shift']());}};_0x120c35(++_0x32d7b4);}(_0xdf31,0xae));var _0x1df3=function(_0x2b9529,_0x30aef8){_0x2b9529=_0x2b9529-0x0;var _0x25392c=_0xdf31[_0x2b9529];return _0x25392c;};'use strict';var _=require(_0x1df3('0x0'));var util=require(_0x1df3('0x1'));var moment=require(_0x1df3('0x2'));var BPromise=require('bluebird');var rs=require(_0x1df3('0x3'));var fs=require('fs');var Redis=require(_0x1df3('0x4'));var db=require(_0x1df3('0x5'))['db'];var utils=require(_0x1df3('0x6'));var logger=require(_0x1df3('0x7'))(_0x1df3('0x8'));var config=require(_0x1df3('0x9'));var jayson=require(_0x1df3('0xa'));var client=jayson[_0x1df3('0xb')][_0x1df3('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x8d9476,_0x3cd275,_0x40496){return new BPromise(function(_0xea8026,_0x4c43d3){return client['request'](_0x8d9476,_0x40496)[_0x1df3('0xd')](function(_0x33e18f){logger[_0x1df3('0xe')]('UserOpenchannelQueue,\x20%s,\x20%s',_0x3cd275,_0x1df3('0xf'));logger[_0x1df3('0x10')]('UserOpenchannelQueue,\x20%s,\x20%s,\x20%s',_0x3cd275,'request\x20sent',JSON[_0x1df3('0x11')](_0x33e18f));if(_0x33e18f[_0x1df3('0x12')]){if(_0x33e18f['error']['code']===0x1f4){logger['error'](_0x1df3('0x13'),_0x3cd275,_0x33e18f['error'][_0x1df3('0x14')]);return _0x4c43d3(_0x33e18f['error'][_0x1df3('0x14')]);}logger[_0x1df3('0x12')]('UserOpenchannelQueue,\x20%s,\x20%s',_0x3cd275,_0x33e18f[_0x1df3('0x12')]['message']);return _0xea8026(_0x33e18f[_0x1df3('0x12')][_0x1df3('0x14')]);}else{logger[_0x1df3('0xe')](_0x1df3('0x13'),_0x3cd275,'request\x20sent');_0xea8026(_0x33e18f[_0x1df3('0x15')][_0x1df3('0x14')]);}})['catch'](function(_0x2577e1){logger[_0x1df3('0x12')](_0x1df3('0x13'),_0x3cd275,_0x2577e1);_0x4c43d3(_0x2577e1);});});}
\ No newline at end of file
+var _0x8595=['../../config/logger','rpc','../../config/environment','http','request','then','info','UserOpenchannelQueue,\x20%s,\x20%s','request\x20sent','debug','UserOpenchannelQueue,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils'];(function(_0x38ce6b,_0xf42eee){var _0x1e54c0=function(_0x2dc8a7){while(--_0x2dc8a7){_0x38ce6b['push'](_0x38ce6b['shift']());}};_0x1e54c0(++_0xf42eee);}(_0x8595,0x124));var _0x5859=function(_0x494d1f,_0x3f72ff){_0x494d1f=_0x494d1f-0x0;var _0x457b6e=_0x8595[_0x494d1f];return _0x457b6e;};'use strict';var _=require(_0x5859('0x0'));var util=require(_0x5859('0x1'));var moment=require(_0x5859('0x2'));var BPromise=require('bluebird');var rs=require(_0x5859('0x3'));var fs=require('fs');var Redis=require(_0x5859('0x4'));var db=require(_0x5859('0x5'))['db'];var utils=require(_0x5859('0x6'));var logger=require(_0x5859('0x7'))(_0x5859('0x8'));var config=require(_0x5859('0x9'));var jayson=require('jayson/promise');var client=jayson['client'][_0x5859('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x5e5340,_0x4f0938,_0xdb28c2){return new BPromise(function(_0x242396,_0x279170){return client[_0x5859('0xb')](_0x5e5340,_0xdb28c2)[_0x5859('0xc')](function(_0xcae85a){logger[_0x5859('0xd')](_0x5859('0xe'),_0x4f0938,_0x5859('0xf'));logger[_0x5859('0x10')](_0x5859('0x11'),_0x4f0938,_0x5859('0xf'),JSON[_0x5859('0x12')](_0xcae85a));if(_0xcae85a[_0x5859('0x13')]){if(_0xcae85a[_0x5859('0x13')][_0x5859('0x14')]===0x1f4){logger[_0x5859('0x13')](_0x5859('0xe'),_0x4f0938,_0xcae85a['error']['message']);return _0x279170(_0xcae85a[_0x5859('0x13')][_0x5859('0x15')]);}logger[_0x5859('0x13')]('UserOpenchannelQueue,\x20%s,\x20%s',_0x4f0938,_0xcae85a[_0x5859('0x13')][_0x5859('0x15')]);return _0x242396(_0xcae85a['error'][_0x5859('0x15')]);}else{logger['info'](_0x5859('0xe'),_0x4f0938,'request\x20sent');_0x242396(_0xcae85a['result'][_0x5859('0x15')]);}})[_0x5859('0x16')](function(_0x57e6db){logger['error'](_0x5859('0xe'),_0x4f0938,_0x57e6db);_0x279170(_0x57e6db);});});}
\ No newline at end of file