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 _0x98d4=['plugin:','update','emit','register','length'];(function(_0x5295c9,_0x52d41b){var _0x6de8ea=function(_0x20c69b){while(--_0x20c69b){_0x5295c9['push'](_0x5295c9['shift']());}};_0x6de8ea(++_0x52d41b);}(_0x98d4,0x6a));var _0x498d=function(_0x5ef0f5,_0x189ab4){_0x5ef0f5=_0x5ef0f5-0x0;var _0x2bf52e=_0x98d4[_0x5ef0f5];return _0x2bf52e;};'use strict';var PluginEvents=require('./plugin.events');var events=['save','remove',_0x498d('0x0')];function createListener(_0x2a053c,_0x5d70e3){return function(_0x11d7b6){_0x5d70e3[_0x498d('0x1')](_0x2a053c,_0x11d7b6);};}function removeListener(_0x38f752,_0x4ce788){return function(){PluginEvents['removeListener'](_0x38f752,_0x4ce788);};}exports[_0x498d('0x2')]=function(_0x52922b){for(var _0x2b027c=0x0,_0x5b84e7=events[_0x498d('0x3')];_0x2b027c<_0x5b84e7;_0x2b027c++){var _0x17ae57=events[_0x2b027c];var _0x3dcb57=createListener(_0x498d('0x4')+_0x17ae57,_0x52922b);PluginEvents['on'](_0x17ae57,_0x3dcb57);}};