Built motion from commit f67b3b02.|2.6.31
[motion2.git] / server / api / openchannelTransferReport / openchannelTransferReport.rpc.js
index 3a46fc7..66ba515 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x5785=['../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','OpenchannelTransferReport,\x20%s,\x20%s','debug','OpenchannelTransferReport,\x20%s,\x20%s,\x20%s','request\x20sent','error','code','message','info','result','catch','lodash','util','moment','bluebird','randomstring','../../mysqldb','../../config/utils'];(function(_0x374f60,_0x551010){var _0x454eda=function(_0x5c096e){while(--_0x5c096e){_0x374f60['push'](_0x374f60['shift']());}};_0x454eda(++_0x551010);}(_0x5785,0x119));var _0x5578=function(_0x24f31b,_0x44b8f3){_0x24f31b=_0x24f31b-0x0;var _0x488401=_0x5785[_0x24f31b];return _0x488401;};'use strict';var _=require(_0x5578('0x0'));var util=require(_0x5578('0x1'));var moment=require(_0x5578('0x2'));var BPromise=require(_0x5578('0x3'));var rs=require(_0x5578('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x5578('0x5'))['db'];var utils=require(_0x5578('0x6'));var logger=require(_0x5578('0x7'))(_0x5578('0x8'));var config=require(_0x5578('0x9'));var jayson=require(_0x5578('0xa'));var client=jayson[_0x5578('0xb')][_0x5578('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x464ab2,_0x287860,_0x545581){return new BPromise(function(_0x520bbf,_0x3d37dc){return client[_0x5578('0xd')](_0x464ab2,_0x545581)['then'](function(_0x433ed0){logger['info'](_0x5578('0xe'),_0x287860,'request\x20sent');logger[_0x5578('0xf')](_0x5578('0x10'),_0x287860,_0x5578('0x11'),JSON['stringify'](_0x433ed0));if(_0x433ed0['error']){if(_0x433ed0[_0x5578('0x12')][_0x5578('0x13')]===0x1f4){logger[_0x5578('0x12')](_0x5578('0xe'),_0x287860,_0x433ed0[_0x5578('0x12')][_0x5578('0x14')]);return _0x3d37dc(_0x433ed0[_0x5578('0x12')][_0x5578('0x14')]);}logger[_0x5578('0x12')](_0x5578('0xe'),_0x287860,_0x433ed0['error'][_0x5578('0x14')]);return _0x520bbf(_0x433ed0[_0x5578('0x12')][_0x5578('0x14')]);}else{logger[_0x5578('0x15')](_0x5578('0xe'),_0x287860,_0x5578('0x11'));_0x520bbf(_0x433ed0[_0x5578('0x16')][_0x5578('0x14')]);}})[_0x5578('0x17')](function(_0xc9c5a4){logger['error'](_0x5578('0xe'),_0x287860,_0xc9c5a4);_0x3d37dc(_0xc9c5a4);});});}
\ No newline at end of file
+var _0x64f5=['result','catch','lodash','randomstring','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','request','then','info','OpenchannelTransferReport,\x20%s,\x20%s','request\x20sent','debug','OpenchannelTransferReport,\x20%s,\x20%s,\x20%s','error','message'];(function(_0x50a0c2,_0x4befab){var _0x5ebadd=function(_0x3a3342){while(--_0x3a3342){_0x50a0c2['push'](_0x50a0c2['shift']());}};_0x5ebadd(++_0x4befab);}(_0x64f5,0x17e));var _0x564f=function(_0x3a58cd,_0x1cbeed){_0x3a58cd=_0x3a58cd-0x0;var _0x3d06c0=_0x64f5[_0x3a58cd];return _0x3d06c0;};'use strict';var _=require(_0x564f('0x0'));var util=require('util');var moment=require('moment');var BPromise=require('bluebird');var rs=require(_0x564f('0x1'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x564f('0x2'))['db'];var utils=require(_0x564f('0x3'));var logger=require('../../config/logger')(_0x564f('0x4'));var config=require(_0x564f('0x5'));var jayson=require(_0x564f('0x6'));var client=jayson[_0x564f('0x7')][_0x564f('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x4d3dae,_0x26f14e,_0x28db5a){return new BPromise(function(_0x275bd6,_0x26fd74){return client[_0x564f('0x9')](_0x4d3dae,_0x28db5a)[_0x564f('0xa')](function(_0x2e2b5c){logger[_0x564f('0xb')](_0x564f('0xc'),_0x26f14e,_0x564f('0xd'));logger[_0x564f('0xe')](_0x564f('0xf'),_0x26f14e,_0x564f('0xd'),JSON['stringify'](_0x2e2b5c));if(_0x2e2b5c['error']){if(_0x2e2b5c[_0x564f('0x10')]['code']===0x1f4){logger[_0x564f('0x10')](_0x564f('0xc'),_0x26f14e,_0x2e2b5c[_0x564f('0x10')]['message']);return _0x26fd74(_0x2e2b5c[_0x564f('0x10')][_0x564f('0x11')]);}logger[_0x564f('0x10')](_0x564f('0xc'),_0x26f14e,_0x2e2b5c[_0x564f('0x10')]['message']);return _0x275bd6(_0x2e2b5c['error'][_0x564f('0x11')]);}else{logger[_0x564f('0xb')](_0x564f('0xc'),_0x26f14e,_0x564f('0xd'));_0x275bd6(_0x2e2b5c[_0x564f('0x12')][_0x564f('0x11')]);}})[_0x564f('0x13')](function(_0x15d9d7){logger[_0x564f('0x10')](_0x564f('0xc'),_0x26f14e,_0x15d9d7);_0x26fd74(_0x15d9d7);});});}
\ No newline at end of file