Built motion from commit b5996064.|2.6.21
[motion2.git] / server / services / routing / mailRpc / index.js
index ceb25d9..3c40610 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xeec9=['request','then','error','message','result','sendMailMessage','SendMail','bluebird','http'];(function(_0x22d0b5,_0x26b6ca){var _0xa6cc2b=function(_0x187c67){while(--_0x187c67){_0x22d0b5['push'](_0x22d0b5['shift']());}};_0xa6cc2b(++_0x26b6ca);}(_0xeec9,0x127));var _0x9eec=function(_0xf49ce2,_0x406c6f){_0xf49ce2=_0xf49ce2-0x0;var _0x970f=_0xeec9[_0xf49ce2];return _0x970f;};'use strict';var BPromise=require(_0x9eec('0x0'));var jayson=require('jayson/promise');var client=jayson['client'][_0x9eec('0x1')]({'port':0x232b});function request(_0x26a66a,_0x1e92b8){return new BPromise(function(_0x5b1db6,_0x1252da){return client[_0x9eec('0x2')](_0x26a66a,_0x1e92b8)[_0x9eec('0x3')](function(_0x304247){if(_0x304247[_0x9eec('0x4')]){return _0x1252da(_0x304247['error'][_0x9eec('0x5')]);}else{return _0x5b1db6(_0x304247[_0x9eec('0x6')]);}})['catch'](function(_0x442e7c){return _0x1252da(_0x442e7c);});});}exports[_0x9eec('0x7')]=function(_0x10daa3,_0x5e7520){return request(_0x9eec('0x8'),{'account':_0x10daa3,'message':_0x5e7520});};
\ No newline at end of file
+var _0xb8ee=['request','then','message','result','catch','SendMail','jayson/promise','http'];(function(_0x20dc96,_0xe86391){var _0x3984ae=function(_0x2bbef6){while(--_0x2bbef6){_0x20dc96['push'](_0x20dc96['shift']());}};_0x3984ae(++_0xe86391);}(_0xb8ee,0x17e));var _0xeb8e=function(_0x58e8eb,_0x2ac0c7){_0x58e8eb=_0x58e8eb-0x0;var _0x168540=_0xb8ee[_0x58e8eb];return _0x168540;};'use strict';var BPromise=require('bluebird');var jayson=require(_0xeb8e('0x0'));var client=jayson['client'][_0xeb8e('0x1')]({'port':0x232b});function request(_0x3d6c97,_0x574f0a){return new BPromise(function(_0x9e3830,_0x225f76){return client[_0xeb8e('0x2')](_0x3d6c97,_0x574f0a)[_0xeb8e('0x3')](function(_0x4cef8b){if(_0x4cef8b['error']){return _0x225f76(_0x4cef8b['error'][_0xeb8e('0x4')]);}else{return _0x9e3830(_0x4cef8b[_0xeb8e('0x5')]);}})[_0xeb8e('0x6')](function(_0x1743e3){return _0x225f76(_0x1743e3);});});}exports['sendMailMessage']=function(_0x16f385,_0x53f4c8){return request(_0xeb8e('0x7'),{'account':_0x16f385,'message':_0x53f4c8});};
\ No newline at end of file