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 _0xe50a=['./chatInteraction.events','save','remove','emit','removeListener','register','length','chatInteraction:'];(function(_0x1a87ef,_0x251820){var _0x2b268a=function(_0x5e45c3){while(--_0x5e45c3){_0x1a87ef['push'](_0x1a87ef['shift']());}};_0x2b268a(++_0x251820);}(_0xe50a,0xf0));var _0xae50=function(_0x17c483,_0xc69535){_0x17c483=_0x17c483-0x0;var _0x112bdb=_0xe50a[_0x17c483];return _0x112bdb;};'use strict';var ChatInteractionEvents=require(_0xae50('0x0'));var events=[_0xae50('0x1'),_0xae50('0x2'),'update'];function createListener(_0x274362,_0x538e65){return function(_0x24b36d){_0x538e65[_0xae50('0x3')](_0x274362,_0x24b36d);};}function removeListener(_0x54b4e3,_0x272e31){return function(){ChatInteractionEvents[_0xae50('0x4')](_0x54b4e3,_0x272e31);};}exports[_0xae50('0x5')]=function(_0x536668){for(var _0x16481a=0x0,_0x59011e=events[_0xae50('0x6')];_0x16481a<_0x59011e;_0x16481a++){var _0x533cc7=events[_0x16481a];var _0x319294=createListener(_0xae50('0x7')+_0x533cc7,_0x536668);ChatInteractionEvents['on'](_0x533cc7,_0x319294);}};