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 _0x421f=['./cmList.events','save','remove','update','removeListener','register','length','cmList:'];(function(_0x17d7da,_0x5a0efa){var _0x3f5fea=function(_0xd552ce){while(--_0xd552ce){_0x17d7da['push'](_0x17d7da['shift']());}};_0x3f5fea(++_0x5a0efa);}(_0x421f,0x160));var _0xf421=function(_0x3c27df,_0xc6d32b){_0x3c27df=_0x3c27df-0x0;var _0x56f1f0=_0x421f[_0x3c27df];return _0x56f1f0;};'use strict';var CmListEvents=require(_0xf421('0x0'));var events=[_0xf421('0x1'),_0xf421('0x2'),_0xf421('0x3')];function createListener(_0x1060ab,_0xddf443){return function(_0x4f5951){_0xddf443['emit'](_0x1060ab,_0x4f5951);};}function removeListener(_0x507168,_0xe92454){return function(){CmListEvents[_0xf421('0x4')](_0x507168,_0xe92454);};}exports[_0xf421('0x5')]=function(_0x1daaa4){for(var _0x49c082=0x0,_0x3a2a31=events[_0xf421('0x6')];_0x49c082<_0x3a2a31;_0x49c082++){var _0x2f0299=events[_0x49c082];var _0x1521fa=createListener(_0xf421('0x7')+_0x2f0299,_0x1daaa4);CmListEvents['on'](_0x2f0299,_0x1521fa);}};