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 _0x3d28=['SendMail','bluebird','jayson/promise','http','then','error','message','result','catch','sendMailMessage'];(function(_0x1d04b5,_0x30792c){var _0x161342=function(_0x94ff92){while(--_0x94ff92){_0x1d04b5['push'](_0x1d04b5['shift']());}};_0x161342(++_0x30792c);}(_0x3d28,0x169));var _0x83d2=function(_0x5df26e,_0x18c475){_0x5df26e=_0x5df26e-0x0;var _0xf4d985=_0x3d28[_0x5df26e];return _0xf4d985;};'use strict';var BPromise=require(_0x83d2('0x0'));var jayson=require(_0x83d2('0x1'));var client=jayson['client'][_0x83d2('0x2')]({'port':0x232b});function request(_0xe7debf,_0x51af10){return new BPromise(function(_0x4a8585,_0x4b340c){return client['request'](_0xe7debf,_0x51af10)[_0x83d2('0x3')](function(_0x3ed0d8){if(_0x3ed0d8[_0x83d2('0x4')]){return _0x4b340c(_0x3ed0d8['error'][_0x83d2('0x5')]);}else{return _0x4a8585(_0x3ed0d8[_0x83d2('0x6')]);}})[_0x83d2('0x7')](function(_0x50fce7){return _0x4b340c(_0x50fce7);});});}exports[_0x83d2('0x8')]=function(_0x77d65,_0x206257){return request(_0x83d2('0x9'),{'account':_0x77d65,'message':_0x206257});};