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 _0xd2ce=['cmList:','./cmList.events','save','remove','update','emit','removeListener','register','length'];(function(_0x46abbb,_0x262d1e){var _0x11d318=function(_0x235223){while(--_0x235223){_0x46abbb['push'](_0x46abbb['shift']());}};_0x11d318(++_0x262d1e);}(_0xd2ce,0x1ba));var _0xed2c=function(_0x2576d7,_0x167624){_0x2576d7=_0x2576d7-0x0;var _0x16a08c=_0xd2ce[_0x2576d7];return _0x16a08c;};'use strict';var CmListEvents=require(_0xed2c('0x0'));var events=[_0xed2c('0x1'),_0xed2c('0x2'),_0xed2c('0x3')];function createListener(_0x5289cd,_0x118e67){return function(_0x1c49d6){_0x118e67[_0xed2c('0x4')](_0x5289cd,_0x1c49d6);};}function removeListener(_0x1096a4,_0x227a25){return function(){CmListEvents[_0xed2c('0x5')](_0x1096a4,_0x227a25);};}exports[_0xed2c('0x6')]=function(_0x5008f5){for(var _0x59d337=0x0,_0x5c1c9b=events[_0xed2c('0x7')];_0x59d337<_0x5c1c9b;_0x59d337++){var _0x43d138=events[_0x59d337];var _0xd40570=createListener(_0xed2c('0x8')+_0x43d138,_0x5008f5);CmListEvents['on'](_0x43d138,_0xd40570);}};