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 _0x1e68=['catch','sendMailMessage','SendMail','bluebird','jayson/promise','http','request','error','result'];(function(_0x173441,_0x26b0d9){var _0x2423a8=function(_0x4d96c2){while(--_0x4d96c2){_0x173441['push'](_0x173441['shift']());}};_0x2423a8(++_0x26b0d9);}(_0x1e68,0xa5));var _0x81e6=function(_0x2ab06d,_0x346c84){_0x2ab06d=_0x2ab06d-0x0;var _0x41036d=_0x1e68[_0x2ab06d];return _0x41036d;};'use strict';var BPromise=require(_0x81e6('0x0'));var jayson=require(_0x81e6('0x1'));var client=jayson['client'][_0x81e6('0x2')]({'port':0x232b});function request(_0x4abcce,_0x19e1ab){return new BPromise(function(_0x2d552e,_0x3dbca3){return client[_0x81e6('0x3')](_0x4abcce,_0x19e1ab)['then'](function(_0x3f0eee){if(_0x3f0eee[_0x81e6('0x4')]){return _0x3dbca3(_0x3f0eee['error']['message']);}else{return _0x2d552e(_0x3f0eee[_0x81e6('0x5')]);}})[_0x81e6('0x6')](function(_0x19aa71){return _0x3dbca3(_0x19aa71);});});}exports[_0x81e6('0x7')]=function(_0x5dd58d,_0x1886d3){return request(_0x81e6('0x8'),{'account':_0x5dd58d,'message':_0x1886d3});};