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 _0xfd17=['./plugin.events','save','remove','emit','register','plugin:'];(function(_0x1616e2,_0x342e3e){var _0x6db66a=function(_0x5e6628){while(--_0x5e6628){_0x1616e2['push'](_0x1616e2['shift']());}};_0x6db66a(++_0x342e3e);}(_0xfd17,0x14a));var _0x7fd1=function(_0x290694,_0x281935){_0x290694=_0x290694-0x0;var _0x5a0f2e=_0xfd17[_0x290694];return _0x5a0f2e;};'use strict';var PluginEvents=require(_0x7fd1('0x0'));var events=[_0x7fd1('0x1'),_0x7fd1('0x2'),'update'];function createListener(_0x409808,_0x7ec61b){return function(_0x582ff4){_0x7ec61b[_0x7fd1('0x3')](_0x409808,_0x582ff4);};}function removeListener(_0x283291,_0x34c7e6){return function(){PluginEvents['removeListener'](_0x283291,_0x34c7e6);};}exports[_0x7fd1('0x4')]=function(_0x1da62d){for(var _0x8bfc5f=0x0,_0x4e7423=events['length'];_0x8bfc5f<_0x4e7423;_0x8bfc5f++){var _0x916b22=events[_0x8bfc5f];var _0x1e1d6f=createListener(_0x7fd1('0x5')+_0x916b22,_0x1da62d);PluginEvents['on'](_0x916b22,_0x1e1d6f);}};