Built motion from commit c116dc8b.|2.6.30
[motion2.git] / server / services / agi / mailRpc / index.js
index a572d4d..925c951 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0x533f=['result','catch','SendMail','bluebird','client','request','error','message'];(function(_0x3c2166,_0x41fc16){var _0x30ccc3=function(_0x689bc3){while(--_0x689bc3){_0x3c2166['push'](_0x3c2166['shift']());}};_0x30ccc3(++_0x41fc16);}(_0x533f,0x14b));var _0xf533=function(_0x390a19,_0x5dd137){_0x390a19=_0x390a19-0x0;var _0x5d8230=_0x533f[_0x390a19];return _0x5d8230;};'use strict';var BPromise=require(_0xf533('0x0'));var jayson=require('jayson/promise');var client=jayson[_0xf533('0x1')]['http']({'port':0x232b});function request(_0x589527,_0x4fe739){return new BPromise(function(_0x2abc25,_0x3f5469){return client[_0xf533('0x2')](_0x589527,_0x4fe739)['then'](function(_0x59194e){if(_0x59194e[_0xf533('0x3')]){return _0x3f5469(_0x59194e['error'][_0xf533('0x4')]);}else{return _0x2abc25(_0x59194e[_0xf533('0x5')]);}})[_0xf533('0x6')](function(_0x26a46a){return _0x3f5469(_0x26a46a);});});}exports['sendMailMessage']=function(_0x3a8da2,_0x1ca42a){return request(_0xf533('0x7'),{'account':_0x3a8da2,'message':_0x1ca42a});};
\ No newline at end of file
+var _0xad94=['sendMailMessage','SendMail','bluebird','jayson/promise','client','http','request','then','error','message'];(function(_0x1d559b,_0x29a316){var _0x11d62c=function(_0x593410){while(--_0x593410){_0x1d559b['push'](_0x1d559b['shift']());}};_0x11d62c(++_0x29a316);}(_0xad94,0x1d8));var _0x4ad9=function(_0x3df194,_0x541bfc){_0x3df194=_0x3df194-0x0;var _0x49f27c=_0xad94[_0x3df194];return _0x49f27c;};'use strict';var BPromise=require(_0x4ad9('0x0'));var jayson=require(_0x4ad9('0x1'));var client=jayson[_0x4ad9('0x2')][_0x4ad9('0x3')]({'port':0x232b});function request(_0x67b5f2,_0x6aab63){return new BPromise(function(_0x5c94e2,_0x209959){return client[_0x4ad9('0x4')](_0x67b5f2,_0x6aab63)[_0x4ad9('0x5')](function(_0x22e6fd){if(_0x22e6fd[_0x4ad9('0x6')]){return _0x209959(_0x22e6fd[_0x4ad9('0x6')][_0x4ad9('0x7')]);}else{return _0x5c94e2(_0x22e6fd['result']);}})['catch'](function(_0x3c9fab){return _0x209959(_0x3c9fab);});});}exports[_0x4ad9('0x8')]=function(_0x4acf37,_0x3df8d8){return request(_0x4ad9('0x9'),{'account':_0x4acf37,'message':_0x3df8d8});};
\ No newline at end of file