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 _0xf51c=['save','emit','removeListener','register','length','mailInteraction:'];(function(_0x5dbbc7,_0x5ca4c4){var _0x3f8409=function(_0x19823c){while(--_0x19823c){_0x5dbbc7['push'](_0x5dbbc7['shift']());}};_0x3f8409(++_0x5ca4c4);}(_0xf51c,0xcc));var _0xcf51=function(_0x519643,_0x41ad1c){_0x519643=_0x519643-0x0;var _0x1d6d0d=_0xf51c[_0x519643];return _0x1d6d0d;};'use strict';var MailInteractionEvents=require('./mailInteraction.events');var events=[_0xcf51('0x0'),'remove','update'];function createListener(_0x3aba1d,_0x43d037){return function(_0x2e386e){_0x43d037[_0xcf51('0x1')](_0x3aba1d,_0x2e386e);};}function removeListener(_0x367faa,_0x1299f4){return function(){MailInteractionEvents[_0xcf51('0x2')](_0x367faa,_0x1299f4);};}exports[_0xcf51('0x3')]=function(_0x119274){for(var _0x5be0bb=0x0,_0x3402a6=events[_0xcf51('0x4')];_0x5be0bb<_0x3402a6;_0x5be0bb++){var _0x38feb2=events[_0x5be0bb];var _0x5bcaa5=createListener(_0xcf51('0x5')+_0x38feb2,_0x119274);MailInteractionEvents['on'](_0x38feb2,_0x5bcaa5);}};