Built motion from commit d1eab355.|2.6.28
[motion2.git] / server / services / agi / mailRpc / index.js
index 083aaa2..9a83e23 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 _0xc5d9=['http','request','then','error','message','result','SendMail','client'];(function(_0x447475,_0x5138ac){var _0x32b86f=function(_0x143dd6){while(--_0x143dd6){_0x447475['push'](_0x447475['shift']());}};_0x32b86f(++_0x5138ac);}(_0xc5d9,0x1df));var _0x9c5d=function(_0x16b72b,_0x2a2496){_0x16b72b=_0x16b72b-0x0;var _0x2a68fc=_0xc5d9[_0x16b72b];return _0x2a68fc;};'use strict';var BPromise=require('bluebird');var jayson=require('jayson/promise');var client=jayson[_0x9c5d('0x0')][_0x9c5d('0x1')]({'port':0x232b});function request(_0x461d77,_0xa7dc32){return new BPromise(function(_0x20036b,_0x43bba2){return client[_0x9c5d('0x2')](_0x461d77,_0xa7dc32)[_0x9c5d('0x3')](function(_0x39f984){if(_0x39f984[_0x9c5d('0x4')]){return _0x43bba2(_0x39f984[_0x9c5d('0x4')][_0x9c5d('0x5')]);}else{return _0x20036b(_0x39f984[_0x9c5d('0x6')]);}})['catch'](function(_0x4dbbae){return _0x43bba2(_0x4dbbae);});});}exports['sendMailMessage']=function(_0x11d710,_0x2b1c8d){return request(_0x9c5d('0x7'),{'account':_0x11d710,'message':_0x2b1c8d});};
\ No newline at end of file