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 _0xb4fd=['remove','update','emit','removeListener','register','length','plugin:','./plugin.events','save'];(function(_0xca04ff,_0xcb449f){var _0x6b547=function(_0xc91e4b){while(--_0xc91e4b){_0xca04ff['push'](_0xca04ff['shift']());}};_0x6b547(++_0xcb449f);}(_0xb4fd,0x1ae));var _0xdb4f=function(_0x3b51fb,_0x27ea62){_0x3b51fb=_0x3b51fb-0x0;var _0x2d08b5=_0xb4fd[_0x3b51fb];return _0x2d08b5;};'use strict';var PluginEvents=require(_0xdb4f('0x0'));var events=[_0xdb4f('0x1'),_0xdb4f('0x2'),_0xdb4f('0x3')];function createListener(_0x164a44,_0x3ad3f4){return function(_0x25fe21){_0x3ad3f4[_0xdb4f('0x4')](_0x164a44,_0x25fe21);};}function removeListener(_0x114a34,_0xc7c62d){return function(){PluginEvents[_0xdb4f('0x5')](_0x114a34,_0xc7c62d);};}exports[_0xdb4f('0x6')]=function(_0x29d010){for(var _0x1e638f=0x0,_0x4dea66=events[_0xdb4f('0x7')];_0x1e638f<_0x4dea66;_0x1e638f++){var _0x51d466=events[_0x1e638f];var _0x64c059=createListener(_0xdb4f('0x8')+_0x51d466,_0x29d010);PluginEvents['on'](_0x51d466,_0x64c059);}};