Built motion from commit e02f907f.|2.6.14
[motion2.git] / server / services / routing / mailRpc / index.js
index 3ac0862..fa03c96 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x7c6b=['SendMail','jayson/promise','client','http','request','then','error','result','catch'];(function(_0xf34b0a,_0x11e116){var _0x5021e1=function(_0x4eff67){while(--_0x4eff67){_0xf34b0a['push'](_0xf34b0a['shift']());}};_0x5021e1(++_0x11e116);}(_0x7c6b,0xa3));var _0xb7c6=function(_0x53f18c,_0x3b9846){_0x53f18c=_0x53f18c-0x0;var _0x31c996=_0x7c6b[_0x53f18c];return _0x31c996;};'use strict';var BPromise=require('bluebird');var jayson=require(_0xb7c6('0x0'));var client=jayson[_0xb7c6('0x1')][_0xb7c6('0x2')]({'port':0x232b});function request(_0x369911,_0x384661){return new BPromise(function(_0xcc9299,_0x8e5b99){return client[_0xb7c6('0x3')](_0x369911,_0x384661)[_0xb7c6('0x4')](function(_0x648e50){if(_0x648e50[_0xb7c6('0x5')]){return _0x8e5b99(_0x648e50[_0xb7c6('0x5')]['message']);}else{return _0xcc9299(_0x648e50[_0xb7c6('0x6')]);}})[_0xb7c6('0x7')](function(_0x10f079){return _0x8e5b99(_0x10f079);});});}exports['sendMailMessage']=function(_0x2ab832,_0x18633a){return request(_0xb7c6('0x8'),{'account':_0x2ab832,'message':_0x18633a});};
\ No newline at end of file
+var _0x297b=['catch','sendMailMessage','bluebird','jayson/promise','client','http','request','then','error','message','result'];(function(_0x593f0b,_0x244525){var _0x54a662=function(_0x3d0966){while(--_0x3d0966){_0x593f0b['push'](_0x593f0b['shift']());}};_0x54a662(++_0x244525);}(_0x297b,0xff));var _0xb297=function(_0x59ee6f,_0x450239){_0x59ee6f=_0x59ee6f-0x0;var _0x4c0979=_0x297b[_0x59ee6f];return _0x4c0979;};'use strict';var BPromise=require(_0xb297('0x0'));var jayson=require(_0xb297('0x1'));var client=jayson[_0xb297('0x2')][_0xb297('0x3')]({'port':0x232b});function request(_0x5daef6,_0x27d433){return new BPromise(function(_0xb31f00,_0x18210e){return client[_0xb297('0x4')](_0x5daef6,_0x27d433)[_0xb297('0x5')](function(_0x417344){if(_0x417344[_0xb297('0x6')]){return _0x18210e(_0x417344['error'][_0xb297('0x7')]);}else{return _0xb31f00(_0x417344[_0xb297('0x8')]);}})[_0xb297('0x9')](function(_0x13db0b){return _0x18210e(_0x13db0b);});});}exports[_0xb297('0xa')]=function(_0x20f842,_0x5611ff){return request('SendMail',{'account':_0x20f842,'message':_0x5611ff});};
\ No newline at end of file