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 _0x029c=['removeListener','register','cmList:','./cmList.events','save','remove','update'];(function(_0x52880b,_0x1da1c8){var _0x18c572=function(_0x4de5f0){while(--_0x4de5f0){_0x52880b['push'](_0x52880b['shift']());}};_0x18c572(++_0x1da1c8);}(_0x029c,0x153));var _0xc029=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x029c[_0x3dd15e];return _0x231fd0;};'use strict';var CmListEvents=require(_0xc029('0x0'));var events=[_0xc029('0x1'),_0xc029('0x2'),_0xc029('0x3')];function createListener(_0x572c29,_0x185755){return function(_0x72a36d){_0x185755['emit'](_0x572c29,_0x72a36d);};}function removeListener(_0x3196c3,_0x2c85c1){return function(){CmListEvents[_0xc029('0x4')](_0x3196c3,_0x2c85c1);};}exports[_0xc029('0x5')]=function(_0x48b55a){for(var _0x9060bb=0x0,_0x4f6ee1=events['length'];_0x9060bb<_0x4f6ee1;_0x9060bb++){var _0x199bb4=events[_0x9060bb];var _0xe9146e=createListener(_0xc029('0x6')+_0x199bb4,_0x48b55a);CmListEvents['on'](_0x199bb4,_0xe9146e);}};