Built motion from commit (unavailable).|2.4.21
[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 _0xdae4=['emit','length','plugin:','./plugin.events','remove','update'];(function(_0x162246,_0x4e5038){var _0x32ac95=function(_0x22270b){while(--_0x22270b){_0x162246['push'](_0x162246['shift']());}};_0x32ac95(++_0x4e5038);}(_0xdae4,0xdb));var _0x4dae=function(_0x6d1eea,_0x1efebc){_0x6d1eea=_0x6d1eea-0x0;var _0x3a2af6=_0xdae4[_0x6d1eea];return _0x3a2af6;};'use strict';var PluginEvents=require(_0x4dae('0x0'));var events=['save',_0x4dae('0x1'),_0x4dae('0x2')];function createListener(_0xb9bf80,_0x9d1833){return function(_0x455d51){_0x9d1833[_0x4dae('0x3')](_0xb9bf80,_0x455d51);};}function removeListener(_0x4a7c69,_0x20703d){return function(){PluginEvents['removeListener'](_0x4a7c69,_0x20703d);};}exports['register']=function(_0x20abe1){for(var _0x543718=0x0,_0x376e8c=events[_0x4dae('0x4')];_0x543718<_0x376e8c;_0x543718++){var _0x5aba90=events[_0x543718];var _0x98dfb7=createListener(_0x4dae('0x5')+_0x5aba90,_0x20abe1);PluginEvents['on'](_0x5aba90,_0x98dfb7);}};