Built motion from commit caf7d5f0.|2.5.39
[motion2.git] / server / api / openchannelAccount / openchannelAccount.rpc.js
index 45474d7..f4a3fd6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa478=['moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','redis','defaults','socket.io-emitter','./openchannelAccount.socket','register','request','info','OpenchannelAccount,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','lodash','util'];(function(_0x40e3e6,_0x141bc1){var _0x601283=function(_0x4afaf4){while(--_0x4afaf4){_0x40e3e6['push'](_0x40e3e6['shift']());}};_0x601283(++_0x141bc1);}(_0xa478,0x136));var _0x8a47=function(_0x4c0622,_0x5dacaf){_0x4c0622=_0x4c0622-0x0;var _0x1799d8=_0xa478[_0x4c0622];return _0x1799d8;};'use strict';var _=require(_0x8a47('0x0'));var util=require(_0x8a47('0x1'));var moment=require(_0x8a47('0x2'));var BPromise=require(_0x8a47('0x3'));var rs=require(_0x8a47('0x4'));var fs=require('fs');var Redis=require(_0x8a47('0x5'));var db=require(_0x8a47('0x6'))['db'];var utils=require(_0x8a47('0x7'));var logger=require(_0x8a47('0x8'))(_0x8a47('0x9'));var config=require(_0x8a47('0xa'));var jayson=require(_0x8a47('0xb'));var client=jayson['client'][_0x8a47('0xc')]({'port':0x232a});config[_0x8a47('0xd')]=_[_0x8a47('0xe')](config[_0x8a47('0xd')],{'host':'localhost','port':0x18eb});var socket=require(_0x8a47('0xf'))(new Redis(config['redis']));require(_0x8a47('0x10'))[_0x8a47('0x11')](socket);function respondWithRpcPromise(_0x3a6cc4,_0x574c96,_0xe65646){return new BPromise(function(_0x230a11,_0x493d7b){return client[_0x8a47('0x12')](_0x3a6cc4,_0xe65646)['then'](function(_0x39da50){logger[_0x8a47('0x13')](_0x8a47('0x14'),_0x574c96,'request\x20sent');logger['debug']('OpenchannelAccount,\x20%s,\x20%s,\x20%s',_0x574c96,_0x8a47('0x15'),JSON[_0x8a47('0x16')](_0x39da50));if(_0x39da50['error']){if(_0x39da50[_0x8a47('0x17')][_0x8a47('0x18')]===0x1f4){logger[_0x8a47('0x17')](_0x8a47('0x14'),_0x574c96,_0x39da50[_0x8a47('0x17')][_0x8a47('0x19')]);return _0x493d7b(_0x39da50[_0x8a47('0x17')][_0x8a47('0x19')]);}logger[_0x8a47('0x17')](_0x8a47('0x14'),_0x574c96,_0x39da50[_0x8a47('0x17')][_0x8a47('0x19')]);return _0x230a11(_0x39da50[_0x8a47('0x17')]['message']);}else{logger[_0x8a47('0x13')](_0x8a47('0x14'),_0x574c96,_0x8a47('0x15'));_0x230a11(_0x39da50['result'][_0x8a47('0x19')]);}})['catch'](function(_0x538ed2){logger[_0x8a47('0x17')](_0x8a47('0x14'),_0x574c96,_0x538ed2);_0x493d7b(_0x538ed2);});});}
\ No newline at end of file
+var _0x407f=['register','request','then','info','OpenchannelAccount,\x20%s,\x20%s','debug','OpenchannelAccount,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','catch','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','redis','defaults','localhost','socket.io-emitter','./openchannelAccount.socket'];(function(_0x619529,_0x1c3df8){var _0x144135=function(_0x4f0e40){while(--_0x4f0e40){_0x619529['push'](_0x619529['shift']());}};_0x144135(++_0x1c3df8);}(_0x407f,0xc2));var _0xf407=function(_0x496046,_0x6d5fd9){_0x496046=_0x496046-0x0;var _0x5f3e3b=_0x407f[_0x496046];return _0x5f3e3b;};'use strict';var _=require('lodash');var util=require('util');var moment=require('moment');var BPromise=require(_0xf407('0x0'));var rs=require(_0xf407('0x1'));var fs=require('fs');var Redis=require(_0xf407('0x2'));var db=require(_0xf407('0x3'))['db'];var utils=require(_0xf407('0x4'));var logger=require(_0xf407('0x5'))(_0xf407('0x6'));var config=require(_0xf407('0x7'));var jayson=require(_0xf407('0x8'));var client=jayson[_0xf407('0x9')][_0xf407('0xa')]({'port':0x232a});config[_0xf407('0xb')]=_[_0xf407('0xc')](config[_0xf407('0xb')],{'host':_0xf407('0xd'),'port':0x18eb});var socket=require(_0xf407('0xe'))(new Redis(config['redis']));require(_0xf407('0xf'))[_0xf407('0x10')](socket);function respondWithRpcPromise(_0x436e03,_0x5af7b8,_0x4ff28e){return new BPromise(function(_0x4f4840,_0x5583fc){return client[_0xf407('0x11')](_0x436e03,_0x4ff28e)[_0xf407('0x12')](function(_0x31ac1b){logger[_0xf407('0x13')](_0xf407('0x14'),_0x5af7b8,'request\x20sent');logger[_0xf407('0x15')](_0xf407('0x16'),_0x5af7b8,_0xf407('0x17'),JSON[_0xf407('0x18')](_0x31ac1b));if(_0x31ac1b[_0xf407('0x19')]){if(_0x31ac1b[_0xf407('0x19')][_0xf407('0x1a')]===0x1f4){logger[_0xf407('0x19')]('OpenchannelAccount,\x20%s,\x20%s',_0x5af7b8,_0x31ac1b['error'][_0xf407('0x1b')]);return _0x5583fc(_0x31ac1b['error'][_0xf407('0x1b')]);}logger['error']('OpenchannelAccount,\x20%s,\x20%s',_0x5af7b8,_0x31ac1b[_0xf407('0x19')][_0xf407('0x1b')]);return _0x4f4840(_0x31ac1b[_0xf407('0x19')][_0xf407('0x1b')]);}else{logger[_0xf407('0x13')](_0xf407('0x14'),_0x5af7b8,_0xf407('0x17'));_0x4f4840(_0x31ac1b[_0xf407('0x1c')]['message']);}})[_0xf407('0x1d')](function(_0x1cd48f){logger[_0xf407('0x19')](_0xf407('0x14'),_0x5af7b8,_0x1cd48f);_0x5583fc(_0x1cd48f);});});}
\ No newline at end of file