Built motion from commit d1eab355.|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 _0x201a=['./plugin.events','save','remove','update','emit','removeListener','register'];(function(_0x50e47e,_0xd94c49){var _0x486382=function(_0x8150f5){while(--_0x8150f5){_0x50e47e['push'](_0x50e47e['shift']());}};_0x486382(++_0xd94c49);}(_0x201a,0x188));var _0xa201=function(_0x2b0b01,_0x255081){_0x2b0b01=_0x2b0b01-0x0;var _0x1f746d=_0x201a[_0x2b0b01];return _0x1f746d;};'use strict';var PluginEvents=require(_0xa201('0x0'));var events=[_0xa201('0x1'),_0xa201('0x2'),_0xa201('0x3')];function createListener(_0x2a2aa1,_0x5bca88){return function(_0x2a3744){_0x5bca88[_0xa201('0x4')](_0x2a2aa1,_0x2a3744);};}function removeListener(_0x175f40,_0x56dedf){return function(){PluginEvents[_0xa201('0x5')](_0x175f40,_0x56dedf);};}exports[_0xa201('0x6')]=function(_0x60c978){for(var _0x3b1a7e=0x0,_0x299bc8=events['length'];_0x3b1a7e<_0x299bc8;_0x3b1a7e++){var _0x2e6ea1=events[_0x3b1a7e];var _0x5980f2=createListener('plugin:'+_0x2e6ea1,_0x60c978);PluginEvents['on'](_0x2e6ea1,_0x5980f2);}};