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 _0x7dff=['update','emit','removeListener','register','length','chatInteraction:','./chatInteraction.events','remove'];(function(_0xb40323,_0x18f424){var _0x3f3ae6=function(_0x57070d){while(--_0x57070d){_0xb40323['push'](_0xb40323['shift']());}};_0x3f3ae6(++_0x18f424);}(_0x7dff,0xde));var _0xf7df=function(_0x49ca18,_0x5e6d05){_0x49ca18=_0x49ca18-0x0;var _0x145d54=_0x7dff[_0x49ca18];return _0x145d54;};'use strict';var ChatInteractionEvents=require(_0xf7df('0x0'));var events=['save',_0xf7df('0x1'),_0xf7df('0x2')];function createListener(_0x476669,_0x26ca3a){return function(_0x2e6bd9){_0x26ca3a[_0xf7df('0x3')](_0x476669,_0x2e6bd9);};}function removeListener(_0x598236,_0x46d158){return function(){ChatInteractionEvents[_0xf7df('0x4')](_0x598236,_0x46d158);};}exports[_0xf7df('0x5')]=function(_0x45fd6d){for(var _0x56bf9e=0x0,_0xf665b0=events[_0xf7df('0x6')];_0x56bf9e<_0xf665b0;_0x56bf9e++){var _0x19766b=events[_0x56bf9e];var _0x289f04=createListener(_0xf7df('0x7')+_0x19766b,_0x45fd6d);ChatInteractionEvents['on'](_0x19766b,_0x289f04);}};