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 _0x6b5f=['save','update','emit','removeListener','plugin:','./plugin.events'];(function(_0x1927dc,_0x235225){var _0x4882dc=function(_0x419205){while(--_0x419205){_0x1927dc['push'](_0x1927dc['shift']());}};_0x4882dc(++_0x235225);}(_0x6b5f,0x119));var _0xf6b5=function(_0x10620d,_0x2d68a3){_0x10620d=_0x10620d-0x0;var _0x27123f=_0x6b5f[_0x10620d];return _0x27123f;};'use strict';var PluginEvents=require(_0xf6b5('0x0'));var events=[_0xf6b5('0x1'),'remove',_0xf6b5('0x2')];function createListener(_0x2192c2,_0x501819){return function(_0x4b6b0c){_0x501819[_0xf6b5('0x3')](_0x2192c2,_0x4b6b0c);};}function removeListener(_0x25d29e,_0x353fd3){return function(){PluginEvents[_0xf6b5('0x4')](_0x25d29e,_0x353fd3);};}exports['register']=function(_0x315de7){for(var _0x1371d4=0x0,_0x3090e4=events['length'];_0x1371d4<_0x3090e4;_0x1371d4++){var _0x44993e=events[_0x1371d4];var _0x4ab297=createListener(_0xf6b5('0x5')+_0x44993e,_0x315de7);PluginEvents['on'](_0x44993e,_0x4ab297);}};