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 _0xe1c3=['remove','emit','removeListener','register','length','chatInteraction:','./chatInteraction.events','save'];(function(_0x2129df,_0x357045){var _0x1e09a8=function(_0x19a3b9){while(--_0x19a3b9){_0x2129df['push'](_0x2129df['shift']());}};_0x1e09a8(++_0x357045);}(_0xe1c3,0x1de));var _0x3e1c=function(_0x28b43d,_0x53eaaf){_0x28b43d=_0x28b43d-0x0;var _0x3083e8=_0xe1c3[_0x28b43d];return _0x3083e8;};'use strict';var ChatInteractionEvents=require(_0x3e1c('0x0'));var events=[_0x3e1c('0x1'),_0x3e1c('0x2'),'update'];function createListener(_0x4eada8,_0x240748){return function(_0x5e34f2){_0x240748[_0x3e1c('0x3')](_0x4eada8,_0x5e34f2);};}function removeListener(_0x234423,_0x5aca4f){return function(){ChatInteractionEvents[_0x3e1c('0x4')](_0x234423,_0x5aca4f);};}exports[_0x3e1c('0x5')]=function(_0x23fb17){for(var _0x11b92b=0x0,_0x26f5e6=events[_0x3e1c('0x6')];_0x11b92b<_0x26f5e6;_0x11b92b++){var _0x4c8285=events[_0x11b92b];var _0x438353=createListener(_0x3e1c('0x7')+_0x4c8285,_0x23fb17);ChatInteractionEvents['on'](_0x4c8285,_0x438353);}};