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 _0xbf3c=['then','error','result','catch','sendMailMessage','SendMail','bluebird','jayson/promise','client','http','request'];(function(_0x6bc04e,_0x51fd73){var _0x576dd3=function(_0x1ef000){while(--_0x1ef000){_0x6bc04e['push'](_0x6bc04e['shift']());}};_0x576dd3(++_0x51fd73);}(_0xbf3c,0xb6));var _0xcbf3=function(_0x1754d9,_0x537663){_0x1754d9=_0x1754d9-0x0;var _0x369f81=_0xbf3c[_0x1754d9];return _0x369f81;};'use strict';var BPromise=require(_0xcbf3('0x0'));var jayson=require(_0xcbf3('0x1'));var client=jayson[_0xcbf3('0x2')][_0xcbf3('0x3')]({'port':0x232b});function request(_0x50f809,_0x484565){return new BPromise(function(_0x3586c2,_0x2ec0cf){return client[_0xcbf3('0x4')](_0x50f809,_0x484565)[_0xcbf3('0x5')](function(_0x12676c){if(_0x12676c[_0xcbf3('0x6')]){return _0x2ec0cf(_0x12676c[_0xcbf3('0x6')]['message']);}else{return _0x3586c2(_0x12676c[_0xcbf3('0x7')]);}})[_0xcbf3('0x8')](function(_0x3bdff6){return _0x2ec0cf(_0x3bdff6);});});}exports[_0xcbf3('0x9')]=function(_0x3b34e8,_0x566402){return request(_0xcbf3('0xa'),{'account':_0x3b34e8,'message':_0x566402});};