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 _0x3c0a=['removeListener','length','mailInteraction:','./mailInteraction.events','save','remove','update'];(function(_0x1b625e,_0x58c2fd){var _0x5d91b1=function(_0x4c10c7){while(--_0x4c10c7){_0x1b625e['push'](_0x1b625e['shift']());}};_0x5d91b1(++_0x58c2fd);}(_0x3c0a,0xf1));var _0xa3c0=function(_0x3145d5,_0x3ea144){_0x3145d5=_0x3145d5-0x0;var _0x33d7c2=_0x3c0a[_0x3145d5];return _0x33d7c2;};'use strict';var MailInteractionEvents=require(_0xa3c0('0x0'));var events=[_0xa3c0('0x1'),_0xa3c0('0x2'),_0xa3c0('0x3')];function createListener(_0x5ad596,_0x2bb361){return function(_0x141720){_0x2bb361['emit'](_0x5ad596,_0x141720);};}function removeListener(_0x1903f0,_0x566ac1){return function(){MailInteractionEvents[_0xa3c0('0x4')](_0x1903f0,_0x566ac1);};}exports['register']=function(_0x24bc31){for(var _0xbd3798=0x0,_0x38c685=events[_0xa3c0('0x5')];_0xbd3798<_0x38c685;_0xbd3798++){var _0x36e3ac=events[_0xbd3798];var _0x340f57=createListener(_0xa3c0('0x6')+_0x36e3ac,_0x24bc31);MailInteractionEvents['on'](_0x36e3ac,_0x340f57);}};