Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / api / openchannelTransferReport / openchannelTransferReport.rpc.js
index 345e614..450b85e 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8098=['message','catch','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','then','info','OpenchannelTransferReport,\x20%s,\x20%s','request\x20sent','debug','OpenchannelTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code'];(function(_0x8900b4,_0x4f02ee){var _0x4a7b0a=function(_0x24578b){while(--_0x24578b){_0x8900b4['push'](_0x8900b4['shift']());}};_0x4a7b0a(++_0x4f02ee);}(_0x8098,0x1ba));var _0x8809=function(_0xee34e4,_0x475367){_0xee34e4=_0xee34e4-0x0;var _0x50479e=_0x8098[_0xee34e4];return _0x50479e;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0x8809('0x0'));var BPromise=require(_0x8809('0x1'));var rs=require(_0x8809('0x2'));var fs=require('fs');var Redis=require(_0x8809('0x3'));var db=require(_0x8809('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0x8809('0x5'))(_0x8809('0x6'));var config=require(_0x8809('0x7'));var jayson=require(_0x8809('0x8'));var client=jayson['client'][_0x8809('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x2af39c,_0x54880c,_0x3f4bee){return new BPromise(function(_0x3fd084,_0x181e8b){return client[_0x8809('0xa')](_0x2af39c,_0x3f4bee)[_0x8809('0xb')](function(_0x34f85f){logger[_0x8809('0xc')](_0x8809('0xd'),_0x54880c,_0x8809('0xe'));logger[_0x8809('0xf')](_0x8809('0x10'),_0x54880c,_0x8809('0xe'),JSON[_0x8809('0x11')](_0x34f85f));if(_0x34f85f[_0x8809('0x12')]){if(_0x34f85f[_0x8809('0x12')][_0x8809('0x13')]===0x1f4){logger['error'](_0x8809('0xd'),_0x54880c,_0x34f85f[_0x8809('0x12')]['message']);return _0x181e8b(_0x34f85f[_0x8809('0x12')][_0x8809('0x14')]);}logger['error']('OpenchannelTransferReport,\x20%s,\x20%s',_0x54880c,_0x34f85f[_0x8809('0x12')][_0x8809('0x14')]);return _0x3fd084(_0x34f85f[_0x8809('0x12')][_0x8809('0x14')]);}else{logger[_0x8809('0xc')](_0x8809('0xd'),_0x54880c,_0x8809('0xe'));_0x3fd084(_0x34f85f['result'][_0x8809('0x14')]);}})[_0x8809('0x15')](function(_0x494814){logger[_0x8809('0x12')](_0x8809('0xd'),_0x54880c,_0x494814);_0x181e8b(_0x494814);});});}
\ No newline at end of file
+var _0x3595=['randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','client','http','request','then','OpenchannelTransferReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','OpenchannelTransferReport,\x20%s,\x20%s','message','info','result','lodash','util','moment'];(function(_0x349a9e,_0x473cb8){var _0x24c207=function(_0x22f148){while(--_0x22f148){_0x349a9e['push'](_0x349a9e['shift']());}};_0x24c207(++_0x473cb8);}(_0x3595,0x147));var _0x5359=function(_0x23f496,_0x23a578){_0x23f496=_0x23f496-0x0;var _0x570e2f=_0x3595[_0x23f496];return _0x570e2f;};'use strict';var _=require(_0x5359('0x0'));var util=require(_0x5359('0x1'));var moment=require(_0x5359('0x2'));var BPromise=require('bluebird');var rs=require(_0x5359('0x3'));var fs=require('fs');var Redis=require(_0x5359('0x4'));var db=require(_0x5359('0x5'))['db'];var utils=require(_0x5359('0x6'));var logger=require(_0x5359('0x7'))(_0x5359('0x8'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0x5359('0x9')][_0x5359('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x1b6f48,_0x29a776,_0x39fcd8){return new BPromise(function(_0x51b2fb,_0x400db4){return client[_0x5359('0xb')](_0x1b6f48,_0x39fcd8)[_0x5359('0xc')](function(_0x15e2c6){logger['info']('OpenchannelTransferReport,\x20%s,\x20%s',_0x29a776,'request\x20sent');logger['debug'](_0x5359('0xd'),_0x29a776,_0x5359('0xe'),JSON[_0x5359('0xf')](_0x15e2c6));if(_0x15e2c6[_0x5359('0x10')]){if(_0x15e2c6[_0x5359('0x10')][_0x5359('0x11')]===0x1f4){logger[_0x5359('0x10')](_0x5359('0x12'),_0x29a776,_0x15e2c6[_0x5359('0x10')][_0x5359('0x13')]);return _0x400db4(_0x15e2c6[_0x5359('0x10')][_0x5359('0x13')]);}logger[_0x5359('0x10')](_0x5359('0x12'),_0x29a776,_0x15e2c6['error']['message']);return _0x51b2fb(_0x15e2c6[_0x5359('0x10')][_0x5359('0x13')]);}else{logger[_0x5359('0x14')](_0x5359('0x12'),_0x29a776,_0x5359('0xe'));_0x51b2fb(_0x15e2c6[_0x5359('0x15')]['message']);}})['catch'](function(_0x267d4c){logger[_0x5359('0x10')]('OpenchannelTransferReport,\x20%s,\x20%s',_0x29a776,_0x267d4c);_0x400db4(_0x267d4c);});});}
\ No newline at end of file