Built motion from commit b0a9a629.|2.6.33
[motion2.git] / server / services / routing / mailRpc / index.js
index 056c2f2..20ea0f4 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x2186=['client','http','request','then','error','message','result','catch','sendMailMessage','SendMail'];(function(_0x2292c3,_0x181536){var _0x125b31=function(_0x38c5bc){while(--_0x38c5bc){_0x2292c3['push'](_0x2292c3['shift']());}};_0x125b31(++_0x181536);}(_0x2186,0x186));var _0x6218=function(_0x2a00ce,_0x51a708){_0x2a00ce=_0x2a00ce-0x0;var _0xa1e328=_0x2186[_0x2a00ce];return _0xa1e328;};'use strict';var BPromise=require('bluebird');var jayson=require('jayson/promise');var client=jayson[_0x6218('0x0')][_0x6218('0x1')]({'port':0x232b});function request(_0x1883a1,_0x3f3839){return new BPromise(function(_0x1959e0,_0x4036b8){return client[_0x6218('0x2')](_0x1883a1,_0x3f3839)[_0x6218('0x3')](function(_0x4f85ea){if(_0x4f85ea['error']){return _0x4036b8(_0x4f85ea[_0x6218('0x4')][_0x6218('0x5')]);}else{return _0x1959e0(_0x4f85ea[_0x6218('0x6')]);}})[_0x6218('0x7')](function(_0x15dd5b){return _0x4036b8(_0x15dd5b);});});}exports[_0x6218('0x8')]=function(_0x59a03d,_0xfa45a4){return request(_0x6218('0x9'),{'account':_0x59a03d,'message':_0xfa45a4});};
\ No newline at end of file
+var _0xf066=['client','http','error','result','SendMail','bluebird','jayson/promise'];(function(_0x349941,_0x449cd8){var _0x248bdb=function(_0x1643d8){while(--_0x1643d8){_0x349941['push'](_0x349941['shift']());}};_0x248bdb(++_0x449cd8);}(_0xf066,0x19b));var _0x6f06=function(_0x388da2,_0x571cad){_0x388da2=_0x388da2-0x0;var _0x2b1a45=_0xf066[_0x388da2];return _0x2b1a45;};'use strict';var BPromise=require(_0x6f06('0x0'));var jayson=require(_0x6f06('0x1'));var client=jayson[_0x6f06('0x2')][_0x6f06('0x3')]({'port':0x232b});function request(_0x3088d9,_0x98b0df){return new BPromise(function(_0x24cc54,_0x4eb5e3){return client['request'](_0x3088d9,_0x98b0df)['then'](function(_0x4b7851){if(_0x4b7851[_0x6f06('0x4')]){return _0x4eb5e3(_0x4b7851[_0x6f06('0x4')]['message']);}else{return _0x24cc54(_0x4b7851[_0x6f06('0x5')]);}})['catch'](function(_0x15f6be){return _0x4eb5e3(_0x15f6be);});});}exports['sendMailMessage']=function(_0x795335,_0x3c76b8){return request(_0x6f06('0x6'),{'account':_0x795335,'message':_0x3c76b8});};
\ No newline at end of file