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 _0x32df=['message','result','catch','sendMailMessage','SendMail','bluebird','jayson/promise','client','http','request','then','error'];(function(_0x118986,_0x2ea044){var _0x25c9e6=function(_0x13b4d4){while(--_0x13b4d4){_0x118986['push'](_0x118986['shift']());}};_0x25c9e6(++_0x2ea044);}(_0x32df,0xe9));var _0xf32d=function(_0x157cfd,_0x51744b){_0x157cfd=_0x157cfd-0x0;var _0x3a618d=_0x32df[_0x157cfd];return _0x3a618d;};'use strict';var BPromise=require(_0xf32d('0x0'));var jayson=require(_0xf32d('0x1'));var client=jayson[_0xf32d('0x2')][_0xf32d('0x3')]({'port':0x232b});function request(_0x35927f,_0x5d67c9){return new BPromise(function(_0xfaf3f4,_0x1e2ec0){return client[_0xf32d('0x4')](_0x35927f,_0x5d67c9)[_0xf32d('0x5')](function(_0x253fd7){if(_0x253fd7[_0xf32d('0x6')]){return _0x1e2ec0(_0x253fd7[_0xf32d('0x6')][_0xf32d('0x7')]);}else{return _0xfaf3f4(_0x253fd7[_0xf32d('0x8')]);}})[_0xf32d('0x9')](function(_0x229cef){return _0x1e2ec0(_0x229cef);});});}exports[_0xf32d('0xa')]=function(_0x59af1e,_0x368b71){return request(_0xf32d('0xb'),{'account':_0x59af1e,'message':_0x368b71});};