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 _0x624c=['register','length','save','remove','update','emit'];(function(_0x418189,_0x92e358){var _0x3bc300=function(_0x4439df){while(--_0x4439df){_0x418189['push'](_0x418189['shift']());}};_0x3bc300(++_0x92e358);}(_0x624c,0x1ee));var _0xc624=function(_0xd9c489,_0x3dfdc3){_0xd9c489=_0xd9c489-0x0;var _0x5504eb=_0x624c[_0xd9c489];return _0x5504eb;};'use strict';var CmListEvents=require('./cmList.events');var events=[_0xc624('0x0'),_0xc624('0x1'),_0xc624('0x2')];function createListener(_0xd30290,_0x297040){return function(_0x547db8){_0x297040[_0xc624('0x3')](_0xd30290,_0x547db8);};}function removeListener(_0x483c73,_0x1e6dbe){return function(){CmListEvents['removeListener'](_0x483c73,_0x1e6dbe);};}exports[_0xc624('0x4')]=function(_0x2d1db7){for(var _0x39759e=0x0,_0x222b60=events[_0xc624('0x5')];_0x39759e<_0x222b60;_0x39759e++){var _0x6cd772=events[_0x39759e];var _0x2ba147=createListener('cmList:'+_0x6cd772,_0x2d1db7);CmListEvents['on'](_0x6cd772,_0x2ba147);}};