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 _0x1c4d=['emit','removeListener','length','save','remove','update'];(function(_0x2fd652,_0x390a27){var _0x2d5a47=function(_0x330d07){while(--_0x330d07){_0x2fd652['push'](_0x2fd652['shift']());}};_0x2d5a47(++_0x390a27);}(_0x1c4d,0x1d7));var _0xd1c4=function(_0x314997,_0x234a37){_0x314997=_0x314997-0x0;var _0x46e9ca=_0x1c4d[_0x314997];return _0x46e9ca;};'use strict';var ChatInternalMessageEvents=require('./chatInternalMessage.events');var events=[_0xd1c4('0x0'),_0xd1c4('0x1'),_0xd1c4('0x2')];function createListener(_0x4f505c,_0xcc8012){return function(_0x3e30ce){_0xcc8012[_0xd1c4('0x3')](_0x4f505c,_0x3e30ce);};}function removeListener(_0x3bbe05,_0x4ca0df){return function(){ChatInternalMessageEvents[_0xd1c4('0x4')](_0x3bbe05,_0x4ca0df);};}exports['register']=function(_0x406eb6){for(var _0x12e793=0x0,_0x41cc76=events[_0xd1c4('0x5')];_0x12e793<_0x41cc76;_0x12e793++){var _0x429dc6=events[_0x12e793];var _0xc9284c=createListener('chatInternalMessage:'+_0x429dc6,_0x406eb6);ChatInternalMessageEvents['on'](_0x429dc6,_0xc9284c);}};