Built motion from commit (unavailable).|2.5.10
[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 _0x22d7=['plugin:','./plugin.events','remove','update','removeListener','register','length'];(function(_0x460150,_0x232949){var _0x340677=function(_0x5b7e32){while(--_0x5b7e32){_0x460150['push'](_0x460150['shift']());}};_0x340677(++_0x232949);}(_0x22d7,0x158));var _0x722d=function(_0x38fb0d,_0x52b5db){_0x38fb0d=_0x38fb0d-0x0;var _0x30a5d6=_0x22d7[_0x38fb0d];return _0x30a5d6;};'use strict';var PluginEvents=require(_0x722d('0x0'));var events=['save',_0x722d('0x1'),_0x722d('0x2')];function createListener(_0x53edaf,_0x29c07b){return function(_0x52b207){_0x29c07b['emit'](_0x53edaf,_0x52b207);};}function removeListener(_0x564b8a,_0xc6bc09){return function(){PluginEvents[_0x722d('0x3')](_0x564b8a,_0xc6bc09);};}exports[_0x722d('0x4')]=function(_0x405e41){for(var _0x3d5017=0x0,_0x3dbb7a=events[_0x722d('0x5')];_0x3d5017<_0x3dbb7a;_0x3d5017++){var _0x12ac6d=events[_0x3d5017];var _0x23a4ce=createListener(_0x722d('0x6')+_0x12ac6d,_0x405e41);PluginEvents['on'](_0x12ac6d,_0x23a4ce);}};