X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FwhatsappTransferReport%2FwhatsappTransferReport.rpc.js;h=22228abcac3ec37fbacda2ce3fc902abf266e98c;hb=8cdeeda1196ee7d2ad7723378ea9a4f6c5d1e83a;hp=88db7646a83a3aa15211c7b5dddcf0b30e36ff1e;hpb=b8feeab5a72cbb7651a1c603fc767034cd5922cc;p=motion2.git diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.rpc.js b/server/api/whatsappTransferReport/whatsappTransferReport.rpc.js index 88db764..22228ab 100644 --- a/server/api/whatsappTransferReport/whatsappTransferReport.rpc.js +++ b/server/api/whatsappTransferReport/whatsappTransferReport.rpc.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0x12ed=['util','bluebird','randomstring','ioredis','../../mysqldb','../../config/logger','../../config/environment','client','http','request','then','info','WhatsappTransferReport,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','lodash'];(function(_0x3fc4be,_0x35aa1d){var _0x44ccb3=function(_0x477668){while(--_0x477668){_0x3fc4be['push'](_0x3fc4be['shift']());}};_0x44ccb3(++_0x35aa1d);}(_0x12ed,0x1e2));var _0xd12e=function(_0x37fb0f,_0x53df2e){_0x37fb0f=_0x37fb0f-0x0;var _0x5930de=_0x12ed[_0x37fb0f];return _0x5930de;};'use strict';var _=require(_0xd12e('0x0'));var util=require(_0xd12e('0x1'));var moment=require('moment');var BPromise=require(_0xd12e('0x2'));var rs=require(_0xd12e('0x3'));var fs=require('fs');var Redis=require(_0xd12e('0x4'));var db=require(_0xd12e('0x5'))['db'];var utils=require('../../config/utils');var logger=require(_0xd12e('0x6'))('rpc');var config=require(_0xd12e('0x7'));var jayson=require('jayson/promise');var client=jayson[_0xd12e('0x8')][_0xd12e('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x249b1f,_0x220d2b,_0x2c4b2c){return new BPromise(function(_0x1b13e1,_0x211c62){return client[_0xd12e('0xa')](_0x249b1f,_0x2c4b2c)[_0xd12e('0xb')](function(_0x48ad9c){logger[_0xd12e('0xc')](_0xd12e('0xd'),_0x220d2b,_0xd12e('0xe'));logger[_0xd12e('0xf')]('WhatsappTransferReport,\x20%s,\x20%s,\x20%s',_0x220d2b,_0xd12e('0xe'),JSON[_0xd12e('0x10')](_0x48ad9c));if(_0x48ad9c[_0xd12e('0x11')]){if(_0x48ad9c[_0xd12e('0x11')][_0xd12e('0x12')]===0x1f4){logger[_0xd12e('0x11')](_0xd12e('0xd'),_0x220d2b,_0x48ad9c[_0xd12e('0x11')][_0xd12e('0x13')]);return _0x211c62(_0x48ad9c[_0xd12e('0x11')][_0xd12e('0x13')]);}logger['error'](_0xd12e('0xd'),_0x220d2b,_0x48ad9c['error'][_0xd12e('0x13')]);return _0x1b13e1(_0x48ad9c[_0xd12e('0x11')][_0xd12e('0x13')]);}else{logger['info'](_0xd12e('0xd'),_0x220d2b,'request\x20sent');_0x1b13e1(_0x48ad9c[_0xd12e('0x14')][_0xd12e('0x13')]);}})['catch'](function(_0xb84cc8){logger[_0xd12e('0x11')](_0xd12e('0xd'),_0x220d2b,_0xb84cc8);_0x211c62(_0xb84cc8);});});} \ No newline at end of file +var _0x1c23=['request\x20sent','stringify','error','code','message','result','catch','lodash','moment','bluebird','randomstring','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','http','then','info','WhatsappTransferReport,\x20%s,\x20%s','WhatsappTransferReport,\x20%s,\x20%s,\x20%s'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x1c23,0x1c0));var _0x31c2=function(_0x351c49,_0x4740bb){_0x351c49=_0x351c49-0x0;var _0x4e1a5f=_0x1c23[_0x351c49];return _0x4e1a5f;};'use strict';var _=require(_0x31c2('0x0'));var util=require('util');var moment=require(_0x31c2('0x1'));var BPromise=require(_0x31c2('0x2'));var rs=require(_0x31c2('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x31c2('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0x31c2('0x5'))(_0x31c2('0x6'));var config=require(_0x31c2('0x7'));var jayson=require(_0x31c2('0x8'));var client=jayson['client'][_0x31c2('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x496b14,_0x2330c0,_0x340249){return new BPromise(function(_0x21bb22,_0x27d5ac){return client['request'](_0x496b14,_0x340249)[_0x31c2('0xa')](function(_0x132487){logger[_0x31c2('0xb')](_0x31c2('0xc'),_0x2330c0,'request\x20sent');logger['debug'](_0x31c2('0xd'),_0x2330c0,_0x31c2('0xe'),JSON[_0x31c2('0xf')](_0x132487));if(_0x132487[_0x31c2('0x10')]){if(_0x132487['error'][_0x31c2('0x11')]===0x1f4){logger[_0x31c2('0x10')](_0x31c2('0xc'),_0x2330c0,_0x132487[_0x31c2('0x10')][_0x31c2('0x12')]);return _0x27d5ac(_0x132487['error'][_0x31c2('0x12')]);}logger['error']('WhatsappTransferReport,\x20%s,\x20%s',_0x2330c0,_0x132487[_0x31c2('0x10')]['message']);return _0x21bb22(_0x132487[_0x31c2('0x10')][_0x31c2('0x12')]);}else{logger[_0x31c2('0xb')]('WhatsappTransferReport,\x20%s,\x20%s',_0x2330c0,_0x31c2('0xe'));_0x21bb22(_0x132487[_0x31c2('0x13')][_0x31c2('0x12')]);}})[_0x31c2('0x14')](function(_0x98834d){logger[_0x31c2('0x10')](_0x31c2('0xc'),_0x2330c0,_0x98834d);_0x27d5ac(_0x98834d);});});} \ No newline at end of file