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 _0x694a=['removeListener','register','length','./mailInteraction.events','remove'];(function(_0x277af0,_0x1f0361){var _0x43bd7c=function(_0x3ad480){while(--_0x3ad480){_0x277af0['push'](_0x277af0['shift']());}};_0x43bd7c(++_0x1f0361);}(_0x694a,0x13e));var _0xa694=function(_0x400001,_0x4b768f){_0x400001=_0x400001-0x0;var _0x343fbe=_0x694a[_0x400001];return _0x343fbe;};'use strict';var MailInteractionEvents=require(_0xa694('0x0'));var events=['save',_0xa694('0x1'),'update'];function createListener(_0x177d78,_0x447a10){return function(_0x5ea5ab){_0x447a10['emit'](_0x177d78,_0x5ea5ab);};}function removeListener(_0x5df5a2,_0x3a83cd){return function(){MailInteractionEvents[_0xa694('0x2')](_0x5df5a2,_0x3a83cd);};}exports[_0xa694('0x3')]=function(_0x9d8cb1){for(var _0x2129c4=0x0,_0xf01c82=events[_0xa694('0x4')];_0x2129c4<_0xf01c82;_0x2129c4++){var _0xdf5e50=events[_0x2129c4];var _0x49c183=createListener('mailInteraction:'+_0xdf5e50,_0x9d8cb1);MailInteractionEvents['on'](_0xdf5e50,_0x49c183);}};