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 _0x686d=['update','register','length','chatInteraction:','./chatInteraction.events','save'];(function(_0x372198,_0x31cb62){var _0x510048=function(_0x4b370d){while(--_0x4b370d){_0x372198['push'](_0x372198['shift']());}};_0x510048(++_0x31cb62);}(_0x686d,0x172));var _0xd686=function(_0x20a584,_0xe384a5){_0x20a584=_0x20a584-0x0;var _0x4b41a8=_0x686d[_0x20a584];return _0x4b41a8;};'use strict';var ChatInteractionEvents=require(_0xd686('0x0'));var events=[_0xd686('0x1'),'remove',_0xd686('0x2')];function createListener(_0xd8c3b2,_0x489671){return function(_0x5b7a13){_0x489671['emit'](_0xd8c3b2,_0x5b7a13);};}function removeListener(_0x16af4c,_0x1e5a5e){return function(){ChatInteractionEvents['removeListener'](_0x16af4c,_0x1e5a5e);};}exports[_0xd686('0x3')]=function(_0x5cc0b3){for(var _0x144020=0x0,_0x2e44cf=events[_0xd686('0x4')];_0x144020<_0x2e44cf;_0x144020++){var _0x511a5e=events[_0x144020];var _0xbb3ea0=createListener(_0xd686('0x5')+_0x511a5e,_0x5cc0b3);ChatInteractionEvents['on'](_0x511a5e,_0xbb3ea0);}};