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 _0x18dd=['./chatInteraction.events','remove','emit','removeListener','length','chatInteraction:'];(function(_0x1fdd66,_0x40d3e5){var _0x3f5d8f=function(_0x54333e){while(--_0x54333e){_0x1fdd66['push'](_0x1fdd66['shift']());}};_0x3f5d8f(++_0x40d3e5);}(_0x18dd,0x6c));var _0xd18d=function(_0x8c43de,_0x90ff31){_0x8c43de=_0x8c43de-0x0;var _0xa6591b=_0x18dd[_0x8c43de];return _0xa6591b;};'use strict';var ChatInteractionEvents=require(_0xd18d('0x0'));var events=['save',_0xd18d('0x1'),'update'];function createListener(_0x314dd9,_0x2670de){return function(_0x47e03f){_0x2670de[_0xd18d('0x2')](_0x314dd9,_0x47e03f);};}function removeListener(_0x80b0c6,_0xdc3221){return function(){ChatInteractionEvents[_0xd18d('0x3')](_0x80b0c6,_0xdc3221);};}exports['register']=function(_0x3cea88){for(var _0xc8a428=0x0,_0x4de3da=events[_0xd18d('0x4')];_0xc8a428<_0x4de3da;_0xc8a428++){var _0xb1b216=events[_0xc8a428];var _0x1f65f3=createListener(_0xd18d('0x5')+_0xb1b216,_0x3cea88);ChatInteractionEvents['on'](_0xb1b216,_0x1f65f3);}};