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 _0x1d1b=['length','mailMessage:','./mailMessage.events','save','remove','update'];(function(_0x272638,_0x42b993){var _0x19d027=function(_0x27ac44){while(--_0x27ac44){_0x272638['push'](_0x272638['shift']());}};_0x19d027(++_0x42b993);}(_0x1d1b,0x110));var _0xb1d1=function(_0x1f6460,_0x35435e){_0x1f6460=_0x1f6460-0x0;var _0x5cd0ec=_0x1d1b[_0x1f6460];return _0x5cd0ec;};'use strict';var MailMessageEvents=require(_0xb1d1('0x0'));var events=[_0xb1d1('0x1'),_0xb1d1('0x2'),_0xb1d1('0x3')];function createListener(_0x7edf23,_0x4093d1){return function(_0x40de3e){_0x4093d1['emit'](_0x7edf23,_0x40de3e);};}function removeListener(_0x107276,_0xa4027f){return function(){MailMessageEvents['removeListener'](_0x107276,_0xa4027f);};}exports['register']=function(_0x45e162){for(var _0x1adc8e=0x0,_0x32716b=events[_0xb1d1('0x4')];_0x1adc8e<_0x32716b;_0x1adc8e++){var _0x30babe=events[_0x1adc8e];var _0x28dbad=createListener(_0xb1d1('0x5')+_0x30babe,_0x45e162);MailMessageEvents['on'](_0x30babe,_0x28dbad);}};