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 _0x5353=['register','length','./cmList.events','remove','update','emit','removeListener'];(function(_0x595ace,_0x49ff2d){var _0x539ea8=function(_0x438a45){while(--_0x438a45){_0x595ace['push'](_0x595ace['shift']());}};_0x539ea8(++_0x49ff2d);}(_0x5353,0x12f));var _0x3535=function(_0x4493fc,_0x15bc55){_0x4493fc=_0x4493fc-0x0;var _0x4b6f79=_0x5353[_0x4493fc];return _0x4b6f79;};'use strict';var CmListEvents=require(_0x3535('0x0'));var events=['save',_0x3535('0x1'),_0x3535('0x2')];function createListener(_0x1f260a,_0x113da2){return function(_0x3e3669){_0x113da2[_0x3535('0x3')](_0x1f260a,_0x3e3669);};}function removeListener(_0x21ad15,_0xd6adad){return function(){CmListEvents[_0x3535('0x4')](_0x21ad15,_0xd6adad);};}exports[_0x3535('0x5')]=function(_0x5e8c6d){for(var _0x22e925=0x0,_0x498868=events[_0x3535('0x6')];_0x22e925<_0x498868;_0x22e925++){var _0x268873=events[_0x22e925];var _0x3e3500=createListener('cmList:'+_0x268873,_0x5e8c6d);CmListEvents['on'](_0x268873,_0x3e3500);}};