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 _0x8e49=['remove','update','emit','register','./chatInteraction.events'];(function(_0x2da9f1,_0x4f59c5){var _0x627283=function(_0x82a8fb){while(--_0x82a8fb){_0x2da9f1['push'](_0x2da9f1['shift']());}};_0x627283(++_0x4f59c5);}(_0x8e49,0xf4));var _0x98e4=function(_0x385eb1,_0x497a94){_0x385eb1=_0x385eb1-0x0;var _0x5d40eb=_0x8e49[_0x385eb1];return _0x5d40eb;};'use strict';var ChatInteractionEvents=require(_0x98e4('0x0'));var events=['save',_0x98e4('0x1'),_0x98e4('0x2')];function createListener(_0x59737c,_0x505401){return function(_0x5b7846){_0x505401[_0x98e4('0x3')](_0x59737c,_0x5b7846);};}function removeListener(_0xbe8ea3,_0x10505d){return function(){ChatInteractionEvents['removeListener'](_0xbe8ea3,_0x10505d);};}exports[_0x98e4('0x4')]=function(_0x42d0bd){for(var _0x40cc54=0x0,_0x1da04d=events['length'];_0x40cc54<_0x1da04d;_0x40cc54++){var _0x235208=events[_0x40cc54];var _0x17a508=createListener('chatInteraction:'+_0x235208,_0x42d0bd);ChatInteractionEvents['on'](_0x235208,_0x17a508);}};