Built motion from commit f3da74b7.|2.5.36
[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 _0x65d4=['removeListener','register','length','plugin:','./plugin.events','save','remove','update','emit'];(function(_0x1a57d1,_0x4281ff){var _0x394876=function(_0x268ec9){while(--_0x268ec9){_0x1a57d1['push'](_0x1a57d1['shift']());}};_0x394876(++_0x4281ff);}(_0x65d4,0x163));var _0x465d=function(_0x3fb86b,_0x3b30c8){_0x3fb86b=_0x3fb86b-0x0;var _0x13ffc7=_0x65d4[_0x3fb86b];return _0x13ffc7;};'use strict';var PluginEvents=require(_0x465d('0x0'));var events=[_0x465d('0x1'),_0x465d('0x2'),_0x465d('0x3')];function createListener(_0x37db00,_0x2e4659){return function(_0x3e9b4b){_0x2e4659[_0x465d('0x4')](_0x37db00,_0x3e9b4b);};}function removeListener(_0x58148e,_0x491914){return function(){PluginEvents[_0x465d('0x5')](_0x58148e,_0x491914);};}exports[_0x465d('0x6')]=function(_0xf315ee){for(var _0x35f20d=0x0,_0x547dd4=events[_0x465d('0x7')];_0x35f20d<_0x547dd4;_0x35f20d++){var _0x16af6c=events[_0x35f20d];var _0x214a17=createListener(_0x465d('0x8')+_0x16af6c,_0xf315ee);PluginEvents['on'](_0x16af6c,_0x214a17);}};