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 _0x2b84=['register','length','plugin:','./plugin.events','save','update','emit'];(function(_0x457c96,_0x13785c){var _0x4e5ebc=function(_0x2fddc2){while(--_0x2fddc2){_0x457c96['push'](_0x457c96['shift']());}};_0x4e5ebc(++_0x13785c);}(_0x2b84,0x1ed));var _0x42b8=function(_0xae7c2f,_0xf31e04){_0xae7c2f=_0xae7c2f-0x0;var _0x5d7001=_0x2b84[_0xae7c2f];return _0x5d7001;};'use strict';var PluginEvents=require(_0x42b8('0x0'));var events=[_0x42b8('0x1'),'remove',_0x42b8('0x2')];function createListener(_0x2d23f9,_0xc3642b){return function(_0x5e22a3){_0xc3642b[_0x42b8('0x3')](_0x2d23f9,_0x5e22a3);};}function removeListener(_0x5630ae,_0x365c8c){return function(){PluginEvents['removeListener'](_0x5630ae,_0x365c8c);};}exports[_0x42b8('0x4')]=function(_0xb151dc){for(var _0x4d0fe0=0x0,_0x4a040d=events[_0x42b8('0x5')];_0x4d0fe0<_0x4a040d;_0x4d0fe0++){var _0x23459e=events[_0x4d0fe0];var _0x1c6323=createListener(_0x42b8('0x6')+_0x23459e,_0xb151dc);PluginEvents['on'](_0x23459e,_0x1c6323);}};