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 _0xf109=['remove','register','length','chatInteraction:','./chatInteraction.events','save'];(function(_0x466b13,_0x7f20ce){var _0x5cb98c=function(_0x5c369f){while(--_0x5c369f){_0x466b13['push'](_0x466b13['shift']());}};_0x5cb98c(++_0x7f20ce);}(_0xf109,0x1de));var _0x9f10=function(_0x1b4b23,_0x5dd6d6){_0x1b4b23=_0x1b4b23-0x0;var _0x2a325b=_0xf109[_0x1b4b23];return _0x2a325b;};'use strict';var ChatInteractionEvents=require(_0x9f10('0x0'));var events=[_0x9f10('0x1'),_0x9f10('0x2'),'update'];function createListener(_0x1f9ed8,_0x34d67c){return function(_0x368f40){_0x34d67c['emit'](_0x1f9ed8,_0x368f40);};}function removeListener(_0x4d57aa,_0x550c4c){return function(){ChatInteractionEvents['removeListener'](_0x4d57aa,_0x550c4c);};}exports[_0x9f10('0x3')]=function(_0x53c7a9){for(var _0x13d9d1=0x0,_0x294780=events[_0x9f10('0x4')];_0x13d9d1<_0x294780;_0x13d9d1++){var _0x11d75a=events[_0x13d9d1];var _0x1d7ed7=createListener(_0x9f10('0x5')+_0x11d75a,_0x53c7a9);ChatInteractionEvents['on'](_0x11d75a,_0x1d7ed7);}};