// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x6457=['result','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','CloudProvider,\x20%s,\x20%s','debug','CloudProvider,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','info'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x6457,0x74));var _0x7645=function(_0x58cb48,_0x5ceccf){_0x58cb48=_0x58cb48-0x0;var _0x38f77e=_0x6457[_0x58cb48];return _0x38f77e;};'use strict';var _=require(_0x7645('0x0'));var util=require(_0x7645('0x1'));var moment=require('moment');var BPromise=require(_0x7645('0x2'));var rs=require(_0x7645('0x3'));var fs=require('fs');var Redis=require(_0x7645('0x4'));var db=require(_0x7645('0x5'))['db'];var utils=require(_0x7645('0x6'));var logger=require(_0x7645('0x7'))(_0x7645('0x8'));var config=require(_0x7645('0x9'));var jayson=require(_0x7645('0xa'));var client=jayson['client'][_0x7645('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x42d43c,_0x4853d1,_0x4ab223){return new BPromise(function(_0x31c31a,_0x18de8b){return client[_0x7645('0xc')](_0x42d43c,_0x4ab223)['then'](function(_0x917ac6){logger['info'](_0x7645('0xd'),_0x4853d1,'request\x20sent');logger[_0x7645('0xe')](_0x7645('0xf'),_0x4853d1,_0x7645('0x10'),JSON[_0x7645('0x11')](_0x917ac6));if(_0x917ac6[_0x7645('0x12')]){if(_0x917ac6[_0x7645('0x12')][_0x7645('0x13')]===0x1f4){logger[_0x7645('0x12')](_0x7645('0xd'),_0x4853d1,_0x917ac6[_0x7645('0x12')][_0x7645('0x14')]);return _0x18de8b(_0x917ac6[_0x7645('0x12')]['message']);}logger['error'](_0x7645('0xd'),_0x4853d1,_0x917ac6[_0x7645('0x12')][_0x7645('0x14')]);return _0x31c31a(_0x917ac6[_0x7645('0x12')][_0x7645('0x14')]);}else{logger[_0x7645('0x15')](_0x7645('0xd'),_0x4853d1,_0x7645('0x10'));_0x31c31a(_0x917ac6[_0x7645('0x16')][_0x7645('0x14')]);}})['catch'](function(_0x4d7356){logger[_0x7645('0x12')](_0x7645('0xd'),_0x4853d1,_0x4d7356);_0x18de8b(_0x4d7356);});});}
\ No newline at end of file
+var _0x0936=['stringify','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','rpc','../../config/environment','jayson/promise','client','http','request','then','info','CloudProvider,\x20%s,\x20%s','request\x20sent','debug'];(function(_0x310074,_0x10af5d){var _0x1cc4c8=function(_0x2ec22c){while(--_0x2ec22c){_0x310074['push'](_0x310074['shift']());}};_0x1cc4c8(++_0x10af5d);}(_0x0936,0xde));var _0x6093=function(_0x223a26,_0xfa7d3f){_0x223a26=_0x223a26-0x0;var _0x46f8d2=_0x0936[_0x223a26];return _0x46f8d2;};'use strict';var _=require(_0x6093('0x0'));var util=require(_0x6093('0x1'));var moment=require(_0x6093('0x2'));var BPromise=require(_0x6093('0x3'));var rs=require(_0x6093('0x4'));var fs=require('fs');var Redis=require(_0x6093('0x5'));var db=require(_0x6093('0x6'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0x6093('0x7'));var config=require(_0x6093('0x8'));var jayson=require(_0x6093('0x9'));var client=jayson[_0x6093('0xa')][_0x6093('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x7d812e,_0x478323,_0x54df66){return new BPromise(function(_0x5280b8,_0x219592){return client[_0x6093('0xc')](_0x7d812e,_0x54df66)[_0x6093('0xd')](function(_0x178aba){logger[_0x6093('0xe')](_0x6093('0xf'),_0x478323,_0x6093('0x10'));logger[_0x6093('0x11')]('CloudProvider,\x20%s,\x20%s,\x20%s',_0x478323,'request\x20sent',JSON[_0x6093('0x12')](_0x178aba));if(_0x178aba[_0x6093('0x13')]){if(_0x178aba[_0x6093('0x13')][_0x6093('0x14')]===0x1f4){logger[_0x6093('0x13')](_0x6093('0xf'),_0x478323,_0x178aba[_0x6093('0x13')][_0x6093('0x15')]);return _0x219592(_0x178aba[_0x6093('0x13')][_0x6093('0x15')]);}logger[_0x6093('0x13')](_0x6093('0xf'),_0x478323,_0x178aba[_0x6093('0x13')][_0x6093('0x15')]);return _0x5280b8(_0x178aba[_0x6093('0x13')][_0x6093('0x15')]);}else{logger[_0x6093('0xe')](_0x6093('0xf'),_0x478323,_0x6093('0x10'));_0x5280b8(_0x178aba[_0x6093('0x16')][_0x6093('0x15')]);}})[_0x6093('0x17')](function(_0x5c8f2a){logger['error'](_0x6093('0xf'),_0x478323,_0x5c8f2a);_0x219592(_0x5c8f2a);});});}
\ No newline at end of file