Built motion from commit a679711e.|2.6.15
[motion2.git] / server / api / mailTransferReport / mailTransferReport.rpc.js
index 9053071..472b7ed 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa168=['then','MailTransferReport,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','catch','util','bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request'];(function(_0x466a8d,_0x399097){var _0x436136=function(_0xd18c40){while(--_0xd18c40){_0x466a8d['push'](_0x466a8d['shift']());}};_0x436136(++_0x399097);}(_0xa168,0x191));var _0x8a16=function(_0xc0f3d0,_0x4cfe98){_0xc0f3d0=_0xc0f3d0-0x0;var _0x1798ba=_0xa168[_0xc0f3d0];return _0x1798ba;};'use strict';var _=require('lodash');var util=require(_0x8a16('0x0'));var moment=require('moment');var BPromise=require(_0x8a16('0x1'));var rs=require(_0x8a16('0x2'));var fs=require('fs');var Redis=require(_0x8a16('0x3'));var db=require(_0x8a16('0x4'))['db'];var utils=require(_0x8a16('0x5'));var logger=require(_0x8a16('0x6'))(_0x8a16('0x7'));var config=require(_0x8a16('0x8'));var jayson=require(_0x8a16('0x9'));var client=jayson[_0x8a16('0xa')][_0x8a16('0xb')]({'port':0x232a});function respondWithRpcPromise(_0x572802,_0x59c4ed,_0x3cc967){return new BPromise(function(_0x44e4b6,_0x287c4f){return client[_0x8a16('0xc')](_0x572802,_0x3cc967)[_0x8a16('0xd')](function(_0x3820b7){logger['info'](_0x8a16('0xe'),_0x59c4ed,_0x8a16('0xf'));logger[_0x8a16('0x10')]('MailTransferReport,\x20%s,\x20%s,\x20%s',_0x59c4ed,_0x8a16('0xf'),JSON[_0x8a16('0x11')](_0x3820b7));if(_0x3820b7['error']){if(_0x3820b7[_0x8a16('0x12')][_0x8a16('0x13')]===0x1f4){logger[_0x8a16('0x12')]('MailTransferReport,\x20%s,\x20%s',_0x59c4ed,_0x3820b7[_0x8a16('0x12')]['message']);return _0x287c4f(_0x3820b7[_0x8a16('0x12')][_0x8a16('0x14')]);}logger['error'](_0x8a16('0xe'),_0x59c4ed,_0x3820b7[_0x8a16('0x12')][_0x8a16('0x14')]);return _0x44e4b6(_0x3820b7['error'][_0x8a16('0x14')]);}else{logger['info'](_0x8a16('0xe'),_0x59c4ed,'request\x20sent');_0x44e4b6(_0x3820b7[_0x8a16('0x15')][_0x8a16('0x14')]);}})[_0x8a16('0x16')](function(_0x40d6f0){logger['error'](_0x8a16('0xe'),_0x59c4ed,_0x40d6f0);_0x287c4f(_0x40d6f0);});});}
\ No newline at end of file
+var _0xbb5c=['client','request','then','info','request\x20sent','stringify','error','code','MailTransferReport,\x20%s,\x20%s','message','result','catch','lodash','util','moment','bluebird','randomstring','ioredis','../../config/logger','jayson/promise'];(function(_0xffeba7,_0xf84f44){var _0x5c0d88=function(_0x111866){while(--_0x111866){_0xffeba7['push'](_0xffeba7['shift']());}};_0x5c0d88(++_0xf84f44);}(_0xbb5c,0x1d8));var _0xcbb5=function(_0xa04c8a,_0x411ee9){_0xa04c8a=_0xa04c8a-0x0;var _0x484869=_0xbb5c[_0xa04c8a];return _0x484869;};'use strict';var _=require(_0xcbb5('0x0'));var util=require(_0xcbb5('0x1'));var moment=require(_0xcbb5('0x2'));var BPromise=require(_0xcbb5('0x3'));var rs=require(_0xcbb5('0x4'));var fs=require('fs');var Redis=require(_0xcbb5('0x5'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0xcbb5('0x6'))('rpc');var config=require('../../config/environment');var jayson=require(_0xcbb5('0x7'));var client=jayson[_0xcbb5('0x8')]['http']({'port':0x232a});function respondWithRpcPromise(_0xea28d1,_0xadd4a3,_0x2f7ce0){return new BPromise(function(_0x3d8555,_0x33f85b){return client[_0xcbb5('0x9')](_0xea28d1,_0x2f7ce0)[_0xcbb5('0xa')](function(_0x3b23d2){logger[_0xcbb5('0xb')]('MailTransferReport,\x20%s,\x20%s',_0xadd4a3,_0xcbb5('0xc'));logger['debug']('MailTransferReport,\x20%s,\x20%s,\x20%s',_0xadd4a3,_0xcbb5('0xc'),JSON[_0xcbb5('0xd')](_0x3b23d2));if(_0x3b23d2[_0xcbb5('0xe')]){if(_0x3b23d2['error'][_0xcbb5('0xf')]===0x1f4){logger[_0xcbb5('0xe')](_0xcbb5('0x10'),_0xadd4a3,_0x3b23d2[_0xcbb5('0xe')][_0xcbb5('0x11')]);return _0x33f85b(_0x3b23d2[_0xcbb5('0xe')][_0xcbb5('0x11')]);}logger[_0xcbb5('0xe')](_0xcbb5('0x10'),_0xadd4a3,_0x3b23d2['error'][_0xcbb5('0x11')]);return _0x3d8555(_0x3b23d2[_0xcbb5('0xe')]['message']);}else{logger[_0xcbb5('0xb')](_0xcbb5('0x10'),_0xadd4a3,_0xcbb5('0xc'));_0x3d8555(_0x3b23d2[_0xcbb5('0x12')][_0xcbb5('0x11')]);}})[_0xcbb5('0x13')](function(_0x18e486){logger[_0xcbb5('0xe')]('MailTransferReport,\x20%s,\x20%s',_0xadd4a3,_0x18e486);_0x33f85b(_0x18e486);});});}
\ No newline at end of file