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 _0x2ceb=['length','chatGroup:','./chatGroup.events','remove','update','removeListener'];(function(_0x2e4d1f,_0x13885c){var _0x3da68c=function(_0x537c9b){while(--_0x537c9b){_0x2e4d1f['push'](_0x2e4d1f['shift']());}};_0x3da68c(++_0x13885c);}(_0x2ceb,0x1b8));var _0xb2ce=function(_0x4f7ad1,_0x25a006){_0x4f7ad1=_0x4f7ad1-0x0;var _0x2b84e1=_0x2ceb[_0x4f7ad1];return _0x2b84e1;};'use strict';var ChatGroupEvents=require(_0xb2ce('0x0'));var events=['save',_0xb2ce('0x1'),_0xb2ce('0x2')];function createListener(_0x42c03e,_0x5e183d){return function(_0x5b9011){_0x5e183d['emit'](_0x42c03e,_0x5b9011);};}function removeListener(_0x395ad9,_0x3029eb){return function(){ChatGroupEvents[_0xb2ce('0x3')](_0x395ad9,_0x3029eb);};}exports['register']=function(_0x43f144){for(var _0x460a9e=0x0,_0xc7e79b=events[_0xb2ce('0x4')];_0x460a9e<_0xc7e79b;_0x460a9e++){var _0x1e7d9a=events[_0x460a9e];var _0x521996=createListener(_0xb2ce('0x5')+_0x1e7d9a,_0x43f144);ChatGroupEvents['on'](_0x1e7d9a,_0x521996);}};