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 _0x7e2c=['length','mailInteraction:','./mailInteraction.events','save','remove','update','removeListener','register'];(function(_0x3c57ef,_0x1d1b77){var _0x32fd64=function(_0x550361){while(--_0x550361){_0x3c57ef['push'](_0x3c57ef['shift']());}};_0x32fd64(++_0x1d1b77);}(_0x7e2c,0xfa));var _0xc7e2=function(_0x56c2bd,_0x307141){_0x56c2bd=_0x56c2bd-0x0;var _0x1edc9c=_0x7e2c[_0x56c2bd];return _0x1edc9c;};'use strict';var MailInteractionEvents=require(_0xc7e2('0x0'));var events=[_0xc7e2('0x1'),_0xc7e2('0x2'),_0xc7e2('0x3')];function createListener(_0x2e29f5,_0x576109){return function(_0x10dc7b){_0x576109['emit'](_0x2e29f5,_0x10dc7b);};}function removeListener(_0x4d5170,_0x2663c7){return function(){MailInteractionEvents[_0xc7e2('0x4')](_0x4d5170,_0x2663c7);};}exports[_0xc7e2('0x5')]=function(_0x27ef27){for(var _0x34c846=0x0,_0x121d8e=events[_0xc7e2('0x6')];_0x34c846<_0x121d8e;_0x34c846++){var _0x46c896=events[_0x34c846];var _0x3ab340=createListener(_0xc7e2('0x7')+_0x46c896,_0x27ef27);MailInteractionEvents['on'](_0x46c896,_0x3ab340);}};