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 _0x7128=['./plugin.events','remove','removeListener'];(function(_0x560448,_0x2c1082){var _0x550276=function(_0x37e949){while(--_0x37e949){_0x560448['push'](_0x560448['shift']());}};_0x550276(++_0x2c1082);}(_0x7128,0x1b9));var _0x8712=function(_0x5cc8b9,_0x20e3c3){_0x5cc8b9=_0x5cc8b9-0x0;var _0x58892e=_0x7128[_0x5cc8b9];return _0x58892e;};'use strict';var PluginEvents=require(_0x8712('0x0'));var events=['save',_0x8712('0x1'),'update'];function createListener(_0x383a91,_0x1a3c56){return function(_0x3efe91){_0x1a3c56['emit'](_0x383a91,_0x3efe91);};}function removeListener(_0x4c8a7c,_0x1783b5){return function(){PluginEvents[_0x8712('0x2')](_0x4c8a7c,_0x1783b5);};}exports['register']=function(_0xf8aed0){for(var _0x4e571b=0x0,_0x446712=events['length'];_0x4e571b<_0x446712;_0x4e571b++){var _0x4f8ee0=events[_0x4e571b];var _0xf4fe76=createListener('plugin:'+_0x4f8ee0,_0xf8aed0);PluginEvents['on'](_0x4f8ee0,_0xf4fe76);}};