// * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
// * *
// *************************************************************************
-var _0xa9e0=['http','info','UserWhatsappQueue,\x20%s,\x20%s','request\x20sent','debug','UserWhatsappQueue,\x20%s,\x20%s,\x20%s','code','error','message','result','catch','lodash','util','moment','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise'];(function(_0x4c895a,_0x1a560f){var _0x1f7c7e=function(_0x11cd05){while(--_0x11cd05){_0x4c895a['push'](_0x4c895a['shift']());}};_0x1f7c7e(++_0x1a560f);}(_0xa9e0,0x123));var _0x0a9e=function(_0x2f3848,_0x48564d){_0x2f3848=_0x2f3848-0x0;var _0x102668=_0xa9e0[_0x2f3848];return _0x102668;};'use strict';var _=require(_0x0a9e('0x0'));var util=require(_0x0a9e('0x1'));var moment=require(_0x0a9e('0x2'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x0a9e('0x3'));var db=require('../../mysqldb')['db'];var utils=require(_0x0a9e('0x4'));var logger=require(_0x0a9e('0x5'))(_0x0a9e('0x6'));var config=require(_0x0a9e('0x7'));var jayson=require(_0x0a9e('0x8'));var client=jayson['client'][_0x0a9e('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x441e3a,_0x2cc193,_0x5f41ea){return new BPromise(function(_0x503809,_0xe42b77){return client['request'](_0x441e3a,_0x5f41ea)['then'](function(_0x39753a){logger[_0x0a9e('0xa')](_0x0a9e('0xb'),_0x2cc193,_0x0a9e('0xc'));logger[_0x0a9e('0xd')](_0x0a9e('0xe'),_0x2cc193,'request\x20sent',JSON['stringify'](_0x39753a));if(_0x39753a['error']){if(_0x39753a['error'][_0x0a9e('0xf')]===0x1f4){logger[_0x0a9e('0x10')](_0x0a9e('0xb'),_0x2cc193,_0x39753a[_0x0a9e('0x10')][_0x0a9e('0x11')]);return _0xe42b77(_0x39753a[_0x0a9e('0x10')]['message']);}logger[_0x0a9e('0x10')](_0x0a9e('0xb'),_0x2cc193,_0x39753a[_0x0a9e('0x10')][_0x0a9e('0x11')]);return _0x503809(_0x39753a[_0x0a9e('0x10')][_0x0a9e('0x11')]);}else{logger['info'](_0x0a9e('0xb'),_0x2cc193,'request\x20sent');_0x503809(_0x39753a[_0x0a9e('0x12')]['message']);}})[_0x0a9e('0x13')](function(_0x12066b){logger['error'](_0x0a9e('0xb'),_0x2cc193,_0x12066b);_0xe42b77(_0x12066b);});});}
\ No newline at end of file
+var _0xe3d0=['jayson/promise','client','http','request','UserWhatsappQueue,\x20%s,\x20%s','debug','request\x20sent','error','code','message','info','result','catch','lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment'];(function(_0x217ddc,_0x14f2a0){var _0x2874f1=function(_0x581daf){while(--_0x581daf){_0x217ddc['push'](_0x217ddc['shift']());}};_0x2874f1(++_0x14f2a0);}(_0xe3d0,0xd3));var _0x0e3d=function(_0x22e6ca,_0x4bb0d4){_0x22e6ca=_0x22e6ca-0x0;var _0x4725fe=_0xe3d0[_0x22e6ca];return _0x4725fe;};'use strict';var _=require(_0x0e3d('0x0'));var util=require(_0x0e3d('0x1'));var moment=require(_0x0e3d('0x2'));var BPromise=require('bluebird');var rs=require(_0x0e3d('0x3'));var fs=require('fs');var Redis=require(_0x0e3d('0x4'));var db=require(_0x0e3d('0x5'))['db'];var utils=require(_0x0e3d('0x6'));var logger=require('../../config/logger')(_0x0e3d('0x7'));var config=require(_0x0e3d('0x8'));var jayson=require(_0x0e3d('0x9'));var client=jayson[_0x0e3d('0xa')][_0x0e3d('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x5f6b86,_0x30c682,_0x1f74a3){return new BPromise(function(_0x5371b5,_0x52e84d){return client[_0x0e3d('0xc')](_0x5f6b86,_0x1f74a3)['then'](function(_0x1f5ba5){logger['info'](_0x0e3d('0xd'),_0x30c682,'request\x20sent');logger[_0x0e3d('0xe')]('UserWhatsappQueue,\x20%s,\x20%s,\x20%s',_0x30c682,_0x0e3d('0xf'),JSON['stringify'](_0x1f5ba5));if(_0x1f5ba5[_0x0e3d('0x10')]){if(_0x1f5ba5[_0x0e3d('0x10')][_0x0e3d('0x11')]===0x1f4){logger[_0x0e3d('0x10')](_0x0e3d('0xd'),_0x30c682,_0x1f5ba5['error'][_0x0e3d('0x12')]);return _0x52e84d(_0x1f5ba5[_0x0e3d('0x10')][_0x0e3d('0x12')]);}logger[_0x0e3d('0x10')](_0x0e3d('0xd'),_0x30c682,_0x1f5ba5['error']['message']);return _0x5371b5(_0x1f5ba5[_0x0e3d('0x10')][_0x0e3d('0x12')]);}else{logger[_0x0e3d('0x13')](_0x0e3d('0xd'),_0x30c682,_0x0e3d('0xf'));_0x5371b5(_0x1f5ba5[_0x0e3d('0x14')][_0x0e3d('0x12')]);}})[_0x0e3d('0x15')](function(_0x4ec532){logger['error'](_0x0e3d('0xd'),_0x30c682,_0x4ec532);_0x52e84d(_0x4ec532);});});}
\ No newline at end of file