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 _0x7925=['remove','emit','removeListener','register','length','chatInteraction:','save'];(function(_0x5e504d,_0x2aa62e){var _0x1a6fca=function(_0x2b10f5){while(--_0x2b10f5){_0x5e504d['push'](_0x5e504d['shift']());}};_0x1a6fca(++_0x2aa62e);}(_0x7925,0xe6));var _0x5792=function(_0x48cc43,_0x5b974d){_0x48cc43=_0x48cc43-0x0;var _0x187a07=_0x7925[_0x48cc43];return _0x187a07;};'use strict';var ChatInteractionEvents=require('./chatInteraction.events');var events=[_0x5792('0x0'),_0x5792('0x1'),'update'];function createListener(_0x24556f,_0x781e77){return function(_0x21f44f){_0x781e77[_0x5792('0x2')](_0x24556f,_0x21f44f);};}function removeListener(_0x332c98,_0x14da25){return function(){ChatInteractionEvents[_0x5792('0x3')](_0x332c98,_0x14da25);};}exports[_0x5792('0x4')]=function(_0x2e6f7b){for(var _0x5bb20f=0x0,_0x4f784a=events[_0x5792('0x5')];_0x5bb20f<_0x4f784a;_0x5bb20f++){var _0x17af95=events[_0x5bb20f];var _0xc7e4a3=createListener(_0x5792('0x6')+_0x17af95,_0x2e6f7b);ChatInteractionEvents['on'](_0x17af95,_0xc7e4a3);}};