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 _0x7ffa=['length','chatInternalMessage:','./chatInternalMessage.events','save','emit','removeListener','register'];(function(_0x3e4c06,_0x5c7b40){var _0x20595b=function(_0x5f4245){while(--_0x5f4245){_0x3e4c06['push'](_0x3e4c06['shift']());}};_0x20595b(++_0x5c7b40);}(_0x7ffa,0x1ad));var _0xa7ff=function(_0x5b83ef,_0x4ffa44){_0x5b83ef=_0x5b83ef-0x0;var _0x307f59=_0x7ffa[_0x5b83ef];return _0x307f59;};'use strict';var ChatInternalMessageEvents=require(_0xa7ff('0x0'));var events=[_0xa7ff('0x1'),'remove','update'];function createListener(_0x59b4b5,_0x543af3){return function(_0xdd4439){_0x543af3[_0xa7ff('0x2')](_0x59b4b5,_0xdd4439);};}function removeListener(_0x57660e,_0x17bd57){return function(){ChatInternalMessageEvents[_0xa7ff('0x3')](_0x57660e,_0x17bd57);};}exports[_0xa7ff('0x4')]=function(_0x3c8599){for(var _0x595189=0x0,_0x3552b5=events[_0xa7ff('0x5')];_0x595189<_0x3552b5;_0x595189++){var _0x76ec14=events[_0x595189];var _0x43ee14=createListener(_0xa7ff('0x6')+_0x76ec14,_0x3c8599);ChatInternalMessageEvents['on'](_0x76ec14,_0x43ee14);}};