Built motion from commit (unavailable).|2.4.17
[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 _0x2470=['./plugin.events','save','update','emit','removeListener','length','plugin:'];(function(_0x5f1c3e,_0x532f71){var _0x19b1ca=function(_0x1291ec){while(--_0x1291ec){_0x5f1c3e['push'](_0x5f1c3e['shift']());}};_0x19b1ca(++_0x532f71);}(_0x2470,0xb6));var _0x0247=function(_0x194497,_0x53006c){_0x194497=_0x194497-0x0;var _0x253e1b=_0x2470[_0x194497];return _0x253e1b;};'use strict';var PluginEvents=require(_0x0247('0x0'));var events=[_0x0247('0x1'),'remove',_0x0247('0x2')];function createListener(_0x2b278c,_0x5df2b5){return function(_0x521f05){_0x5df2b5[_0x0247('0x3')](_0x2b278c,_0x521f05);};}function removeListener(_0x279447,_0xb3ae1){return function(){PluginEvents[_0x0247('0x4')](_0x279447,_0xb3ae1);};}exports['register']=function(_0x4adc99){for(var _0x41ed22=0x0,_0x292a64=events[_0x0247('0x5')];_0x41ed22<_0x292a64;_0x41ed22++){var _0x82dcaf=events[_0x41ed22];var _0x4936cc=createListener(_0x0247('0x6')+_0x82dcaf,_0x4adc99);PluginEvents['on'](_0x82dcaf,_0x4936cc);}};