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 _0x73ff=['removeListener','dashboard:','./dashboard.events','save','remove','update','emit'];(function(_0x2446ed,_0xa611b9){var _0x3bcb82=function(_0x509b97){while(--_0x509b97){_0x2446ed['push'](_0x2446ed['shift']());}};_0x3bcb82(++_0xa611b9);}(_0x73ff,0x8e));var _0xf73f=function(_0x3fa669,_0x1987fc){_0x3fa669=_0x3fa669-0x0;var _0x367d9e=_0x73ff[_0x3fa669];return _0x367d9e;};'use strict';var DashboardEvents=require(_0xf73f('0x0'));var events=[_0xf73f('0x1'),_0xf73f('0x2'),_0xf73f('0x3')];function createListener(_0x137b75,_0x1aee64){return function(_0x579487){_0x1aee64[_0xf73f('0x4')](_0x137b75,_0x579487);};}function removeListener(_0x3f8c22,_0x140b39){return function(){DashboardEvents[_0xf73f('0x5')](_0x3f8c22,_0x140b39);};}exports['register']=function(_0x123f06){for(var _0x17cf8c=0x0,_0x237e26=events['length'];_0x17cf8c<_0x237e26;_0x17cf8c++){var _0x408440=events[_0x17cf8c];var _0x3558a1=createListener(_0xf73f('0x6')+_0x408440,_0x123f06);DashboardEvents['on'](_0x408440,_0x3558a1);}};