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 _0x7d55=['emit','removeListener','register','length','./cmList.events','save','remove','update'];(function(_0x593564,_0x43583f){var _0x211a89=function(_0x40afd6){while(--_0x40afd6){_0x593564['push'](_0x593564['shift']());}};_0x211a89(++_0x43583f);}(_0x7d55,0x1bc));var _0x57d5=function(_0x1acd29,_0x202f49){_0x1acd29=_0x1acd29-0x0;var _0x1dfa23=_0x7d55[_0x1acd29];return _0x1dfa23;};'use strict';var CmListEvents=require(_0x57d5('0x0'));var events=[_0x57d5('0x1'),_0x57d5('0x2'),_0x57d5('0x3')];function createListener(_0x517d62,_0x541e22){return function(_0x3ce441){_0x541e22[_0x57d5('0x4')](_0x517d62,_0x3ce441);};}function removeListener(_0x2b6dc5,_0x48b5aa){return function(){CmListEvents[_0x57d5('0x5')](_0x2b6dc5,_0x48b5aa);};}exports[_0x57d5('0x6')]=function(_0x15c349){for(var _0x30fcfe=0x0,_0x4393ed=events[_0x57d5('0x7')];_0x30fcfe<_0x4393ed;_0x30fcfe++){var _0x599ec5=events[_0x30fcfe];var _0x50bc50=createListener('cmList:'+_0x599ec5,_0x15c349);CmListEvents['on'](_0x599ec5,_0x50bc50);}};