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 _0xe39c=['register','length','plugin:','./plugin.events','save','update','emit','removeListener'];(function(_0x321bb2,_0x202794){var _0x9c12ed=function(_0x263dd3){while(--_0x263dd3){_0x321bb2['push'](_0x321bb2['shift']());}};_0x9c12ed(++_0x202794);}(_0xe39c,0x143));var _0xce39=function(_0x1d647d,_0x197452){_0x1d647d=_0x1d647d-0x0;var _0x4454d4=_0xe39c[_0x1d647d];return _0x4454d4;};'use strict';var PluginEvents=require(_0xce39('0x0'));var events=[_0xce39('0x1'),'remove',_0xce39('0x2')];function createListener(_0x3c9fd2,_0x16e83b){return function(_0x1161e8){_0x16e83b[_0xce39('0x3')](_0x3c9fd2,_0x1161e8);};}function removeListener(_0x4851cb,_0x2e9358){return function(){PluginEvents[_0xce39('0x4')](_0x4851cb,_0x2e9358);};}exports[_0xce39('0x5')]=function(_0x201fba){for(var _0x119794=0x0,_0x15c1ef=events[_0xce39('0x6')];_0x119794<_0x15c1ef;_0x119794++){var _0x4d59f6=events[_0x119794];var _0x2f818c=createListener(_0xce39('0x7')+_0x4d59f6,_0x201fba);PluginEvents['on'](_0x4d59f6,_0x2f818c);}};