// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0x56f8=['request\x20sent','debug','SalesforceConfiguration,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','client','http','request','then','info','SalesforceConfiguration,\x20%s,\x20%s'];(function(_0x4b8f70,_0x23d6ab){var _0x215d59=function(_0x134672){while(--_0x134672){_0x4b8f70['push'](_0x4b8f70['shift']());}};_0x215d59(++_0x23d6ab);}(_0x56f8,0x1c1));var _0x856f=function(_0x5114c9,_0x496b99){_0x5114c9=_0x5114c9-0x0;var _0x257534=_0x56f8[_0x5114c9];return _0x257534;};'use strict';var _=require(_0x856f('0x0'));var util=require(_0x856f('0x1'));var moment=require('moment');var BPromise=require(_0x856f('0x2'));var rs=require(_0x856f('0x3'));var fs=require('fs');var Redis=require(_0x856f('0x4'));var db=require(_0x856f('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0x856f('0x6'))('rpc');var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson[_0x856f('0x7')][_0x856f('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x513e74,_0x1fd69b,_0x39665a){return new BPromise(function(_0x45c754,_0x10d377){return client[_0x856f('0x9')](_0x513e74,_0x39665a)[_0x856f('0xa')](function(_0x540c68){logger[_0x856f('0xb')](_0x856f('0xc'),_0x1fd69b,_0x856f('0xd'));logger[_0x856f('0xe')](_0x856f('0xf'),_0x1fd69b,_0x856f('0xd'),JSON[_0x856f('0x10')](_0x540c68));if(_0x540c68['error']){if(_0x540c68[_0x856f('0x11')][_0x856f('0x12')]===0x1f4){logger[_0x856f('0x11')](_0x856f('0xc'),_0x1fd69b,_0x540c68[_0x856f('0x11')][_0x856f('0x13')]);return _0x10d377(_0x540c68[_0x856f('0x11')][_0x856f('0x13')]);}logger[_0x856f('0x11')]('SalesforceConfiguration,\x20%s,\x20%s',_0x1fd69b,_0x540c68[_0x856f('0x11')][_0x856f('0x13')]);return _0x45c754(_0x540c68['error']['message']);}else{logger['info'](_0x856f('0xc'),_0x1fd69b,_0x856f('0xd'));_0x45c754(_0x540c68['result'][_0x856f('0x13')]);}})[_0x856f('0x14')](function(_0x381145){logger[_0x856f('0x11')]('SalesforceConfiguration,\x20%s,\x20%s',_0x1fd69b,_0x381145);_0x10d377(_0x381145);});});}
\ No newline at end of file
+var _0x5607=['code','SalesforceConfiguration,\x20%s,\x20%s','message','result','catch','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','request','then','info','debug','request\x20sent','stringify','error'];(function(_0x397e5f,_0x454c8f){var _0x5302b8=function(_0x1a29ef){while(--_0x1a29ef){_0x397e5f['push'](_0x397e5f['shift']());}};_0x5302b8(++_0x454c8f);}(_0x5607,0x1bd));var _0x7560=function(_0x149d11,_0x36e244){_0x149d11=_0x149d11-0x0;var _0x5ebb5c=_0x5607[_0x149d11];return _0x5ebb5c;};'use strict';var _=require('lodash');var util=require(_0x7560('0x0'));var moment=require('moment');var BPromise=require(_0x7560('0x1'));var rs=require(_0x7560('0x2'));var fs=require('fs');var Redis=require(_0x7560('0x3'));var db=require(_0x7560('0x4'))['db'];var utils=require(_0x7560('0x5'));var logger=require(_0x7560('0x6'))('rpc');var config=require(_0x7560('0x7'));var jayson=require(_0x7560('0x8'));var client=jayson[_0x7560('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x217d86,_0x359173,_0x2161f2){return new BPromise(function(_0x742420,_0x104fb2){return client[_0x7560('0xa')](_0x217d86,_0x2161f2)[_0x7560('0xb')](function(_0x146830){logger[_0x7560('0xc')]('SalesforceConfiguration,\x20%s,\x20%s',_0x359173,'request\x20sent');logger[_0x7560('0xd')]('SalesforceConfiguration,\x20%s,\x20%s,\x20%s',_0x359173,_0x7560('0xe'),JSON[_0x7560('0xf')](_0x146830));if(_0x146830['error']){if(_0x146830[_0x7560('0x10')][_0x7560('0x11')]===0x1f4){logger[_0x7560('0x10')](_0x7560('0x12'),_0x359173,_0x146830[_0x7560('0x10')][_0x7560('0x13')]);return _0x104fb2(_0x146830[_0x7560('0x10')][_0x7560('0x13')]);}logger['error'](_0x7560('0x12'),_0x359173,_0x146830[_0x7560('0x10')]['message']);return _0x742420(_0x146830[_0x7560('0x10')]['message']);}else{logger[_0x7560('0xc')](_0x7560('0x12'),_0x359173,_0x7560('0xe'));_0x742420(_0x146830[_0x7560('0x14')][_0x7560('0x13')]);}})[_0x7560('0x15')](function(_0x2d6af8){logger['error'](_0x7560('0x12'),_0x359173,_0x2d6af8);_0x104fb2(_0x2d6af8);});});}
\ No newline at end of file