Built motion from commit 19a84241.|2.5.34
[motion2.git] / server / api / mailTransferReport / mailTransferReport.rpc.js
index 47502c6..b78822d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x07f3=['bluebird','randomstring','ioredis','../../mysqldb','../../config/utils','rpc','../../config/environment','jayson/promise','client','request','then','info','MailTransferReport,\x20%s,\x20%s','request\x20sent','debug','stringify','error','code','message','result','catch','lodash','util','moment'];(function(_0x2f10e4,_0x2424ee){var _0x16ae69=function(_0xe8b3d3){while(--_0xe8b3d3){_0x2f10e4['push'](_0x2f10e4['shift']());}};_0x16ae69(++_0x2424ee);}(_0x07f3,0xbd));var _0x307f=function(_0x13e741,_0x5d3c24){_0x13e741=_0x13e741-0x0;var _0x3f8bb3=_0x07f3[_0x13e741];return _0x3f8bb3;};'use strict';var _=require(_0x307f('0x0'));var util=require(_0x307f('0x1'));var moment=require(_0x307f('0x2'));var BPromise=require(_0x307f('0x3'));var rs=require(_0x307f('0x4'));var fs=require('fs');var Redis=require(_0x307f('0x5'));var db=require(_0x307f('0x6'))['db'];var utils=require(_0x307f('0x7'));var logger=require('../../config/logger')(_0x307f('0x8'));var config=require(_0x307f('0x9'));var jayson=require(_0x307f('0xa'));var client=jayson[_0x307f('0xb')]['http']({'port':0x232a});function respondWithRpcPromise(_0x3b08ad,_0x44766a,_0x48c80a){return new BPromise(function(_0x5becdd,_0x2e07b0){return client[_0x307f('0xc')](_0x3b08ad,_0x48c80a)[_0x307f('0xd')](function(_0x4514aa){logger[_0x307f('0xe')](_0x307f('0xf'),_0x44766a,_0x307f('0x10'));logger[_0x307f('0x11')]('MailTransferReport,\x20%s,\x20%s,\x20%s',_0x44766a,_0x307f('0x10'),JSON[_0x307f('0x12')](_0x4514aa));if(_0x4514aa[_0x307f('0x13')]){if(_0x4514aa[_0x307f('0x13')][_0x307f('0x14')]===0x1f4){logger[_0x307f('0x13')](_0x307f('0xf'),_0x44766a,_0x4514aa[_0x307f('0x13')]['message']);return _0x2e07b0(_0x4514aa[_0x307f('0x13')][_0x307f('0x15')]);}logger['error'](_0x307f('0xf'),_0x44766a,_0x4514aa[_0x307f('0x13')][_0x307f('0x15')]);return _0x5becdd(_0x4514aa[_0x307f('0x13')][_0x307f('0x15')]);}else{logger[_0x307f('0xe')](_0x307f('0xf'),_0x44766a,_0x307f('0x10'));_0x5becdd(_0x4514aa[_0x307f('0x16')][_0x307f('0x15')]);}})[_0x307f('0x17')](function(_0x1470a3){logger['error']('MailTransferReport,\x20%s,\x20%s',_0x44766a,_0x1470a3);_0x2e07b0(_0x1470a3);});});}
\ No newline at end of file
+var _0x9e4a=['../../config/utils','../../config/logger','rpc','../../config/environment','client','http','request','then','MailTransferReport,\x20%s,\x20%s','request\x20sent','debug','MailTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','info','result','catch','lodash','util','moment','ioredis','../../mysqldb'];(function(_0x26f129,_0x123f96){var _0x1548b4=function(_0x2c2d61){while(--_0x2c2d61){_0x26f129['push'](_0x26f129['shift']());}};_0x1548b4(++_0x123f96);}(_0x9e4a,0x1c3));var _0xa9e4=function(_0x2235bf,_0x3a06a7){_0x2235bf=_0x2235bf-0x0;var _0x4c3a64=_0x9e4a[_0x2235bf];return _0x4c3a64;};'use strict';var _=require(_0xa9e4('0x0'));var util=require(_0xa9e4('0x1'));var moment=require(_0xa9e4('0x2'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xa9e4('0x3'));var db=require(_0xa9e4('0x4'))['db'];var utils=require(_0xa9e4('0x5'));var logger=require(_0xa9e4('0x6'))(_0xa9e4('0x7'));var config=require(_0xa9e4('0x8'));var jayson=require('jayson/promise');var client=jayson[_0xa9e4('0x9')][_0xa9e4('0xa')]({'port':0x232a});function respondWithRpcPromise(_0x35663d,_0x5e1fca,_0x2aba39){return new BPromise(function(_0x10bcb9,_0x48a5ea){return client[_0xa9e4('0xb')](_0x35663d,_0x2aba39)[_0xa9e4('0xc')](function(_0x56db4d){logger['info'](_0xa9e4('0xd'),_0x5e1fca,_0xa9e4('0xe'));logger[_0xa9e4('0xf')](_0xa9e4('0x10'),_0x5e1fca,_0xa9e4('0xe'),JSON[_0xa9e4('0x11')](_0x56db4d));if(_0x56db4d['error']){if(_0x56db4d[_0xa9e4('0x12')][_0xa9e4('0x13')]===0x1f4){logger[_0xa9e4('0x12')](_0xa9e4('0xd'),_0x5e1fca,_0x56db4d['error'][_0xa9e4('0x14')]);return _0x48a5ea(_0x56db4d[_0xa9e4('0x12')][_0xa9e4('0x14')]);}logger[_0xa9e4('0x12')](_0xa9e4('0xd'),_0x5e1fca,_0x56db4d[_0xa9e4('0x12')][_0xa9e4('0x14')]);return _0x10bcb9(_0x56db4d[_0xa9e4('0x12')][_0xa9e4('0x14')]);}else{logger[_0xa9e4('0x15')](_0xa9e4('0xd'),_0x5e1fca,_0xa9e4('0xe'));_0x10bcb9(_0x56db4d[_0xa9e4('0x16')][_0xa9e4('0x14')]);}})[_0xa9e4('0x17')](function(_0x51b15c){logger[_0xa9e4('0x12')](_0xa9e4('0xd'),_0x5e1fca,_0x51b15c);_0x48a5ea(_0x51b15c);});});}
\ No newline at end of file