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 _0x247c=['removeListener','length','./chatInteraction.events','remove','update'];(function(_0x3d69bc,_0x2513ac){var _0x3bff53=function(_0xd97f8a){while(--_0xd97f8a){_0x3d69bc['push'](_0x3d69bc['shift']());}};_0x3bff53(++_0x2513ac);}(_0x247c,0xd9));var _0xc247=function(_0xb6a690,_0x196fc5){_0xb6a690=_0xb6a690-0x0;var _0x1a3b81=_0x247c[_0xb6a690];return _0x1a3b81;};'use strict';var ChatInteractionEvents=require(_0xc247('0x0'));var events=['save',_0xc247('0x1'),_0xc247('0x2')];function createListener(_0x48caaa,_0x2b8a97){return function(_0xd6bae0){_0x2b8a97['emit'](_0x48caaa,_0xd6bae0);};}function removeListener(_0x547b07,_0x560e94){return function(){ChatInteractionEvents[_0xc247('0x3')](_0x547b07,_0x560e94);};}exports['register']=function(_0x7f9e9e){for(var _0x144d36=0x0,_0x14711b=events[_0xc247('0x4')];_0x144d36<_0x14711b;_0x144d36++){var _0x42f636=events[_0x144d36];var _0x19dc14=createListener('chatInteraction:'+_0x42f636,_0x7f9e9e);ChatInteractionEvents['on'](_0x42f636,_0x19dc14);}};