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 _0x4667=['save','remove','update','emit','removeListener','register','length','chatInteraction:','./chatInteraction.events'];(function(_0x43859f,_0x4bb17f){var _0x385292=function(_0x143403){while(--_0x143403){_0x43859f['push'](_0x43859f['shift']());}};_0x385292(++_0x4bb17f);}(_0x4667,0x179));var _0x7466=function(_0x8cfd08,_0x656b39){_0x8cfd08=_0x8cfd08-0x0;var _0x1c6452=_0x4667[_0x8cfd08];return _0x1c6452;};'use strict';var ChatInteractionEvents=require(_0x7466('0x0'));var events=[_0x7466('0x1'),_0x7466('0x2'),_0x7466('0x3')];function createListener(_0xdabb36,_0xc3c1f0){return function(_0x5a02a8){_0xc3c1f0[_0x7466('0x4')](_0xdabb36,_0x5a02a8);};}function removeListener(_0x5c7f21,_0xf39399){return function(){ChatInteractionEvents[_0x7466('0x5')](_0x5c7f21,_0xf39399);};}exports[_0x7466('0x6')]=function(_0x12f158){for(var _0x7732d1=0x0,_0x136b5a=events[_0x7466('0x7')];_0x7732d1<_0x136b5a;_0x7732d1++){var _0x4e6c6f=events[_0x7732d1];var _0x28618c=createListener(_0x7466('0x8')+_0x4e6c6f,_0x12f158);ChatInteractionEvents['on'](_0x4e6c6f,_0x28618c);}};