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 _0x732f=['./cmList.events','save','remove','update','emit','removeListener','register','length','cmList:'];(function(_0x10df11,_0x1cd60b){var _0x51748c=function(_0x40a6a4){while(--_0x40a6a4){_0x10df11['push'](_0x10df11['shift']());}};_0x51748c(++_0x1cd60b);}(_0x732f,0x129));var _0xf732=function(_0x2bbee4,_0x287798){_0x2bbee4=_0x2bbee4-0x0;var _0x209006=_0x732f[_0x2bbee4];return _0x209006;};'use strict';var CmListEvents=require(_0xf732('0x0'));var events=[_0xf732('0x1'),_0xf732('0x2'),_0xf732('0x3')];function createListener(_0x1b2a52,_0x30d28a){return function(_0x30459a){_0x30d28a[_0xf732('0x4')](_0x1b2a52,_0x30459a);};}function removeListener(_0x5dc08e,_0x5e3b01){return function(){CmListEvents[_0xf732('0x5')](_0x5dc08e,_0x5e3b01);};}exports[_0xf732('0x6')]=function(_0x22ff7c){for(var _0x5b0c22=0x0,_0x3494e3=events[_0xf732('0x7')];_0x5b0c22<_0x3494e3;_0x5b0c22++){var _0x5f1412=events[_0x5b0c22];var _0x28939d=createListener(_0xf732('0x8')+_0x5f1412,_0x22ff7c);CmListEvents['on'](_0x5f1412,_0x28939d);}};