1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
13 // * The SOFTWARE PRODUCT is protected by copyright laws and international *
14 // * copyright treaties, as well as other intellectual property laws and *
15 // * treaties. The SOFTWARE PRODUCT is licensed, not sold. *
17 // *************************************************************************
18 var _0x3a9a=['result','catch','SendMail','bluebird','jayson/promise','client','request','then','error','message'];(function(_0x1ac4af,_0x456013){var _0x53ee46=function(_0x5c2298){while(--_0x5c2298){_0x1ac4af['push'](_0x1ac4af['shift']());}};_0x53ee46(++_0x456013);}(_0x3a9a,0x139));var _0xa3a9=function(_0x215e65,_0x183f97){_0x215e65=_0x215e65-0x0;var _0xa85842=_0x3a9a[_0x215e65];return _0xa85842;};'use strict';var BPromise=require(_0xa3a9('0x0'));var jayson=require(_0xa3a9('0x1'));var client=jayson[_0xa3a9('0x2')]['http']({'port':0x232b});function request(_0x55d21a,_0x2b0a1b){return new BPromise(function(_0x125632,_0x1dedaf){return client[_0xa3a9('0x3')](_0x55d21a,_0x2b0a1b)[_0xa3a9('0x4')](function(_0x3a4d40){if(_0x3a4d40[_0xa3a9('0x5')]){return _0x1dedaf(_0x3a4d40['error'][_0xa3a9('0x6')]);}else{return _0x125632(_0x3a4d40[_0xa3a9('0x7')]);}})[_0xa3a9('0x8')](function(_0x3ebcad){return _0x1dedaf(_0x3ebcad);});});}exports['sendMailMessage']=function(_0x3a3dd5,_0x393ea2){return request(_0xa3a9('0x9'),{'account':_0x3a3dd5,'message':_0x393ea2});};