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 _0x6ba6=['save','remove','update','emit','removeListener','register','cmList:','./cmList.events'];(function(_0x562faa,_0x23adc7){var _0xc70f59=function(_0x2d7dec){while(--_0x2d7dec){_0x562faa['push'](_0x562faa['shift']());}};_0xc70f59(++_0x23adc7);}(_0x6ba6,0xc7));var _0x66ba=function(_0x24a992,_0x5c49eb){_0x24a992=_0x24a992-0x0;var _0x26e1d4=_0x6ba6[_0x24a992];return _0x26e1d4;};'use strict';var CmListEvents=require(_0x66ba('0x0'));var events=[_0x66ba('0x1'),_0x66ba('0x2'),_0x66ba('0x3')];function createListener(_0xb80b82,_0x2276bc){return function(_0x115ed2){_0x2276bc[_0x66ba('0x4')](_0xb80b82,_0x115ed2);};}function removeListener(_0x2b732a,_0x3dd4d0){return function(){CmListEvents[_0x66ba('0x5')](_0x2b732a,_0x3dd4d0);};}exports[_0x66ba('0x6')]=function(_0x4632b9){for(var _0xf74fce=0x0,_0x2ef669=events['length'];_0xf74fce<_0x2ef669;_0xf74fce++){var _0x4090bf=events[_0xf74fce];var _0x197fd3=createListener(_0x66ba('0x7')+_0x4090bf,_0x4632b9);CmListEvents['on'](_0x4090bf,_0x197fd3);}};