Built motion from commit e0fa946e.|2.6.5
[motion2.git] / server / api / whatsappTransferReport / whatsappTransferReport.rpc.js
index 1a966da..d941016 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfaa8=['message','info','result','lodash','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','WhatsappTransferReport,\x20%s,\x20%s','request\x20sent','debug','WhatsappTransferReport,\x20%s,\x20%s,\x20%s','error','code'];(function(_0x1eff93,_0x54cce2){var _0x3dd75a=function(_0x191c0f){while(--_0x191c0f){_0x1eff93['push'](_0x1eff93['shift']());}};_0x3dd75a(++_0x54cce2);}(_0xfaa8,0x183));var _0x8faa=function(_0x2ef71a,_0x4b07af){_0x2ef71a=_0x2ef71a-0x0;var _0x579efe=_0xfaa8[_0x2ef71a];return _0x579efe;};'use strict';var _=require(_0x8faa('0x0'));var util=require('util');var moment=require(_0x8faa('0x1'));var BPromise=require(_0x8faa('0x2'));var rs=require(_0x8faa('0x3'));var fs=require('fs');var Redis=require(_0x8faa('0x4'));var db=require(_0x8faa('0x5'))['db'];var utils=require(_0x8faa('0x6'));var logger=require(_0x8faa('0x7'))(_0x8faa('0x8'));var config=require(_0x8faa('0x9'));var jayson=require(_0x8faa('0xa'));var client=jayson[_0x8faa('0xb')][_0x8faa('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x5bfd7a,_0x201bd,_0x345ad9){return new BPromise(function(_0x4f6294,_0x52602f){return client[_0x8faa('0xd')](_0x5bfd7a,_0x345ad9)[_0x8faa('0xe')](function(_0x256071){logger['info'](_0x8faa('0xf'),_0x201bd,_0x8faa('0x10'));logger[_0x8faa('0x11')](_0x8faa('0x12'),_0x201bd,_0x8faa('0x10'),JSON['stringify'](_0x256071));if(_0x256071[_0x8faa('0x13')]){if(_0x256071['error'][_0x8faa('0x14')]===0x1f4){logger[_0x8faa('0x13')]('WhatsappTransferReport,\x20%s,\x20%s',_0x201bd,_0x256071[_0x8faa('0x13')]['message']);return _0x52602f(_0x256071[_0x8faa('0x13')][_0x8faa('0x15')]);}logger[_0x8faa('0x13')]('WhatsappTransferReport,\x20%s,\x20%s',_0x201bd,_0x256071[_0x8faa('0x13')][_0x8faa('0x15')]);return _0x4f6294(_0x256071[_0x8faa('0x13')]['message']);}else{logger[_0x8faa('0x16')](_0x8faa('0xf'),_0x201bd,'request\x20sent');_0x4f6294(_0x256071[_0x8faa('0x17')][_0x8faa('0x15')]);}})['catch'](function(_0x1492bf){logger[_0x8faa('0x13')](_0x8faa('0xf'),_0x201bd,_0x1492bf);_0x52602f(_0x1492bf);});});}
\ No newline at end of file
+var _0x7a65=['ioredis','../../mysqldb','../../config/utils','rpc','http','request','then','info','WhatsappTransferReport,\x20%s,\x20%s','request\x20sent','debug','WhatsappTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','bluebird'];(function(_0x980d62,_0x560343){var _0x22201c=function(_0x45392f){while(--_0x45392f){_0x980d62['push'](_0x980d62['shift']());}};_0x22201c(++_0x560343);}(_0x7a65,0x146));var _0x57a6=function(_0x31623e,_0x6e746d){_0x31623e=_0x31623e-0x0;var _0x559711=_0x7a65[_0x31623e];return _0x559711;};'use strict';var _=require(_0x57a6('0x0'));var util=require(_0x57a6('0x1'));var moment=require(_0x57a6('0x2'));var BPromise=require(_0x57a6('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x57a6('0x4'));var db=require(_0x57a6('0x5'))['db'];var utils=require(_0x57a6('0x6'));var logger=require('../../config/logger')(_0x57a6('0x7'));var config=require('../../config/environment');var jayson=require('jayson/promise');var client=jayson['client'][_0x57a6('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x31eeee,_0x1f1075,_0x5855df){return new BPromise(function(_0x4ff4e4,_0x44ddf6){return client[_0x57a6('0x9')](_0x31eeee,_0x5855df)[_0x57a6('0xa')](function(_0x17cc6e){logger[_0x57a6('0xb')](_0x57a6('0xc'),_0x1f1075,_0x57a6('0xd'));logger[_0x57a6('0xe')](_0x57a6('0xf'),_0x1f1075,_0x57a6('0xd'),JSON[_0x57a6('0x10')](_0x17cc6e));if(_0x17cc6e[_0x57a6('0x11')]){if(_0x17cc6e[_0x57a6('0x11')][_0x57a6('0x12')]===0x1f4){logger[_0x57a6('0x11')](_0x57a6('0xc'),_0x1f1075,_0x17cc6e[_0x57a6('0x11')][_0x57a6('0x13')]);return _0x44ddf6(_0x17cc6e[_0x57a6('0x11')][_0x57a6('0x13')]);}logger['error'](_0x57a6('0xc'),_0x1f1075,_0x17cc6e['error']['message']);return _0x4ff4e4(_0x17cc6e['error'][_0x57a6('0x13')]);}else{logger['info']('WhatsappTransferReport,\x20%s,\x20%s',_0x1f1075,_0x57a6('0xd'));_0x4ff4e4(_0x17cc6e[_0x57a6('0x14')]['message']);}})[_0x57a6('0x15')](function(_0x64f783){logger[_0x57a6('0x11')]('WhatsappTransferReport,\x20%s,\x20%s',_0x1f1075,_0x64f783);_0x44ddf6(_0x64f783);});});}
\ No newline at end of file