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 _0x07a2=['removeListener','register','length','plugin:','./plugin.events','save','update','emit'];(function(_0x17062e,_0x5b3fb3){var _0x731941=function(_0x32d741){while(--_0x32d741){_0x17062e['push'](_0x17062e['shift']());}};_0x731941(++_0x5b3fb3);}(_0x07a2,0x12c));var _0x207a=function(_0x221a0f,_0x3970f6){_0x221a0f=_0x221a0f-0x0;var _0x30309e=_0x07a2[_0x221a0f];return _0x30309e;};'use strict';var PluginEvents=require(_0x207a('0x0'));var events=[_0x207a('0x1'),'remove',_0x207a('0x2')];function createListener(_0x1e3aab,_0x177b6e){return function(_0x1d20e6){_0x177b6e[_0x207a('0x3')](_0x1e3aab,_0x1d20e6);};}function removeListener(_0x1b6fee,_0xb5ec4f){return function(){PluginEvents[_0x207a('0x4')](_0x1b6fee,_0xb5ec4f);};}exports[_0x207a('0x5')]=function(_0x47dbbf){for(var _0x5b1fa9=0x0,_0x18dddc=events[_0x207a('0x6')];_0x5b1fa9<_0x18dddc;_0x5b1fa9++){var _0x7be81c=events[_0x5b1fa9];var _0x2a0b70=createListener(_0x207a('0x7')+_0x7be81c,_0x47dbbf);PluginEvents['on'](_0x7be81c,_0x2a0b70);}};