Built motion from commit (unavailable).|2.5.4
[motion2.git] / server / api / mailTransferReport / mailTransferReport.rpc.js
index ecccb59..3e75c93 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x64cb=['../../config/logger','rpc','jayson/promise','client','then','info','MailTransferReport,\x20%s,\x20%s','debug','request\x20sent','stringify','error','code','message','result','catch','lodash','moment','ioredis','../../mysqldb','../../config/utils'];(function(_0x42cae2,_0x284ef8){var _0x5f256f=function(_0x41abc8){while(--_0x41abc8){_0x42cae2['push'](_0x42cae2['shift']());}};_0x5f256f(++_0x284ef8);}(_0x64cb,0x9b));var _0xb64c=function(_0x22dfb9,_0x2e231c){_0x22dfb9=_0x22dfb9-0x0;var _0x51cbb1=_0x64cb[_0x22dfb9];return _0x51cbb1;};'use strict';var _=require(_0xb64c('0x0'));var util=require('util');var moment=require(_0xb64c('0x1'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xb64c('0x2'));var db=require(_0xb64c('0x3'))['db'];var utils=require(_0xb64c('0x4'));var logger=require(_0xb64c('0x5'))(_0xb64c('0x6'));var config=require('../../config/environment');var jayson=require(_0xb64c('0x7'));var client=jayson[_0xb64c('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0x54fc62,_0x1f459b,_0xf011ba){return new BPromise(function(_0x43c36c,_0x521ce1){return client['request'](_0x54fc62,_0xf011ba)[_0xb64c('0x9')](function(_0x35bd31){logger[_0xb64c('0xa')](_0xb64c('0xb'),_0x1f459b,'request\x20sent');logger[_0xb64c('0xc')]('MailTransferReport,\x20%s,\x20%s,\x20%s',_0x1f459b,_0xb64c('0xd'),JSON[_0xb64c('0xe')](_0x35bd31));if(_0x35bd31[_0xb64c('0xf')]){if(_0x35bd31['error'][_0xb64c('0x10')]===0x1f4){logger[_0xb64c('0xf')](_0xb64c('0xb'),_0x1f459b,_0x35bd31['error'][_0xb64c('0x11')]);return _0x521ce1(_0x35bd31[_0xb64c('0xf')][_0xb64c('0x11')]);}logger[_0xb64c('0xf')](_0xb64c('0xb'),_0x1f459b,_0x35bd31[_0xb64c('0xf')][_0xb64c('0x11')]);return _0x43c36c(_0x35bd31[_0xb64c('0xf')][_0xb64c('0x11')]);}else{logger[_0xb64c('0xa')]('MailTransferReport,\x20%s,\x20%s',_0x1f459b,_0xb64c('0xd'));_0x43c36c(_0x35bd31[_0xb64c('0x12')][_0xb64c('0x11')]);}})[_0xb64c('0x13')](function(_0x5504b8){logger[_0xb64c('0xf')](_0xb64c('0xb'),_0x1f459b,_0x5504b8);_0x521ce1(_0x5504b8);});});}
\ No newline at end of file
+var _0x29a8=['request','info','MailTransferReport,\x20%s,\x20%s','request\x20sent','debug','stringify','error','message','catch','util','moment','randomstring','ioredis','../../config/utils','../../config/logger','rpc','jayson/promise','client','http'];(function(_0x56bbb5,_0x3cddd4){var _0x235716=function(_0x43459b){while(--_0x43459b){_0x56bbb5['push'](_0x56bbb5['shift']());}};_0x235716(++_0x3cddd4);}(_0x29a8,0x1d1));var _0x829a=function(_0x427d3c,_0xf5efc7){_0x427d3c=_0x427d3c-0x0;var _0x3c041e=_0x29a8[_0x427d3c];return _0x3c041e;};'use strict';var _=require('lodash');var util=require(_0x829a('0x0'));var moment=require(_0x829a('0x1'));var BPromise=require('bluebird');var rs=require(_0x829a('0x2'));var fs=require('fs');var Redis=require(_0x829a('0x3'));var db=require('../../mysqldb')['db'];var utils=require(_0x829a('0x4'));var logger=require(_0x829a('0x5'))(_0x829a('0x6'));var config=require('../../config/environment');var jayson=require(_0x829a('0x7'));var client=jayson[_0x829a('0x8')][_0x829a('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x2a9660,_0x1d752c,_0x3e1899){return new BPromise(function(_0x499fa3,_0x20e18f){return client[_0x829a('0xa')](_0x2a9660,_0x3e1899)['then'](function(_0x9cea54){logger[_0x829a('0xb')](_0x829a('0xc'),_0x1d752c,_0x829a('0xd'));logger[_0x829a('0xe')]('MailTransferReport,\x20%s,\x20%s,\x20%s',_0x1d752c,_0x829a('0xd'),JSON[_0x829a('0xf')](_0x9cea54));if(_0x9cea54[_0x829a('0x10')]){if(_0x9cea54[_0x829a('0x10')]['code']===0x1f4){logger['error'](_0x829a('0xc'),_0x1d752c,_0x9cea54[_0x829a('0x10')][_0x829a('0x11')]);return _0x20e18f(_0x9cea54['error'][_0x829a('0x11')]);}logger['error'](_0x829a('0xc'),_0x1d752c,_0x9cea54[_0x829a('0x10')]['message']);return _0x499fa3(_0x9cea54[_0x829a('0x10')][_0x829a('0x11')]);}else{logger[_0x829a('0xb')]('MailTransferReport,\x20%s,\x20%s',_0x1d752c,_0x829a('0xd'));_0x499fa3(_0x9cea54['result'][_0x829a('0x11')]);}})[_0x829a('0x12')](function(_0x410739){logger[_0x829a('0x10')]('MailTransferReport,\x20%s,\x20%s',_0x1d752c,_0x410739);_0x20e18f(_0x410739);});});}
\ No newline at end of file