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 _0xa6ed=['update','emit','removeListener','length','plugin:','./plugin.events','save'];(function(_0x3e478c,_0x152670){var _0x29ef89=function(_0x3d0d77){while(--_0x3d0d77){_0x3e478c['push'](_0x3e478c['shift']());}};_0x29ef89(++_0x152670);}(_0xa6ed,0xd7));var _0xda6e=function(_0x27af45,_0x1b57aa){_0x27af45=_0x27af45-0x0;var _0x18df21=_0xa6ed[_0x27af45];return _0x18df21;};'use strict';var PluginEvents=require(_0xda6e('0x0'));var events=[_0xda6e('0x1'),'remove',_0xda6e('0x2')];function createListener(_0xbc6833,_0x43d1d4){return function(_0x38ca55){_0x43d1d4[_0xda6e('0x3')](_0xbc6833,_0x38ca55);};}function removeListener(_0x3c59eb,_0x57512a){return function(){PluginEvents[_0xda6e('0x4')](_0x3c59eb,_0x57512a);};}exports['register']=function(_0x3d8d3e){for(var _0x30a60a=0x0,_0x530e50=events[_0xda6e('0x5')];_0x30a60a<_0x530e50;_0x30a60a++){var _0x5a064d=events[_0x30a60a];var _0x340fa3=createListener(_0xda6e('0x6')+_0x5a064d,_0x3d8d3e);PluginEvents['on'](_0x5a064d,_0x340fa3);}};