Built motion from commit e6806ed6.|2.6.0
[motion2.git] / server / api / mailTransferReport / mailTransferReport.rpc.js
index e2ac926..2f5aed9 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xb0f3=['catch','lodash','util','bluebird','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','request','info','MailTransferReport,\x20%s,\x20%s','request\x20sent','stringify','error','code','message','result'];(function(_0x20b6fd,_0x17f1da){var _0x320e6b=function(_0x478026){while(--_0x478026){_0x20b6fd['push'](_0x20b6fd['shift']());}};_0x320e6b(++_0x17f1da);}(_0xb0f3,0x65));var _0x3b0f=function(_0x171ca9,_0x2bb32d){_0x171ca9=_0x171ca9-0x0;var _0x31668f=_0xb0f3[_0x171ca9];return _0x31668f;};'use strict';var _=require(_0x3b0f('0x0'));var util=require(_0x3b0f('0x1'));var moment=require('moment');var BPromise=require(_0x3b0f('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0x3b0f('0x3'));var db=require(_0x3b0f('0x4'))['db'];var utils=require(_0x3b0f('0x5'));var logger=require('../../config/logger')(_0x3b0f('0x6'));var config=require(_0x3b0f('0x7'));var jayson=require(_0x3b0f('0x8'));var client=jayson[_0x3b0f('0x9')]['http']({'port':0x232a});function respondWithRpcPromise(_0x4f3dc3,_0x225448,_0x292df1){return new BPromise(function(_0x545b97,_0x4e42c2){return client[_0x3b0f('0xa')](_0x4f3dc3,_0x292df1)['then'](function(_0x508c5f){logger[_0x3b0f('0xb')](_0x3b0f('0xc'),_0x225448,_0x3b0f('0xd'));logger['debug']('MailTransferReport,\x20%s,\x20%s,\x20%s',_0x225448,'request\x20sent',JSON[_0x3b0f('0xe')](_0x508c5f));if(_0x508c5f[_0x3b0f('0xf')]){if(_0x508c5f[_0x3b0f('0xf')][_0x3b0f('0x10')]===0x1f4){logger['error'](_0x3b0f('0xc'),_0x225448,_0x508c5f[_0x3b0f('0xf')][_0x3b0f('0x11')]);return _0x4e42c2(_0x508c5f['error'][_0x3b0f('0x11')]);}logger[_0x3b0f('0xf')]('MailTransferReport,\x20%s,\x20%s',_0x225448,_0x508c5f[_0x3b0f('0xf')][_0x3b0f('0x11')]);return _0x545b97(_0x508c5f[_0x3b0f('0xf')][_0x3b0f('0x11')]);}else{logger[_0x3b0f('0xb')](_0x3b0f('0xc'),_0x225448,_0x3b0f('0xd'));_0x545b97(_0x508c5f[_0x3b0f('0x12')][_0x3b0f('0x11')]);}})[_0x3b0f('0x13')](function(_0x53a42a){logger[_0x3b0f('0xf')](_0x3b0f('0xc'),_0x225448,_0x53a42a);_0x4e42c2(_0x53a42a);});});}
\ No newline at end of file
+var _0xffd9=['debug','MailTransferReport,\x20%s,\x20%s,\x20%s','error','message','info','result','catch','lodash','moment','randomstring','ioredis','rpc','../../config/environment','http','request','then','MailTransferReport,\x20%s,\x20%s','request\x20sent'];(function(_0x1ecd1c,_0x52608e){var _0x5ad48e=function(_0x1733f2){while(--_0x1733f2){_0x1ecd1c['push'](_0x1ecd1c['shift']());}};_0x5ad48e(++_0x52608e);}(_0xffd9,0x1db));var _0x9ffd=function(_0x4a3feb,_0x4f1350){_0x4a3feb=_0x4a3feb-0x0;var _0x5aa7eb=_0xffd9[_0x4a3feb];return _0x5aa7eb;};'use strict';var _=require(_0x9ffd('0x0'));var util=require('util');var moment=require(_0x9ffd('0x1'));var BPromise=require('bluebird');var rs=require(_0x9ffd('0x2'));var fs=require('fs');var Redis=require(_0x9ffd('0x3'));var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require('../../config/logger')(_0x9ffd('0x4'));var config=require(_0x9ffd('0x5'));var jayson=require('jayson/promise');var client=jayson['client'][_0x9ffd('0x6')]({'port':0x232a});function respondWithRpcPromise(_0x578e74,_0x450b93,_0x5695ef){return new BPromise(function(_0x57bce9,_0x4e51ec){return client[_0x9ffd('0x7')](_0x578e74,_0x5695ef)[_0x9ffd('0x8')](function(_0x59f2c9){logger['info'](_0x9ffd('0x9'),_0x450b93,_0x9ffd('0xa'));logger[_0x9ffd('0xb')](_0x9ffd('0xc'),_0x450b93,'request\x20sent',JSON['stringify'](_0x59f2c9));if(_0x59f2c9[_0x9ffd('0xd')]){if(_0x59f2c9[_0x9ffd('0xd')]['code']===0x1f4){logger['error'](_0x9ffd('0x9'),_0x450b93,_0x59f2c9[_0x9ffd('0xd')][_0x9ffd('0xe')]);return _0x4e51ec(_0x59f2c9[_0x9ffd('0xd')][_0x9ffd('0xe')]);}logger[_0x9ffd('0xd')]('MailTransferReport,\x20%s,\x20%s',_0x450b93,_0x59f2c9[_0x9ffd('0xd')][_0x9ffd('0xe')]);return _0x57bce9(_0x59f2c9[_0x9ffd('0xd')][_0x9ffd('0xe')]);}else{logger[_0x9ffd('0xf')](_0x9ffd('0x9'),_0x450b93,_0x9ffd('0xa'));_0x57bce9(_0x59f2c9[_0x9ffd('0x10')][_0x9ffd('0xe')]);}})[_0x9ffd('0x11')](function(_0xc1b9ca){logger[_0x9ffd('0xd')]('MailTransferReport,\x20%s,\x20%s',_0x450b93,_0xc1b9ca);_0x4e51ec(_0xc1b9ca);});});}
\ No newline at end of file