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 _0xdb74=['register','length','save','remove'];(function(_0x2d414e,_0x4b72be){var _0x1471ab=function(_0x447238){while(--_0x447238){_0x2d414e['push'](_0x2d414e['shift']());}};_0x1471ab(++_0x4b72be);}(_0xdb74,0x7e));var _0x4db7=function(_0x42245d,_0x51758f){_0x42245d=_0x42245d-0x0;var _0x4b211a=_0xdb74[_0x42245d];return _0x4b211a;};'use strict';var PluginEvents=require('./plugin.events');var events=[_0x4db7('0x0'),_0x4db7('0x1'),'update'];function createListener(_0x49fed0,_0x3d72b3){return function(_0xcd826){_0x3d72b3['emit'](_0x49fed0,_0xcd826);};}function removeListener(_0xfe5933,_0x552f15){return function(){PluginEvents['removeListener'](_0xfe5933,_0x552f15);};}exports[_0x4db7('0x2')]=function(_0x4e5ec6){for(var _0xc38e48=0x0,_0x328389=events[_0x4db7('0x3')];_0xc38e48<_0x328389;_0xc38e48++){var _0x4d3abd=events[_0xc38e48];var _0x519da6=createListener('plugin:'+_0x4d3abd,_0x4e5ec6);PluginEvents['on'](_0x4d3abd,_0x519da6);}};