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 _0x782e=['removeListener','register','length','plugin:','./plugin.events','save','remove','emit'];(function(_0x439d75,_0x79c7ff){var _0x483654=function(_0x450504){while(--_0x450504){_0x439d75['push'](_0x439d75['shift']());}};_0x483654(++_0x79c7ff);}(_0x782e,0x1d4));var _0xe782=function(_0x406c2,_0x3ff9ce){_0x406c2=_0x406c2-0x0;var _0x446f5a=_0x782e[_0x406c2];return _0x446f5a;};'use strict';var PluginEvents=require(_0xe782('0x0'));var events=[_0xe782('0x1'),_0xe782('0x2'),'update'];function createListener(_0x500c71,_0x38802e){return function(_0x13e20d){_0x38802e[_0xe782('0x3')](_0x500c71,_0x13e20d);};}function removeListener(_0x35540c,_0x357e69){return function(){PluginEvents[_0xe782('0x4')](_0x35540c,_0x357e69);};}exports[_0xe782('0x5')]=function(_0x2183d8){for(var _0x2f9f5d=0x0,_0x286374=events[_0xe782('0x6')];_0x2f9f5d<_0x286374;_0x2f9f5d++){var _0x831385=events[_0x2f9f5d];var _0x383667=createListener(_0xe782('0x7')+_0x831385,_0x2183d8);PluginEvents['on'](_0x831385,_0x383667);}};