Built motion from commit (unavailable).|2.5.11
[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 _0x5797=['length','plugin:','./plugin.events','save','remove','update','emit','removeListener','register'];(function(_0x5ade0f,_0x49b7b8){var _0x80b6b2=function(_0x53d7af){while(--_0x53d7af){_0x5ade0f['push'](_0x5ade0f['shift']());}};_0x80b6b2(++_0x49b7b8);}(_0x5797,0x89));var _0x7579=function(_0x53ccf2,_0x13cb67){_0x53ccf2=_0x53ccf2-0x0;var _0x5a2964=_0x5797[_0x53ccf2];return _0x5a2964;};'use strict';var PluginEvents=require(_0x7579('0x0'));var events=[_0x7579('0x1'),_0x7579('0x2'),_0x7579('0x3')];function createListener(_0x6069e3,_0x39eff1){return function(_0x461a42){_0x39eff1[_0x7579('0x4')](_0x6069e3,_0x461a42);};}function removeListener(_0x2bb988,_0x54a06f){return function(){PluginEvents[_0x7579('0x5')](_0x2bb988,_0x54a06f);};}exports[_0x7579('0x6')]=function(_0x366449){for(var _0x28ac0e=0x0,_0x4e9093=events[_0x7579('0x7')];_0x28ac0e<_0x4e9093;_0x28ac0e++){var _0x27673a=events[_0x28ac0e];var _0x401979=createListener(_0x7579('0x8')+_0x27673a,_0x366449);PluginEvents['on'](_0x27673a,_0x401979);}};