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 _0xbef6=['save','remove','update','emit','removeListener','register','length','cmList:'];(function(_0x4cf2f3,_0x3b2c43){var _0x4e747d=function(_0x151c93){while(--_0x151c93){_0x4cf2f3['push'](_0x4cf2f3['shift']());}};_0x4e747d(++_0x3b2c43);}(_0xbef6,0x1c8));var _0x6bef=function(_0xe1a963,_0x4cb5c0){_0xe1a963=_0xe1a963-0x0;var _0x21de97=_0xbef6[_0xe1a963];return _0x21de97;};'use strict';var CmListEvents=require('./cmList.events');var events=[_0x6bef('0x0'),_0x6bef('0x1'),_0x6bef('0x2')];function createListener(_0x561fe4,_0x46a9f3){return function(_0x2b5eaf){_0x46a9f3[_0x6bef('0x3')](_0x561fe4,_0x2b5eaf);};}function removeListener(_0x50be05,_0x20bc1d){return function(){CmListEvents[_0x6bef('0x4')](_0x50be05,_0x20bc1d);};}exports[_0x6bef('0x5')]=function(_0x3399c0){for(var _0x3f902b=0x0,_0x4e17bc=events[_0x6bef('0x6')];_0x3f902b<_0x4e17bc;_0x3f902b++){var _0x89035b=events[_0x3f902b];var _0x468f6b=createListener(_0x6bef('0x7')+_0x89035b,_0x3399c0);CmListEvents['on'](_0x89035b,_0x468f6b);}};