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 _0x1d82=['plugin:','save','remove','update','emit','register','length'];(function(_0x2eb5bc,_0x4634c6){var _0x51c7b1=function(_0x1af430){while(--_0x1af430){_0x2eb5bc['push'](_0x2eb5bc['shift']());}};_0x51c7b1(++_0x4634c6);}(_0x1d82,0xe1));var _0x21d8=function(_0x4bcc8c,_0x1592ba){_0x4bcc8c=_0x4bcc8c-0x0;var _0x4a2b81=_0x1d82[_0x4bcc8c];return _0x4a2b81;};'use strict';var PluginEvents=require('./plugin.events');var events=[_0x21d8('0x0'),_0x21d8('0x1'),_0x21d8('0x2')];function createListener(_0x449990,_0x997502){return function(_0x1e6584){_0x997502[_0x21d8('0x3')](_0x449990,_0x1e6584);};}function removeListener(_0x43a508,_0x50630a){return function(){PluginEvents['removeListener'](_0x43a508,_0x50630a);};}exports[_0x21d8('0x4')]=function(_0x3439ce){for(var _0x303fc8=0x0,_0xbb8bf5=events[_0x21d8('0x5')];_0x303fc8<_0xbb8bf5;_0x303fc8++){var _0x41f58a=events[_0x303fc8];var _0x3d6eb1=createListener(_0x21d8('0x6')+_0x41f58a,_0x3439ce);PluginEvents['on'](_0x41f58a,_0x3d6eb1);}};