Built motion from commit 936e8062.|2.5.33
[motion2.git] / server / api / openchannelAccount / openchannelAccount.rpc.js
index 1295dcd..7d343e4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x9fd8=['catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','jayson/promise','http','redis','defaults','localhost','socket.io-emitter','./openchannelAccount.socket','register','request','then','info','request\x20sent','debug','OpenchannelAccount,\x20%s,\x20%s,\x20%s','stringify','error','OpenchannelAccount,\x20%s,\x20%s','message','result'];(function(_0x2a44ce,_0x476283){var _0x37b680=function(_0x5b9cd8){while(--_0x5b9cd8){_0x2a44ce['push'](_0x2a44ce['shift']());}};_0x37b680(++_0x476283);}(_0x9fd8,0x1b4));var _0x89fd=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x9fd8[_0x14add3];return _0x4a174f;};'use strict';var _=require(_0x89fd('0x0'));var util=require(_0x89fd('0x1'));var moment=require(_0x89fd('0x2'));var BPromise=require(_0x89fd('0x3'));var rs=require(_0x89fd('0x4'));var fs=require('fs');var Redis=require(_0x89fd('0x5'));var db=require(_0x89fd('0x6'))['db'];var utils=require(_0x89fd('0x7'));var logger=require(_0x89fd('0x8'))('rpc');var config=require('../../config/environment');var jayson=require(_0x89fd('0x9'));var client=jayson['client'][_0x89fd('0xa')]({'port':0x232a});config[_0x89fd('0xb')]=_[_0x89fd('0xc')](config['redis'],{'host':_0x89fd('0xd'),'port':0x18eb});var socket=require(_0x89fd('0xe'))(new Redis(config['redis']));require(_0x89fd('0xf'))[_0x89fd('0x10')](socket);function respondWithRpcPromise(_0x5ab7ca,_0x57b395,_0x2ae6f3){return new BPromise(function(_0x31c92c,_0x7c16c0){return client[_0x89fd('0x11')](_0x5ab7ca,_0x2ae6f3)[_0x89fd('0x12')](function(_0x65a4b0){logger[_0x89fd('0x13')]('OpenchannelAccount,\x20%s,\x20%s',_0x57b395,_0x89fd('0x14'));logger[_0x89fd('0x15')](_0x89fd('0x16'),_0x57b395,_0x89fd('0x14'),JSON[_0x89fd('0x17')](_0x65a4b0));if(_0x65a4b0[_0x89fd('0x18')]){if(_0x65a4b0['error']['code']===0x1f4){logger['error'](_0x89fd('0x19'),_0x57b395,_0x65a4b0['error'][_0x89fd('0x1a')]);return _0x7c16c0(_0x65a4b0['error'][_0x89fd('0x1a')]);}logger[_0x89fd('0x18')]('OpenchannelAccount,\x20%s,\x20%s',_0x57b395,_0x65a4b0[_0x89fd('0x18')]['message']);return _0x31c92c(_0x65a4b0[_0x89fd('0x18')][_0x89fd('0x1a')]);}else{logger['info'](_0x89fd('0x19'),_0x57b395,_0x89fd('0x14'));_0x31c92c(_0x65a4b0[_0x89fd('0x1b')][_0x89fd('0x1a')]);}})[_0x89fd('0x1c')](function(_0x804267){logger['error']('OpenchannelAccount,\x20%s,\x20%s',_0x57b395,_0x804267);_0x7c16c0(_0x804267);});});}
\ No newline at end of file
+var _0x8130=['redis','defaults','localhost','socket.io-emitter','register','then','info','OpenchannelAccount,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','http'];(function(_0x2ae473,_0x2e9593){var _0x1bd2f3=function(_0x48dce8){while(--_0x48dce8){_0x2ae473['push'](_0x2ae473['shift']());}};_0x1bd2f3(++_0x2e9593);}(_0x8130,0x146));var _0x0813=function(_0xc4c54a,_0x33275c){_0xc4c54a=_0xc4c54a-0x0;var _0x102e52=_0x8130[_0xc4c54a];return _0x102e52;};'use strict';var _=require(_0x0813('0x0'));var util=require(_0x0813('0x1'));var moment=require('moment');var BPromise=require(_0x0813('0x2'));var rs=require(_0x0813('0x3'));var fs=require('fs');var Redis=require(_0x0813('0x4'));var db=require(_0x0813('0x5'))['db'];var utils=require(_0x0813('0x6'));var logger=require(_0x0813('0x7'))('rpc');var config=require(_0x0813('0x8'));var jayson=require('jayson/promise');var client=jayson['client'][_0x0813('0x9')]({'port':0x232a});config[_0x0813('0xa')]=_[_0x0813('0xb')](config[_0x0813('0xa')],{'host':_0x0813('0xc'),'port':0x18eb});var socket=require(_0x0813('0xd'))(new Redis(config[_0x0813('0xa')]));require('./openchannelAccount.socket')[_0x0813('0xe')](socket);function respondWithRpcPromise(_0x1815be,_0x251ca8,_0x5a9c5e){return new BPromise(function(_0x5550c8,_0x15f8d6){return client['request'](_0x1815be,_0x5a9c5e)[_0x0813('0xf')](function(_0x5b54ec){logger[_0x0813('0x10')](_0x0813('0x11'),_0x251ca8,_0x0813('0x12'));logger[_0x0813('0x13')]('OpenchannelAccount,\x20%s,\x20%s,\x20%s',_0x251ca8,'request\x20sent',JSON[_0x0813('0x14')](_0x5b54ec));if(_0x5b54ec[_0x0813('0x15')]){if(_0x5b54ec['error'][_0x0813('0x16')]===0x1f4){logger['error']('OpenchannelAccount,\x20%s,\x20%s',_0x251ca8,_0x5b54ec[_0x0813('0x15')][_0x0813('0x17')]);return _0x15f8d6(_0x5b54ec['error'][_0x0813('0x17')]);}logger['error'](_0x0813('0x11'),_0x251ca8,_0x5b54ec[_0x0813('0x15')][_0x0813('0x17')]);return _0x5550c8(_0x5b54ec[_0x0813('0x15')][_0x0813('0x17')]);}else{logger[_0x0813('0x10')](_0x0813('0x11'),_0x251ca8,_0x0813('0x12'));_0x5550c8(_0x5b54ec['result'][_0x0813('0x17')]);}})['catch'](function(_0x112720){logger[_0x0813('0x15')]('OpenchannelAccount,\x20%s,\x20%s',_0x251ca8,_0x112720);_0x15f8d6(_0x112720);});});}
\ No newline at end of file