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 _0x33f8=['save','remove','update','emit','register','length','./mailMessage.events'];(function(_0x6c59fc,_0x5fe88d){var _0x17c96f=function(_0x5a6c82){while(--_0x5a6c82){_0x6c59fc['push'](_0x6c59fc['shift']());}};_0x17c96f(++_0x5fe88d);}(_0x33f8,0x172));var _0x833f=function(_0x5cd66e,_0x5700f4){_0x5cd66e=_0x5cd66e-0x0;var _0x19624e=_0x33f8[_0x5cd66e];return _0x19624e;};'use strict';var MailMessageEvents=require(_0x833f('0x0'));var events=[_0x833f('0x1'),_0x833f('0x2'),_0x833f('0x3')];function createListener(_0x3cb761,_0x3bef6b){return function(_0x5ecd58){_0x3bef6b[_0x833f('0x4')](_0x3cb761,_0x5ecd58);};}function removeListener(_0xc7954a,_0x23d83f){return function(){MailMessageEvents['removeListener'](_0xc7954a,_0x23d83f);};}exports[_0x833f('0x5')]=function(_0x5099b0){for(var _0x1f623a=0x0,_0x257f64=events[_0x833f('0x6')];_0x1f623a<_0x257f64;_0x1f623a++){var _0x5ba35f=events[_0x1f623a];var _0x3b397a=createListener('mailMessage:'+_0x5ba35f,_0x5099b0);MailMessageEvents['on'](_0x5ba35f,_0x3b397a);}};