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 _0x81be=['removeListener','register','length','./chatInteraction.events','remove','update','emit'];(function(_0x37a9d7,_0x2b6fde){var _0x1343d3=function(_0x3bde45){while(--_0x3bde45){_0x37a9d7['push'](_0x37a9d7['shift']());}};_0x1343d3(++_0x2b6fde);}(_0x81be,0x1ca));var _0xe81b=function(_0x321bb2,_0x202794){_0x321bb2=_0x321bb2-0x0;var _0x9c12ed=_0x81be[_0x321bb2];return _0x9c12ed;};'use strict';var ChatInteractionEvents=require(_0xe81b('0x0'));var events=['save',_0xe81b('0x1'),_0xe81b('0x2')];function createListener(_0x3b3033,_0x5e172b){return function(_0x254b0d){_0x5e172b[_0xe81b('0x3')](_0x3b3033,_0x254b0d);};}function removeListener(_0x5f32f4,_0x3ee6b9){return function(){ChatInteractionEvents[_0xe81b('0x4')](_0x5f32f4,_0x3ee6b9);};}exports[_0xe81b('0x5')]=function(_0x3c1ac5){for(var _0x577f1c=0x0,_0x484cc4=events[_0xe81b('0x6')];_0x577f1c<_0x484cc4;_0x577f1c++){var _0x47416b=events[_0x577f1c];var _0x9b59a7=createListener('chatInteraction:'+_0x47416b,_0x3c1ac5);ChatInteractionEvents['on'](_0x47416b,_0x9b59a7);}};