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 _0xf948=['./chatInteraction.events','save','remove','update','emit','register','length','chatInteraction:'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xf948,0xc0));var _0x8f94=function(_0x4d04ac,_0x12f8c3){_0x4d04ac=_0x4d04ac-0x0;var _0x3c477a=_0xf948[_0x4d04ac];return _0x3c477a;};'use strict';var ChatInteractionEvents=require(_0x8f94('0x0'));var events=[_0x8f94('0x1'),_0x8f94('0x2'),_0x8f94('0x3')];function createListener(_0x2dbd93,_0x180efa){return function(_0x14391a){_0x180efa[_0x8f94('0x4')](_0x2dbd93,_0x14391a);};}function removeListener(_0x10a73c,_0x1eae3b){return function(){ChatInteractionEvents['removeListener'](_0x10a73c,_0x1eae3b);};}exports[_0x8f94('0x5')]=function(_0x48ffa1){for(var _0x1e4e8f=0x0,_0x50bd5f=events[_0x8f94('0x6')];_0x1e4e8f<_0x50bd5f;_0x1e4e8f++){var _0x207d1d=events[_0x1e4e8f];var _0x308411=createListener(_0x8f94('0x7')+_0x207d1d,_0x48ffa1);ChatInteractionEvents['on'](_0x207d1d,_0x308411);}};