Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / api / mailTransferReport / mailTransferReport.rpc.js
index 9ee95e1..9de3ea6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xf811=['MailTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','MailTransferReport,\x20%s,\x20%s','message','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent','debug'];(function(_0x4a5cbc,_0x4c4e10){var _0x52a1ab=function(_0x2384d6){while(--_0x2384d6){_0x4a5cbc['push'](_0x4a5cbc['shift']());}};_0x52a1ab(++_0x4c4e10);}(_0xf811,0x6f));var _0x1f81=function(_0x5d2803,_0xf375bd){_0x5d2803=_0x5d2803-0x0;var _0xdcad2c=_0xf811[_0x5d2803];return _0xdcad2c;};'use strict';var _=require(_0x1f81('0x0'));var util=require(_0x1f81('0x1'));var moment=require(_0x1f81('0x2'));var BPromise=require(_0x1f81('0x3'));var rs=require(_0x1f81('0x4'));var fs=require('fs');var Redis=require(_0x1f81('0x5'));var db=require(_0x1f81('0x6'))['db'];var utils=require(_0x1f81('0x7'));var logger=require(_0x1f81('0x8'))(_0x1f81('0x9'));var config=require(_0x1f81('0xa'));var jayson=require(_0x1f81('0xb'));var client=jayson[_0x1f81('0xc')][_0x1f81('0xd')]({'port':0x232a});function respondWithRpcPromise(_0x57c512,_0x2238b2,_0x42b31b){return new BPromise(function(_0x3635bf,_0x5e6256){return client[_0x1f81('0xe')](_0x57c512,_0x42b31b)[_0x1f81('0xf')](function(_0x4af394){logger[_0x1f81('0x10')]('MailTransferReport,\x20%s,\x20%s',_0x2238b2,_0x1f81('0x11'));logger[_0x1f81('0x12')](_0x1f81('0x13'),_0x2238b2,_0x1f81('0x11'),JSON[_0x1f81('0x14')](_0x4af394));if(_0x4af394[_0x1f81('0x15')]){if(_0x4af394[_0x1f81('0x15')][_0x1f81('0x16')]===0x1f4){logger[_0x1f81('0x15')](_0x1f81('0x17'),_0x2238b2,_0x4af394[_0x1f81('0x15')][_0x1f81('0x18')]);return _0x5e6256(_0x4af394[_0x1f81('0x15')][_0x1f81('0x18')]);}logger[_0x1f81('0x15')](_0x1f81('0x17'),_0x2238b2,_0x4af394['error'][_0x1f81('0x18')]);return _0x3635bf(_0x4af394[_0x1f81('0x15')]['message']);}else{logger['info'](_0x1f81('0x17'),_0x2238b2,_0x1f81('0x11'));_0x3635bf(_0x4af394['result'][_0x1f81('0x18')]);}})[_0x1f81('0x19')](function(_0x37434a){logger[_0x1f81('0x15')]('MailTransferReport,\x20%s,\x20%s',_0x2238b2,_0x37434a);_0x5e6256(_0x37434a);});});}
\ No newline at end of file
+var _0x28b5=['request\x20sent','error','message','lodash','util','bluebird','randomstring','ioredis','../../mysqldb','rpc','../../config/environment','jayson/promise','http','request','then','info','MailTransferReport,\x20%s,\x20%s'];(function(_0x444c17,_0x20048c){var _0x6bbac2=function(_0x19ebaa){while(--_0x19ebaa){_0x444c17['push'](_0x444c17['shift']());}};_0x6bbac2(++_0x20048c);}(_0x28b5,0x69));var _0x528b=function(_0x15be32,_0x216976){_0x15be32=_0x15be32-0x0;var _0x5e9af0=_0x28b5[_0x15be32];return _0x5e9af0;};'use strict';var _=require(_0x528b('0x0'));var util=require(_0x528b('0x1'));var moment=require('moment');var BPromise=require(_0x528b('0x2'));var rs=require(_0x528b('0x3'));var fs=require('fs');var Redis=require(_0x528b('0x4'));var db=require(_0x528b('0x5'))['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0x528b('0x6'));var config=require(_0x528b('0x7'));var jayson=require(_0x528b('0x8'));var client=jayson['client'][_0x528b('0x9')]({'port':0x232a});function respondWithRpcPromise(_0xdb0183,_0x4e654d,_0x407eac){return new BPromise(function(_0x11cc77,_0x481f21){return client[_0x528b('0xa')](_0xdb0183,_0x407eac)[_0x528b('0xb')](function(_0x4d1402){logger[_0x528b('0xc')](_0x528b('0xd'),_0x4e654d,_0x528b('0xe'));logger['debug']('MailTransferReport,\x20%s,\x20%s,\x20%s',_0x4e654d,_0x528b('0xe'),JSON['stringify'](_0x4d1402));if(_0x4d1402[_0x528b('0xf')]){if(_0x4d1402[_0x528b('0xf')]['code']===0x1f4){logger[_0x528b('0xf')](_0x528b('0xd'),_0x4e654d,_0x4d1402[_0x528b('0xf')][_0x528b('0x10')]);return _0x481f21(_0x4d1402[_0x528b('0xf')][_0x528b('0x10')]);}logger['error'](_0x528b('0xd'),_0x4e654d,_0x4d1402[_0x528b('0xf')]['message']);return _0x11cc77(_0x4d1402['error'][_0x528b('0x10')]);}else{logger[_0x528b('0xc')](_0x528b('0xd'),_0x4e654d,_0x528b('0xe'));_0x11cc77(_0x4d1402['result'][_0x528b('0x10')]);}})['catch'](function(_0x385afe){logger[_0x528b('0xf')](_0x528b('0xd'),_0x4e654d,_0x385afe);_0x481f21(_0x385afe);});});}
\ No newline at end of file