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 _0x5e15=['sendMailMessage','SendMail','bluebird','jayson/promise','http','request','error','message','result','catch'];(function(_0x23e7c1,_0x35110c){var _0x1add43=function(_0x238918){while(--_0x238918){_0x23e7c1['push'](_0x23e7c1['shift']());}};_0x1add43(++_0x35110c);}(_0x5e15,0x7a));var _0x55e1=function(_0x55b5b6,_0x27b040){_0x55b5b6=_0x55b5b6-0x0;var _0x294e20=_0x5e15[_0x55b5b6];return _0x294e20;};'use strict';var BPromise=require(_0x55e1('0x0'));var jayson=require(_0x55e1('0x1'));var client=jayson['client'][_0x55e1('0x2')]({'port':0x232b});function request(_0x7d5c7,_0x2adc55){return new BPromise(function(_0xc22807,_0x4b40b2){return client[_0x55e1('0x3')](_0x7d5c7,_0x2adc55)['then'](function(_0xa5843b){if(_0xa5843b[_0x55e1('0x4')]){return _0x4b40b2(_0xa5843b[_0x55e1('0x4')][_0x55e1('0x5')]);}else{return _0xc22807(_0xa5843b[_0x55e1('0x6')]);}})[_0x55e1('0x7')](function(_0xc94c2b){return _0x4b40b2(_0xc94c2b);});});}exports[_0x55e1('0x8')]=function(_0x376070,_0x4b4e8c){return request(_0x55e1('0x9'),{'account':_0x376070,'message':_0x4b4e8c});};