Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / whatsappTransferReport / whatsappTransferReport.rpc.js
index f54e37e..6d9f288 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xcc4c=['util','moment','ioredis','../../mysqldb','../../config/logger','rpc','../../config/environment','jayson/promise','client','request','then','info','WhatsappTransferReport,\x20%s,\x20%s','debug','WhatsappTransferReport,\x20%s,\x20%s,\x20%s','request\x20sent','error','code','message','result','catch','lodash'];(function(_0x5a11d2,_0x55e3cc){var _0x61a965=function(_0x17cf73){while(--_0x17cf73){_0x5a11d2['push'](_0x5a11d2['shift']());}};_0x61a965(++_0x55e3cc);}(_0xcc4c,0x149));var _0xccc4=function(_0x1989ab,_0x30de54){_0x1989ab=_0x1989ab-0x0;var _0x1240f1=_0xcc4c[_0x1989ab];return _0x1240f1;};'use strict';var _=require(_0xccc4('0x0'));var util=require(_0xccc4('0x1'));var moment=require(_0xccc4('0x2'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xccc4('0x3'));var db=require(_0xccc4('0x4'))['db'];var utils=require('../../config/utils');var logger=require(_0xccc4('0x5'))(_0xccc4('0x6'));var config=require(_0xccc4('0x7'));var jayson=require(_0xccc4('0x8'));var client=jayson[_0xccc4('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x388da8,_0x2b3e76,_0x280644){return new BPromise(function(_0x65a25f,_0xd279f8){return client[_0xccc4('0xa')](_0x388da8,_0x280644)[_0xccc4('0xb')](function(_0x365a85){logger[_0xccc4('0xc')](_0xccc4('0xd'),_0x2b3e76,'request\x20sent');logger[_0xccc4('0xe')](_0xccc4('0xf'),_0x2b3e76,_0xccc4('0x10'),JSON['stringify'](_0x365a85));if(_0x365a85[_0xccc4('0x11')]){if(_0x365a85['error'][_0xccc4('0x12')]===0x1f4){logger[_0xccc4('0x11')]('WhatsappTransferReport,\x20%s,\x20%s',_0x2b3e76,_0x365a85['error'][_0xccc4('0x13')]);return _0xd279f8(_0x365a85[_0xccc4('0x11')][_0xccc4('0x13')]);}logger[_0xccc4('0x11')](_0xccc4('0xd'),_0x2b3e76,_0x365a85[_0xccc4('0x11')][_0xccc4('0x13')]);return _0x65a25f(_0x365a85[_0xccc4('0x11')]['message']);}else{logger[_0xccc4('0xc')]('WhatsappTransferReport,\x20%s,\x20%s',_0x2b3e76,'request\x20sent');_0x65a25f(_0x365a85[_0xccc4('0x14')][_0xccc4('0x13')]);}})[_0xccc4('0x15')](function(_0x366772){logger[_0xccc4('0x11')](_0xccc4('0xd'),_0x2b3e76,_0x366772);_0xd279f8(_0x366772);});});}
\ No newline at end of file
+var _0x69a3=['debug','stringify','error','code','message','info','catch','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','then','WhatsappTransferReport,\x20%s,\x20%s','request\x20sent'];(function(_0xc751f5,_0x41d3d6){var _0x4b98eb=function(_0x36d10d){while(--_0x36d10d){_0xc751f5['push'](_0xc751f5['shift']());}};_0x4b98eb(++_0x41d3d6);}(_0x69a3,0x18e));var _0x369a=function(_0x3bec89,_0xa9396a){_0x3bec89=_0x3bec89-0x0;var _0x1c3745=_0x69a3[_0x3bec89];return _0x1c3745;};'use strict';var _=require('lodash');var util=require(_0x369a('0x0'));var moment=require(_0x369a('0x1'));var BPromise=require(_0x369a('0x2'));var rs=require(_0x369a('0x3'));var fs=require('fs');var Redis=require(_0x369a('0x4'));var db=require(_0x369a('0x5'))['db'];var utils=require(_0x369a('0x6'));var logger=require(_0x369a('0x7'))(_0x369a('0x8'));var config=require(_0x369a('0x9'));var jayson=require(_0x369a('0xa'));var client=jayson[_0x369a('0xb')][_0x369a('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x10299c,_0x56ddf1,_0x34fb3c){return new BPromise(function(_0x4974c8,_0x46f3f5){return client['request'](_0x10299c,_0x34fb3c)[_0x369a('0xd')](function(_0x120d29){logger['info'](_0x369a('0xe'),_0x56ddf1,_0x369a('0xf'));logger[_0x369a('0x10')]('WhatsappTransferReport,\x20%s,\x20%s,\x20%s',_0x56ddf1,_0x369a('0xf'),JSON[_0x369a('0x11')](_0x120d29));if(_0x120d29[_0x369a('0x12')]){if(_0x120d29[_0x369a('0x12')][_0x369a('0x13')]===0x1f4){logger['error'](_0x369a('0xe'),_0x56ddf1,_0x120d29[_0x369a('0x12')]['message']);return _0x46f3f5(_0x120d29[_0x369a('0x12')]['message']);}logger[_0x369a('0x12')](_0x369a('0xe'),_0x56ddf1,_0x120d29[_0x369a('0x12')][_0x369a('0x14')]);return _0x4974c8(_0x120d29[_0x369a('0x12')][_0x369a('0x14')]);}else{logger[_0x369a('0x15')](_0x369a('0xe'),_0x56ddf1,'request\x20sent');_0x4974c8(_0x120d29['result']['message']);}})[_0x369a('0x16')](function(_0x21fed9){logger[_0x369a('0x12')]('WhatsappTransferReport,\x20%s,\x20%s',_0x56ddf1,_0x21fed9);_0x46f3f5(_0x21fed9);});});}
\ No newline at end of file