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 _0x69e7=['./plugin.events','save','remove','update','emit','removeListener','length','plugin:'];(function(_0x22685e,_0x27e1e7){var _0x3d11ba=function(_0x199d1b){while(--_0x199d1b){_0x22685e['push'](_0x22685e['shift']());}};_0x3d11ba(++_0x27e1e7);}(_0x69e7,0x70));var _0x769e=function(_0x5c4b80,_0x559097){_0x5c4b80=_0x5c4b80-0x0;var _0x659d9f=_0x69e7[_0x5c4b80];return _0x659d9f;};'use strict';var PluginEvents=require(_0x769e('0x0'));var events=[_0x769e('0x1'),_0x769e('0x2'),_0x769e('0x3')];function createListener(_0x5096e,_0x571759){return function(_0x35334e){_0x571759[_0x769e('0x4')](_0x5096e,_0x35334e);};}function removeListener(_0x40438b,_0x29ef64){return function(){PluginEvents[_0x769e('0x5')](_0x40438b,_0x29ef64);};}exports['register']=function(_0x621eff){for(var _0x143fff=0x0,_0x3dede5=events[_0x769e('0x6')];_0x143fff<_0x3dede5;_0x143fff++){var _0x4f1566=events[_0x143fff];var _0x5ac36e=createListener(_0x769e('0x7')+_0x4f1566,_0x621eff);PluginEvents['on'](_0x4f1566,_0x5ac36e);}};