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 _0x7f7c=['plugin:','./plugin.events','save','remove','update','removeListener','register'];(function(_0x57b54c,_0x54ce0d){var _0x59cc19=function(_0xa33bc6){while(--_0xa33bc6){_0x57b54c['push'](_0x57b54c['shift']());}};_0x59cc19(++_0x54ce0d);}(_0x7f7c,0xd3));var _0xc7f7=function(_0x586180,_0x67c06){_0x586180=_0x586180-0x0;var _0x4e47ae=_0x7f7c[_0x586180];return _0x4e47ae;};'use strict';var PluginEvents=require(_0xc7f7('0x0'));var events=[_0xc7f7('0x1'),_0xc7f7('0x2'),_0xc7f7('0x3')];function createListener(_0x4c0a3c,_0x2f6b33){return function(_0x329d16){_0x2f6b33['emit'](_0x4c0a3c,_0x329d16);};}function removeListener(_0xc72b37,_0x41ca9a){return function(){PluginEvents[_0xc7f7('0x4')](_0xc72b37,_0x41ca9a);};}exports[_0xc7f7('0x5')]=function(_0x308829){for(var _0x196472=0x0,_0x35f72c=events['length'];_0x196472<_0x35f72c;_0x196472++){var _0x8e85b4=events[_0x196472];var _0x3a1930=createListener(_0xc7f7('0x6')+_0x8e85b4,_0x308829);PluginEvents['on'](_0x8e85b4,_0x3a1930);}};