Built motion from commit 863c3375.|2.6.28
[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 _0xbc15=['./plugin.events','save','remove','update','emit'];(function(_0x307603,_0x45b0e4){var _0xb69b35=function(_0x4e03fc){while(--_0x4e03fc){_0x307603['push'](_0x307603['shift']());}};_0xb69b35(++_0x45b0e4);}(_0xbc15,0xd2));var _0x5bc1=function(_0xc64f4e,_0x4f4210){_0xc64f4e=_0xc64f4e-0x0;var _0xeb1d45=_0xbc15[_0xc64f4e];return _0xeb1d45;};'use strict';var PluginEvents=require(_0x5bc1('0x0'));var events=[_0x5bc1('0x1'),_0x5bc1('0x2'),_0x5bc1('0x3')];function createListener(_0x1c1c02,_0x391488){return function(_0x5710be){_0x391488[_0x5bc1('0x4')](_0x1c1c02,_0x5710be);};}function removeListener(_0x48e04a,_0x54789a){return function(){PluginEvents['removeListener'](_0x48e04a,_0x54789a);};}exports['register']=function(_0x1cf8bd){for(var _0x11b9f8=0x0,_0x5dba12=events['length'];_0x11b9f8<_0x5dba12;_0x11b9f8++){var _0x496cd7=events[_0x11b9f8];var _0x39e87a=createListener('plugin:'+_0x496cd7,_0x1cf8bd);PluginEvents['on'](_0x496cd7,_0x39e87a);}};