Built motion from commit 449495f6.|2.6.27
[motion2.git] / server / api / whatsappTransferReport / whatsappTransferReport.rpc.js
index 046141b..3f47542 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf305=['error','code','WhatsappTransferReport,\x20%s,\x20%s','message','result','catch','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','http','then','info','request\x20sent','debug'];(function(_0x165fe9,_0x1c8c84){var _0x38aa5b=function(_0x1e886d){while(--_0x1e886d){_0x165fe9['push'](_0x165fe9['shift']());}};_0x38aa5b(++_0x1c8c84);}(_0xf305,0x84));var _0x5f30=function(_0x59f0f7,_0x423bc4){_0x59f0f7=_0x59f0f7-0x0;var _0xf5ef2a=_0xf305[_0x59f0f7];return _0xf5ef2a;};'use strict';var _=require('lodash');var util=require(_0x5f30('0x0'));var moment=require(_0x5f30('0x1'));var BPromise=require('bluebird');var rs=require(_0x5f30('0x2'));var fs=require('fs');var Redis=require(_0x5f30('0x3'));var db=require(_0x5f30('0x4'))['db'];var utils=require(_0x5f30('0x5'));var logger=require(_0x5f30('0x6'))('rpc');var config=require(_0x5f30('0x7'));var jayson=require(_0x5f30('0x8'));var client=jayson[_0x5f30('0x9')][_0x5f30('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x5b7515,_0x4e13e0,_0x846463){return new BPromise(function(_0x489003,_0x3adecf){return client['request'](_0x5b7515,_0x846463)[_0x5f30('0xb')](function(_0x3870ee){logger[_0x5f30('0xc')]('WhatsappTransferReport,\x20%s,\x20%s',_0x4e13e0,_0x5f30('0xd'));logger[_0x5f30('0xe')]('WhatsappTransferReport,\x20%s,\x20%s,\x20%s',_0x4e13e0,_0x5f30('0xd'),JSON['stringify'](_0x3870ee));if(_0x3870ee[_0x5f30('0xf')]){if(_0x3870ee[_0x5f30('0xf')][_0x5f30('0x10')]===0x1f4){logger[_0x5f30('0xf')](_0x5f30('0x11'),_0x4e13e0,_0x3870ee['error']['message']);return _0x3adecf(_0x3870ee[_0x5f30('0xf')][_0x5f30('0x12')]);}logger[_0x5f30('0xf')](_0x5f30('0x11'),_0x4e13e0,_0x3870ee[_0x5f30('0xf')][_0x5f30('0x12')]);return _0x489003(_0x3870ee[_0x5f30('0xf')][_0x5f30('0x12')]);}else{logger['info'](_0x5f30('0x11'),_0x4e13e0,_0x5f30('0xd'));_0x489003(_0x3870ee[_0x5f30('0x13')]['message']);}})[_0x5f30('0x14')](function(_0x3af862){logger[_0x5f30('0xf')](_0x5f30('0x11'),_0x4e13e0,_0x3af862);_0x3adecf(_0x3af862);});});}
\ No newline at end of file
+var _0x6c13=['../../config/utils','rpc','../../config/environment','jayson/promise','request','then','info','request\x20sent','WhatsappTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','WhatsappTransferReport,\x20%s,\x20%s','message','result','catch','util','moment','bluebird','randomstring','ioredis','../../mysqldb'];(function(_0x3740fe,_0x6c543c){var _0x55492b=function(_0x1f851f){while(--_0x1f851f){_0x3740fe['push'](_0x3740fe['shift']());}};_0x55492b(++_0x6c543c);}(_0x6c13,0x10b));var _0x36c1=function(_0x31f8a0,_0x1e3391){_0x31f8a0=_0x31f8a0-0x0;var _0x319328=_0x6c13[_0x31f8a0];return _0x319328;};'use strict';var _=require('lodash');var util=require(_0x36c1('0x0'));var moment=require(_0x36c1('0x1'));var BPromise=require(_0x36c1('0x2'));var rs=require(_0x36c1('0x3'));var fs=require('fs');var Redis=require(_0x36c1('0x4'));var db=require(_0x36c1('0x5'))['db'];var utils=require(_0x36c1('0x6'));var logger=require('../../config/logger')(_0x36c1('0x7'));var config=require(_0x36c1('0x8'));var jayson=require(_0x36c1('0x9'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0xeb4ab8,_0x132645,_0x1da6c5){return new BPromise(function(_0x542d0b,_0x147b8e){return client[_0x36c1('0xa')](_0xeb4ab8,_0x1da6c5)[_0x36c1('0xb')](function(_0x7375a3){logger[_0x36c1('0xc')]('WhatsappTransferReport,\x20%s,\x20%s',_0x132645,_0x36c1('0xd'));logger['debug'](_0x36c1('0xe'),_0x132645,_0x36c1('0xd'),JSON[_0x36c1('0xf')](_0x7375a3));if(_0x7375a3[_0x36c1('0x10')]){if(_0x7375a3['error']['code']===0x1f4){logger[_0x36c1('0x10')](_0x36c1('0x11'),_0x132645,_0x7375a3['error']['message']);return _0x147b8e(_0x7375a3['error'][_0x36c1('0x12')]);}logger[_0x36c1('0x10')](_0x36c1('0x11'),_0x132645,_0x7375a3['error']['message']);return _0x542d0b(_0x7375a3['error'][_0x36c1('0x12')]);}else{logger[_0x36c1('0xc')](_0x36c1('0x11'),_0x132645,_0x36c1('0xd'));_0x542d0b(_0x7375a3[_0x36c1('0x13')][_0x36c1('0x12')]);}})[_0x36c1('0x14')](function(_0x5e57e7){logger[_0x36c1('0x10')](_0x36c1('0x11'),_0x132645,_0x5e57e7);_0x147b8e(_0x5e57e7);});});}
\ No newline at end of file