Built motion from commit c116dc8b.|2.6.30
[motion2.git] / server / services / agi / mailRpc / index.js
index 3e63cfc..925c951 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfc13=['sendMailMessage','bluebird','jayson/promise','client','http','error','result','catch'];(function(_0x93a1ab,_0x1f4f00){var _0x215766=function(_0x3b4c7f){while(--_0x3b4c7f){_0x93a1ab['push'](_0x93a1ab['shift']());}};_0x215766(++_0x1f4f00);}(_0xfc13,0x141));var _0x3fc1=function(_0x18c703,_0x2d2ea3){_0x18c703=_0x18c703-0x0;var _0x4cb3c9=_0xfc13[_0x18c703];return _0x4cb3c9;};'use strict';var BPromise=require(_0x3fc1('0x0'));var jayson=require(_0x3fc1('0x1'));var client=jayson[_0x3fc1('0x2')][_0x3fc1('0x3')]({'port':0x232b});function request(_0x53dab1,_0x1694c4){return new BPromise(function(_0x523f09,_0x249374){return client['request'](_0x53dab1,_0x1694c4)['then'](function(_0x5ee416){if(_0x5ee416[_0x3fc1('0x4')]){return _0x249374(_0x5ee416[_0x3fc1('0x4')]['message']);}else{return _0x523f09(_0x5ee416[_0x3fc1('0x5')]);}})[_0x3fc1('0x6')](function(_0x5e8f9b){return _0x249374(_0x5e8f9b);});});}exports[_0x3fc1('0x7')]=function(_0x222932,_0x2f3d36){return request('SendMail',{'account':_0x222932,'message':_0x2f3d36});};
\ 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