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 _0x492b=['error','message','result','catch','bluebird','jayson/promise','client','http','request','then'];(function(_0x494267,_0x1e84f4){var _0x5404a0=function(_0x287ced){while(--_0x287ced){_0x494267['push'](_0x494267['shift']());}};_0x5404a0(++_0x1e84f4);}(_0x492b,0x158));var _0xb492=function(_0x3dd44d,_0x770b66){_0x3dd44d=_0x3dd44d-0x0;var _0x2e2196=_0x492b[_0x3dd44d];return _0x2e2196;};'use strict';var BPromise=require(_0xb492('0x0'));var jayson=require(_0xb492('0x1'));var client=jayson[_0xb492('0x2')][_0xb492('0x3')]({'port':0x232b});function request(_0x4a4f66,_0x430b21){return new BPromise(function(_0x5a8747,_0x3600f0){return client[_0xb492('0x4')](_0x4a4f66,_0x430b21)[_0xb492('0x5')](function(_0x1b0faf){if(_0x1b0faf['error']){return _0x3600f0(_0x1b0faf[_0xb492('0x6')][_0xb492('0x7')]);}else{return _0x5a8747(_0x1b0faf[_0xb492('0x8')]);}})[_0xb492('0x9')](function(_0x322741){return _0x3600f0(_0x322741);});});}exports['sendMailMessage']=function(_0x3dbe18,_0x2e1fcf){return request('SendMail',{'account':_0x3dbe18,'message':_0x2e1fcf});};