Built motion from commit (unavailable).|2.0.72
[motion2.git] / server / api / openchannelTransferReport / openchannelTransferReport.rpc.js
index edad8d7..6fec424 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x0f45=['request\x20sent','stringify','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/logger','../../config/environment','client','request','info','OpenchannelTransferReport,\x20%s,\x20%s','OpenchannelTransferReport,\x20%s,\x20%s,\x20%s'];(function(_0x465a0c,_0x19d4d5){var _0x1e202e=function(_0x27bd8a){while(--_0x27bd8a){_0x465a0c['push'](_0x465a0c['shift']());}};_0x1e202e(++_0x19d4d5);}(_0x0f45,0x7f));var _0x50f4=function(_0x8c43de,_0x90ff31){_0x8c43de=_0x8c43de-0x0;var _0xa6591b=_0x0f45[_0x8c43de];return _0xa6591b;};'use strict';var _=require(_0x50f4('0x0'));var util=require(_0x50f4('0x1'));var moment=require(_0x50f4('0x2'));var BPromise=require(_0x50f4('0x3'));var rs=require(_0x50f4('0x4'));var fs=require('fs');var db=require(_0x50f4('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x50f4('0x6'))('rpc');var config=require(_0x50f4('0x7'));var jayson=require('jayson/promise');var client=jayson[_0x50f4('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x2c9db4,_0x35d04b,_0x31d988){return new BPromise(function(_0x2d7377,_0x3a72ee){return client[_0x50f4('0x9')](_0x2c9db4,_0x31d988)['then'](function(_0x218773){logger[_0x50f4('0xa')](_0x50f4('0xb'),_0x35d04b,'request\x20sent');logger['debug'](_0x50f4('0xc'),_0x35d04b,_0x50f4('0xd'),JSON[_0x50f4('0xe')](_0x218773));if(_0x218773[_0x50f4('0xf')]){if(_0x218773['error'][_0x50f4('0x10')]===0x1f4){logger['error'](_0x50f4('0xb'),_0x35d04b,_0x218773[_0x50f4('0xf')][_0x50f4('0x11')]);return _0x3a72ee(_0x218773[_0x50f4('0xf')][_0x50f4('0x11')]);}logger[_0x50f4('0xf')]('OpenchannelTransferReport,\x20%s,\x20%s',_0x35d04b,_0x218773[_0x50f4('0xf')][_0x50f4('0x11')]);return _0x2d7377(_0x218773[_0x50f4('0xf')]['message']);}else{logger[_0x50f4('0xa')](_0x50f4('0xb'),_0x35d04b,'request\x20sent');_0x2d7377(_0x218773[_0x50f4('0x12')]['message']);}})[_0x50f4('0x13')](function(_0x4a1e80){logger['error'](_0x50f4('0xb'),_0x35d04b,_0x4a1e80);_0x3a72ee(_0x4a1e80);});});}
\ No newline at end of file
+var _0x8e96=['error','code','message','info','OpenchannelTransferReport,\x20%s,\x20%s','result','lodash','bluebird','randomstring','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','request','then','request\x20sent','debug','OpenchannelTransferReport,\x20%s,\x20%s,\x20%s','stringify'];(function(_0x173441,_0x26b0d9){var _0x2423a8=function(_0x4d96c2){while(--_0x4d96c2){_0x173441['push'](_0x173441['shift']());}};_0x2423a8(++_0x26b0d9);}(_0x8e96,0x1e9));var _0x68e9=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x8e96[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x68e9('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0x68e9('0x1'));var rs=require(_0x68e9('0x2'));var fs=require('fs');var db=require('../../mysqldb')['db'];var utils=require(_0x68e9('0x3'));var logger=require(_0x68e9('0x4'))('rpc');var config=require(_0x68e9('0x5'));var jayson=require(_0x68e9('0x6'));var client=jayson[_0x68e9('0x7')][_0x68e9('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x1f4715,_0x504d57,_0x479087){return new BPromise(function(_0x5b1fce,_0x1ce448){return client[_0x68e9('0x9')](_0x1f4715,_0x479087)[_0x68e9('0xa')](function(_0x31becf){logger['info']('OpenchannelTransferReport,\x20%s,\x20%s',_0x504d57,_0x68e9('0xb'));logger[_0x68e9('0xc')](_0x68e9('0xd'),_0x504d57,_0x68e9('0xb'),JSON[_0x68e9('0xe')](_0x31becf));if(_0x31becf[_0x68e9('0xf')]){if(_0x31becf[_0x68e9('0xf')][_0x68e9('0x10')]===0x1f4){logger['error']('OpenchannelTransferReport,\x20%s,\x20%s',_0x504d57,_0x31becf['error'][_0x68e9('0x11')]);return _0x1ce448(_0x31becf[_0x68e9('0xf')]['message']);}logger[_0x68e9('0xf')]('OpenchannelTransferReport,\x20%s,\x20%s',_0x504d57,_0x31becf[_0x68e9('0xf')]['message']);return _0x5b1fce(_0x31becf[_0x68e9('0xf')][_0x68e9('0x11')]);}else{logger[_0x68e9('0x12')](_0x68e9('0x13'),_0x504d57,'request\x20sent');_0x5b1fce(_0x31becf[_0x68e9('0x14')][_0x68e9('0x11')]);}})['catch'](function(_0x3c4fc7){logger[_0x68e9('0xf')](_0x68e9('0x13'),_0x504d57,_0x3c4fc7);_0x1ce448(_0x3c4fc7);});});}
\ No newline at end of file