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 _0x92c6=['update','emit','register','chatInteraction:','./chatInteraction.events','save'];(function(_0x2fe2d3,_0x49ae45){var _0x4524d4=function(_0x4dabb1){while(--_0x4dabb1){_0x2fe2d3['push'](_0x2fe2d3['shift']());}};_0x4524d4(++_0x49ae45);}(_0x92c6,0x1e4));var _0x692c=function(_0x39eed8,_0x777f42){_0x39eed8=_0x39eed8-0x0;var _0x2d156e=_0x92c6[_0x39eed8];return _0x2d156e;};'use strict';var ChatInteractionEvents=require(_0x692c('0x0'));var events=[_0x692c('0x1'),'remove',_0x692c('0x2')];function createListener(_0x4f11cc,_0x360628){return function(_0x25a14e){_0x360628[_0x692c('0x3')](_0x4f11cc,_0x25a14e);};}function removeListener(_0x4c9fe4,_0x29b79e){return function(){ChatInteractionEvents['removeListener'](_0x4c9fe4,_0x29b79e);};}exports[_0x692c('0x4')]=function(_0x2ebf52){for(var _0x2a8141=0x0,_0x281d6c=events['length'];_0x2a8141<_0x281d6c;_0x2a8141++){var _0x157898=events[_0x2a8141];var _0x212ee2=createListener(_0x692c('0x5')+_0x157898,_0x2ebf52);ChatInteractionEvents['on'](_0x157898,_0x212ee2);}};