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 _0xc90b=['emit','removeListener','length','cmList:','remove','update'];(function(_0x55a100,_0x4e12de){var _0x1986cb=function(_0x12ea8e){while(--_0x12ea8e){_0x55a100['push'](_0x55a100['shift']());}};_0x1986cb(++_0x4e12de);}(_0xc90b,0x1c0));var _0xbc90=function(_0x3ff817,_0x362d8c){_0x3ff817=_0x3ff817-0x0;var _0x195cff=_0xc90b[_0x3ff817];return _0x195cff;};'use strict';var CmListEvents=require('./cmList.events');var events=['save',_0xbc90('0x0'),_0xbc90('0x1')];function createListener(_0x12583d,_0x108be7){return function(_0x5d9ace){_0x108be7[_0xbc90('0x2')](_0x12583d,_0x5d9ace);};}function removeListener(_0x2d24e0,_0x24829d){return function(){CmListEvents[_0xbc90('0x3')](_0x2d24e0,_0x24829d);};}exports['register']=function(_0x1bd802){for(var _0x458a3b=0x0,_0x4f9856=events[_0xbc90('0x4')];_0x458a3b<_0x4f9856;_0x458a3b++){var _0x5466c4=events[_0x458a3b];var _0x4d9c21=createListener(_0xbc90('0x5')+_0x5466c4,_0x1bd802);CmListEvents['on'](_0x5466c4,_0x4d9c21);}};