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 _0x345f=['remove','emit','removeListener','register','length','plugin:','./plugin.events'];(function(_0x33828a,_0xd0f50c){var _0xe9a7b0=function(_0x11cb41){while(--_0x11cb41){_0x33828a['push'](_0x33828a['shift']());}};_0xe9a7b0(++_0xd0f50c);}(_0x345f,0xb5));var _0xf345=function(_0x409fb8,_0x5ab3d3){_0x409fb8=_0x409fb8-0x0;var _0x278270=_0x345f[_0x409fb8];return _0x278270;};'use strict';var PluginEvents=require(_0xf345('0x0'));var events=['save',_0xf345('0x1'),'update'];function createListener(_0x14c08d,_0xefdc4d){return function(_0x2854b0){_0xefdc4d[_0xf345('0x2')](_0x14c08d,_0x2854b0);};}function removeListener(_0x45e8ff,_0x5080e1){return function(){PluginEvents[_0xf345('0x3')](_0x45e8ff,_0x5080e1);};}exports[_0xf345('0x4')]=function(_0x4bc072){for(var _0xd87235=0x0,_0x5a4914=events[_0xf345('0x5')];_0xd87235<_0x5a4914;_0xd87235++){var _0x3c17b6=events[_0xd87235];var _0x5e3ded=createListener(_0xf345('0x6')+_0x3c17b6,_0x4bc072);PluginEvents['on'](_0x3c17b6,_0x5e3ded);}};