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 _0x33e4=['emit','removeListener','register','length','mailInteraction:','./mailInteraction.events','save','remove','update'];(function(_0x2c91e9,_0x2fb965){var _0x13f0ff=function(_0xb39edf){while(--_0xb39edf){_0x2c91e9['push'](_0x2c91e9['shift']());}};_0x13f0ff(++_0x2fb965);}(_0x33e4,0xdd));var _0x433e=function(_0x25fb73,_0x5a4a94){_0x25fb73=_0x25fb73-0x0;var _0x53edc8=_0x33e4[_0x25fb73];return _0x53edc8;};'use strict';var MailInteractionEvents=require(_0x433e('0x0'));var events=[_0x433e('0x1'),_0x433e('0x2'),_0x433e('0x3')];function createListener(_0x80f305,_0x5f1e49){return function(_0x3ccd6c){_0x5f1e49[_0x433e('0x4')](_0x80f305,_0x3ccd6c);};}function removeListener(_0x836ca7,_0xda359a){return function(){MailInteractionEvents[_0x433e('0x5')](_0x836ca7,_0xda359a);};}exports[_0x433e('0x6')]=function(_0x13a1d2){for(var _0x5e6b69=0x0,_0x5c8792=events[_0x433e('0x7')];_0x5e6b69<_0x5c8792;_0x5e6b69++){var _0x258f47=events[_0x5e6b69];var _0x287399=createListener(_0x433e('0x8')+_0x258f47,_0x13a1d2);MailInteractionEvents['on'](_0x258f47,_0x287399);}};