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 _0x43a1=['emit','register','length','save','remove'];(function(_0x196ce1,_0x46e836){var _0x360a64=function(_0x3f339f){while(--_0x3f339f){_0x196ce1['push'](_0x196ce1['shift']());}};_0x360a64(++_0x46e836);}(_0x43a1,0x76));var _0x143a=function(_0xbd57fe,_0xc0dda6){_0xbd57fe=_0xbd57fe-0x0;var _0x13c4a5=_0x43a1[_0xbd57fe];return _0x13c4a5;};'use strict';var ChatInternalMessageEvents=require('./chatInternalMessage.events');var events=[_0x143a('0x0'),_0x143a('0x1'),'update'];function createListener(_0xa96100,_0x177408){return function(_0x16124b){_0x177408[_0x143a('0x2')](_0xa96100,_0x16124b);};}function removeListener(_0x22ea04,_0x481b61){return function(){ChatInternalMessageEvents['removeListener'](_0x22ea04,_0x481b61);};}exports[_0x143a('0x3')]=function(_0x1d436d){for(var _0x3fe5ab=0x0,_0x1ef057=events[_0x143a('0x4')];_0x3fe5ab<_0x1ef057;_0x3fe5ab++){var _0x15a3e7=events[_0x3fe5ab];var _0x3945d8=createListener('chatInternalMessage:'+_0x15a3e7,_0x1d436d);ChatInternalMessageEvents['on'](_0x15a3e7,_0x3945d8);}};