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 _0xdb67=['bluebird','jayson/promise','client','then','error','message','result','catch','sendMailMessage','SendMail'];(function(_0x3877c1,_0x238c29){var _0x59056a=function(_0x3567cd){while(--_0x3567cd){_0x3877c1['push'](_0x3877c1['shift']());}};_0x59056a(++_0x238c29);}(_0xdb67,0x1cc));var _0x7db6=function(_0x187c3f,_0x5b53c8){_0x187c3f=_0x187c3f-0x0;var _0x29f436=_0xdb67[_0x187c3f];return _0x29f436;};'use strict';var BPromise=require(_0x7db6('0x0'));var jayson=require(_0x7db6('0x1'));var client=jayson[_0x7db6('0x2')]['http']({'port':0x232b});function request(_0x25dbd6,_0x1dab30){return new BPromise(function(_0x309952,_0x192730){return client['request'](_0x25dbd6,_0x1dab30)[_0x7db6('0x3')](function(_0x1141e3){if(_0x1141e3['error']){return _0x192730(_0x1141e3[_0x7db6('0x4')][_0x7db6('0x5')]);}else{return _0x309952(_0x1141e3[_0x7db6('0x6')]);}})[_0x7db6('0x7')](function(_0x1af72a){return _0x192730(_0x1af72a);});});}exports[_0x7db6('0x8')]=function(_0x5ebcd4,_0x1414bf){return request(_0x7db6('0x9'),{'account':_0x5ebcd4,'message':_0x1414bf});};