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 _0x74bd=['update','removeListener','register','length','./plugin.events','save','remove'];(function(_0x249d49,_0x5008df){var _0x2abd74=function(_0x3ffa4d){while(--_0x3ffa4d){_0x249d49['push'](_0x249d49['shift']());}};_0x2abd74(++_0x5008df);}(_0x74bd,0xe4));var _0xd74b=function(_0x1d04b5,_0x30792c){_0x1d04b5=_0x1d04b5-0x0;var _0x161342=_0x74bd[_0x1d04b5];return _0x161342;};'use strict';var PluginEvents=require(_0xd74b('0x0'));var events=[_0xd74b('0x1'),_0xd74b('0x2'),_0xd74b('0x3')];function createListener(_0x1c01ad,_0x2ff4ef){return function(_0x52e475){_0x2ff4ef['emit'](_0x1c01ad,_0x52e475);};}function removeListener(_0x4a660a,_0x3fcd1e){return function(){PluginEvents[_0xd74b('0x4')](_0x4a660a,_0x3fcd1e);};}exports[_0xd74b('0x5')]=function(_0x470c7e){for(var _0x386672=0x0,_0x23e19e=events[_0xd74b('0x6')];_0x386672<_0x23e19e;_0x386672++){var _0x5580b5=events[_0x386672];var _0x44848b=createListener('plugin:'+_0x5580b5,_0x470c7e);PluginEvents['on'](_0x5580b5,_0x44848b);}};