Built motion from commit d5e4af8c.|2.6.23
[motion2.git] / server / api / openchannelTransferReport / openchannelTransferReport.rpc.js
index 46bf15b..c0e68d8 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf776=['error','code','OpenchannelTransferReport,\x20%s,\x20%s','message','lodash','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','client','http','request','then','info','request\x20sent','debug','OpenchannelTransferReport,\x20%s,\x20%s,\x20%s','stringify'];(function(_0x4bcc4c,_0x2ab231){var _0x4465ec=function(_0x3e0750){while(--_0x3e0750){_0x4bcc4c['push'](_0x4bcc4c['shift']());}};_0x4465ec(++_0x2ab231);}(_0xf776,0x169));var _0x6f77=function(_0x18bfad,_0x2593ff){_0x18bfad=_0x18bfad-0x0;var _0x59ed95=_0xf776[_0x18bfad];return _0x59ed95;};'use strict';var _=require(_0x6f77('0x0'));var util=require('util');var moment=require(_0x6f77('0x1'));var BPromise=require(_0x6f77('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x6f77('0x3'));var db=require(_0x6f77('0x4'))['db'];var utils=require(_0x6f77('0x5'));var logger=require(_0x6f77('0x6'))('rpc');var config=require(_0x6f77('0x7'));var jayson=require('jayson/promise');var client=jayson[_0x6f77('0x8')][_0x6f77('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x36ffd2,_0x18a937,_0x545ba9){return new BPromise(function(_0x1dd52f,_0x5a83ba){return client[_0x6f77('0xa')](_0x36ffd2,_0x545ba9)[_0x6f77('0xb')](function(_0x14ea05){logger[_0x6f77('0xc')]('OpenchannelTransferReport,\x20%s,\x20%s',_0x18a937,_0x6f77('0xd'));logger[_0x6f77('0xe')](_0x6f77('0xf'),_0x18a937,_0x6f77('0xd'),JSON[_0x6f77('0x10')](_0x14ea05));if(_0x14ea05[_0x6f77('0x11')]){if(_0x14ea05['error'][_0x6f77('0x12')]===0x1f4){logger[_0x6f77('0x11')](_0x6f77('0x13'),_0x18a937,_0x14ea05[_0x6f77('0x11')][_0x6f77('0x14')]);return _0x5a83ba(_0x14ea05[_0x6f77('0x11')][_0x6f77('0x14')]);}logger[_0x6f77('0x11')](_0x6f77('0x13'),_0x18a937,_0x14ea05[_0x6f77('0x11')][_0x6f77('0x14')]);return _0x1dd52f(_0x14ea05[_0x6f77('0x11')]['message']);}else{logger['info'](_0x6f77('0x13'),_0x18a937,_0x6f77('0xd'));_0x1dd52f(_0x14ea05['result'][_0x6f77('0x14')]);}})['catch'](function(_0xf36aa2){logger[_0x6f77('0x11')]('OpenchannelTransferReport,\x20%s,\x20%s',_0x18a937,_0xf36aa2);_0x5a83ba(_0xf36aa2);});});}
\ No newline at end of file
+var _0xa93e=['http','info','request\x20sent','debug','stringify','error','code','message','OpenchannelTransferReport,\x20%s,\x20%s','result','catch','moment','bluebird','ioredis','../../config/utils','../../config/environment','jayson/promise','client'];(function(_0x4565bf,_0x5ad9d6){var _0x5610ba=function(_0x170988){while(--_0x170988){_0x4565bf['push'](_0x4565bf['shift']());}};_0x5610ba(++_0x5ad9d6);}(_0xa93e,0x1df));var _0xea93=function(_0x372dea,_0x3e8837){_0x372dea=_0x372dea-0x0;var _0x4e0c4a=_0xa93e[_0x372dea];return _0x4e0c4a;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0xea93('0x0'));var BPromise=require(_0xea93('0x1'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xea93('0x2'));var db=require('../../mysqldb')['db'];var utils=require(_0xea93('0x3'));var logger=require('../../config/logger')('rpc');var config=require(_0xea93('0x4'));var jayson=require(_0xea93('0x5'));var client=jayson[_0xea93('0x6')][_0xea93('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x477a7d,_0x3d53bd,_0x54ebdf){return new BPromise(function(_0x12876e,_0x55d233){return client['request'](_0x477a7d,_0x54ebdf)['then'](function(_0x19047a){logger[_0xea93('0x8')]('OpenchannelTransferReport,\x20%s,\x20%s',_0x3d53bd,_0xea93('0x9'));logger[_0xea93('0xa')]('OpenchannelTransferReport,\x20%s,\x20%s,\x20%s',_0x3d53bd,_0xea93('0x9'),JSON[_0xea93('0xb')](_0x19047a));if(_0x19047a[_0xea93('0xc')]){if(_0x19047a[_0xea93('0xc')][_0xea93('0xd')]===0x1f4){logger[_0xea93('0xc')]('OpenchannelTransferReport,\x20%s,\x20%s',_0x3d53bd,_0x19047a[_0xea93('0xc')]['message']);return _0x55d233(_0x19047a['error'][_0xea93('0xe')]);}logger[_0xea93('0xc')](_0xea93('0xf'),_0x3d53bd,_0x19047a[_0xea93('0xc')][_0xea93('0xe')]);return _0x12876e(_0x19047a[_0xea93('0xc')]['message']);}else{logger[_0xea93('0x8')]('OpenchannelTransferReport,\x20%s,\x20%s',_0x3d53bd,_0xea93('0x9'));_0x12876e(_0x19047a[_0xea93('0x10')][_0xea93('0xe')]);}})[_0xea93('0x11')](function(_0x246b42){logger[_0xea93('0xc')](_0xea93('0xf'),_0x3d53bd,_0x246b42);_0x55d233(_0x246b42);});});}
\ No newline at end of file