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 _0x6817=['removeListener','register','length','save','remove','update','emit'];(function(_0x174eb2,_0x3c57b7){var _0x127cc1=function(_0x203a35){while(--_0x203a35){_0x174eb2['push'](_0x174eb2['shift']());}};_0x127cc1(++_0x3c57b7);}(_0x6817,0xf8));var _0x7681=function(_0x18d108,_0x454575){_0x18d108=_0x18d108-0x0;var _0x379633=_0x6817[_0x18d108];return _0x379633;};'use strict';var MailMessageEvents=require('./mailMessage.events');var events=[_0x7681('0x0'),_0x7681('0x1'),_0x7681('0x2')];function createListener(_0x159b1c,_0x2be0ea){return function(_0x4ed966){_0x2be0ea[_0x7681('0x3')](_0x159b1c,_0x4ed966);};}function removeListener(_0x3d3585,_0x45207b){return function(){MailMessageEvents[_0x7681('0x4')](_0x3d3585,_0x45207b);};}exports[_0x7681('0x5')]=function(_0x3f8b86){for(var _0x1688f4=0x0,_0x1b4c64=events[_0x7681('0x6')];_0x1688f4<_0x1b4c64;_0x1688f4++){var _0xc30969=events[_0x1688f4];var _0x3d0612=createListener('mailMessage:'+_0xc30969,_0x3f8b86);MailMessageEvents['on'](_0xc30969,_0x3d0612);}};