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 _0xc8da=['remove','emit','register','length','chatInteraction:','./chatInteraction.events','save'];(function(_0x9e7f3a,_0x37105f){var _0x5ab145=function(_0x5b3bad){while(--_0x5b3bad){_0x9e7f3a['push'](_0x9e7f3a['shift']());}};_0x5ab145(++_0x37105f);}(_0xc8da,0x10f));var _0xac8d=function(_0x1d9639,_0x3c1de3){_0x1d9639=_0x1d9639-0x0;var _0x31a51b=_0xc8da[_0x1d9639];return _0x31a51b;};'use strict';var ChatInteractionEvents=require(_0xac8d('0x0'));var events=[_0xac8d('0x1'),_0xac8d('0x2'),'update'];function createListener(_0x48b1b9,_0x2a9c1e){return function(_0x24f371){_0x2a9c1e[_0xac8d('0x3')](_0x48b1b9,_0x24f371);};}function removeListener(_0x1385d4,_0x368024){return function(){ChatInteractionEvents['removeListener'](_0x1385d4,_0x368024);};}exports[_0xac8d('0x4')]=function(_0x170028){for(var _0x1669f3=0x0,_0x100d94=events[_0xac8d('0x5')];_0x1669f3<_0x100d94;_0x1669f3++){var _0x3ceff7=events[_0x1669f3];var _0x463d57=createListener(_0xac8d('0x6')+_0x3ceff7,_0x170028);ChatInteractionEvents['on'](_0x3ceff7,_0x463d57);}};