Built motion from commit (unavailable).|2.5.3
[motion2.git] / server / api / openchannelTransferReport / openchannelTransferReport.rpc.js
index 53ccb08..73f477b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xba54=['../../config/logger','rpc','jayson/promise','client','http','request','then','info','OpenchannelTransferReport,\x20%s,\x20%s','request\x20sent','error','code','message','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils'];(function(_0x330e77,_0x2dd3c0){var _0xdbadea=function(_0x2453e9){while(--_0x2453e9){_0x330e77['push'](_0x330e77['shift']());}};_0xdbadea(++_0x2dd3c0);}(_0xba54,0x176));var _0x4ba5=function(_0x2bca39,_0x2459c0){_0x2bca39=_0x2bca39-0x0;var _0x40fa20=_0xba54[_0x2bca39];return _0x40fa20;};'use strict';var _=require('lodash');var util=require(_0x4ba5('0x0'));var moment=require(_0x4ba5('0x1'));var BPromise=require('bluebird');var rs=require(_0x4ba5('0x2'));var fs=require('fs');var Redis=require(_0x4ba5('0x3'));var db=require(_0x4ba5('0x4'))['db'];var utils=require(_0x4ba5('0x5'));var logger=require(_0x4ba5('0x6'))(_0x4ba5('0x7'));var config=require('../../config/environment');var jayson=require(_0x4ba5('0x8'));var client=jayson[_0x4ba5('0x9')][_0x4ba5('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x4db699,_0x431c26,_0x11f933){return new BPromise(function(_0x437113,_0x1617f6){return client[_0x4ba5('0xb')](_0x4db699,_0x11f933)[_0x4ba5('0xc')](function(_0x5f07b4){logger[_0x4ba5('0xd')](_0x4ba5('0xe'),_0x431c26,_0x4ba5('0xf'));logger['debug']('OpenchannelTransferReport,\x20%s,\x20%s,\x20%s',_0x431c26,_0x4ba5('0xf'),JSON['stringify'](_0x5f07b4));if(_0x5f07b4['error']){if(_0x5f07b4[_0x4ba5('0x10')][_0x4ba5('0x11')]===0x1f4){logger[_0x4ba5('0x10')](_0x4ba5('0xe'),_0x431c26,_0x5f07b4[_0x4ba5('0x10')]['message']);return _0x1617f6(_0x5f07b4['error']['message']);}logger[_0x4ba5('0x10')](_0x4ba5('0xe'),_0x431c26,_0x5f07b4['error'][_0x4ba5('0x12')]);return _0x437113(_0x5f07b4[_0x4ba5('0x10')][_0x4ba5('0x12')]);}else{logger[_0x4ba5('0xd')](_0x4ba5('0xe'),_0x431c26,_0x4ba5('0xf'));_0x437113(_0x5f07b4['result'][_0x4ba5('0x12')]);}})['catch'](function(_0x5498c8){logger[_0x4ba5('0x10')](_0x4ba5('0xe'),_0x431c26,_0x5498c8);_0x1617f6(_0x5498c8);});});}
\ No newline at end of file
+var _0x04f9=['../../config/utils','../../config/logger','rpc','../../config/environment','client','http','request','then','info','OpenchannelTransferReport,\x20%s,\x20%s','request\x20sent','debug','OpenchannelTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','util','moment','bluebird','ioredis','../../mysqldb'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x04f9,0xb3));var _0x904f=function(_0x2a22c2,_0x1826b6){_0x2a22c2=_0x2a22c2-0x0;var _0x2a2ca2=_0x04f9[_0x2a22c2];return _0x2a2ca2;};'use strict';var _=require('lodash');var util=require(_0x904f('0x0'));var moment=require(_0x904f('0x1'));var BPromise=require(_0x904f('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x904f('0x3'));var db=require(_0x904f('0x4'))['db'];var utils=require(_0x904f('0x5'));var logger=require(_0x904f('0x6'))(_0x904f('0x7'));var config=require(_0x904f('0x8'));var jayson=require('jayson/promise');var client=jayson[_0x904f('0x9')][_0x904f('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x175c38,_0x21dce4,_0x34cbd7){return new BPromise(function(_0x506239,_0xa90c3f){return client[_0x904f('0xb')](_0x175c38,_0x34cbd7)[_0x904f('0xc')](function(_0x4f8d32){logger[_0x904f('0xd')](_0x904f('0xe'),_0x21dce4,_0x904f('0xf'));logger[_0x904f('0x10')](_0x904f('0x11'),_0x21dce4,_0x904f('0xf'),JSON[_0x904f('0x12')](_0x4f8d32));if(_0x4f8d32[_0x904f('0x13')]){if(_0x4f8d32[_0x904f('0x13')][_0x904f('0x14')]===0x1f4){logger[_0x904f('0x13')](_0x904f('0xe'),_0x21dce4,_0x4f8d32[_0x904f('0x13')][_0x904f('0x15')]);return _0xa90c3f(_0x4f8d32[_0x904f('0x13')][_0x904f('0x15')]);}logger[_0x904f('0x13')](_0x904f('0xe'),_0x21dce4,_0x4f8d32[_0x904f('0x13')][_0x904f('0x15')]);return _0x506239(_0x4f8d32[_0x904f('0x13')][_0x904f('0x15')]);}else{logger[_0x904f('0xd')]('OpenchannelTransferReport,\x20%s,\x20%s',_0x21dce4,'request\x20sent');_0x506239(_0x4f8d32[_0x904f('0x16')][_0x904f('0x15')]);}})['catch'](function(_0x58c4d6){logger['error'](_0x904f('0xe'),_0x21dce4,_0x58c4d6);_0xa90c3f(_0x58c4d6);});});}
\ No newline at end of file