Built motion from commit 092f8824.|2.5.49
[motion2.git] / server / services / agi / mailRpc / index.js
index 2c59087..2966cfb 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xa479=['jayson/promise','client','http','request','then','error','message','catch','SendMail','bluebird'];(function(_0x1ff760,_0x57e944){var _0x38b183=function(_0x4587ce){while(--_0x4587ce){_0x1ff760['push'](_0x1ff760['shift']());}};_0x38b183(++_0x57e944);}(_0xa479,0x103));var _0x9a47=function(_0xb5ca6e,_0x32cfff){_0xb5ca6e=_0xb5ca6e-0x0;var _0x11e0c3=_0xa479[_0xb5ca6e];return _0x11e0c3;};'use strict';var BPromise=require(_0x9a47('0x0'));var jayson=require(_0x9a47('0x1'));var client=jayson[_0x9a47('0x2')][_0x9a47('0x3')]({'port':0x232b});function request(_0x7bf3c7,_0x26e0a6){return new BPromise(function(_0x25d665,_0x4278c2){return client[_0x9a47('0x4')](_0x7bf3c7,_0x26e0a6)[_0x9a47('0x5')](function(_0x5f3fc0){if(_0x5f3fc0['error']){return _0x4278c2(_0x5f3fc0[_0x9a47('0x6')][_0x9a47('0x7')]);}else{return _0x25d665(_0x5f3fc0['result']);}})[_0x9a47('0x8')](function(_0x522e56){return _0x4278c2(_0x522e56);});});}exports['sendMailMessage']=function(_0x24ee17,_0x3fe6c8){return request(_0x9a47('0x9'),{'account':_0x24ee17,'message':_0x3fe6c8});};
\ 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