Built motion from commit (unavailable).|2.5.30
[motion2.git] / server / api / whatsappApplication / whatsappApplication.rpc.js
index 42f13ca..a2e3386 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf96b=['../../config/environment','jayson/promise','client','request','then','info','WhatsappApplication,\x20%s,\x20%s','request\x20sent','debug','WhatsappApplication,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc'];(function(_0x577d26,_0xa94287){var _0x41f8cd=function(_0x35442f){while(--_0x35442f){_0x577d26['push'](_0x577d26['shift']());}};_0x41f8cd(++_0xa94287);}(_0xf96b,0x109));var _0xbf96=function(_0x3b7f0c,_0x213d2b){_0x3b7f0c=_0x3b7f0c-0x0;var _0x2b0611=_0xf96b[_0x3b7f0c];return _0x2b0611;};'use strict';var _=require(_0xbf96('0x0'));var util=require(_0xbf96('0x1'));var moment=require(_0xbf96('0x2'));var BPromise=require(_0xbf96('0x3'));var rs=require(_0xbf96('0x4'));var fs=require('fs');var Redis=require(_0xbf96('0x5'));var db=require(_0xbf96('0x6'))['db'];var utils=require(_0xbf96('0x7'));var logger=require(_0xbf96('0x8'))(_0xbf96('0x9'));var config=require(_0xbf96('0xa'));var jayson=require(_0xbf96('0xb'));var client=jayson[_0xbf96('0xc')]['http']({'port':0x232a});function respondWithRpcPromise(_0x3e8271,_0x9270ca,_0x260da0){return new BPromise(function(_0x88b9fa,_0x56d77d){return client[_0xbf96('0xd')](_0x3e8271,_0x260da0)[_0xbf96('0xe')](function(_0x1ffe6b){logger[_0xbf96('0xf')](_0xbf96('0x10'),_0x9270ca,_0xbf96('0x11'));logger[_0xbf96('0x12')](_0xbf96('0x13'),_0x9270ca,'request\x20sent',JSON[_0xbf96('0x14')](_0x1ffe6b));if(_0x1ffe6b[_0xbf96('0x15')]){if(_0x1ffe6b['error'][_0xbf96('0x16')]===0x1f4){logger[_0xbf96('0x15')](_0xbf96('0x10'),_0x9270ca,_0x1ffe6b['error'][_0xbf96('0x17')]);return _0x56d77d(_0x1ffe6b[_0xbf96('0x15')][_0xbf96('0x17')]);}logger[_0xbf96('0x15')](_0xbf96('0x10'),_0x9270ca,_0x1ffe6b[_0xbf96('0x15')]['message']);return _0x88b9fa(_0x1ffe6b[_0xbf96('0x15')][_0xbf96('0x17')]);}else{logger[_0xbf96('0xf')](_0xbf96('0x10'),_0x9270ca,_0xbf96('0x11'));_0x88b9fa(_0x1ffe6b[_0xbf96('0x18')][_0xbf96('0x17')]);}})['catch'](function(_0x3296a7){logger['error'](_0xbf96('0x10'),_0x9270ca,_0x3296a7);_0x56d77d(_0x3296a7);});});}
\ No newline at end of file
+var _0x1696=['catch','lodash','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client','http','then','info','WhatsappApplication,\x20%s,\x20%s','debug','WhatsappApplication,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','code','error','message','result'];(function(_0xe2206b,_0x158dbd){var _0x3ebe97=function(_0x4b88a6){while(--_0x4b88a6){_0xe2206b['push'](_0xe2206b['shift']());}};_0x3ebe97(++_0x158dbd);}(_0x1696,0x79));var _0x6169=function(_0x2ec8c7,_0x47c3d9){_0x2ec8c7=_0x2ec8c7-0x0;var _0x1cf310=_0x1696[_0x2ec8c7];return _0x1cf310;};'use strict';var _=require(_0x6169('0x0'));var util=require('util');var moment=require(_0x6169('0x1'));var BPromise=require(_0x6169('0x2'));var rs=require(_0x6169('0x3'));var fs=require('fs');var Redis=require(_0x6169('0x4'));var db=require(_0x6169('0x5'))['db'];var utils=require(_0x6169('0x6'));var logger=require(_0x6169('0x7'))(_0x6169('0x8'));var config=require(_0x6169('0x9'));var jayson=require('jayson/promise');var client=jayson[_0x6169('0xa')][_0x6169('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x277459,_0x6f5cec,_0x289333){return new BPromise(function(_0x2a1658,_0x40350b){return client['request'](_0x277459,_0x289333)[_0x6169('0xc')](function(_0x519a4d){logger[_0x6169('0xd')](_0x6169('0xe'),_0x6f5cec,'request\x20sent');logger[_0x6169('0xf')](_0x6169('0x10'),_0x6f5cec,_0x6169('0x11'),JSON[_0x6169('0x12')](_0x519a4d));if(_0x519a4d['error']){if(_0x519a4d['error'][_0x6169('0x13')]===0x1f4){logger[_0x6169('0x14')]('WhatsappApplication,\x20%s,\x20%s',_0x6f5cec,_0x519a4d[_0x6169('0x14')][_0x6169('0x15')]);return _0x40350b(_0x519a4d[_0x6169('0x14')]['message']);}logger['error']('WhatsappApplication,\x20%s,\x20%s',_0x6f5cec,_0x519a4d[_0x6169('0x14')][_0x6169('0x15')]);return _0x2a1658(_0x519a4d[_0x6169('0x14')][_0x6169('0x15')]);}else{logger[_0x6169('0xd')]('WhatsappApplication,\x20%s,\x20%s',_0x6f5cec,_0x6169('0x11'));_0x2a1658(_0x519a4d[_0x6169('0x16')]['message']);}})[_0x6169('0x17')](function(_0x5afc48){logger[_0x6169('0x14')](_0x6169('0xe'),_0x6f5cec,_0x5afc48);_0x40350b(_0x5afc48);});});}
\ No newline at end of file