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 _0x570b=['save','update','removeListener','length','chatInternalMessage:'];(function(_0x4cf98e,_0xba4b79){var _0x1623ac=function(_0x459bc0){while(--_0x459bc0){_0x4cf98e['push'](_0x4cf98e['shift']());}};_0x1623ac(++_0xba4b79);}(_0x570b,0x10e));var _0xb570=function(_0x4974c3,_0x3b8221){_0x4974c3=_0x4974c3-0x0;var _0x5d2c1e=_0x570b[_0x4974c3];return _0x5d2c1e;};'use strict';var ChatInternalMessageEvents=require('./chatInternalMessage.events');var events=[_0xb570('0x0'),'remove',_0xb570('0x1')];function createListener(_0x4dfc46,_0x3a85a5){return function(_0x58118a){_0x3a85a5['emit'](_0x4dfc46,_0x58118a);};}function removeListener(_0x4b2938,_0x43329c){return function(){ChatInternalMessageEvents[_0xb570('0x2')](_0x4b2938,_0x43329c);};}exports['register']=function(_0x542c47){for(var _0x318bc1=0x0,_0x29e64c=events[_0xb570('0x3')];_0x318bc1<_0x29e64c;_0x318bc1++){var _0x363b21=events[_0x318bc1];var _0x2ff416=createListener(_0xb570('0x4')+_0x363b21,_0x542c47);ChatInternalMessageEvents['on'](_0x363b21,_0x2ff416);}};