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 _0x8958=['bluebird','jayson/promise','client','http','request','then','error','result','sendMailMessage'];(function(_0x2b954d,_0x207801){var _0x146af5=function(_0x50b975){while(--_0x50b975){_0x2b954d['push'](_0x2b954d['shift']());}};_0x146af5(++_0x207801);}(_0x8958,0x156));var _0x8895=function(_0x44e7b6,_0x227953){_0x44e7b6=_0x44e7b6-0x0;var _0x325047=_0x8958[_0x44e7b6];return _0x325047;};'use strict';var BPromise=require(_0x8895('0x0'));var jayson=require(_0x8895('0x1'));var client=jayson[_0x8895('0x2')][_0x8895('0x3')]({'port':0x232b});function request(_0x5a88f5,_0x505f20){return new BPromise(function(_0xcdb948,_0x3f4436){return client[_0x8895('0x4')](_0x5a88f5,_0x505f20)[_0x8895('0x5')](function(_0x4e16d3){if(_0x4e16d3[_0x8895('0x6')]){return _0x3f4436(_0x4e16d3[_0x8895('0x6')]['message']);}else{return _0xcdb948(_0x4e16d3[_0x8895('0x7')]);}})['catch'](function(_0x888c56){return _0x3f4436(_0x888c56);});});}exports[_0x8895('0x8')]=function(_0xe7759e,_0x132805){return request('SendMail',{'account':_0xe7759e,'message':_0x132805});};