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 _0x6dac=['update','emit','removeListener','register','length','cmList:','./cmList.events','save','remove'];(function(_0x543d2f,_0x3b9795){var _0xd4ca00=function(_0x58c861){while(--_0x58c861){_0x543d2f['push'](_0x543d2f['shift']());}};_0xd4ca00(++_0x3b9795);}(_0x6dac,0x16e));var _0xc6da=function(_0x3e4445,_0x3c5a73){_0x3e4445=_0x3e4445-0x0;var _0x41c5b8=_0x6dac[_0x3e4445];return _0x41c5b8;};'use strict';var CmListEvents=require(_0xc6da('0x0'));var events=[_0xc6da('0x1'),_0xc6da('0x2'),_0xc6da('0x3')];function createListener(_0x133ecc,_0x224a52){return function(_0x3391f5){_0x224a52[_0xc6da('0x4')](_0x133ecc,_0x3391f5);};}function removeListener(_0x28663f,_0x338470){return function(){CmListEvents[_0xc6da('0x5')](_0x28663f,_0x338470);};}exports[_0xc6da('0x6')]=function(_0x325f49){for(var _0x5caf49=0x0,_0x1ebd11=events[_0xc6da('0x7')];_0x5caf49<_0x1ebd11;_0x5caf49++){var _0x5a0d8d=events[_0x5caf49];var _0x3047d3=createListener(_0xc6da('0x8')+_0x5a0d8d,_0x325f49);CmListEvents['on'](_0x5a0d8d,_0x3047d3);}};