Built motion from commit fade34fd.|2.5.41
[motion2.git] / server / api / whatsappTransferReport / whatsappTransferReport.rpc.js
index 453ca98..dbf9442 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1335=['../../config/logger','rpc','../../config/environment','jayson/promise','then','request\x20sent','debug','WhatsappTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','WhatsappTransferReport,\x20%s,\x20%s','message','info','result','catch','util','moment','randomstring','ioredis','../../config/utils'];(function(_0x3edb33,_0xa4302d){var _0x238608=function(_0xa0310f){while(--_0xa0310f){_0x3edb33['push'](_0x3edb33['shift']());}};_0x238608(++_0xa4302d);}(_0x1335,0x1f3));var _0x5133=function(_0x40c56b,_0x291b69){_0x40c56b=_0x40c56b-0x0;var _0x1110d7=_0x1335[_0x40c56b];return _0x1110d7;};'use strict';var _=require('lodash');var util=require(_0x5133('0x0'));var moment=require(_0x5133('0x1'));var BPromise=require('bluebird');var rs=require(_0x5133('0x2'));var fs=require('fs');var Redis=require(_0x5133('0x3'));var db=require('../../mysqldb')['db'];var utils=require(_0x5133('0x4'));var logger=require(_0x5133('0x5'))(_0x5133('0x6'));var config=require(_0x5133('0x7'));var jayson=require(_0x5133('0x8'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x6ec7c7,_0x367102,_0x3cdf92){return new BPromise(function(_0x2653a5,_0x317a4a){return client['request'](_0x6ec7c7,_0x3cdf92)[_0x5133('0x9')](function(_0x2bcc56){logger['info']('WhatsappTransferReport,\x20%s,\x20%s',_0x367102,_0x5133('0xa'));logger[_0x5133('0xb')](_0x5133('0xc'),_0x367102,_0x5133('0xa'),JSON[_0x5133('0xd')](_0x2bcc56));if(_0x2bcc56[_0x5133('0xe')]){if(_0x2bcc56['error'][_0x5133('0xf')]===0x1f4){logger[_0x5133('0xe')](_0x5133('0x10'),_0x367102,_0x2bcc56[_0x5133('0xe')][_0x5133('0x11')]);return _0x317a4a(_0x2bcc56[_0x5133('0xe')][_0x5133('0x11')]);}logger['error'](_0x5133('0x10'),_0x367102,_0x2bcc56[_0x5133('0xe')][_0x5133('0x11')]);return _0x2653a5(_0x2bcc56['error'][_0x5133('0x11')]);}else{logger[_0x5133('0x12')](_0x5133('0x10'),_0x367102,_0x5133('0xa'));_0x2653a5(_0x2bcc56[_0x5133('0x13')]['message']);}})[_0x5133('0x14')](function(_0x42343d){logger[_0x5133('0xe')](_0x5133('0x10'),_0x367102,_0x42343d);_0x317a4a(_0x42343d);});});}
\ No newline at end of file
+var _0x833e=['info','WhatsappTransferReport,\x20%s,\x20%s','request\x20sent','debug','error','code','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then'];(function(_0x68db35,_0x3ae08f){var _0x8282c9=function(_0x2ab9da){while(--_0x2ab9da){_0x68db35['push'](_0x68db35['shift']());}};_0x8282c9(++_0x3ae08f);}(_0x833e,0x189));var _0xe833=function(_0x4570b5,_0x4e0108){_0x4570b5=_0x4570b5-0x0;var _0x2c1337=_0x833e[_0x4570b5];return _0x2c1337;};'use strict';var _=require(_0xe833('0x0'));var util=require(_0xe833('0x1'));var moment=require(_0xe833('0x2'));var BPromise=require(_0xe833('0x3'));var rs=require(_0xe833('0x4'));var fs=require('fs');var Redis=require(_0xe833('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0xe833('0x6'));var logger=require(_0xe833('0x7'))(_0xe833('0x8'));var config=require(_0xe833('0x9'));var jayson=require(_0xe833('0xa'));var client=jayson[_0xe833('0xb')][_0xe833('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x35adff,_0x2ea2d5,_0x12abdf){return new BPromise(function(_0x1484ae,_0x16aaa7){return client[_0xe833('0xd')](_0x35adff,_0x12abdf)[_0xe833('0xe')](function(_0x839763){logger[_0xe833('0xf')](_0xe833('0x10'),_0x2ea2d5,_0xe833('0x11'));logger[_0xe833('0x12')]('WhatsappTransferReport,\x20%s,\x20%s,\x20%s',_0x2ea2d5,_0xe833('0x11'),JSON['stringify'](_0x839763));if(_0x839763[_0xe833('0x13')]){if(_0x839763['error'][_0xe833('0x14')]===0x1f4){logger['error'](_0xe833('0x10'),_0x2ea2d5,_0x839763['error'][_0xe833('0x15')]);return _0x16aaa7(_0x839763[_0xe833('0x13')][_0xe833('0x15')]);}logger[_0xe833('0x13')](_0xe833('0x10'),_0x2ea2d5,_0x839763[_0xe833('0x13')][_0xe833('0x15')]);return _0x1484ae(_0x839763[_0xe833('0x13')][_0xe833('0x15')]);}else{logger[_0xe833('0xf')](_0xe833('0x10'),_0x2ea2d5,_0xe833('0x11'));_0x1484ae(_0x839763[_0xe833('0x16')][_0xe833('0x15')]);}})[_0xe833('0x17')](function(_0x3b1ebd){logger[_0xe833('0x13')](_0xe833('0x10'),_0x2ea2d5,_0x3b1ebd);_0x16aaa7(_0x3b1ebd);});});}
\ No newline at end of file