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 _0x132c=['length','chatInteraction:','./chatInteraction.events','save','update','emit','removeListener'];(function(_0x5b4d43,_0x47f4a8){var _0x674697=function(_0x121b11){while(--_0x121b11){_0x5b4d43['push'](_0x5b4d43['shift']());}};_0x674697(++_0x47f4a8);}(_0x132c,0x159));var _0xc132=function(_0x4bf80e,_0x243605){_0x4bf80e=_0x4bf80e-0x0;var _0x4ccd91=_0x132c[_0x4bf80e];return _0x4ccd91;};'use strict';var ChatInteractionEvents=require(_0xc132('0x0'));var events=[_0xc132('0x1'),'remove',_0xc132('0x2')];function createListener(_0x591297,_0x9f1880){return function(_0x1e21e2){_0x9f1880[_0xc132('0x3')](_0x591297,_0x1e21e2);};}function removeListener(_0x2e2d86,_0x26ebef){return function(){ChatInteractionEvents[_0xc132('0x4')](_0x2e2d86,_0x26ebef);};}exports['register']=function(_0x6d4c19){for(var _0x44c2c0=0x0,_0x21f390=events[_0xc132('0x5')];_0x44c2c0<_0x21f390;_0x44c2c0++){var _0x2751c0=events[_0x44c2c0];var _0x96e582=createListener(_0xc132('0x6')+_0x2751c0,_0x6d4c19);ChatInteractionEvents['on'](_0x2751c0,_0x96e582);}};