Built motion from commit (unavailable).|2.5.0
[motion2.git] / server / api / mailTransferReport / mailTransferReport.rpc.js
index 6b72e6c..71f04fe 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8b1f=['ioredis','../../mysqldb','../../config/utils','../../config/environment','http','request','then','info','MailTransferReport,\x20%s,\x20%s','debug','MailTransferReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','message','result','catch','lodash','util','moment','bluebird'];(function(_0x440917,_0x20ea7b){var _0x5e906b=function(_0x27cba5){while(--_0x27cba5){_0x440917['push'](_0x440917['shift']());}};_0x5e906b(++_0x20ea7b);}(_0x8b1f,0x1b5));var _0xf8b1=function(_0x5a5199,_0x262edd){_0x5a5199=_0x5a5199-0x0;var _0x2a06e0=_0x8b1f[_0x5a5199];return _0x2a06e0;};'use strict';var _=require(_0xf8b1('0x0'));var util=require(_0xf8b1('0x1'));var moment=require(_0xf8b1('0x2'));var BPromise=require(_0xf8b1('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xf8b1('0x4'));var db=require(_0xf8b1('0x5'))['db'];var utils=require(_0xf8b1('0x6'));var logger=require('../../config/logger')('rpc');var config=require(_0xf8b1('0x7'));var jayson=require('jayson/promise');var client=jayson['client'][_0xf8b1('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x13c714,_0x21b339,_0x1caf48){return new BPromise(function(_0x57bf99,_0x4f0cb6){return client[_0xf8b1('0x9')](_0x13c714,_0x1caf48)[_0xf8b1('0xa')](function(_0x21ff39){logger[_0xf8b1('0xb')](_0xf8b1('0xc'),_0x21b339,'request\x20sent');logger[_0xf8b1('0xd')](_0xf8b1('0xe'),_0x21b339,_0xf8b1('0xf'),JSON[_0xf8b1('0x10')](_0x21ff39));if(_0x21ff39[_0xf8b1('0x11')]){if(_0x21ff39[_0xf8b1('0x11')]['code']===0x1f4){logger[_0xf8b1('0x11')](_0xf8b1('0xc'),_0x21b339,_0x21ff39[_0xf8b1('0x11')][_0xf8b1('0x12')]);return _0x4f0cb6(_0x21ff39['error'][_0xf8b1('0x12')]);}logger[_0xf8b1('0x11')](_0xf8b1('0xc'),_0x21b339,_0x21ff39[_0xf8b1('0x11')][_0xf8b1('0x12')]);return _0x57bf99(_0x21ff39[_0xf8b1('0x11')][_0xf8b1('0x12')]);}else{logger['info'](_0xf8b1('0xc'),_0x21b339,_0xf8b1('0xf'));_0x57bf99(_0x21ff39[_0xf8b1('0x13')]['message']);}})[_0xf8b1('0x14')](function(_0x13ade9){logger[_0xf8b1('0x11')](_0xf8b1('0xc'),_0x21b339,_0x13ade9);_0x4f0cb6(_0x13ade9);});});}
\ No newline at end of file
+var _0x86c4=['message','result','lodash','util','moment','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','request\x20sent','error','code','MailTransferReport,\x20%s,\x20%s'];(function(_0xf3b525,_0x419b48){var _0x1f98b3=function(_0x1050c9){while(--_0x1050c9){_0xf3b525['push'](_0xf3b525['shift']());}};_0x1f98b3(++_0x419b48);}(_0x86c4,0x172));var _0x486c=function(_0xa464c9,_0x7c86d8){_0xa464c9=_0xa464c9-0x0;var _0x3d73c4=_0x86c4[_0xa464c9];return _0x3d73c4;};'use strict';var _=require(_0x486c('0x0'));var util=require(_0x486c('0x1'));var moment=require(_0x486c('0x2'));var BPromise=require(_0x486c('0x3'));var rs=require(_0x486c('0x4'));var fs=require('fs');var Redis=require(_0x486c('0x5'));var db=require(_0x486c('0x6'))['db'];var utils=require(_0x486c('0x7'));var logger=require(_0x486c('0x8'))(_0x486c('0x9'));var config=require(_0x486c('0xa'));var jayson=require(_0x486c('0xb'));var client=jayson[_0x486c('0xc')][_0x486c('0xd')]({'port':0x232a});function respondWithRpcPromise(_0x1ec807,_0x2ea511,_0x48128a){return new BPromise(function(_0x2873ea,_0x3b858){return client[_0x486c('0xe')](_0x1ec807,_0x48128a)[_0x486c('0xf')](function(_0x172778){logger[_0x486c('0x10')]('MailTransferReport,\x20%s,\x20%s',_0x2ea511,_0x486c('0x11'));logger['debug']('MailTransferReport,\x20%s,\x20%s,\x20%s',_0x2ea511,_0x486c('0x11'),JSON['stringify'](_0x172778));if(_0x172778[_0x486c('0x12')]){if(_0x172778[_0x486c('0x12')][_0x486c('0x13')]===0x1f4){logger[_0x486c('0x12')](_0x486c('0x14'),_0x2ea511,_0x172778[_0x486c('0x12')][_0x486c('0x15')]);return _0x3b858(_0x172778['error'][_0x486c('0x15')]);}logger[_0x486c('0x12')]('MailTransferReport,\x20%s,\x20%s',_0x2ea511,_0x172778[_0x486c('0x12')][_0x486c('0x15')]);return _0x2873ea(_0x172778[_0x486c('0x12')]['message']);}else{logger['info'](_0x486c('0x14'),_0x2ea511,_0x486c('0x11'));_0x2873ea(_0x172778[_0x486c('0x16')][_0x486c('0x15')]);}})['catch'](function(_0x5ea75e){logger['error']('MailTransferReport,\x20%s,\x20%s',_0x2ea511,_0x5ea75e);_0x3b858(_0x5ea75e);});});}
\ No newline at end of file