X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FopenchannelTransferReport%2FopenchannelTransferReport.rpc.js;h=dafe4eae68025bc843a768ffce442a1588b96a95;hb=c5ec4f3be0e7f1f893000f685661edf16381041e;hp=3424f10d00e49cfd504d39dd64d6b8ec2ef7620a;hpb=bb1bc459ff51c9e3d02337b05bd35dbdea7e939d;p=motion2.git diff --git a/server/api/openchannelTransferReport/openchannelTransferReport.rpc.js b/server/api/openchannelTransferReport/openchannelTransferReport.rpc.js index 3424f10..dafe4ea 100644 --- a/server/api/openchannelTransferReport/openchannelTransferReport.rpc.js +++ b/server/api/openchannelTransferReport/openchannelTransferReport.rpc.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0x60c2=['stringify','error','code','message','catch','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','info','OpenchannelTransferReport,\x20%s,\x20%s','request\x20sent','debug'];(function(_0x55d282,_0x4577bf){var _0x5a1956=function(_0x5f301a){while(--_0x5f301a){_0x55d282['push'](_0x55d282['shift']());}};_0x5a1956(++_0x4577bf);}(_0x60c2,0x8f));var _0x260c=function(_0x3947c9,_0x4d6c97){_0x3947c9=_0x3947c9-0x0;var _0x2e7871=_0x60c2[_0x3947c9];return _0x2e7871;};'use strict';var _=require('lodash');var util=require(_0x260c('0x0'));var moment=require(_0x260c('0x1'));var BPromise=require(_0x260c('0x2'));var rs=require(_0x260c('0x3'));var fs=require('fs');var Redis=require(_0x260c('0x4'));var db=require(_0x260c('0x5'))['db'];var utils=require(_0x260c('0x6'));var logger=require(_0x260c('0x7'))(_0x260c('0x8'));var config=require(_0x260c('0x9'));var jayson=require(_0x260c('0xa'));var client=jayson[_0x260c('0xb')]['http']({'port':0x232a});function respondWithRpcPromise(_0x14fab2,_0x2c2cd8,_0x3b432d){return new BPromise(function(_0xf22c37,_0x4b2992){return client[_0x260c('0xc')](_0x14fab2,_0x3b432d)[_0x260c('0xd')](function(_0x8378bb){logger[_0x260c('0xe')](_0x260c('0xf'),_0x2c2cd8,_0x260c('0x10'));logger[_0x260c('0x11')]('OpenchannelTransferReport,\x20%s,\x20%s,\x20%s',_0x2c2cd8,_0x260c('0x10'),JSON[_0x260c('0x12')](_0x8378bb));if(_0x8378bb[_0x260c('0x13')]){if(_0x8378bb['error'][_0x260c('0x14')]===0x1f4){logger[_0x260c('0x13')](_0x260c('0xf'),_0x2c2cd8,_0x8378bb['error'][_0x260c('0x15')]);return _0x4b2992(_0x8378bb[_0x260c('0x13')][_0x260c('0x15')]);}logger[_0x260c('0x13')](_0x260c('0xf'),_0x2c2cd8,_0x8378bb['error'][_0x260c('0x15')]);return _0xf22c37(_0x8378bb['error'][_0x260c('0x15')]);}else{logger[_0x260c('0xe')]('OpenchannelTransferReport,\x20%s,\x20%s',_0x2c2cd8,_0x260c('0x10'));_0xf22c37(_0x8378bb['result'][_0x260c('0x15')]);}})[_0x260c('0x16')](function(_0x411970){logger[_0x260c('0x13')](_0x260c('0xf'),_0x2c2cd8,_0x411970);_0x4b2992(_0x411970);});});} \ No newline at end of file +var _0xec39=['ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','request','then','info','OpenchannelTransferReport,\x20%s,\x20%s','request\x20sent','OpenchannelTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','lodash','util','moment','bluebird','randomstring'];(function(_0x3ab51d,_0x2fa01d){var _0x29a04e=function(_0x7807b0){while(--_0x7807b0){_0x3ab51d['push'](_0x3ab51d['shift']());}};_0x29a04e(++_0x2fa01d);}(_0xec39,0x19f));var _0x9ec3=function(_0x4fdc92,_0x4456ab){_0x4fdc92=_0x4fdc92-0x0;var _0x1417d3=_0xec39[_0x4fdc92];return _0x1417d3;};'use strict';var _=require(_0x9ec3('0x0'));var util=require(_0x9ec3('0x1'));var moment=require(_0x9ec3('0x2'));var BPromise=require(_0x9ec3('0x3'));var rs=require(_0x9ec3('0x4'));var fs=require('fs');var Redis=require(_0x9ec3('0x5'));var db=require(_0x9ec3('0x6'))['db'];var utils=require('../../config/utils');var logger=require(_0x9ec3('0x7'))(_0x9ec3('0x8'));var config=require(_0x9ec3('0x9'));var jayson=require('jayson/promise');var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x3742c5,_0x11c4d1,_0x29a6a2){return new BPromise(function(_0x595e3a,_0x570a91){return client[_0x9ec3('0xa')](_0x3742c5,_0x29a6a2)[_0x9ec3('0xb')](function(_0x2d0c30){logger[_0x9ec3('0xc')](_0x9ec3('0xd'),_0x11c4d1,_0x9ec3('0xe'));logger['debug'](_0x9ec3('0xf'),_0x11c4d1,_0x9ec3('0xe'),JSON[_0x9ec3('0x10')](_0x2d0c30));if(_0x2d0c30[_0x9ec3('0x11')]){if(_0x2d0c30[_0x9ec3('0x11')][_0x9ec3('0x12')]===0x1f4){logger[_0x9ec3('0x11')]('OpenchannelTransferReport,\x20%s,\x20%s',_0x11c4d1,_0x2d0c30[_0x9ec3('0x11')][_0x9ec3('0x13')]);return _0x570a91(_0x2d0c30[_0x9ec3('0x11')]['message']);}logger[_0x9ec3('0x11')]('OpenchannelTransferReport,\x20%s,\x20%s',_0x11c4d1,_0x2d0c30[_0x9ec3('0x11')][_0x9ec3('0x13')]);return _0x595e3a(_0x2d0c30[_0x9ec3('0x11')][_0x9ec3('0x13')]);}else{logger[_0x9ec3('0xc')](_0x9ec3('0xd'),_0x11c4d1,_0x9ec3('0xe'));_0x595e3a(_0x2d0c30[_0x9ec3('0x14')][_0x9ec3('0x13')]);}})['catch'](function(_0x39ca26){logger['error']('OpenchannelTransferReport,\x20%s,\x20%s',_0x11c4d1,_0x39ca26);_0x570a91(_0x39ca26);});});} \ No newline at end of file