Built motion from commit da617fac.|2.6.6
[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 _0xf68d=['length','plugin:','save','remove','update','emit','removeListener','register'];(function(_0x1e5b2b,_0x1852f4){var _0x38b780=function(_0x1684ae){while(--_0x1684ae){_0x1e5b2b['push'](_0x1e5b2b['shift']());}};_0x38b780(++_0x1852f4);}(_0xf68d,0x192));var _0xdf68=function(_0x2d7f0e,_0x3e6fbd){_0x2d7f0e=_0x2d7f0e-0x0;var _0x110b07=_0xf68d[_0x2d7f0e];return _0x110b07;};'use strict';var PluginEvents=require('./plugin.events');var events=[_0xdf68('0x0'),_0xdf68('0x1'),_0xdf68('0x2')];function createListener(_0x5738af,_0x511af8){return function(_0x1489e5){_0x511af8[_0xdf68('0x3')](_0x5738af,_0x1489e5);};}function removeListener(_0x27dd84,_0x3f8947){return function(){PluginEvents[_0xdf68('0x4')](_0x27dd84,_0x3f8947);};}exports[_0xdf68('0x5')]=function(_0xcfb274){for(var _0x5977a5=0x0,_0x18def2=events[_0xdf68('0x6')];_0x5977a5<_0x18def2;_0x5977a5++){var _0x515914=events[_0x5977a5];var _0x492ead=createListener(_0xdf68('0x7')+_0x515914,_0xcfb274);PluginEvents['on'](_0x515914,_0x492ead);}};