Built motion from commit (unavailable).|2.4.20
[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 _0x0e21=['save','remove','update','emit','removeListener','register','length','plugin:'];(function(_0x1fdf64,_0x3b0964){var _0x1af952=function(_0x552294){while(--_0x552294){_0x1fdf64['push'](_0x1fdf64['shift']());}};_0x1af952(++_0x3b0964);}(_0x0e21,0xe8));var _0x10e2=function(_0x3e7096,_0x11a666){_0x3e7096=_0x3e7096-0x0;var _0x30a99d=_0x0e21[_0x3e7096];return _0x30a99d;};'use strict';var PluginEvents=require('./plugin.events');var events=[_0x10e2('0x0'),_0x10e2('0x1'),_0x10e2('0x2')];function createListener(_0x5ab5d5,_0x3a8207){return function(_0x13940f){_0x3a8207[_0x10e2('0x3')](_0x5ab5d5,_0x13940f);};}function removeListener(_0x4861d5,_0x4b6911){return function(){PluginEvents[_0x10e2('0x4')](_0x4861d5,_0x4b6911);};}exports[_0x10e2('0x5')]=function(_0x2fb9e4){for(var _0x44e30e=0x0,_0x4e1687=events[_0x10e2('0x6')];_0x44e30e<_0x4e1687;_0x44e30e++){var _0x121894=events[_0x44e30e];var _0x48ab5b=createListener(_0x10e2('0x7')+_0x121894,_0x2fb9e4);PluginEvents['on'](_0x121894,_0x48ab5b);}};