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 _0x4fd8=['./plugin.events','save','remove','update','removeListener','register','plugin:'];(function(_0x1ff527,_0x54b6d2){var _0x51cc75=function(_0x4168e5){while(--_0x4168e5){_0x1ff527['push'](_0x1ff527['shift']());}};_0x51cc75(++_0x54b6d2);}(_0x4fd8,0x85));var _0x84fd=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x4fd8[_0x3dd15e];return _0x231fd0;};'use strict';var PluginEvents=require(_0x84fd('0x0'));var events=[_0x84fd('0x1'),_0x84fd('0x2'),_0x84fd('0x3')];function createListener(_0x1dc7a9,_0x21b3ae){return function(_0x15be99){_0x21b3ae['emit'](_0x1dc7a9,_0x15be99);};}function removeListener(_0x1db633,_0x32e83c){return function(){PluginEvents[_0x84fd('0x4')](_0x1db633,_0x32e83c);};}exports[_0x84fd('0x5')]=function(_0x3cce60){for(var _0x2fef45=0x0,_0x26f20a=events['length'];_0x2fef45<_0x26f20a;_0x2fef45++){var _0x303235=events[_0x2fef45];var _0x3d7cf2=createListener(_0x84fd('0x6')+_0x303235,_0x3cce60);PluginEvents['on'](_0x303235,_0x3d7cf2);}};