Built motion from commit ffdca78c.|2.6.24
[motion2.git] / server / api / whatsappTransferReport / whatsappTransferReport.rpc.js
index 472d3ae..000826b 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x6af9=['then','info','WhatsappTransferReport,\x20%s,\x20%s','request\x20sent','debug','WhatsappTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','lodash','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request'];(function(_0x30fa61,_0x5df30f){var _0x5921f5=function(_0x7730ba){while(--_0x7730ba){_0x30fa61['push'](_0x30fa61['shift']());}};_0x5921f5(++_0x5df30f);}(_0x6af9,0x136));var _0x96af=function(_0x29daf9,_0x4b5366){_0x29daf9=_0x29daf9-0x0;var _0x2bf8a7=_0x6af9[_0x29daf9];return _0x2bf8a7;};'use strict';var _=require(_0x96af('0x0'));var util=require('util');var moment=require(_0x96af('0x1'));var BPromise=require(_0x96af('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x96af('0x3'));var db=require(_0x96af('0x4'))['db'];var utils=require(_0x96af('0x5'));var logger=require(_0x96af('0x6'))(_0x96af('0x7'));var config=require(_0x96af('0x8'));var jayson=require(_0x96af('0x9'));var client=jayson['client'][_0x96af('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x3bde3a,_0x55d55a,_0x5f5cbf){return new BPromise(function(_0x383515,_0x81529a){return client[_0x96af('0xb')](_0x3bde3a,_0x5f5cbf)[_0x96af('0xc')](function(_0x56825e){logger[_0x96af('0xd')](_0x96af('0xe'),_0x55d55a,_0x96af('0xf'));logger[_0x96af('0x10')](_0x96af('0x11'),_0x55d55a,_0x96af('0xf'),JSON[_0x96af('0x12')](_0x56825e));if(_0x56825e[_0x96af('0x13')]){if(_0x56825e[_0x96af('0x13')][_0x96af('0x14')]===0x1f4){logger['error']('WhatsappTransferReport,\x20%s,\x20%s',_0x55d55a,_0x56825e[_0x96af('0x13')]['message']);return _0x81529a(_0x56825e[_0x96af('0x13')]['message']);}logger['error'](_0x96af('0xe'),_0x55d55a,_0x56825e['error'][_0x96af('0x15')]);return _0x383515(_0x56825e['error']['message']);}else{logger[_0x96af('0xd')](_0x96af('0xe'),_0x55d55a,_0x96af('0xf'));_0x383515(_0x56825e[_0x96af('0x16')][_0x96af('0x15')]);}})['catch'](function(_0x358cc1){logger[_0x96af('0x13')]('WhatsappTransferReport,\x20%s,\x20%s',_0x55d55a,_0x358cc1);_0x81529a(_0x358cc1);});});}
\ No newline at end of file
+var _0x0fa5=['request','then','info','request\x20sent','WhatsappTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','WhatsappTransferReport,\x20%s,\x20%s','message','result','catch','lodash','moment','bluebird','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','http'];(function(_0xb01801,_0x332034){var _0x3b89d2=function(_0x290e42){while(--_0x290e42){_0xb01801['push'](_0xb01801['shift']());}};_0x3b89d2(++_0x332034);}(_0x0fa5,0xad));var _0x50fa=function(_0x1a8396,_0x280126){_0x1a8396=_0x1a8396-0x0;var _0x29ce3=_0x0fa5[_0x1a8396];return _0x29ce3;};'use strict';var _=require(_0x50fa('0x0'));var util=require('util');var moment=require(_0x50fa('0x1'));var BPromise=require(_0x50fa('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x50fa('0x3'));var db=require(_0x50fa('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0x50fa('0x5'))(_0x50fa('0x6'));var config=require(_0x50fa('0x7'));var jayson=require(_0x50fa('0x8'));var client=jayson[_0x50fa('0x9')][_0x50fa('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x15a8a3,_0x19a23f,_0x1a091a){return new BPromise(function(_0x6008ac,_0xffb9d3){return client[_0x50fa('0xb')](_0x15a8a3,_0x1a091a)[_0x50fa('0xc')](function(_0x27c8fa){logger[_0x50fa('0xd')]('WhatsappTransferReport,\x20%s,\x20%s',_0x19a23f,_0x50fa('0xe'));logger['debug'](_0x50fa('0xf'),_0x19a23f,'request\x20sent',JSON[_0x50fa('0x10')](_0x27c8fa));if(_0x27c8fa[_0x50fa('0x11')]){if(_0x27c8fa[_0x50fa('0x11')][_0x50fa('0x12')]===0x1f4){logger[_0x50fa('0x11')](_0x50fa('0x13'),_0x19a23f,_0x27c8fa['error']['message']);return _0xffb9d3(_0x27c8fa[_0x50fa('0x11')][_0x50fa('0x14')]);}logger['error'](_0x50fa('0x13'),_0x19a23f,_0x27c8fa['error'][_0x50fa('0x14')]);return _0x6008ac(_0x27c8fa[_0x50fa('0x11')][_0x50fa('0x14')]);}else{logger[_0x50fa('0xd')](_0x50fa('0x13'),_0x19a23f,_0x50fa('0xe'));_0x6008ac(_0x27c8fa[_0x50fa('0x15')][_0x50fa('0x14')]);}})[_0x50fa('0x16')](function(_0x1e3f13){logger[_0x50fa('0x11')](_0x50fa('0x13'),_0x19a23f,_0x1e3f13);_0xffb9d3(_0x1e3f13);});});}
\ No newline at end of file