Built motion from commit 00bf23f6.|2.6.16
[motion2.git] / server / api / mailTransferReport / mailTransferReport.rpc.js
index 129ed41..9754eaf 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xc24f=['randomstring','../../config/utils','../../config/environment','jayson/promise','http','info','request\x20sent','debug','error','code','MailTransferReport,\x20%s,\x20%s','message','result','catch','lodash','moment','bluebird'];(function(_0x2d6fdb,_0x1c8f67){var _0x42a6e1=function(_0x5dc7b2){while(--_0x5dc7b2){_0x2d6fdb['push'](_0x2d6fdb['shift']());}};_0x42a6e1(++_0x1c8f67);}(_0xc24f,0x184));var _0xfc24=function(_0x15ab62,_0x3facd8){_0x15ab62=_0x15ab62-0x0;var _0x161be8=_0xc24f[_0x15ab62];return _0x161be8;};'use strict';var _=require(_0xfc24('0x0'));var util=require('util');var moment=require(_0xfc24('0x1'));var BPromise=require(_0xfc24('0x2'));var rs=require(_0xfc24('0x3'));var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require(_0xfc24('0x4'));var logger=require('../../config/logger')('rpc');var config=require(_0xfc24('0x5'));var jayson=require(_0xfc24('0x6'));var client=jayson['client'][_0xfc24('0x7')]({'port':0x232a});function respondWithRpcPromise(_0x5460d8,_0x11dd13,_0x496e0e){return new BPromise(function(_0x51ed90,_0x22a7de){return client['request'](_0x5460d8,_0x496e0e)['then'](function(_0xbfdb14){logger[_0xfc24('0x8')]('MailTransferReport,\x20%s,\x20%s',_0x11dd13,_0xfc24('0x9'));logger[_0xfc24('0xa')]('MailTransferReport,\x20%s,\x20%s,\x20%s',_0x11dd13,_0xfc24('0x9'),JSON['stringify'](_0xbfdb14));if(_0xbfdb14['error']){if(_0xbfdb14[_0xfc24('0xb')][_0xfc24('0xc')]===0x1f4){logger[_0xfc24('0xb')](_0xfc24('0xd'),_0x11dd13,_0xbfdb14[_0xfc24('0xb')][_0xfc24('0xe')]);return _0x22a7de(_0xbfdb14['error'][_0xfc24('0xe')]);}logger['error'](_0xfc24('0xd'),_0x11dd13,_0xbfdb14[_0xfc24('0xb')]['message']);return _0x51ed90(_0xbfdb14[_0xfc24('0xb')][_0xfc24('0xe')]);}else{logger['info'](_0xfc24('0xd'),_0x11dd13,_0xfc24('0x9'));_0x51ed90(_0xbfdb14[_0xfc24('0xf')][_0xfc24('0xe')]);}})[_0xfc24('0x10')](function(_0x249ef0){logger[_0xfc24('0xb')](_0xfc24('0xd'),_0x11dd13,_0x249ef0);_0x22a7de(_0x249ef0);});});}
\ No newline at end of file
+var _0x9c2b=['lodash','util','moment','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','request','then','info','MailTransferReport,\x20%s,\x20%s','request\x20sent','debug','stringify','error','message','result','catch'];(function(_0x673722,_0x275d7e){var _0x21249c=function(_0x25b4e7){while(--_0x25b4e7){_0x673722['push'](_0x673722['shift']());}};_0x21249c(++_0x275d7e);}(_0x9c2b,0x9a));var _0xb9c2=function(_0x1203f,_0x554bbc){_0x1203f=_0x1203f-0x0;var _0x365f0a=_0x9c2b[_0x1203f];return _0x365f0a;};'use strict';var _=require(_0xb9c2('0x0'));var util=require(_0xb9c2('0x1'));var moment=require(_0xb9c2('0x2'));var BPromise=require('bluebird');var rs=require(_0xb9c2('0x3'));var fs=require('fs');var Redis=require(_0xb9c2('0x4'));var db=require(_0xb9c2('0x5'))['db'];var utils=require(_0xb9c2('0x6'));var logger=require(_0xb9c2('0x7'))(_0xb9c2('0x8'));var config=require(_0xb9c2('0x9'));var jayson=require(_0xb9c2('0xa'));var client=jayson['client']['http']({'port':0x232a});function respondWithRpcPromise(_0x4b72d8,_0x4dfaf6,_0xe7454d){return new BPromise(function(_0x2f1bcd,_0x4915c1){return client[_0xb9c2('0xb')](_0x4b72d8,_0xe7454d)[_0xb9c2('0xc')](function(_0x394829){logger[_0xb9c2('0xd')](_0xb9c2('0xe'),_0x4dfaf6,_0xb9c2('0xf'));logger[_0xb9c2('0x10')]('MailTransferReport,\x20%s,\x20%s,\x20%s',_0x4dfaf6,_0xb9c2('0xf'),JSON[_0xb9c2('0x11')](_0x394829));if(_0x394829['error']){if(_0x394829[_0xb9c2('0x12')]['code']===0x1f4){logger[_0xb9c2('0x12')](_0xb9c2('0xe'),_0x4dfaf6,_0x394829[_0xb9c2('0x12')][_0xb9c2('0x13')]);return _0x4915c1(_0x394829['error'][_0xb9c2('0x13')]);}logger[_0xb9c2('0x12')]('MailTransferReport,\x20%s,\x20%s',_0x4dfaf6,_0x394829['error'][_0xb9c2('0x13')]);return _0x2f1bcd(_0x394829[_0xb9c2('0x12')]['message']);}else{logger[_0xb9c2('0xd')](_0xb9c2('0xe'),_0x4dfaf6,'request\x20sent');_0x2f1bcd(_0x394829[_0xb9c2('0x14')][_0xb9c2('0x13')]);}})[_0xb9c2('0x15')](function(_0x4a7d91){logger[_0xb9c2('0x12')](_0xb9c2('0xe'),_0x4dfaf6,_0x4a7d91);_0x4915c1(_0x4a7d91);});});}
\ No newline at end of file