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 _0xcb78=['update','emit','length','cmList:','./cmList.events','save','remove'];(function(_0x323956,_0x5b9349){var _0x1618fe=function(_0x7cb016){while(--_0x7cb016){_0x323956['push'](_0x323956['shift']());}};_0x1618fe(++_0x5b9349);}(_0xcb78,0x1bd));var _0x8cb7=function(_0x16e272,_0x5cf8ec){_0x16e272=_0x16e272-0x0;var _0x4cb000=_0xcb78[_0x16e272];return _0x4cb000;};'use strict';var CmListEvents=require(_0x8cb7('0x0'));var events=[_0x8cb7('0x1'),_0x8cb7('0x2'),_0x8cb7('0x3')];function createListener(_0x190a80,_0x3d211f){return function(_0x5a70f8){_0x3d211f[_0x8cb7('0x4')](_0x190a80,_0x5a70f8);};}function removeListener(_0x2fb5c5,_0x45c69b){return function(){CmListEvents['removeListener'](_0x2fb5c5,_0x45c69b);};}exports['register']=function(_0x1eb13c){for(var _0x27ccc7=0x0,_0x2e5f9c=events[_0x8cb7('0x5')];_0x27ccc7<_0x2e5f9c;_0x27ccc7++){var _0x5e958a=events[_0x27ccc7];var _0x11f00a=createListener(_0x8cb7('0x6')+_0x5e958a,_0x1eb13c);CmListEvents['on'](_0x5e958a,_0x11f00a);}};