Built motion from commit da617fac.|2.6.6
[motion2.git] / server / api / mailTransferReport / mailTransferReport.rpc.js
index 66a7a0a..c557ad0 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x1eda=['debug','MailTransferReport,\x20%s,\x20%s,\x20%s','error','code','message','result','lodash','util','bluebird','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','http','request','info','MailTransferReport,\x20%s,\x20%s','request\x20sent'];(function(_0xd8a8af,_0x1e93f0){var _0x5b7278=function(_0x458800){while(--_0x458800){_0xd8a8af['push'](_0xd8a8af['shift']());}};_0x5b7278(++_0x1e93f0);}(_0x1eda,0x10a));var _0xa1ed=function(_0x2a3a68,_0x169422){_0x2a3a68=_0x2a3a68-0x0;var _0x16b157=_0x1eda[_0x2a3a68];return _0x16b157;};'use strict';var _=require(_0xa1ed('0x0'));var util=require(_0xa1ed('0x1'));var moment=require('moment');var BPromise=require(_0xa1ed('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xa1ed('0x3'));var db=require('../../mysqldb')['db'];var utils=require(_0xa1ed('0x4'));var logger=require(_0xa1ed('0x5'))(_0xa1ed('0x6'));var config=require(_0xa1ed('0x7'));var jayson=require(_0xa1ed('0x8'));var client=jayson['client'][_0xa1ed('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x542def,_0x4f5f4c,_0x21941e){return new BPromise(function(_0x95de26,_0x3dc2b0){return client[_0xa1ed('0xa')](_0x542def,_0x21941e)['then'](function(_0x28ee01){logger[_0xa1ed('0xb')](_0xa1ed('0xc'),_0x4f5f4c,_0xa1ed('0xd'));logger[_0xa1ed('0xe')](_0xa1ed('0xf'),_0x4f5f4c,_0xa1ed('0xd'),JSON['stringify'](_0x28ee01));if(_0x28ee01[_0xa1ed('0x10')]){if(_0x28ee01[_0xa1ed('0x10')][_0xa1ed('0x11')]===0x1f4){logger['error'](_0xa1ed('0xc'),_0x4f5f4c,_0x28ee01[_0xa1ed('0x10')][_0xa1ed('0x12')]);return _0x3dc2b0(_0x28ee01[_0xa1ed('0x10')]['message']);}logger[_0xa1ed('0x10')](_0xa1ed('0xc'),_0x4f5f4c,_0x28ee01['error'][_0xa1ed('0x12')]);return _0x95de26(_0x28ee01[_0xa1ed('0x10')][_0xa1ed('0x12')]);}else{logger[_0xa1ed('0xb')](_0xa1ed('0xc'),_0x4f5f4c,_0xa1ed('0xd'));_0x95de26(_0x28ee01[_0xa1ed('0x13')][_0xa1ed('0x12')]);}})['catch'](function(_0x52d399){logger['error']('MailTransferReport,\x20%s,\x20%s',_0x4f5f4c,_0x52d399);_0x3dc2b0(_0x52d399);});});}
\ No newline at end of file
+var _0xbde2=['moment','bluebird','randomstring','ioredis','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','then','info','MailTransferReport,\x20%s,\x20%s','MailTransferReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result','catch','lodash','util'];(function(_0x4a53d,_0x58a95e){var _0x27410e=function(_0x38fc90){while(--_0x38fc90){_0x4a53d['push'](_0x4a53d['shift']());}};_0x27410e(++_0x58a95e);}(_0xbde2,0x111));var _0x2bde=function(_0x12785f,_0x1eac07){_0x12785f=_0x12785f-0x0;var _0x170c47=_0xbde2[_0x12785f];return _0x170c47;};'use strict';var _=require(_0x2bde('0x0'));var util=require(_0x2bde('0x1'));var moment=require(_0x2bde('0x2'));var BPromise=require(_0x2bde('0x3'));var rs=require(_0x2bde('0x4'));var fs=require('fs');var Redis=require(_0x2bde('0x5'));var db=require('../../mysqldb')['db'];var utils=require(_0x2bde('0x6'));var logger=require(_0x2bde('0x7'))(_0x2bde('0x8'));var config=require(_0x2bde('0x9'));var jayson=require(_0x2bde('0xa'));var client=jayson[_0x2bde('0xb')][_0x2bde('0xc')]({'port':0x232a});function respondWithRpcPromise(_0x3967d7,_0x511257,_0x44def4){return new BPromise(function(_0xd149bc,_0xa55629){return client[_0x2bde('0xd')](_0x3967d7,_0x44def4)[_0x2bde('0xe')](function(_0x4f25ac){logger[_0x2bde('0xf')](_0x2bde('0x10'),_0x511257,'request\x20sent');logger['debug'](_0x2bde('0x11'),_0x511257,_0x2bde('0x12'),JSON[_0x2bde('0x13')](_0x4f25ac));if(_0x4f25ac[_0x2bde('0x14')]){if(_0x4f25ac[_0x2bde('0x14')][_0x2bde('0x15')]===0x1f4){logger[_0x2bde('0x14')](_0x2bde('0x10'),_0x511257,_0x4f25ac[_0x2bde('0x14')]['message']);return _0xa55629(_0x4f25ac[_0x2bde('0x14')][_0x2bde('0x16')]);}logger[_0x2bde('0x14')](_0x2bde('0x10'),_0x511257,_0x4f25ac[_0x2bde('0x14')]['message']);return _0xd149bc(_0x4f25ac[_0x2bde('0x14')]['message']);}else{logger['info'](_0x2bde('0x10'),_0x511257,'request\x20sent');_0xd149bc(_0x4f25ac[_0x2bde('0x17')]['message']);}})[_0x2bde('0x18')](function(_0x87eff3){logger[_0x2bde('0x14')](_0x2bde('0x10'),_0x511257,_0x87eff3);_0xa55629(_0x87eff3);});});}
\ No newline at end of file