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 _0x207e=['remove','update','removeListener','register','length','mailInteraction:','save'];(function(_0x291104,_0x5e5f90){var _0x5b553a=function(_0x4761ab){while(--_0x4761ab){_0x291104['push'](_0x291104['shift']());}};_0x5b553a(++_0x5e5f90);}(_0x207e,0x19c));var _0xe207=function(_0x2edc03,_0x257c20){_0x2edc03=_0x2edc03-0x0;var _0xd2d157=_0x207e[_0x2edc03];return _0xd2d157;};'use strict';var MailInteractionEvents=require('./mailInteraction.events');var events=[_0xe207('0x0'),_0xe207('0x1'),_0xe207('0x2')];function createListener(_0x174a4e,_0x222172){return function(_0x7af053){_0x222172['emit'](_0x174a4e,_0x7af053);};}function removeListener(_0x302805,_0x3116dc){return function(){MailInteractionEvents[_0xe207('0x3')](_0x302805,_0x3116dc);};}exports[_0xe207('0x4')]=function(_0x3b5b27){for(var _0x29ea11=0x0,_0x3e2d7d=events[_0xe207('0x5')];_0x29ea11<_0x3e2d7d;_0x29ea11++){var _0x1e37b2=events[_0x29ea11];var _0x4799c9=createListener(_0xe207('0x6')+_0x1e37b2,_0x3b5b27);MailInteractionEvents['on'](_0x1e37b2,_0x4799c9);}};