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 _0x7c43=['SendMail','bluebird','jayson/promise','client','request','then','error','result','catch','sendMailMessage'];(function(_0x4eb999,_0x548d2b){var _0x37e547=function(_0x494771){while(--_0x494771){_0x4eb999['push'](_0x4eb999['shift']());}};_0x37e547(++_0x548d2b);}(_0x7c43,0xab));var _0x37c4=function(_0x21176e,_0x17a415){_0x21176e=_0x21176e-0x0;var _0x29634c=_0x7c43[_0x21176e];return _0x29634c;};'use strict';var BPromise=require(_0x37c4('0x0'));var jayson=require(_0x37c4('0x1'));var client=jayson[_0x37c4('0x2')]['http']({'port':0x232b});function request(_0x345695,_0x40b37b){return new BPromise(function(_0xffad8e,_0x54978c){return client[_0x37c4('0x3')](_0x345695,_0x40b37b)[_0x37c4('0x4')](function(_0x587694){if(_0x587694[_0x37c4('0x5')]){return _0x54978c(_0x587694[_0x37c4('0x5')]['message']);}else{return _0xffad8e(_0x587694[_0x37c4('0x6')]);}})[_0x37c4('0x7')](function(_0x164c98){return _0x54978c(_0x164c98);});});}exports[_0x37c4('0x8')]=function(_0x70ef3,_0x4caf1f){return request(_0x37c4('0x9'),{'account':_0x70ef3,'message':_0x4caf1f});};