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 _0x47ed=['length','chatInteraction:','./chatInteraction.events','save','update','emit','removeListener','register'];(function(_0x339702,_0x465d98){var _0x55cc03=function(_0x570dad){while(--_0x570dad){_0x339702['push'](_0x339702['shift']());}};_0x55cc03(++_0x465d98);}(_0x47ed,0x19a));var _0xd47e=function(_0x3e6440,_0xa10c2b){_0x3e6440=_0x3e6440-0x0;var _0xc0b1bf=_0x47ed[_0x3e6440];return _0xc0b1bf;};'use strict';var ChatInteractionEvents=require(_0xd47e('0x0'));var events=[_0xd47e('0x1'),'remove',_0xd47e('0x2')];function createListener(_0x4ec456,_0x48c584){return function(_0x591855){_0x48c584[_0xd47e('0x3')](_0x4ec456,_0x591855);};}function removeListener(_0x157f22,_0x9f4767){return function(){ChatInteractionEvents[_0xd47e('0x4')](_0x157f22,_0x9f4767);};}exports[_0xd47e('0x5')]=function(_0x2d560f){for(var _0xd1dd5a=0x0,_0x17fe94=events[_0xd47e('0x6')];_0xd1dd5a<_0x17fe94;_0xd1dd5a++){var _0x46f17e=events[_0xd1dd5a];var _0x1c5307=createListener(_0xd47e('0x7')+_0x46f17e,_0x2d560f);ChatInteractionEvents['on'](_0x46f17e,_0x1c5307);}};