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 _0x7993=['message','sendMailMessage','SendMail','bluebird','jayson/promise','http','request','then','error'];(function(_0x239dba,_0x309e95){var _0x1ceb11=function(_0x14efe6){while(--_0x14efe6){_0x239dba['push'](_0x239dba['shift']());}};_0x1ceb11(++_0x309e95);}(_0x7993,0x108));var _0x3799=function(_0x51d7bb,_0x5b6a74){_0x51d7bb=_0x51d7bb-0x0;var _0x220b75=_0x7993[_0x51d7bb];return _0x220b75;};'use strict';var BPromise=require(_0x3799('0x0'));var jayson=require(_0x3799('0x1'));var client=jayson['client'][_0x3799('0x2')]({'port':0x232b});function request(_0x5ef999,_0xfc8314){return new BPromise(function(_0x487618,_0x5e658a){return client[_0x3799('0x3')](_0x5ef999,_0xfc8314)[_0x3799('0x4')](function(_0x2a1cf2){if(_0x2a1cf2['error']){return _0x5e658a(_0x2a1cf2[_0x3799('0x5')][_0x3799('0x6')]);}else{return _0x487618(_0x2a1cf2['result']);}})['catch'](function(_0x30ca34){return _0x5e658a(_0x30ca34);});});}exports[_0x3799('0x7')]=function(_0x11b452,_0x17dbbf){return request(_0x3799('0x8'),{'account':_0x11b452,'message':_0x17dbbf});};