Built motion from commit 639a1a7f.|2.6.19
[motion2.git] / server / services / agi / mailRpc / index.js
index fa77715..593bdfc 100644 (file)
@@ -15,4 +15,4 @@
 // * treaties. The SOFTWARE PRODUCT is licensed, not sold.                        *
 // *                                                                       *
 // *************************************************************************
-var _0xec64=['error','message','result','catch','sendMailMessage','bluebird','client','http','request'];(function(_0xa2d41,_0x29a7bf){var _0x164681=function(_0x3b4cf3){while(--_0x3b4cf3){_0xa2d41['push'](_0xa2d41['shift']());}};_0x164681(++_0x29a7bf);}(_0xec64,0x191));var _0x4ec6=function(_0x3da612,_0x332456){_0x3da612=_0x3da612-0x0;var _0x1a9d1d=_0xec64[_0x3da612];return _0x1a9d1d;};'use strict';var BPromise=require(_0x4ec6('0x0'));var jayson=require('jayson/promise');var client=jayson[_0x4ec6('0x1')][_0x4ec6('0x2')]({'port':0x232b});function request(_0x207e07,_0x1f75fd){return new BPromise(function(_0x1d1c73,_0x42a9f6){return client[_0x4ec6('0x3')](_0x207e07,_0x1f75fd)['then'](function(_0x29cf48){if(_0x29cf48[_0x4ec6('0x4')]){return _0x42a9f6(_0x29cf48[_0x4ec6('0x4')][_0x4ec6('0x5')]);}else{return _0x1d1c73(_0x29cf48[_0x4ec6('0x6')]);}})[_0x4ec6('0x7')](function(_0x2bef3c){return _0x42a9f6(_0x2bef3c);});});}exports[_0x4ec6('0x8')]=function(_0x257b11,_0x23ea3f){return request('SendMail',{'account':_0x257b11,'message':_0x23ea3f});};
\ No newline at end of file
+var _0xdb11=['error','catch','SendMail','jayson/promise','client','http','request'];(function(_0x3888eb,_0x491f7d){var _0x15a319=function(_0x56f4b0){while(--_0x56f4b0){_0x3888eb['push'](_0x3888eb['shift']());}};_0x15a319(++_0x491f7d);}(_0xdb11,0x1b5));var _0x1db1=function(_0xaa0309,_0x1c8008){_0xaa0309=_0xaa0309-0x0;var _0x5de7ce=_0xdb11[_0xaa0309];return _0x5de7ce;};'use strict';var BPromise=require('bluebird');var jayson=require(_0x1db1('0x0'));var client=jayson[_0x1db1('0x1')][_0x1db1('0x2')]({'port':0x232b});function request(_0x54c9da,_0x18240c){return new BPromise(function(_0x3458a4,_0x57d131){return client[_0x1db1('0x3')](_0x54c9da,_0x18240c)['then'](function(_0xf255f3){if(_0xf255f3[_0x1db1('0x4')]){return _0x57d131(_0xf255f3['error']['message']);}else{return _0x3458a4(_0xf255f3['result']);}})[_0x1db1('0x5')](function(_0x3e4c0b){return _0x57d131(_0x3e4c0b);});});}exports['sendMailMessage']=function(_0x261cd2,_0x1dfc1f){return request(_0x1db1('0x6'),{'account':_0x261cd2,'message':_0x1dfc1f});};
\ No newline at end of file