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 _0x760e=['save','remove','update','length','./plugin.events'];(function(_0x3d65ea,_0x1bbc0c){var _0x238032=function(_0x254437){while(--_0x254437){_0x3d65ea['push'](_0x3d65ea['shift']());}};_0x238032(++_0x1bbc0c);}(_0x760e,0x1a3));var _0xe760=function(_0x4994e8,_0x28d57b){_0x4994e8=_0x4994e8-0x0;var _0x4b44b7=_0x760e[_0x4994e8];return _0x4b44b7;};'use strict';var PluginEvents=require(_0xe760('0x0'));var events=[_0xe760('0x1'),_0xe760('0x2'),_0xe760('0x3')];function createListener(_0x5c829a,_0x179c44){return function(_0x358047){_0x179c44['emit'](_0x5c829a,_0x358047);};}function removeListener(_0x3f51f4,_0x155caf){return function(){PluginEvents['removeListener'](_0x3f51f4,_0x155caf);};}exports['register']=function(_0x4b029e){for(var _0x5aaa04=0x0,_0x38003d=events[_0xe760('0x4')];_0x5aaa04<_0x38003d;_0x5aaa04++){var _0x35c65e=events[_0x5aaa04];var _0x398709=createListener('plugin:'+_0x35c65e,_0x4b029e);PluginEvents['on'](_0x35c65e,_0x398709);}};