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 _0xab46=['removeListener','register','length','save','update','emit'];(function(_0x32fe12,_0x32f64d){var _0x5346d4=function(_0x28ad08){while(--_0x28ad08){_0x32fe12['push'](_0x32fe12['shift']());}};_0x5346d4(++_0x32f64d);}(_0xab46,0xff));var _0x6ab4=function(_0xf46bd9,_0x322826){_0xf46bd9=_0xf46bd9-0x0;var _0x2763c3=_0xab46[_0xf46bd9];return _0x2763c3;};'use strict';var MailInteractionEvents=require('./mailInteraction.events');var events=[_0x6ab4('0x0'),'remove',_0x6ab4('0x1')];function createListener(_0x25907d,_0xce32be){return function(_0x45c9c2){_0xce32be[_0x6ab4('0x2')](_0x25907d,_0x45c9c2);};}function removeListener(_0x5678f2,_0x133bf0){return function(){MailInteractionEvents[_0x6ab4('0x3')](_0x5678f2,_0x133bf0);};}exports[_0x6ab4('0x4')]=function(_0x410a91){for(var _0x68f189=0x0,_0x4faa7f=events[_0x6ab4('0x5')];_0x68f189<_0x4faa7f;_0x68f189++){var _0x5e28e4=events[_0x68f189];var _0x57e1eb=createListener('mailInteraction:'+_0x5e28e4,_0x410a91);MailInteractionEvents['on'](_0x5e28e4,_0x57e1eb);}};