// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xe3e2=['bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','then','CannedAnswer,\x20%s,\x20%s','request\x20sent','CannedAnswer,\x20%s,\x20%s,\x20%s','stringify','error','message','result','lodash','util','moment'];(function(_0x1f504c,_0x319b4f){var _0x50d2e6=function(_0x47f98d){while(--_0x47f98d){_0x1f504c['push'](_0x1f504c['shift']());}};_0x50d2e6(++_0x319b4f);}(_0xe3e2,0xc5));var _0x2e3e=function(_0x5d4a90,_0x209140){_0x5d4a90=_0x5d4a90-0x0;var _0x51e898=_0xe3e2[_0x5d4a90];return _0x51e898;};'use strict';var _=require(_0x2e3e('0x0'));var util=require(_0x2e3e('0x1'));var moment=require(_0x2e3e('0x2'));var BPromise=require(_0x2e3e('0x3'));var rs=require(_0x2e3e('0x4'));var fs=require('fs');var Redis=require(_0x2e3e('0x5'));var db=require(_0x2e3e('0x6'))['db'];var utils=require(_0x2e3e('0x7'));var logger=require(_0x2e3e('0x8'))(_0x2e3e('0x9'));var config=require(_0x2e3e('0xa'));var jayson=require(_0x2e3e('0xb'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x3aa688,_0x2444fb,_0x107c28){return new BPromise(function(_0x442c5b,_0x509826){return client['request'](_0x3aa688,_0x107c28)[_0x2e3e('0xc')](function(_0x2e1336){logger['info'](_0x2e3e('0xd'),_0x2444fb,_0x2e3e('0xe'));logger['debug'](_0x2e3e('0xf'),_0x2444fb,'request\x20sent',JSON[_0x2e3e('0x10')](_0x2e1336));if(_0x2e1336['error']){if(_0x2e1336[_0x2e3e('0x11')]['code']===0x1f4){logger[_0x2e3e('0x11')](_0x2e3e('0xd'),_0x2444fb,_0x2e1336['error'][_0x2e3e('0x12')]);return _0x509826(_0x2e1336[_0x2e3e('0x11')][_0x2e3e('0x12')]);}logger[_0x2e3e('0x11')]('CannedAnswer,\x20%s,\x20%s',_0x2444fb,_0x2e1336[_0x2e3e('0x11')][_0x2e3e('0x12')]);return _0x442c5b(_0x2e1336[_0x2e3e('0x11')][_0x2e3e('0x12')]);}else{logger['info'](_0x2e3e('0xd'),_0x2444fb,'request\x20sent');_0x442c5b(_0x2e1336[_0x2e3e('0x13')][_0x2e3e('0x12')]);}})['catch'](function(_0x38562e){logger[_0x2e3e('0x11')](_0x2e3e('0xd'),_0x2444fb,_0x38562e);_0x509826(_0x38562e);});});}
\ No newline at end of file
+var _0x4958=['info','CannedAnswer,\x20%s,\x20%s','request\x20sent','debug','CannedAnswer,\x20%s,\x20%s,\x20%s','stringify','error','code','message','catch','moment','randomstring','../../config/utils','rpc','jayson/promise','then'];(function(_0x49ca18,_0x5e6d05){var _0x145d54=function(_0x30b9be){while(--_0x30b9be){_0x49ca18['push'](_0x49ca18['shift']());}};_0x145d54(++_0x5e6d05);}(_0x4958,0x16a));var _0x8495=function(_0x1415c2,_0x908be5){_0x1415c2=_0x1415c2-0x0;var _0x548b92=_0x4958[_0x1415c2];return _0x548b92;};'use strict';var _=require('lodash');var util=require('util');var moment=require(_0x8495('0x0'));var BPromise=require('bluebird');var rs=require(_0x8495('0x1'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0x8495('0x2'));var logger=require('../../config/logger')(_0x8495('0x3'));var config=require('../../config/environment');var jayson=require(_0x8495('0x4'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x52871e,_0x2c6f7c,_0xe7577b){return new BPromise(function(_0xfe0bb6,_0x30bd0e){return client['request'](_0x52871e,_0xe7577b)[_0x8495('0x5')](function(_0x182e05){logger[_0x8495('0x6')](_0x8495('0x7'),_0x2c6f7c,_0x8495('0x8'));logger[_0x8495('0x9')](_0x8495('0xa'),_0x2c6f7c,_0x8495('0x8'),JSON[_0x8495('0xb')](_0x182e05));if(_0x182e05[_0x8495('0xc')]){if(_0x182e05['error'][_0x8495('0xd')]===0x1f4){logger['error'](_0x8495('0x7'),_0x2c6f7c,_0x182e05['error'][_0x8495('0xe')]);return _0x30bd0e(_0x182e05[_0x8495('0xc')]['message']);}logger[_0x8495('0xc')](_0x8495('0x7'),_0x2c6f7c,_0x182e05[_0x8495('0xc')][_0x8495('0xe')]);return _0xfe0bb6(_0x182e05[_0x8495('0xc')]['message']);}else{logger[_0x8495('0x6')](_0x8495('0x7'),_0x2c6f7c,_0x8495('0x8'));_0xfe0bb6(_0x182e05['result']['message']);}})[_0x8495('0xf')](function(_0x452979){logger[_0x8495('0xc')]('CannedAnswer,\x20%s,\x20%s',_0x2c6f7c,_0x452979);_0x30bd0e(_0x452979);});});}
\ No newline at end of file