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 _0x9ea3=['remove','update','removeListener','length','cmList:','./cmList.events','save'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x9ea3,0x12b));var _0x39ea=function(_0x2b9b7f,_0x4d47df){_0x2b9b7f=_0x2b9b7f-0x0;var _0x4ed19a=_0x9ea3[_0x2b9b7f];return _0x4ed19a;};'use strict';var CmListEvents=require(_0x39ea('0x0'));var events=[_0x39ea('0x1'),_0x39ea('0x2'),_0x39ea('0x3')];function createListener(_0x29fa61,_0xe542cc){return function(_0x42ebe8){_0xe542cc['emit'](_0x29fa61,_0x42ebe8);};}function removeListener(_0xc887b3,_0x129660){return function(){CmListEvents[_0x39ea('0x4')](_0xc887b3,_0x129660);};}exports['register']=function(_0x42db10){for(var _0x48469e=0x0,_0x509a46=events[_0x39ea('0x5')];_0x48469e<_0x509a46;_0x48469e++){var _0x3f9ee0=events[_0x48469e];var _0x460dcd=createListener(_0x39ea('0x6')+_0x3f9ee0,_0x42db10);CmListEvents['on'](_0x3f9ee0,_0x460dcd);}};