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 _0xa4dc=['register','cmList:','./cmList.events','save','emit','removeListener'];(function(_0x365b14,_0x4161a1){var _0x34f9d2=function(_0x407810){while(--_0x407810){_0x365b14['push'](_0x365b14['shift']());}};_0x34f9d2(++_0x4161a1);}(_0xa4dc,0x16a));var _0xca4d=function(_0x5d6456,_0x58ecc7){_0x5d6456=_0x5d6456-0x0;var _0x4d66c1=_0xa4dc[_0x5d6456];return _0x4d66c1;};'use strict';var CmListEvents=require(_0xca4d('0x0'));var events=[_0xca4d('0x1'),'remove','update'];function createListener(_0x3e9b62,_0x3e51a4){return function(_0xf35655){_0x3e51a4[_0xca4d('0x2')](_0x3e9b62,_0xf35655);};}function removeListener(_0x22d0cf,_0x504f4a){return function(){CmListEvents[_0xca4d('0x3')](_0x22d0cf,_0x504f4a);};}exports[_0xca4d('0x4')]=function(_0x1b60f4){for(var _0x51470b=0x0,_0x299f58=events['length'];_0x51470b<_0x299f58;_0x51470b++){var _0x35b21a=events[_0x51470b];var _0x2fa52a=createListener(_0xca4d('0x5')+_0x35b21a,_0x1b60f4);CmListEvents['on'](_0x35b21a,_0x2fa52a);}};