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 _0x2a53=['SendMail','bluebird','jayson/promise','client','then','error','message','result','catch','sendMailMessage'];(function(_0x8c43de,_0x90ff31){var _0xa6591b=function(_0x469716){while(--_0x469716){_0x8c43de['push'](_0x8c43de['shift']());}};_0xa6591b(++_0x90ff31);}(_0x2a53,0x1e1));var _0x32a5=function(_0x421cf8,_0x23152c){_0x421cf8=_0x421cf8-0x0;var _0x145c48=_0x2a53[_0x421cf8];return _0x145c48;};'use strict';var BPromise=require(_0x32a5('0x0'));var jayson=require(_0x32a5('0x1'));var client=jayson[_0x32a5('0x2')]['http']({'port':0x232b});function request(_0x41c635,_0x1c2a00){return new BPromise(function(_0xdd735f,_0x1dfd98){return client['request'](_0x41c635,_0x1c2a00)[_0x32a5('0x3')](function(_0x38816c){if(_0x38816c['error']){return _0x1dfd98(_0x38816c[_0x32a5('0x4')][_0x32a5('0x5')]);}else{return _0xdd735f(_0x38816c[_0x32a5('0x6')]);}})[_0x32a5('0x7')](function(_0x40c8b7){return _0x1dfd98(_0x40c8b7);});});}exports[_0x32a5('0x8')]=function(_0x20971d,_0x240d37){return request(_0x32a5('0x9'),{'account':_0x20971d,'message':_0x240d37});};