Built motion from commit (unavailable).|2.5.22
[motion2.git] / server / api / mailTransferReport / mailTransferReport.rpc.js
index 8547833..6eae2c6 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x4753=['result','catch','lodash','util','bluebird','../../mysqldb','../../config/utils','../../config/logger','rpc','jayson/promise','client','http','then','info','request\x20sent','MailTransferReport,\x20%s,\x20%s,\x20%s','stringify','error','code','message','MailTransferReport,\x20%s,\x20%s'];(function(_0x4799c8,_0x4e40bb){var _0x3e6a97=function(_0x1b9012){while(--_0x1b9012){_0x4799c8['push'](_0x4799c8['shift']());}};_0x3e6a97(++_0x4e40bb);}(_0x4753,0xfe));var _0x3475=function(_0x548490,_0x35ac31){_0x548490=_0x548490-0x0;var _0x4bb536=_0x4753[_0x548490];return _0x4bb536;};'use strict';var _=require(_0x3475('0x0'));var util=require(_0x3475('0x1'));var moment=require('moment');var BPromise=require(_0x3475('0x2'));var rs=require('randomstring');var fs=require('fs');var Redis=require('ioredis');var db=require(_0x3475('0x3'))['db'];var utils=require(_0x3475('0x4'));var logger=require(_0x3475('0x5'))(_0x3475('0x6'));var config=require('../../config/environment');var jayson=require(_0x3475('0x7'));var client=jayson[_0x3475('0x8')][_0x3475('0x9')]({'port':0x232a});function respondWithRpcPromise(_0x911cc8,_0x55a934,_0xf7dd68){return new BPromise(function(_0x588a7d,_0x15ac60){return client['request'](_0x911cc8,_0xf7dd68)[_0x3475('0xa')](function(_0x3a4ffb){logger[_0x3475('0xb')]('MailTransferReport,\x20%s,\x20%s',_0x55a934,_0x3475('0xc'));logger['debug'](_0x3475('0xd'),_0x55a934,_0x3475('0xc'),JSON[_0x3475('0xe')](_0x3a4ffb));if(_0x3a4ffb[_0x3475('0xf')]){if(_0x3a4ffb[_0x3475('0xf')][_0x3475('0x10')]===0x1f4){logger[_0x3475('0xf')]('MailTransferReport,\x20%s,\x20%s',_0x55a934,_0x3a4ffb[_0x3475('0xf')][_0x3475('0x11')]);return _0x15ac60(_0x3a4ffb['error'][_0x3475('0x11')]);}logger['error'](_0x3475('0x12'),_0x55a934,_0x3a4ffb[_0x3475('0xf')][_0x3475('0x11')]);return _0x588a7d(_0x3a4ffb[_0x3475('0xf')][_0x3475('0x11')]);}else{logger[_0x3475('0xb')](_0x3475('0x12'),_0x55a934,_0x3475('0xc'));_0x588a7d(_0x3a4ffb[_0x3475('0x13')]['message']);}})[_0x3475('0x14')](function(_0x45e2b6){logger[_0x3475('0xf')](_0x3475('0x12'),_0x55a934,_0x45e2b6);_0x15ac60(_0x45e2b6);});});}
\ 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