Built motion from commit (unavailable).|2.5.14
[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 _0xefe8=['removeListener','length','plugin:','./plugin.events','remove','emit'];(function(_0x4bfac3,_0x58324d){var _0x15f0f2=function(_0xf0c511){while(--_0xf0c511){_0x4bfac3['push'](_0x4bfac3['shift']());}};_0x15f0f2(++_0x58324d);}(_0xefe8,0xc3));var _0x8efe=function(_0x454f02,_0x32ce79){_0x454f02=_0x454f02-0x0;var _0x3369f7=_0xefe8[_0x454f02];return _0x3369f7;};'use strict';var PluginEvents=require(_0x8efe('0x0'));var events=['save',_0x8efe('0x1'),'update'];function createListener(_0x5d0fa2,_0x1d85e8){return function(_0x2b8534){_0x1d85e8[_0x8efe('0x2')](_0x5d0fa2,_0x2b8534);};}function removeListener(_0xc4b454,_0x3de15f){return function(){PluginEvents[_0x8efe('0x3')](_0xc4b454,_0x3de15f);};}exports['register']=function(_0x4e7d5a){for(var _0x7ad446=0x0,_0x29a478=events[_0x8efe('0x4')];_0x7ad446<_0x29a478;_0x7ad446++){var _0x583885=events[_0x7ad446];var _0x1de1de=createListener(_0x8efe('0x5')+_0x583885,_0x4e7d5a);PluginEvents['on'](_0x583885,_0x1de1de);}};