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 _0xf07d=['cmList:','./cmList.events','save','remove','emit','removeListener','register','length'];(function(_0x4de2e8,_0x484c62){var _0x5352eb=function(_0x1c9144){while(--_0x1c9144){_0x4de2e8['push'](_0x4de2e8['shift']());}};_0x5352eb(++_0x484c62);}(_0xf07d,0xe1));var _0xdf07=function(_0x41ea3a,_0x3139aa){_0x41ea3a=_0x41ea3a-0x0;var _0x55ebf1=_0xf07d[_0x41ea3a];return _0x55ebf1;};'use strict';var CmListEvents=require(_0xdf07('0x0'));var events=[_0xdf07('0x1'),_0xdf07('0x2'),'update'];function createListener(_0x15a81c,_0x773249){return function(_0x29b9b3){_0x773249[_0xdf07('0x3')](_0x15a81c,_0x29b9b3);};}function removeListener(_0x906b9d,_0x105c18){return function(){CmListEvents[_0xdf07('0x4')](_0x906b9d,_0x105c18);};}exports[_0xdf07('0x5')]=function(_0x3e9aac){for(var _0xdcfc2d=0x0,_0xd4add1=events[_0xdf07('0x6')];_0xdcfc2d<_0xd4add1;_0xdcfc2d++){var _0x3d4c48=events[_0xdcfc2d];var _0x20c486=createListener(_0xdf07('0x7')+_0x3d4c48,_0x3e9aac);CmListEvents['on'](_0x3d4c48,_0x20c486);}};