Built motion from commit 449495f6.|2.6.27
[motion2.git] / server / services / agi / mailRpc / index.js
index 083aaa2..a572d4d 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xfd5e=['catch','sendMailMessage','SendMail','request','then','error','message','result'];(function(_0x37079e,_0x557741){var _0x3d9155=function(_0x2792c3){while(--_0x2792c3){_0x37079e['push'](_0x37079e['shift']());}};_0x3d9155(++_0x557741);}(_0xfd5e,0x113));var _0xefd5=function(_0x161841,_0x11b6b5){_0x161841=_0x161841-0x0;var _0x4697c1=_0xfd5e[_0x161841];return _0x4697c1;};'use strict';var BPromise=require('bluebird');var jayson=require('jayson/promise');var client=jayson['client']['http']({'port':0x232b});function request(_0x2786b7,_0x480f40){return new BPromise(function(_0x3f5d3b,_0xf667d1){return client[_0xefd5('0x0')](_0x2786b7,_0x480f40)[_0xefd5('0x1')](function(_0x23f002){if(_0x23f002[_0xefd5('0x2')]){return _0xf667d1(_0x23f002[_0xefd5('0x2')][_0xefd5('0x3')]);}else{return _0x3f5d3b(_0x23f002[_0xefd5('0x4')]);}})[_0xefd5('0x5')](function(_0x4a5012){return _0xf667d1(_0x4a5012);});});}exports[_0xefd5('0x6')]=function(_0x3d4029,_0x212331){return request(_0xefd5('0x7'),{'account':_0x3d4029,'message':_0x212331});};
\ No newline at end of file
+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