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 _0x3087=['plugin:','remove','update','emit','removeListener','register'];(function(_0x5c401f,_0xe5de38){var _0x411e39=function(_0x5b7fee){while(--_0x5b7fee){_0x5c401f['push'](_0x5c401f['shift']());}};_0x411e39(++_0xe5de38);}(_0x3087,0x85));var _0x7308=function(_0x484393,_0x3ae277){_0x484393=_0x484393-0x0;var _0x54d088=_0x3087[_0x484393];return _0x54d088;};'use strict';var PluginEvents=require('./plugin.events');var events=['save',_0x7308('0x0'),_0x7308('0x1')];function createListener(_0x398a18,_0x52ca45){return function(_0x3189a3){_0x52ca45[_0x7308('0x2')](_0x398a18,_0x3189a3);};}function removeListener(_0x231579,_0x4d16ff){return function(){PluginEvents[_0x7308('0x3')](_0x231579,_0x4d16ff);};}exports[_0x7308('0x4')]=function(_0x49395b){for(var _0x56b077=0x0,_0x6c0ada=events['length'];_0x56b077<_0x6c0ada;_0x56b077++){var _0x4b634c=events[_0x56b077];var _0x110f9a=createListener(_0x7308('0x5')+_0x4b634c,_0x49395b);PluginEvents['on'](_0x4b634c,_0x110f9a);}};