X-Git-Url: http://repos.xcallymotion.com/?a=blobdiff_plain;f=server%2Fservices%2Frouting%2FmailRpc%2Findex.js;h=dc29a698a182fec0ba8215b4598871959b773d86;hb=0fe7d63fdd24ac799f5260a5b10b06097955b09f;hp=35fb375c376adc1b968f075a1384b0140e052e32;hpb=4f69ebcfd3a87338adde0f617720ee400a063456;p=motion2.git diff --git a/server/services/routing/mailRpc/index.js b/server/services/routing/mailRpc/index.js index 35fb375..dc29a69 100644 --- a/server/services/routing/mailRpc/index.js +++ b/server/services/routing/mailRpc/index.js @@ -15,4 +15,4 @@ // * treaties. The SOFTWARE PRODUCT is licensed, not sold. * // * * // ************************************************************************* -var _0xdb67=['bluebird','jayson/promise','client','then','error','message','result','catch','sendMailMessage','SendMail'];(function(_0x3877c1,_0x238c29){var _0x59056a=function(_0x3567cd){while(--_0x3567cd){_0x3877c1['push'](_0x3877c1['shift']());}};_0x59056a(++_0x238c29);}(_0xdb67,0x1cc));var _0x7db6=function(_0x187c3f,_0x5b53c8){_0x187c3f=_0x187c3f-0x0;var _0x29f436=_0xdb67[_0x187c3f];return _0x29f436;};'use strict';var BPromise=require(_0x7db6('0x0'));var jayson=require(_0x7db6('0x1'));var client=jayson[_0x7db6('0x2')]['http']({'port':0x232b});function request(_0x25dbd6,_0x1dab30){return new BPromise(function(_0x309952,_0x192730){return client['request'](_0x25dbd6,_0x1dab30)[_0x7db6('0x3')](function(_0x1141e3){if(_0x1141e3['error']){return _0x192730(_0x1141e3[_0x7db6('0x4')][_0x7db6('0x5')]);}else{return _0x309952(_0x1141e3[_0x7db6('0x6')]);}})[_0x7db6('0x7')](function(_0x1af72a){return _0x192730(_0x1af72a);});});}exports[_0x7db6('0x8')]=function(_0x5ebcd4,_0x1414bf){return request(_0x7db6('0x9'),{'account':_0x5ebcd4,'message':_0x1414bf});}; \ No newline at end of file +var _0xb44d=['result','catch','sendMailMessage','jayson/promise','request','then','error','message'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xb44d,0x1b3));var _0xdb44=function(_0x2b4411,_0x2625ed){_0x2b4411=_0x2b4411-0x0;var _0x8e41ef=_0xb44d[_0x2b4411];return _0x8e41ef;};'use strict';var BPromise=require('bluebird');var jayson=require(_0xdb44('0x0'));var client=jayson['client']['http']({'port':0x232b});function request(_0x11766b,_0x5a8a7d){return new BPromise(function(_0x3fb241,_0xa939de){return client[_0xdb44('0x1')](_0x11766b,_0x5a8a7d)[_0xdb44('0x2')](function(_0xa36643){if(_0xa36643[_0xdb44('0x3')]){return _0xa939de(_0xa36643[_0xdb44('0x3')][_0xdb44('0x4')]);}else{return _0x3fb241(_0xa36643[_0xdb44('0x5')]);}})[_0xdb44('0x6')](function(_0x3f4035){return _0xa939de(_0x3f4035);});});}exports[_0xdb44('0x7')]=function(_0x4e17e2,_0x3998f5){return request('SendMail',{'account':_0x4e17e2,'message':_0x3998f5});}; \ No newline at end of file