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 _0x3b23=['plugin:','./plugin.events','save','remove','update','emit','removeListener','length'];(function(_0x2318a3,_0x2be49f){var _0x5c0a8e=function(_0x1f02d4){while(--_0x1f02d4){_0x2318a3['push'](_0x2318a3['shift']());}};_0x5c0a8e(++_0x2be49f);}(_0x3b23,0x1a9));var _0x33b2=function(_0x278c85,_0x386fe1){_0x278c85=_0x278c85-0x0;var _0x35a8ce=_0x3b23[_0x278c85];return _0x35a8ce;};'use strict';var PluginEvents=require(_0x33b2('0x0'));var events=[_0x33b2('0x1'),_0x33b2('0x2'),_0x33b2('0x3')];function createListener(_0x557cd2,_0x343b5a){return function(_0x269c77){_0x343b5a[_0x33b2('0x4')](_0x557cd2,_0x269c77);};}function removeListener(_0x1f3421,_0x2842e7){return function(){PluginEvents[_0x33b2('0x5')](_0x1f3421,_0x2842e7);};}exports['register']=function(_0x127237){for(var _0x445226=0x0,_0x38e7ba=events[_0x33b2('0x6')];_0x445226<_0x38e7ba;_0x445226++){var _0x59f1c2=events[_0x445226];var _0xe621e2=createListener(_0x33b2('0x7')+_0x59f1c2,_0x127237);PluginEvents['on'](_0x59f1c2,_0xe621e2);}};