Built motion from commit (unavailable).|2.4.10
[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 _0x1780=['remove','update','removeListener','length','plugin:','./plugin.events'];(function(_0x2628f2,_0x5b88cb){var _0x17deaa=function(_0x26197c){while(--_0x26197c){_0x2628f2['push'](_0x2628f2['shift']());}};_0x17deaa(++_0x5b88cb);}(_0x1780,0xbf));var _0x0178=function(_0x18fe8c,_0x3390ed){_0x18fe8c=_0x18fe8c-0x0;var _0x11d160=_0x1780[_0x18fe8c];return _0x11d160;};'use strict';var PluginEvents=require(_0x0178('0x0'));var events=['save',_0x0178('0x1'),_0x0178('0x2')];function createListener(_0x3b8405,_0x2668e5){return function(_0x21f494){_0x2668e5['emit'](_0x3b8405,_0x21f494);};}function removeListener(_0x3a3ffb,_0xb4c4f){return function(){PluginEvents[_0x0178('0x3')](_0x3a3ffb,_0xb4c4f);};}exports['register']=function(_0x574424){for(var _0x1627af=0x0,_0x2eb438=events[_0x0178('0x4')];_0x1627af<_0x2eb438;_0x1627af++){var _0x205526=events[_0x1627af];var _0x5212a3=createListener(_0x0178('0x5')+_0x205526,_0x574424);PluginEvents['on'](_0x205526,_0x5212a3);}};