Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / services / agi / mailRpc / index.js
index 4161fe5..2966cfb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xd206=['bluebird','jayson/promise','client','http','request','then','error','message','catch','sendMailMessage'];(function(_0x5e8584,_0x4616ca){var _0x987a6b=function(_0x130e33){while(--_0x130e33){_0x5e8584['push'](_0x5e8584['shift']());}};_0x987a6b(++_0x4616ca);}(_0xd206,0xb4));var _0x6d20=function(_0x42bdad,_0x12836c){_0x42bdad=_0x42bdad-0x0;var _0x122626=_0xd206[_0x42bdad];return _0x122626;};'use strict';var BPromise=require(_0x6d20('0x0'));var jayson=require(_0x6d20('0x1'));var client=jayson[_0x6d20('0x2')][_0x6d20('0x3')]({'port':0x232b});function request(_0x114613,_0x36659a){return new BPromise(function(_0x5e0d0e,_0x5bbdf7){return client[_0x6d20('0x4')](_0x114613,_0x36659a)[_0x6d20('0x5')](function(_0x5827aa){if(_0x5827aa[_0x6d20('0x6')]){return _0x5bbdf7(_0x5827aa[_0x6d20('0x6')][_0x6d20('0x7')]);}else{return _0x5e0d0e(_0x5827aa['result']);}})[_0x6d20('0x8')](function(_0x52abd3){return _0x5bbdf7(_0x52abd3);});});}exports[_0x6d20('0x9')]=function(_0x4c490c,_0x213149){return request('SendMail',{'account':_0x4c490c,'message':_0x213149});};
\ No newline at end of file
+var _0xc896=['http','request','error','catch','sendMailMessage','SendMail','bluebird','jayson/promise','client'];(function(_0x201f5a,_0x19b3f7){var _0x22b316=function(_0x5dff26){while(--_0x5dff26){_0x201f5a['push'](_0x201f5a['shift']());}};_0x22b316(++_0x19b3f7);}(_0xc896,0x153));var _0x6c89=function(_0x423e59,_0x3b6e9b){_0x423e59=_0x423e59-0x0;var _0x45d196=_0xc896[_0x423e59];return _0x45d196;};'use strict';var BPromise=require(_0x6c89('0x0'));var jayson=require(_0x6c89('0x1'));var client=jayson[_0x6c89('0x2')][_0x6c89('0x3')]({'port':0x232b});function request(_0x324178,_0x16a81c){return new BPromise(function(_0x359bde,_0x5b76ac){return client[_0x6c89('0x4')](_0x324178,_0x16a81c)['then'](function(_0x2a656b){if(_0x2a656b[_0x6c89('0x5')]){return _0x5b76ac(_0x2a656b['error']['message']);}else{return _0x359bde(_0x2a656b['result']);}})[_0x6c89('0x6')](function(_0x3469cd){return _0x5b76ac(_0x3469cd);});});}exports[_0x6c89('0x7')]=function(_0x548ba4,_0x14d600){return request(_0x6c89('0x8'),{'account':_0x548ba4,'message':_0x14d600});};
\ No newline at end of file