Built motion from commit 936e8062.|2.5.33
[motion2.git] / server / api / userOpenchannelQueue / userOpenchannelQueue.rpc.js
index c6ffec9..0a9bca5 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x3a39=['util','moment','bluebird','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','then','info','debug','UserOpenchannelQueue,\x20%s,\x20%s,\x20%s','stringify','error','code','UserOpenchannelQueue,\x20%s,\x20%s','message','request\x20sent','catch'];(function(_0x2be8c2,_0x14a4b5){var _0x97f531=function(_0xcee58d){while(--_0xcee58d){_0x2be8c2['push'](_0x2be8c2['shift']());}};_0x97f531(++_0x14a4b5);}(_0x3a39,0x18f));var _0x93a3=function(_0x3bf83f,_0x181cac){_0x3bf83f=_0x3bf83f-0x0;var _0x22c4a9=_0x3a39[_0x3bf83f];return _0x22c4a9;};'use strict';var _=require('lodash');var util=require(_0x93a3('0x0'));var moment=require(_0x93a3('0x1'));var BPromise=require(_0x93a3('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0x93a3('0x3'));var logger=require(_0x93a3('0x4'))(_0x93a3('0x5'));var config=require(_0x93a3('0x6'));var jayson=require(_0x93a3('0x7'));var client=jayson['client'][_0x93a3('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x33ba5b,_0x588257,_0x3721d0){return new BPromise(function(_0x43fa73,_0x2cf3f7){return client[_0x93a3('0x9')](_0x33ba5b,_0x3721d0)[_0x93a3('0xa')](function(_0x30741d){logger[_0x93a3('0xb')]('UserOpenchannelQueue,\x20%s,\x20%s',_0x588257,'request\x20sent');logger[_0x93a3('0xc')](_0x93a3('0xd'),_0x588257,'request\x20sent',JSON[_0x93a3('0xe')](_0x30741d));if(_0x30741d[_0x93a3('0xf')]){if(_0x30741d[_0x93a3('0xf')][_0x93a3('0x10')]===0x1f4){logger['error'](_0x93a3('0x11'),_0x588257,_0x30741d['error'][_0x93a3('0x12')]);return _0x2cf3f7(_0x30741d[_0x93a3('0xf')][_0x93a3('0x12')]);}logger[_0x93a3('0xf')](_0x93a3('0x11'),_0x588257,_0x30741d[_0x93a3('0xf')][_0x93a3('0x12')]);return _0x43fa73(_0x30741d[_0x93a3('0xf')][_0x93a3('0x12')]);}else{logger[_0x93a3('0xb')](_0x93a3('0x11'),_0x588257,_0x93a3('0x13'));_0x43fa73(_0x30741d['result'][_0x93a3('0x12')]);}})[_0x93a3('0x14')](function(_0x243614){logger['error'](_0x93a3('0x11'),_0x588257,_0x243614);_0x2cf3f7(_0x243614);});});}
\ No newline at end of file
+var _0xc471=['message','info','result','catch','lodash','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','http','then','UserOpenchannelQueue,\x20%s,\x20%s','debug','UserOpenchannelQueue,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code'];(function(_0x50a004,_0x193d84){var _0x5e9992=function(_0x3c8c37){while(--_0x3c8c37){_0x50a004['push'](_0x50a004['shift']());}};_0x5e9992(++_0x193d84);}(_0xc471,0x164));var _0x1c47=function(_0x18c218,_0x29fdc8){_0x18c218=_0x18c218-0x0;var _0x546fa6=_0xc471[_0x18c218];return _0x546fa6;};'use strict';var _=require(_0x1c47('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0x1c47('0x1'));var rs=require(_0x1c47('0x2'));var fs=require('fs');var Redis=require(_0x1c47('0x3'));var db=require(_0x1c47('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0x1c47('0x5'))(_0x1c47('0x6'));var config=require(_0x1c47('0x7'));var jayson=require(_0x1c47('0x8'));var client=jayson['client'][_0x1c47('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x2a3cec,_0x12731c,_0x53cbd9){return new BPromise(function(_0x9b4f93,_0x235ae1){return client['request'](_0x2a3cec,_0x53cbd9)[_0x1c47('0xa')](function(_0x264459){logger['info'](_0x1c47('0xb'),_0x12731c,'request\x20sent');logger[_0x1c47('0xc')](_0x1c47('0xd'),_0x12731c,_0x1c47('0xe'),JSON[_0x1c47('0xf')](_0x264459));if(_0x264459['error']){if(_0x264459[_0x1c47('0x10')][_0x1c47('0x11')]===0x1f4){logger[_0x1c47('0x10')](_0x1c47('0xb'),_0x12731c,_0x264459['error']['message']);return _0x235ae1(_0x264459[_0x1c47('0x10')][_0x1c47('0x12')]);}logger[_0x1c47('0x10')](_0x1c47('0xb'),_0x12731c,_0x264459['error'][_0x1c47('0x12')]);return _0x9b4f93(_0x264459[_0x1c47('0x10')][_0x1c47('0x12')]);}else{logger[_0x1c47('0x13')](_0x1c47('0xb'),_0x12731c,_0x1c47('0xe'));_0x9b4f93(_0x264459[_0x1c47('0x14')][_0x1c47('0x12')]);}})[_0x1c47('0x15')](function(_0x451e16){logger[_0x1c47('0x10')](_0x1c47('0xb'),_0x12731c,_0x451e16);_0x235ae1(_0x451e16);});});}
\ No newline at end of file