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 _0xe35e=['removeListener','register','length','chatInteraction:','save','remove','update','emit'];(function(_0xfeba9,_0x28c392){var _0x266971=function(_0xdffc9f){while(--_0xdffc9f){_0xfeba9['push'](_0xfeba9['shift']());}};_0x266971(++_0x28c392);}(_0xe35e,0xfc));var _0xee35=function(_0xb301d4,_0x27ed18){_0xb301d4=_0xb301d4-0x0;var _0x3b5bde=_0xe35e[_0xb301d4];return _0x3b5bde;};'use strict';var ChatInteractionEvents=require('./chatInteraction.events');var events=[_0xee35('0x0'),_0xee35('0x1'),_0xee35('0x2')];function createListener(_0x48ef55,_0x51ccc6){return function(_0x5e65a5){_0x51ccc6[_0xee35('0x3')](_0x48ef55,_0x5e65a5);};}function removeListener(_0x4ac77f,_0x5f4caf){return function(){ChatInteractionEvents[_0xee35('0x4')](_0x4ac77f,_0x5f4caf);};}exports[_0xee35('0x5')]=function(_0x57da7f){for(var _0x4d7879=0x0,_0x22cbe7=events[_0xee35('0x6')];_0x4d7879<_0x22cbe7;_0x4d7879++){var _0x51a534=events[_0x4d7879];var _0x325838=createListener(_0xee35('0x7')+_0x51a534,_0x57da7f);ChatInteractionEvents['on'](_0x51a534,_0x325838);}};