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 _0x57c4=['bluebird','jayson/promise','http','request','error','result','catch','sendMailMessage','SendMail'];(function(_0x515afd,_0x1a1e91){var _0x536d53=function(_0x1d3a89){while(--_0x1d3a89){_0x515afd['push'](_0x515afd['shift']());}};_0x536d53(++_0x1a1e91);}(_0x57c4,0x1cb));var _0x457c=function(_0x1dc93a,_0x4ef571){_0x1dc93a=_0x1dc93a-0x0;var _0x279266=_0x57c4[_0x1dc93a];return _0x279266;};'use strict';var BPromise=require(_0x457c('0x0'));var jayson=require(_0x457c('0x1'));var client=jayson['client'][_0x457c('0x2')]({'port':0x232b});function request(_0x3dcf20,_0x1177d7){return new BPromise(function(_0x433de1,_0x14c775){return client[_0x457c('0x3')](_0x3dcf20,_0x1177d7)['then'](function(_0x523f32){if(_0x523f32[_0x457c('0x4')]){return _0x14c775(_0x523f32['error']['message']);}else{return _0x433de1(_0x523f32[_0x457c('0x5')]);}})[_0x457c('0x6')](function(_0x1bad72){return _0x14c775(_0x1bad72);});});}exports[_0x457c('0x7')]=function(_0x56e53c,_0x351a9c){return request(_0x457c('0x8'),{'account':_0x56e53c,'message':_0x351a9c});};