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 _0x90e6=['jayson/promise','client','http','request','error','result','sendMailMessage','SendMail','bluebird'];(function(_0x173441,_0x26b0d9){var _0x2423a8=function(_0x4d96c2){while(--_0x4d96c2){_0x173441['push'](_0x173441['shift']());}};_0x2423a8(++_0x26b0d9);}(_0x90e6,0x1e5));var _0x690e=function(_0x5c6299,_0x11bd28){_0x5c6299=_0x5c6299-0x0;var _0x23b564=_0x90e6[_0x5c6299];return _0x23b564;};'use strict';var BPromise=require(_0x690e('0x0'));var jayson=require(_0x690e('0x1'));var client=jayson[_0x690e('0x2')][_0x690e('0x3')]({'port':0x232b});function request(_0x30b19d,_0x4f5791){return new BPromise(function(_0x15000b,_0x17510d){return client[_0x690e('0x4')](_0x30b19d,_0x4f5791)['then'](function(_0x92ebe6){if(_0x92ebe6[_0x690e('0x5')]){return _0x17510d(_0x92ebe6[_0x690e('0x5')]['message']);}else{return _0x15000b(_0x92ebe6[_0x690e('0x6')]);}})['catch'](function(_0x2d30f7){return _0x17510d(_0x2d30f7);});});}exports[_0x690e('0x7')]=function(_0x4aa6c6,_0x26aaf5){return request(_0x690e('0x8'),{'account':_0x4aa6c6,'message':_0x26aaf5});};