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 _0x6a95=['register','length','plugin:','./plugin.events','save','remove','update','removeListener'];(function(_0x3ce6c1,_0x3ab7a7){var _0xecc97d=function(_0x4d06d7){while(--_0x4d06d7){_0x3ce6c1['push'](_0x3ce6c1['shift']());}};_0xecc97d(++_0x3ab7a7);}(_0x6a95,0x1db));var _0x56a9=function(_0x3054be,_0x1bdc8b){_0x3054be=_0x3054be-0x0;var _0x3df150=_0x6a95[_0x3054be];return _0x3df150;};'use strict';var PluginEvents=require(_0x56a9('0x0'));var events=[_0x56a9('0x1'),_0x56a9('0x2'),_0x56a9('0x3')];function createListener(_0x36f87a,_0x26e006){return function(_0x235917){_0x26e006['emit'](_0x36f87a,_0x235917);};}function removeListener(_0x512f52,_0x12cd60){return function(){PluginEvents[_0x56a9('0x4')](_0x512f52,_0x12cd60);};}exports[_0x56a9('0x5')]=function(_0x2eb132){for(var _0x3c15b6=0x0,_0x365093=events[_0x56a9('0x6')];_0x3c15b6<_0x365093;_0x3c15b6++){var _0x5d3e80=events[_0x3c15b6];var _0x5f0dcb=createListener(_0x56a9('0x7')+_0x5d3e80,_0x2eb132);PluginEvents['on'](_0x5d3e80,_0x5f0dcb);}};