Built motion from commit 449495f6.|2.6.27
[motion2.git] / server / api / plugin / plugin.socket.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0xe0b8=['remove','update','removeListener','register','plugin:','./plugin.events'];(function(_0x5cbe90,_0x5059fa){var _0x1b1c6e=function(_0x15bccb){while(--_0x15bccb){_0x5cbe90['push'](_0x5cbe90['shift']());}};_0x1b1c6e(++_0x5059fa);}(_0xe0b8,0xdd));var _0x8e0b=function(_0x3a793e,_0x2636a8){_0x3a793e=_0x3a793e-0x0;var _0x2fde36=_0xe0b8[_0x3a793e];return _0x2fde36;};'use strict';var PluginEvents=require(_0x8e0b('0x0'));var events=['save',_0x8e0b('0x1'),_0x8e0b('0x2')];function createListener(_0x40aeac,_0x4f7a95){return function(_0x4f9eda){_0x4f7a95['emit'](_0x40aeac,_0x4f9eda);};}function removeListener(_0x3bebb3,_0x5da12c){return function(){PluginEvents[_0x8e0b('0x3')](_0x3bebb3,_0x5da12c);};}exports[_0x8e0b('0x4')]=function(_0x314732){for(var _0x5e6fa2=0x0,_0x30ba53=events['length'];_0x5e6fa2<_0x30ba53;_0x5e6fa2++){var _0x28243a=events[_0x5e6fa2];var _0x541e3d=createListener(_0x8e0b('0x5')+_0x28243a,_0x314732);PluginEvents['on'](_0x28243a,_0x541e3d);}};