Built motion from commit 9e1399f3.|2.5.37
[motion2.git] / server / services / agi / mailRpc / index.js
index 07c40a8..3e63cfc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfde2=['http','then','error','message','result','SendMail','bluebird','client'];(function(_0x582d9d,_0x20587c){var _0x50c271=function(_0x66bc68){while(--_0x66bc68){_0x582d9d['push'](_0x582d9d['shift']());}};_0x50c271(++_0x20587c);}(_0xfde2,0xce));var _0x2fde=function(_0x40d078,_0x210a77){_0x40d078=_0x40d078-0x0;var _0x46fc81=_0xfde2[_0x40d078];return _0x46fc81;};'use strict';var BPromise=require(_0x2fde('0x0'));var jayson=require('jayson/promise');var client=jayson[_0x2fde('0x1')][_0x2fde('0x2')]({'port':0x232b});function request(_0x4fbe04,_0x1c66e8){return new BPromise(function(_0x5a5c64,_0x7e6204){return client['request'](_0x4fbe04,_0x1c66e8)[_0x2fde('0x3')](function(_0x18cbe5){if(_0x18cbe5[_0x2fde('0x4')]){return _0x7e6204(_0x18cbe5[_0x2fde('0x4')][_0x2fde('0x5')]);}else{return _0x5a5c64(_0x18cbe5[_0x2fde('0x6')]);}})['catch'](function(_0x339a94){return _0x7e6204(_0x339a94);});});}exports['sendMailMessage']=function(_0x5e2268,_0x26b41a){return request(_0x2fde('0x7'),{'account':_0x5e2268,'message':_0x26b41a});};
\ No newline at end of file
+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