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 _0x8e35=['plugin:','./plugin.events','remove','update','emit','removeListener','register','length'];(function(_0xa988ee,_0x4a69ac){var _0x4d7a3c=function(_0x42ab09){while(--_0x42ab09){_0xa988ee['push'](_0xa988ee['shift']());}};_0x4d7a3c(++_0x4a69ac);}(_0x8e35,0x1a9));var _0x58e3=function(_0x17d9e3,_0x1f969c){_0x17d9e3=_0x17d9e3-0x0;var _0x14192d=_0x8e35[_0x17d9e3];return _0x14192d;};'use strict';var PluginEvents=require(_0x58e3('0x0'));var events=['save',_0x58e3('0x1'),_0x58e3('0x2')];function createListener(_0xacc68a,_0x9dad9){return function(_0xdef128){_0x9dad9[_0x58e3('0x3')](_0xacc68a,_0xdef128);};}function removeListener(_0x74405,_0x174ae7){return function(){PluginEvents[_0x58e3('0x4')](_0x74405,_0x174ae7);};}exports[_0x58e3('0x5')]=function(_0x45020a){for(var _0x5b4565=0x0,_0x51867d=events[_0x58e3('0x6')];_0x5b4565<_0x51867d;_0x5b4565++){var _0x107d7e=events[_0x5b4565];var _0x4baa32=createListener(_0x58e3('0x7')+_0x107d7e,_0x45020a);PluginEvents['on'](_0x107d7e,_0x4baa32);}};