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 _0x3e0b=['error','message','result','catch','SendMail','bluebird','jayson/promise','http','then'];(function(_0xf6ff7,_0x39d9b5){var _0x2029bd=function(_0x550585){while(--_0x550585){_0xf6ff7['push'](_0xf6ff7['shift']());}};_0x2029bd(++_0x39d9b5);}(_0x3e0b,0x1e2));var _0xb3e0=function(_0x237315,_0x806ce6){_0x237315=_0x237315-0x0;var _0x575e42=_0x3e0b[_0x237315];return _0x575e42;};'use strict';var BPromise=require(_0xb3e0('0x0'));var jayson=require(_0xb3e0('0x1'));var client=jayson['client'][_0xb3e0('0x2')]({'port':0x232b});function request(_0x524ccf,_0x3ce308){return new BPromise(function(_0x84186a,_0x4ce286){return client['request'](_0x524ccf,_0x3ce308)[_0xb3e0('0x3')](function(_0x15095e){if(_0x15095e[_0xb3e0('0x4')]){return _0x4ce286(_0x15095e['error'][_0xb3e0('0x5')]);}else{return _0x84186a(_0x15095e[_0xb3e0('0x6')]);}})[_0xb3e0('0x7')](function(_0x5ad55c){return _0x4ce286(_0x5ad55c);});});}exports['sendMailMessage']=function(_0x69c3bb,_0x21cc1e){return request(_0xb3e0('0x8'),{'account':_0x69c3bb,'message':_0x21cc1e});};