Built motion from commit ce97982f.|2.6.29
[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 _0x546e=['plugin:','./plugin.events','save','remove','update','emit','removeListener','register','length'];(function(_0x26404d,_0xdab8ab){var _0x40eaa8=function(_0x4dc899){while(--_0x4dc899){_0x26404d['push'](_0x26404d['shift']());}};_0x40eaa8(++_0xdab8ab);}(_0x546e,0x160));var _0xe546=function(_0x1b828b,_0x344400){_0x1b828b=_0x1b828b-0x0;var _0x98da1a=_0x546e[_0x1b828b];return _0x98da1a;};'use strict';var PluginEvents=require(_0xe546('0x0'));var events=[_0xe546('0x1'),_0xe546('0x2'),_0xe546('0x3')];function createListener(_0x5dc385,_0x2bb36e){return function(_0x4106b2){_0x2bb36e[_0xe546('0x4')](_0x5dc385,_0x4106b2);};}function removeListener(_0x58b2d8,_0x1d8aaf){return function(){PluginEvents[_0xe546('0x5')](_0x58b2d8,_0x1d8aaf);};}exports[_0xe546('0x6')]=function(_0xb03715){for(var _0x25e31c=0x0,_0x20df31=events[_0xe546('0x7')];_0x25e31c<_0x20df31;_0x25e31c++){var _0x4ec517=events[_0x25e31c];var _0x1cfdf8=createListener(_0xe546('0x8')+_0x4ec517,_0xb03715);PluginEvents['on'](_0x4ec517,_0x1cfdf8);}};