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 _0x9e16=['register','length','cmList:','./cmList.events','save','remove','update','removeListener'];(function(_0x31503f,_0x597336){var _0x335d0f=function(_0x363727){while(--_0x363727){_0x31503f['push'](_0x31503f['shift']());}};_0x335d0f(++_0x597336);}(_0x9e16,0x19b));var _0x69e1=function(_0x2bfd98,_0x1423a8){_0x2bfd98=_0x2bfd98-0x0;var _0x58d829=_0x9e16[_0x2bfd98];return _0x58d829;};'use strict';var CmListEvents=require(_0x69e1('0x0'));var events=[_0x69e1('0x1'),_0x69e1('0x2'),_0x69e1('0x3')];function createListener(_0x1f98a3,_0x59b36c){return function(_0x479f38){_0x59b36c['emit'](_0x1f98a3,_0x479f38);};}function removeListener(_0x43c8cd,_0x54644a){return function(){CmListEvents[_0x69e1('0x4')](_0x43c8cd,_0x54644a);};}exports[_0x69e1('0x5')]=function(_0x33f6ac){for(var _0x48c2c1=0x0,_0x472f65=events[_0x69e1('0x6')];_0x48c2c1<_0x472f65;_0x48c2c1++){var _0x2410be=events[_0x48c2c1];var _0x1c27da=createListener(_0x69e1('0x7')+_0x2410be,_0x33f6ac);CmListEvents['on'](_0x2410be,_0x1c27da);}};