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 _0xe352=['./mailInteraction.events','remove','update','removeListener','length','mailInteraction:'];(function(_0xf51c06,_0x388e5b){var _0x1d5420=function(_0x5e077b){while(--_0x5e077b){_0xf51c06['push'](_0xf51c06['shift']());}};_0x1d5420(++_0x388e5b);}(_0xe352,0xae));var _0x2e35=function(_0x5e0e15,_0xb04cf9){_0x5e0e15=_0x5e0e15-0x0;var _0x11bff5=_0xe352[_0x5e0e15];return _0x11bff5;};'use strict';var MailInteractionEvents=require(_0x2e35('0x0'));var events=['save',_0x2e35('0x1'),_0x2e35('0x2')];function createListener(_0x53344d,_0x28799a){return function(_0x3340b0){_0x28799a['emit'](_0x53344d,_0x3340b0);};}function removeListener(_0x37aecd,_0x508a8f){return function(){MailInteractionEvents[_0x2e35('0x3')](_0x37aecd,_0x508a8f);};}exports['register']=function(_0x2bca49){for(var _0x5c10a9=0x0,_0x3e9710=events[_0x2e35('0x4')];_0x5c10a9<_0x3e9710;_0x5c10a9++){var _0x372e1d=events[_0x5c10a9];var _0x57d3ab=createListener(_0x2e35('0x5')+_0x372e1d,_0x2bca49);MailInteractionEvents['on'](_0x372e1d,_0x57d3ab);}};