Built motion from commit 3c2ce842.|2.6.31
[motion2.git] / server / api / whatsappTransferReport / whatsappTransferReport.rpc.js
index 80afcaf..9e13d59 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x793d=['randomstring','../../mysqldb','../../config/utils','../../config/logger','../../config/environment','jayson/promise','client','request','info','WhatsappTransferReport,\x20%s,\x20%s','request\x20sent','stringify','error','message','result','catch','util','moment','bluebird'];(function(_0x4ff57f,_0x217cab){var _0x4e80a3=function(_0x58cc08){while(--_0x58cc08){_0x4ff57f['push'](_0x4ff57f['shift']());}};_0x4e80a3(++_0x217cab);}(_0x793d,0x1d8));var _0xd793=function(_0x3be4d6,_0x444e83){_0x3be4d6=_0x3be4d6-0x0;var _0x3fbc72=_0x793d[_0x3be4d6];return _0x3fbc72;};'use strict';var _=require('lodash');var util=require(_0xd793('0x0'));var moment=require(_0xd793('0x1'));var BPromise=require(_0xd793('0x2'));var rs=require(_0xd793('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0xd793('0x4'))['db'];var utils=require(_0xd793('0x5'));var logger=require(_0xd793('0x6'))('rpc');var config=require(_0xd793('0x7'));var jayson=require(_0xd793('0x8'));var client=jayson[_0xd793('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x3f68ca,_0x4f45f5,_0x4c4c7c){return new BPromise(function(_0x5dc658,_0x4fb75f){return client[_0xd793('0xa')](_0x3f68ca,_0x4c4c7c)['then'](function(_0x3e8d2a){logger[_0xd793('0xb')](_0xd793('0xc'),_0x4f45f5,_0xd793('0xd'));logger['debug']('WhatsappTransferReport,\x20%s,\x20%s,\x20%s',_0x4f45f5,_0xd793('0xd'),JSON[_0xd793('0xe')](_0x3e8d2a));if(_0x3e8d2a['error']){if(_0x3e8d2a[_0xd793('0xf')]['code']===0x1f4){logger['error'](_0xd793('0xc'),_0x4f45f5,_0x3e8d2a[_0xd793('0xf')][_0xd793('0x10')]);return _0x4fb75f(_0x3e8d2a['error'][_0xd793('0x10')]);}logger[_0xd793('0xf')](_0xd793('0xc'),_0x4f45f5,_0x3e8d2a[_0xd793('0xf')][_0xd793('0x10')]);return _0x5dc658(_0x3e8d2a[_0xd793('0xf')][_0xd793('0x10')]);}else{logger[_0xd793('0xb')](_0xd793('0xc'),_0x4f45f5,_0xd793('0xd'));_0x5dc658(_0x3e8d2a[_0xd793('0x11')][_0xd793('0x10')]);}})[_0xd793('0x12')](function(_0x2b7216){logger['error']('WhatsappTransferReport,\x20%s,\x20%s',_0x4f45f5,_0x2b7216);_0x4fb75f(_0x2b7216);});});}
\ No newline at end of file
+var _0x47fa=['then','WhatsappTransferReport,\x20%s,\x20%s','request\x20sent','debug','WhatsappTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','result','catch','lodash','util','moment','bluebird','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','client'];(function(_0x483e77,_0x433e9b){var _0x359df0=function(_0x3c3d57){while(--_0x3c3d57){_0x483e77['push'](_0x483e77['shift']());}};_0x359df0(++_0x433e9b);}(_0x47fa,0x68));var _0xa47f=function(_0x1e500e,_0x2c9d74){_0x1e500e=_0x1e500e-0x0;var _0x10dc5e=_0x47fa[_0x1e500e];return _0x10dc5e;};'use strict';var _=require(_0xa47f('0x0'));var util=require(_0xa47f('0x1'));var moment=require(_0xa47f('0x2'));var BPromise=require(_0xa47f('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xa47f('0x4'));var db=require(_0xa47f('0x5'))['db'];var utils=require(_0xa47f('0x6'));var logger=require(_0xa47f('0x7'))(_0xa47f('0x8'));var config=require('../../config/environment');var jayson=require(_0xa47f('0x9'));var client=jayson[_0xa47f('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x1e3907,_0x45b3c3,_0x34d1cf){return new BPromise(function(_0x5afbce,_0x47d84f){return client['request'](_0x1e3907,_0x34d1cf)[_0xa47f('0xb')](function(_0x465323){logger['info'](_0xa47f('0xc'),_0x45b3c3,_0xa47f('0xd'));logger[_0xa47f('0xe')](_0xa47f('0xf'),_0x45b3c3,_0xa47f('0xd'),JSON[_0xa47f('0x10')](_0x465323));if(_0x465323['error']){if(_0x465323[_0xa47f('0x11')][_0xa47f('0x12')]===0x1f4){logger[_0xa47f('0x11')]('WhatsappTransferReport,\x20%s,\x20%s',_0x45b3c3,_0x465323['error']['message']);return _0x47d84f(_0x465323[_0xa47f('0x11')][_0xa47f('0x13')]);}logger[_0xa47f('0x11')](_0xa47f('0xc'),_0x45b3c3,_0x465323[_0xa47f('0x11')][_0xa47f('0x13')]);return _0x5afbce(_0x465323[_0xa47f('0x11')]['message']);}else{logger[_0xa47f('0x14')](_0xa47f('0xc'),_0x45b3c3,'request\x20sent');_0x5afbce(_0x465323[_0xa47f('0x15')][_0xa47f('0x13')]);}})[_0xa47f('0x16')](function(_0x3d93c9){logger[_0xa47f('0x11')](_0xa47f('0xc'),_0x45b3c3,_0x3d93c9);_0x47d84f(_0x3d93c9);});});}
\ No newline at end of file