Built motion from commit (unavailable).|2.5.31
[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 _0x0641=['length','./plugin.events','save','remove','update','emit','register'];(function(_0x178e48,_0x3c9509){var _0x440d7e=function(_0xc2f8a0){while(--_0xc2f8a0){_0x178e48['push'](_0x178e48['shift']());}};_0x440d7e(++_0x3c9509);}(_0x0641,0x1ac));var _0x1064=function(_0x4e12aa,_0x1574db){_0x4e12aa=_0x4e12aa-0x0;var _0x4ffc1e=_0x0641[_0x4e12aa];return _0x4ffc1e;};'use strict';var PluginEvents=require(_0x1064('0x0'));var events=[_0x1064('0x1'),_0x1064('0x2'),_0x1064('0x3')];function createListener(_0x5ed10b,_0x59a0f4){return function(_0x3338bf){_0x59a0f4[_0x1064('0x4')](_0x5ed10b,_0x3338bf);};}function removeListener(_0xa0bcd,_0x143f56){return function(){PluginEvents['removeListener'](_0xa0bcd,_0x143f56);};}exports[_0x1064('0x5')]=function(_0x57b6b0){for(var _0x2a508d=0x0,_0x97a1f2=events[_0x1064('0x6')];_0x2a508d<_0x97a1f2;_0x2a508d++){var _0x2aff10=events[_0x2a508d];var _0x441998=createListener('plugin:'+_0x2aff10,_0x57b6b0);PluginEvents['on'](_0x2aff10,_0x441998);}};