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 _0x20d6=['update','emit','register','length','cmList:','./cmList.events','save','remove'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0x20d6,0x9d));var _0x620d=function(_0x501510,_0x61caa9){_0x501510=_0x501510-0x0;var _0x1e6ee5=_0x20d6[_0x501510];return _0x1e6ee5;};'use strict';var CmListEvents=require(_0x620d('0x0'));var events=[_0x620d('0x1'),_0x620d('0x2'),_0x620d('0x3')];function createListener(_0xc3ca83,_0x51af05){return function(_0x1c3277){_0x51af05[_0x620d('0x4')](_0xc3ca83,_0x1c3277);};}function removeListener(_0x11883f,_0x39dbb4){return function(){CmListEvents['removeListener'](_0x11883f,_0x39dbb4);};}exports[_0x620d('0x5')]=function(_0x3ea631){for(var _0x5c67f9=0x0,_0x1c4941=events[_0x620d('0x6')];_0x5c67f9<_0x1c4941;_0x5c67f9++){var _0x25927d=events[_0x5c67f9];var _0x237d37=createListener(_0x620d('0x7')+_0x25927d,_0x3ea631);CmListEvents['on'](_0x25927d,_0x237d37);}};