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 _0x031c=['register','length','mailMessage:','./mailMessage.events','save','remove','update','removeListener'];(function(_0x4e7b01,_0x316a66){var _0x50ea1e=function(_0x114f80){while(--_0x114f80){_0x4e7b01['push'](_0x4e7b01['shift']());}};_0x50ea1e(++_0x316a66);}(_0x031c,0x18b));var _0xc031=function(_0x2dafbe,_0x5d04de){_0x2dafbe=_0x2dafbe-0x0;var _0x58a45a=_0x031c[_0x2dafbe];return _0x58a45a;};'use strict';var MailMessageEvents=require(_0xc031('0x0'));var events=[_0xc031('0x1'),_0xc031('0x2'),_0xc031('0x3')];function createListener(_0x2ccd88,_0x461db5){return function(_0x32b0a9){_0x461db5['emit'](_0x2ccd88,_0x32b0a9);};}function removeListener(_0x482c98,_0x13f995){return function(){MailMessageEvents[_0xc031('0x4')](_0x482c98,_0x13f995);};}exports[_0xc031('0x5')]=function(_0x43bdea){for(var _0x23e59b=0x0,_0x2b0941=events[_0xc031('0x6')];_0x23e59b<_0x2b0941;_0x23e59b++){var _0x118e15=events[_0x23e59b];var _0x25809b=createListener(_0xc031('0x7')+_0x118e15,_0x43bdea);MailMessageEvents['on'](_0x118e15,_0x25809b);}};