Built motion from commit (unavailable).|2.5.27
[motion2.git] / server / api / mailTransferReport / mailTransferReport.rpc.js
index 47502c6..4e40f76 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 _0x8735=['moment','../../config/logger','rpc','../../config/environment','jayson/promise','client','http','request','info','MailTransferReport,\x20%s,\x20%s','debug','MailTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','request\x20sent','catch','lodash','util'];(function(_0x167cc1,_0x56ef5a){var _0x10bc4b=function(_0xd6a255){while(--_0xd6a255){_0x167cc1['push'](_0x167cc1['shift']());}};_0x10bc4b(++_0x56ef5a);}(_0x8735,0x1b6));var _0x5873=function(_0x2f5891,_0x2bf525){_0x2f5891=_0x2f5891-0x0;var _0x3b1459=_0x8735[_0x2f5891];return _0x3b1459;};'use strict';var _=require(_0x5873('0x0'));var util=require(_0x5873('0x1'));var moment=require(_0x5873('0x2'));var BPromise=require('bluebird');var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require('../../mysqldb')['db'];var utils=require('../../config/utils');var logger=require(_0x5873('0x3'))(_0x5873('0x4'));var config=require(_0x5873('0x5'));var jayson=require(_0x5873('0x6'));var client=jayson[_0x5873('0x7')][_0x5873('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x9c97c,_0x2d9a12,_0x2e0961){return new BPromise(function(_0x5b5695,_0x424a58){return client[_0x5873('0x9')](_0x9c97c,_0x2e0961)['then'](function(_0x3a9649){logger[_0x5873('0xa')](_0x5873('0xb'),_0x2d9a12,'request\x20sent');logger[_0x5873('0xc')](_0x5873('0xd'),_0x2d9a12,'request\x20sent',JSON[_0x5873('0xe')](_0x3a9649));if(_0x3a9649[_0x5873('0xf')]){if(_0x3a9649[_0x5873('0xf')][_0x5873('0x10')]===0x1f4){logger[_0x5873('0xf')](_0x5873('0xb'),_0x2d9a12,_0x3a9649['error'][_0x5873('0x11')]);return _0x424a58(_0x3a9649[_0x5873('0xf')][_0x5873('0x11')]);}logger[_0x5873('0xf')]('MailTransferReport,\x20%s,\x20%s',_0x2d9a12,_0x3a9649[_0x5873('0xf')]['message']);return _0x5b5695(_0x3a9649['error'][_0x5873('0x11')]);}else{logger[_0x5873('0xa')]('MailTransferReport,\x20%s,\x20%s',_0x2d9a12,_0x5873('0x12'));_0x5b5695(_0x3a9649['result'][_0x5873('0x11')]);}})[_0x5873('0x13')](function(_0x957436){logger[_0x5873('0xf')](_0x5873('0xb'),_0x2d9a12,_0x957436);_0x424a58(_0x957436);});});}
\ No newline at end of file