Built motion from commit 42801a18.|2.6.28
[motion2.git] / server / api / openchannelTransferReport / openchannelTransferReport.rpc.js
index 93873ca..0a4880c 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x46fc=['OpenchannelTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','jayson/promise','client','http','request','then','info','OpenchannelTransferReport,\x20%s,\x20%s','request\x20sent'];(function(_0x52a6e3,_0x4a73b4){var _0x8910d0=function(_0x57e5ef){while(--_0x57e5ef){_0x52a6e3['push'](_0x52a6e3['shift']());}};_0x8910d0(++_0x4a73b4);}(_0x46fc,0x103));var _0xc46f=function(_0x13a9e8,_0x2abb1f){_0x13a9e8=_0x13a9e8-0x0;var _0x40b47c=_0x46fc[_0x13a9e8];return _0x40b47c;};'use strict';var _=require(_0xc46f('0x0'));var util=require(_0xc46f('0x1'));var moment=require(_0xc46f('0x2'));var BPromise=require(_0xc46f('0x3'));var rs=require(_0xc46f('0x4'));var fs=require('fs');var Redis=require(_0xc46f('0x5'));var db=require(_0xc46f('0x6'))['db'];var utils=require(_0xc46f('0x7'));var logger=require(_0xc46f('0x8'))('rpc');var config=require('../../config/environment');var jayson=require(_0xc46f('0x9'));var client=jayson[_0xc46f('0xa')][_0xc46f('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x15904c,_0x1f5ac8,_0x312101){return new BPromise(function(_0x155a10,_0x327019){return client[_0xc46f('0xc')](_0x15904c,_0x312101)[_0xc46f('0xd')](function(_0x1bd18f){logger[_0xc46f('0xe')](_0xc46f('0xf'),_0x1f5ac8,_0xc46f('0x10'));logger['debug'](_0xc46f('0x11'),_0x1f5ac8,_0xc46f('0x10'),JSON[_0xc46f('0x12')](_0x1bd18f));if(_0x1bd18f[_0xc46f('0x13')]){if(_0x1bd18f['error']['code']===0x1f4){logger['error'](_0xc46f('0xf'),_0x1f5ac8,_0x1bd18f[_0xc46f('0x13')]['message']);return _0x327019(_0x1bd18f[_0xc46f('0x13')][_0xc46f('0x14')]);}logger['error']('OpenchannelTransferReport,\x20%s,\x20%s',_0x1f5ac8,_0x1bd18f[_0xc46f('0x13')][_0xc46f('0x14')]);return _0x155a10(_0x1bd18f[_0xc46f('0x13')][_0xc46f('0x14')]);}else{logger['info']('OpenchannelTransferReport,\x20%s,\x20%s',_0x1f5ac8,'request\x20sent');_0x155a10(_0x1bd18f[_0xc46f('0x15')][_0xc46f('0x14')]);}})[_0xc46f('0x16')](function(_0x516238){logger[_0xc46f('0x13')](_0xc46f('0xf'),_0x1f5ac8,_0x516238);_0x327019(_0x516238);});});}
\ No newline at end of file
+var _0x9f5a=['client','request','then','info','OpenchannelTransferReport,\x20%s,\x20%s','debug','OpenchannelTransferReport,\x20%s,\x20%s,\x20%s','error','code','message','request\x20sent','result','catch','lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','rpc','jayson/promise'];(function(_0x5b8d91,_0x4cc890){var _0x4daf58=function(_0x3c64cc){while(--_0x3c64cc){_0x5b8d91['push'](_0x5b8d91['shift']());}};_0x4daf58(++_0x4cc890);}(_0x9f5a,0xbd));var _0xa9f5=function(_0x175308,_0x4a4746){_0x175308=_0x175308-0x0;var _0x541c83=_0x9f5a[_0x175308];return _0x541c83;};'use strict';var _=require(_0xa9f5('0x0'));var util=require(_0xa9f5('0x1'));var moment=require(_0xa9f5('0x2'));var BPromise=require(_0xa9f5('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xa9f5('0x4'));var db=require(_0xa9f5('0x5'))['db'];var utils=require(_0xa9f5('0x6'));var logger=require('../../config/logger')(_0xa9f5('0x7'));var config=require('../../config/environment');var jayson=require(_0xa9f5('0x8'));var client=jayson[_0xa9f5('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x6c040d,_0x285dad,_0x3f644f){return new BPromise(function(_0x1f6c78,_0x21006b){return client[_0xa9f5('0xa')](_0x6c040d,_0x3f644f)[_0xa9f5('0xb')](function(_0x4cb5a5){logger[_0xa9f5('0xc')](_0xa9f5('0xd'),_0x285dad,'request\x20sent');logger[_0xa9f5('0xe')](_0xa9f5('0xf'),_0x285dad,'request\x20sent',JSON['stringify'](_0x4cb5a5));if(_0x4cb5a5[_0xa9f5('0x10')]){if(_0x4cb5a5[_0xa9f5('0x10')][_0xa9f5('0x11')]===0x1f4){logger[_0xa9f5('0x10')]('OpenchannelTransferReport,\x20%s,\x20%s',_0x285dad,_0x4cb5a5[_0xa9f5('0x10')][_0xa9f5('0x12')]);return _0x21006b(_0x4cb5a5[_0xa9f5('0x10')]['message']);}logger[_0xa9f5('0x10')](_0xa9f5('0xd'),_0x285dad,_0x4cb5a5['error']['message']);return _0x1f6c78(_0x4cb5a5['error'][_0xa9f5('0x12')]);}else{logger['info']('OpenchannelTransferReport,\x20%s,\x20%s',_0x285dad,_0xa9f5('0x13'));_0x1f6c78(_0x4cb5a5[_0xa9f5('0x14')][_0xa9f5('0x12')]);}})[_0xa9f5('0x15')](function(_0x4c70f0){logger[_0xa9f5('0x10')](_0xa9f5('0xd'),_0x285dad,_0x4c70f0);_0x21006b(_0x4c70f0);});});}
\ No newline at end of file