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 _0x9a5a=['emit','removeListener','register','length','./cmList.events','save','remove','update'];(function(_0x168e81,_0x2494e0){var _0x1d493e=function(_0x308e25){while(--_0x308e25){_0x168e81['push'](_0x168e81['shift']());}};_0x1d493e(++_0x2494e0);}(_0x9a5a,0x194));var _0xa9a5=function(_0x4bd7ed,_0x79b4bf){_0x4bd7ed=_0x4bd7ed-0x0;var _0x1dc9eb=_0x9a5a[_0x4bd7ed];return _0x1dc9eb;};'use strict';var CmListEvents=require(_0xa9a5('0x0'));var events=[_0xa9a5('0x1'),_0xa9a5('0x2'),_0xa9a5('0x3')];function createListener(_0x198d2a,_0x500287){return function(_0x28e2b3){_0x500287[_0xa9a5('0x4')](_0x198d2a,_0x28e2b3);};}function removeListener(_0x230710,_0x1080a9){return function(){CmListEvents[_0xa9a5('0x5')](_0x230710,_0x1080a9);};}exports[_0xa9a5('0x6')]=function(_0x4a73f4){for(var _0xb0ccd9=0x0,_0x37e93b=events[_0xa9a5('0x7')];_0xb0ccd9<_0x37e93b;_0xb0ccd9++){var _0x1eafa6=events[_0xb0ccd9];var _0x24e1bd=createListener('cmList:'+_0x1eafa6,_0x4a73f4);CmListEvents['on'](_0x1eafa6,_0x24e1bd);}};