Built motion from commit (unavailable).|2.5.22
[motion2.git] / server / api / mailTransferReport / mailTransferReport.rpc.js
index 6b72e6c..6eae2c6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x8b1f=['ioredis','../../mysqldb','../../config/utils','../../config/environment','http','request','then','info','MailTransferReport,\x20%s,\x20%s','debug','MailTransferReport,\x20%s,\x20%s,\x20%s','request\x20sent','stringify','error','message','result','catch','lodash','util','moment','bluebird'];(function(_0x440917,_0x20ea7b){var _0x5e906b=function(_0x27cba5){while(--_0x27cba5){_0x440917['push'](_0x440917['shift']());}};_0x5e906b(++_0x20ea7b);}(_0x8b1f,0x1b5));var _0xf8b1=function(_0x5a5199,_0x262edd){_0x5a5199=_0x5a5199-0x0;var _0x2a06e0=_0x8b1f[_0x5a5199];return _0x2a06e0;};'use strict';var _=require(_0xf8b1('0x0'));var util=require(_0xf8b1('0x1'));var moment=require(_0xf8b1('0x2'));var BPromise=require(_0xf8b1('0x3'));var rs=require('randomstring');var fs=require('fs');var Redis=require(_0xf8b1('0x4'));var db=require(_0xf8b1('0x5'))['db'];var utils=require(_0xf8b1('0x6'));var logger=require('../../config/logger')('rpc');var config=require(_0xf8b1('0x7'));var jayson=require('jayson/promise');var client=jayson['client'][_0xf8b1('0x8')]({'port':0x232a});function respondWithRpcPromise(_0x13c714,_0x21b339,_0x1caf48){return new BPromise(function(_0x57bf99,_0x4f0cb6){return client[_0xf8b1('0x9')](_0x13c714,_0x1caf48)[_0xf8b1('0xa')](function(_0x21ff39){logger[_0xf8b1('0xb')](_0xf8b1('0xc'),_0x21b339,'request\x20sent');logger[_0xf8b1('0xd')](_0xf8b1('0xe'),_0x21b339,_0xf8b1('0xf'),JSON[_0xf8b1('0x10')](_0x21ff39));if(_0x21ff39[_0xf8b1('0x11')]){if(_0x21ff39[_0xf8b1('0x11')]['code']===0x1f4){logger[_0xf8b1('0x11')](_0xf8b1('0xc'),_0x21b339,_0x21ff39[_0xf8b1('0x11')][_0xf8b1('0x12')]);return _0x4f0cb6(_0x21ff39['error'][_0xf8b1('0x12')]);}logger[_0xf8b1('0x11')](_0xf8b1('0xc'),_0x21b339,_0x21ff39[_0xf8b1('0x11')][_0xf8b1('0x12')]);return _0x57bf99(_0x21ff39[_0xf8b1('0x11')][_0xf8b1('0x12')]);}else{logger['info'](_0xf8b1('0xc'),_0x21b339,_0xf8b1('0xf'));_0x57bf99(_0x21ff39[_0xf8b1('0x13')]['message']);}})[_0xf8b1('0x14')](function(_0x13ade9){logger[_0xf8b1('0x11')](_0xf8b1('0xc'),_0x21b339,_0x13ade9);_0x4f0cb6(_0x13ade9);});});}
\ No newline at end of file
+var _0xb282=['randomstring','../../mysqldb','../../config/utils','../../config/logger','rpc','../../config/environment','client','then','info','debug','stringify','error','MailTransferReport,\x20%s,\x20%s','message','request\x20sent','result','catch','lodash','util','moment','bluebird'];(function(_0x5eebec,_0x54c64e){var _0x670c06=function(_0x48aef1){while(--_0x48aef1){_0x5eebec['push'](_0x5eebec['shift']());}};_0x670c06(++_0x54c64e);}(_0xb282,0x122));var _0x2b28=function(_0xe2a1aa,_0x525d7b){_0xe2a1aa=_0xe2a1aa-0x0;var _0x5a8362=_0xb282[_0xe2a1aa];return _0x5a8362;};'use strict';var _=require(_0x2b28('0x0'));var util=require(_0x2b28('0x1'));var moment=require(_0x2b28('0x2'));var BPromise=require(_0x2b28('0x3'));var rs=require(_0x2b28('0x4'));var fs=require('fs');var Redis=require('ioredis');var db=require(_0x2b28('0x5'))['db'];var utils=require(_0x2b28('0x6'));var logger=require(_0x2b28('0x7'))(_0x2b28('0x8'));var config=require(_0x2b28('0x9'));var jayson=require('jayson/promise');var client=jayson[_0x2b28('0xa')]['http']({'port':0x232a});function respondWithRpcPromise(_0x380810,_0xaf099,_0x5b0a23){return new BPromise(function(_0x17a89a,_0x57977a){return client['request'](_0x380810,_0x5b0a23)[_0x2b28('0xb')](function(_0x1849a7){logger[_0x2b28('0xc')]('MailTransferReport,\x20%s,\x20%s',_0xaf099,'request\x20sent');logger[_0x2b28('0xd')]('MailTransferReport,\x20%s,\x20%s,\x20%s',_0xaf099,'request\x20sent',JSON[_0x2b28('0xe')](_0x1849a7));if(_0x1849a7['error']){if(_0x1849a7['error']['code']===0x1f4){logger[_0x2b28('0xf')](_0x2b28('0x10'),_0xaf099,_0x1849a7[_0x2b28('0xf')][_0x2b28('0x11')]);return _0x57977a(_0x1849a7[_0x2b28('0xf')][_0x2b28('0x11')]);}logger[_0x2b28('0xf')]('MailTransferReport,\x20%s,\x20%s',_0xaf099,_0x1849a7[_0x2b28('0xf')][_0x2b28('0x11')]);return _0x17a89a(_0x1849a7[_0x2b28('0xf')][_0x2b28('0x11')]);}else{logger[_0x2b28('0xc')](_0x2b28('0x10'),_0xaf099,_0x2b28('0x12'));_0x17a89a(_0x1849a7[_0x2b28('0x13')][_0x2b28('0x11')]);}})[_0x2b28('0x14')](function(_0x4ef352){logger[_0x2b28('0xf')](_0x2b28('0x10'),_0xaf099,_0x4ef352);_0x57977a(_0x4ef352);});});}
\ No newline at end of file