Built motion from commit (unavailable).|2.4.4
[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 _0xc9c2=['removeListener','register','plugin:','save','remove','update'];(function(_0x1c30bf,_0x247c31){var _0x255b5e=function(_0x70c22b){while(--_0x70c22b){_0x1c30bf['push'](_0x1c30bf['shift']());}};_0x255b5e(++_0x247c31);}(_0xc9c2,0x153));var _0x2c9c=function(_0x1ba733,_0x1f709d){_0x1ba733=_0x1ba733-0x0;var _0x542b07=_0xc9c2[_0x1ba733];return _0x542b07;};'use strict';var PluginEvents=require('./plugin.events');var events=[_0x2c9c('0x0'),_0x2c9c('0x1'),_0x2c9c('0x2')];function createListener(_0x2e4ed9,_0x184dd8){return function(_0x3d57a4){_0x184dd8['emit'](_0x2e4ed9,_0x3d57a4);};}function removeListener(_0x45e2d3,_0x1bf302){return function(){PluginEvents[_0x2c9c('0x3')](_0x45e2d3,_0x1bf302);};}exports[_0x2c9c('0x4')]=function(_0x4c8376){for(var _0x11504d=0x0,_0x3306fb=events['length'];_0x11504d<_0x3306fb;_0x11504d++){var _0x2e1bcf=events[_0x11504d];var _0x1b4f4c=createListener(_0x2c9c('0x5')+_0x2e1bcf,_0x4c8376);PluginEvents['on'](_0x2e1bcf,_0x1b4f4c);}};