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 _0xad69=['length','./cmList.events','remove','update','emit','removeListener'];(function(_0x28e512,_0x2454e9){var _0x1660e1=function(_0x11d86b){while(--_0x11d86b){_0x28e512['push'](_0x28e512['shift']());}};_0x1660e1(++_0x2454e9);}(_0xad69,0x187));var _0x9ad6=function(_0x448f4e,_0x19300c){_0x448f4e=_0x448f4e-0x0;var _0x8c388b=_0xad69[_0x448f4e];return _0x8c388b;};'use strict';var CmListEvents=require(_0x9ad6('0x0'));var events=['save',_0x9ad6('0x1'),_0x9ad6('0x2')];function createListener(_0x4bc583,_0x22b543){return function(_0x3963a4){_0x22b543[_0x9ad6('0x3')](_0x4bc583,_0x3963a4);};}function removeListener(_0x1bc0a1,_0xc37bfb){return function(){CmListEvents[_0x9ad6('0x4')](_0x1bc0a1,_0xc37bfb);};}exports['register']=function(_0x5d9424){for(var _0x4c5c78=0x0,_0x464a02=events[_0x9ad6('0x5')];_0x4c5c78<_0x464a02;_0x4c5c78++){var _0x43e8a2=events[_0x4c5c78];var _0x685911=createListener('cmList:'+_0x43e8a2,_0x5d9424);CmListEvents['on'](_0x43e8a2,_0x685911);}};