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 _0x9bed=['emit','removeListener','register','length','chatInternalMessage:','./chatInternalMessage.events','save','remove'];(function(_0x1a36a5,_0x746928){var _0x746243=function(_0x481966){while(--_0x481966){_0x1a36a5['push'](_0x1a36a5['shift']());}};_0x746243(++_0x746928);}(_0x9bed,0x95));var _0xd9be=function(_0x395d2d,_0x5a73bd){_0x395d2d=_0x395d2d-0x0;var _0x47a846=_0x9bed[_0x395d2d];return _0x47a846;};'use strict';var ChatInternalMessageEvents=require(_0xd9be('0x0'));var events=[_0xd9be('0x1'),_0xd9be('0x2'),'update'];function createListener(_0x53defc,_0x474f6b){return function(_0x1b42fa){_0x474f6b[_0xd9be('0x3')](_0x53defc,_0x1b42fa);};}function removeListener(_0x3f6e87,_0x2ddf80){return function(){ChatInternalMessageEvents[_0xd9be('0x4')](_0x3f6e87,_0x2ddf80);};}exports[_0xd9be('0x5')]=function(_0x3bf47d){for(var _0x52fd79=0x0,_0x1bc773=events[_0xd9be('0x6')];_0x52fd79<_0x1bc773;_0x52fd79++){var _0x4f6b03=events[_0x52fd79];var _0x2fe782=createListener(_0xd9be('0x7')+_0x4f6b03,_0x3bf47d);ChatInternalMessageEvents['on'](_0x4f6b03,_0x2fe782);}};