Built motion from commit (unavailable).|2.5.30
[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 _0xdcdb=['plugin:','./plugin.events','save','remove','update','emit','removeListener','register','length'];(function(_0x34843e,_0x4c4224){var _0x598f7f=function(_0x12a44c){while(--_0x12a44c){_0x34843e['push'](_0x34843e['shift']());}};_0x598f7f(++_0x4c4224);}(_0xdcdb,0x64));var _0xbdcd=function(_0x1b86ef,_0x55f98d){_0x1b86ef=_0x1b86ef-0x0;var _0xa57fc9=_0xdcdb[_0x1b86ef];return _0xa57fc9;};'use strict';var PluginEvents=require(_0xbdcd('0x0'));var events=[_0xbdcd('0x1'),_0xbdcd('0x2'),_0xbdcd('0x3')];function createListener(_0x34fe0f,_0x32667a){return function(_0x3e8b5e){_0x32667a[_0xbdcd('0x4')](_0x34fe0f,_0x3e8b5e);};}function removeListener(_0x13e06e,_0x2dbf8c){return function(){PluginEvents[_0xbdcd('0x5')](_0x13e06e,_0x2dbf8c);};}exports[_0xbdcd('0x6')]=function(_0x3a8b0d){for(var _0x471f46=0x0,_0x3f2bbc=events[_0xbdcd('0x7')];_0x471f46<_0x3f2bbc;_0x471f46++){var _0xbccbe2=events[_0x471f46];var _0x338a29=createListener(_0xbdcd('0x8')+_0xbccbe2,_0x3a8b0d);PluginEvents['on'](_0xbccbe2,_0x338a29);}};