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 _0xd876=['removeListener','register','chatInteraction:','./chatInteraction.events','remove','update','emit'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0xd876,0x11b));var _0x6d87=function(_0x4f55a8,_0x4794c6){_0x4f55a8=_0x4f55a8-0x0;var _0xaf1d53=_0xd876[_0x4f55a8];return _0xaf1d53;};'use strict';var ChatInteractionEvents=require(_0x6d87('0x0'));var events=['save',_0x6d87('0x1'),_0x6d87('0x2')];function createListener(_0x508948,_0x5a48b0){return function(_0x2263fd){_0x5a48b0[_0x6d87('0x3')](_0x508948,_0x2263fd);};}function removeListener(_0x3d239a,_0x3e4359){return function(){ChatInteractionEvents[_0x6d87('0x4')](_0x3d239a,_0x3e4359);};}exports[_0x6d87('0x5')]=function(_0xfafc2c){for(var _0xabcbe6=0x0,_0x444971=events['length'];_0xabcbe6<_0x444971;_0xabcbe6++){var _0x561107=events[_0xabcbe6];var _0x45c084=createListener(_0x6d87('0x6')+_0x561107,_0xfafc2c);ChatInteractionEvents['on'](_0x561107,_0x45c084);}};