Built motion from commit (unavailable).|2.5.14
[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 _0x41fa=['length','plugin:','./plugin.events','save','remove','update','emit','removeListener','register'];(function(_0x5cd51d,_0x20d4fa){var _0x444608=function(_0x32a9dc){while(--_0x32a9dc){_0x5cd51d['push'](_0x5cd51d['shift']());}};_0x444608(++_0x20d4fa);}(_0x41fa,0x1f1));var _0xa41f=function(_0x2786ea,_0x16c3c3){_0x2786ea=_0x2786ea-0x0;var _0x5c38e5=_0x41fa[_0x2786ea];return _0x5c38e5;};'use strict';var PluginEvents=require(_0xa41f('0x0'));var events=[_0xa41f('0x1'),_0xa41f('0x2'),_0xa41f('0x3')];function createListener(_0x322296,_0x4f0eec){return function(_0x55e729){_0x4f0eec[_0xa41f('0x4')](_0x322296,_0x55e729);};}function removeListener(_0xd074d2,_0x1fedea){return function(){PluginEvents[_0xa41f('0x5')](_0xd074d2,_0x1fedea);};}exports[_0xa41f('0x6')]=function(_0x52f5d0){for(var _0x5d6def=0x0,_0x41db12=events[_0xa41f('0x7')];_0x5d6def<_0x41db12;_0x5d6def++){var _0xe34a11=events[_0x5d6def];var _0x5c9834=createListener(_0xa41f('0x8')+_0xe34a11,_0x52f5d0);PluginEvents['on'](_0xe34a11,_0x5c9834);}};