X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fapi%2FwhatsappTransferReport%2FwhatsappTransferReport.rpc.js;h=7c85a542553f28cb11958e5c9ed4d371c204d06f;hb=c593ef5de079879fb7bfbdd8f8d4d8640e684821;hp=816e5dd5df7bcddb8fbdc31adcbf9d2e76936906;hpb=7b947914a77b8347fb1d6de0275fa1bbfcdf6ff9;p=motion2.git diff --git a/server/api/whatsappTransferReport/whatsappTransferReport.rpc.js b/server/api/whatsappTransferReport/whatsappTransferReport.rpc.js index 816e5dd..7c85a54 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 _0xff4a=['code','message','result','catch','lodash','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','http','request','then','info','WhatsappTransferReport,\x20%s,\x20%s','request\x20sent','WhatsappTransferReport,\x20%s,\x20%s,\x20%s','stringify','error'];(function(_0x134999,_0x4de0c9){var _0x46e471=function(_0x2393aa){while(--_0x2393aa){_0x134999['push'](_0x134999['shift']());}};_0x46e471(++_0x4de0c9);}(_0xff4a,0xea));var _0xaff4=function(_0x1802ca,_0x499ae6){_0x1802ca=_0x1802ca-0x0;var _0x2ef188=_0xff4a[_0x1802ca];return _0x2ef188;};'use strict';var _=require(_0xaff4('0x0'));var util=require('util');var moment=require('moment');var BPromise=require(_0xaff4('0x1'));var rs=require(_0xaff4('0x2'));var fs=require('fs');var Redis=require(_0xaff4('0x3'));var db=require(_0xaff4('0x4'))['db'];var utils=require(_0xaff4('0x5'));var logger=require('../../config/logger')(_0xaff4('0x6'));var config=require(_0xaff4('0x7'));var jayson=require(_0xaff4('0x8'));var client=jayson[_0xaff4('0x9')][_0xaff4('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x231e45,_0x166efc,_0x43f52e){return new BPromise(function(_0x53e6f1,_0x5d8afd){return client[_0xaff4('0xb')](_0x231e45,_0x43f52e)[_0xaff4('0xc')](function(_0x34da83){logger[_0xaff4('0xd')](_0xaff4('0xe'),_0x166efc,_0xaff4('0xf'));logger['debug'](_0xaff4('0x10'),_0x166efc,_0xaff4('0xf'),JSON[_0xaff4('0x11')](_0x34da83));if(_0x34da83[_0xaff4('0x12')]){if(_0x34da83[_0xaff4('0x12')][_0xaff4('0x13')]===0x1f4){logger[_0xaff4('0x12')](_0xaff4('0xe'),_0x166efc,_0x34da83[_0xaff4('0x12')][_0xaff4('0x14')]);return _0x5d8afd(_0x34da83[_0xaff4('0x12')][_0xaff4('0x14')]);}logger[_0xaff4('0x12')](_0xaff4('0xe'),_0x166efc,_0x34da83[_0xaff4('0x12')][_0xaff4('0x14')]);return _0x53e6f1(_0x34da83['error'][_0xaff4('0x14')]);}else{logger['info'](_0xaff4('0xe'),_0x166efc,'request\x20sent');_0x53e6f1(_0x34da83[_0xaff4('0x15')][_0xaff4('0x14')]);}})[_0xaff4('0x16')](function(_0x3c85a6){logger['error'](_0xaff4('0xe'),_0x166efc,_0x3c85a6);_0x5d8afd(_0x3c85a6);});});} \ No newline at end of file +var _0xda65=['WhatsappTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','result','catch','lodash','util','moment','bluebird','ioredis','../../config/utils','../../config/logger','../../config/environment','jayson/promise','http','request','then','info','WhatsappTransferReport,\x20%s,\x20%s','request\x20sent','debug'];(function(_0x67ee80,_0x30bbe5){var _0x570f22=function(_0x3b0905){while(--_0x3b0905){_0x67ee80['push'](_0x67ee80['shift']());}};_0x570f22(++_0x30bbe5);}(_0xda65,0x1bc));var _0x5da6=function(_0x3e5d5e,_0x2ed84e){_0x3e5d5e=_0x3e5d5e-0x0;var _0x576bac=_0xda65[_0x3e5d5e];return _0x576bac;};'use strict';var _=require(_0x5da6('0x0'));var util=require(_0x5da6('0x1'));var moment=require(_0x5da6('0x2'));var BPromise=require(_0x5da6('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x5da6('0x4'));var db=require('../../mysqldb')['db'];var utils=require(_0x5da6('0x5'));var logger=require(_0x5da6('0x6'))('rpc');var config=require(_0x5da6('0x7'));var jayson=require(_0x5da6('0x8'));var client=jayson['client'][_0x5da6('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x328cfd,_0x1120c8,_0xb7d051){return new BPromise(function(_0x580e34,_0x504b9b){return client[_0x5da6('0xa')](_0x328cfd,_0xb7d051)[_0x5da6('0xb')](function(_0x37ca4e){logger[_0x5da6('0xc')](_0x5da6('0xd'),_0x1120c8,_0x5da6('0xe'));logger[_0x5da6('0xf')](_0x5da6('0x10'),_0x1120c8,_0x5da6('0xe'),JSON[_0x5da6('0x11')](_0x37ca4e));if(_0x37ca4e[_0x5da6('0x12')]){if(_0x37ca4e[_0x5da6('0x12')][_0x5da6('0x13')]===0x1f4){logger['error']('WhatsappTransferReport,\x20%s,\x20%s',_0x1120c8,_0x37ca4e['error'][_0x5da6('0x14')]);return _0x504b9b(_0x37ca4e[_0x5da6('0x12')][_0x5da6('0x14')]);}logger[_0x5da6('0x12')](_0x5da6('0xd'),_0x1120c8,_0x37ca4e[_0x5da6('0x12')][_0x5da6('0x14')]);return _0x580e34(_0x37ca4e[_0x5da6('0x12')]['message']);}else{logger[_0x5da6('0xc')](_0x5da6('0xd'),_0x1120c8,_0x5da6('0xe'));_0x580e34(_0x37ca4e[_0x5da6('0x15')]['message']);}})[_0x5da6('0x16')](function(_0x3974a0){logger[_0x5da6('0x12')](_0x5da6('0xd'),_0x1120c8,_0x3974a0);_0x504b9b(_0x3974a0);});});} \ No newline at end of file