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 _0xfee0=['remove','update','emit','removeListener','plugin:','./plugin.events','save'];(function(_0x419ffd,_0x10bdfe){var _0xb0b19d=function(_0x335815){while(--_0x335815){_0x419ffd['push'](_0x419ffd['shift']());}};_0xb0b19d(++_0x10bdfe);}(_0xfee0,0x1da));var _0x0fee=function(_0x1e3c02,_0x5c07a2){_0x1e3c02=_0x1e3c02-0x0;var _0x4d26d7=_0xfee0[_0x1e3c02];return _0x4d26d7;};'use strict';var PluginEvents=require(_0x0fee('0x0'));var events=[_0x0fee('0x1'),_0x0fee('0x2'),_0x0fee('0x3')];function createListener(_0x28b37a,_0x104b1e){return function(_0x124afe){_0x104b1e[_0x0fee('0x4')](_0x28b37a,_0x124afe);};}function removeListener(_0x57094f,_0x50a7df){return function(){PluginEvents[_0x0fee('0x5')](_0x57094f,_0x50a7df);};}exports['register']=function(_0x5299a5){for(var _0x4d1189=0x0,_0x261f37=events['length'];_0x4d1189<_0x261f37;_0x4d1189++){var _0x190073=events[_0x4d1189];var _0x4b74dc=createListener(_0x0fee('0x6')+_0x190073,_0x5299a5);PluginEvents['on'](_0x190073,_0x4b74dc);}};