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 _0x82f8=['removeListener','register','length','mailInteraction:','./mailInteraction.events','save','remove','update'];(function(_0xae1a83,_0x1980d4){var _0xdb9da8=function(_0x36fc99){while(--_0x36fc99){_0xae1a83['push'](_0xae1a83['shift']());}};_0xdb9da8(++_0x1980d4);}(_0x82f8,0xe4));var _0x882f=function(_0x2dff9c,_0x15aa19){_0x2dff9c=_0x2dff9c-0x0;var _0x53ee1=_0x82f8[_0x2dff9c];return _0x53ee1;};'use strict';var MailInteractionEvents=require(_0x882f('0x0'));var events=[_0x882f('0x1'),_0x882f('0x2'),_0x882f('0x3')];function createListener(_0xcc8344,_0x1e7dc1){return function(_0x18ceb2){_0x1e7dc1['emit'](_0xcc8344,_0x18ceb2);};}function removeListener(_0x1d8011,_0x3c624d){return function(){MailInteractionEvents[_0x882f('0x4')](_0x1d8011,_0x3c624d);};}exports[_0x882f('0x5')]=function(_0x24dd82){for(var _0x1b907f=0x0,_0x3db90c=events[_0x882f('0x6')];_0x1b907f<_0x3db90c;_0x1b907f++){var _0x389d19=events[_0x1b907f];var _0x538b5c=createListener(_0x882f('0x7')+_0x389d19,_0x24dd82);MailInteractionEvents['on'](_0x389d19,_0x538b5c);}};