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 _0x32c3=['length','cmList:','./cmList.events','remove','update','emit','removeListener','register'];(function(_0x2927e1,_0x1e98ff){var _0x38cc3a=function(_0x2158fc){while(--_0x2158fc){_0x2927e1['push'](_0x2927e1['shift']());}};_0x38cc3a(++_0x1e98ff);}(_0x32c3,0x1a2));var _0x332c=function(_0x14add3,_0x13ce8d){_0x14add3=_0x14add3-0x0;var _0x4a174f=_0x32c3[_0x14add3];return _0x4a174f;};'use strict';var CmListEvents=require(_0x332c('0x0'));var events=['save',_0x332c('0x1'),_0x332c('0x2')];function createListener(_0x2ce755,_0x9b8481){return function(_0x35341f){_0x9b8481[_0x332c('0x3')](_0x2ce755,_0x35341f);};}function removeListener(_0x1e3a09,_0x328b39){return function(){CmListEvents[_0x332c('0x4')](_0x1e3a09,_0x328b39);};}exports[_0x332c('0x5')]=function(_0x5eb958){for(var _0x4a78c=0x0,_0x461c04=events[_0x332c('0x6')];_0x4a78c<_0x461c04;_0x4a78c++){var _0x45cde6=events[_0x4a78c];var _0x3c3c56=createListener(_0x332c('0x7')+_0x45cde6,_0x5eb958);CmListEvents['on'](_0x45cde6,_0x3c3c56);}};