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 _0x4177=['remove','update','emit','length','chatGroup:','./chatGroup.events','save'];(function(_0x177e34,_0x4d0a79){var _0x3776fc=function(_0x314261){while(--_0x314261){_0x177e34['push'](_0x177e34['shift']());}};_0x3776fc(++_0x4d0a79);}(_0x4177,0x15c));var _0x7417=function(_0x401505,_0x54c9d8){_0x401505=_0x401505-0x0;var _0x23f363=_0x4177[_0x401505];return _0x23f363;};'use strict';var ChatGroupEvents=require(_0x7417('0x0'));var events=[_0x7417('0x1'),_0x7417('0x2'),_0x7417('0x3')];function createListener(_0x2b4bac,_0x451677){return function(_0x3be39c){_0x451677[_0x7417('0x4')](_0x2b4bac,_0x3be39c);};}function removeListener(_0x1ec35e,_0x46ba76){return function(){ChatGroupEvents['removeListener'](_0x1ec35e,_0x46ba76);};}exports['register']=function(_0xdfcdc2){for(var _0x36f435=0x0,_0x1de982=events[_0x7417('0x5')];_0x36f435<_0x1de982;_0x36f435++){var _0x4e0ccc=events[_0x36f435];var _0x3a7205=createListener(_0x7417('0x6')+_0x4e0ccc,_0xdfcdc2);ChatGroupEvents['on'](_0x4e0ccc,_0x3a7205);}};