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 _0xe982=['emit','register','length','chatInteraction:','./chatInteraction.events','save'];(function(_0x3c487b,_0x44c5e2){var _0x1d65f6=function(_0x135e6d){while(--_0x135e6d){_0x3c487b['push'](_0x3c487b['shift']());}};_0x1d65f6(++_0x44c5e2);}(_0xe982,0x1b4));var _0x2e98=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0xe982[_0x20a584];return _0x4b41a8;};'use strict';var ChatInteractionEvents=require(_0x2e98('0x0'));var events=[_0x2e98('0x1'),'remove','update'];function createListener(_0xef0d53,_0x5eb043){return function(_0x3a09bf){_0x5eb043[_0x2e98('0x2')](_0xef0d53,_0x3a09bf);};}function removeListener(_0x3973d6,_0x119f32){return function(){ChatInteractionEvents['removeListener'](_0x3973d6,_0x119f32);};}exports[_0x2e98('0x3')]=function(_0x20a02e){for(var _0x17d3a1=0x0,_0x35df5f=events[_0x2e98('0x4')];_0x17d3a1<_0x35df5f;_0x17d3a1++){var _0x5254fe=events[_0x17d3a1];var _0x27b919=createListener(_0x2e98('0x5')+_0x5254fe,_0x20a02e);ChatInteractionEvents['on'](_0x5254fe,_0x27b919);}};