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 _0x7677=['result','catch','sendMailMessage','SendMail','bluebird','jayson/promise','client','request','then','error'];(function(_0x3cdf09,_0x61b0){var _0x228e6e=function(_0x5e0512){while(--_0x5e0512){_0x3cdf09['push'](_0x3cdf09['shift']());}};_0x228e6e(++_0x61b0);}(_0x7677,0x90));var _0x7767=function(_0x122ef9,_0x451d2a){_0x122ef9=_0x122ef9-0x0;var _0x42fba0=_0x7677[_0x122ef9];return _0x42fba0;};'use strict';var BPromise=require(_0x7767('0x0'));var jayson=require(_0x7767('0x1'));var client=jayson[_0x7767('0x2')]['http']({'port':0x232b});function request(_0x404e40,_0x5b2aee){return new BPromise(function(_0x4c6ab9,_0x133e59){return client[_0x7767('0x3')](_0x404e40,_0x5b2aee)[_0x7767('0x4')](function(_0x53fe7c){if(_0x53fe7c[_0x7767('0x5')]){return _0x133e59(_0x53fe7c[_0x7767('0x5')]['message']);}else{return _0x4c6ab9(_0x53fe7c[_0x7767('0x6')]);}})[_0x7767('0x7')](function(_0x40383d){return _0x133e59(_0x40383d);});});}exports[_0x7767('0x8')]=function(_0x39f0ed,_0x3985e4){return request(_0x7767('0x9'),{'account':_0x39f0ed,'message':_0x3985e4});};