Built motion from commit (unavailable).|2.5.4
[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 _0xa339=['register','plugin:','save','emit','removeListener'];(function(_0x11d6c2,_0x550cad){var _0x407bd3=function(_0x27f185){while(--_0x27f185){_0x11d6c2['push'](_0x11d6c2['shift']());}};_0x407bd3(++_0x550cad);}(_0xa339,0xac));var _0x9a33=function(_0x199cf3,_0x1c7a72){_0x199cf3=_0x199cf3-0x0;var _0x5c3021=_0xa339[_0x199cf3];return _0x5c3021;};'use strict';var PluginEvents=require('./plugin.events');var events=[_0x9a33('0x0'),'remove','update'];function createListener(_0x3fc77f,_0x43edb4){return function(_0x4e02d2){_0x43edb4[_0x9a33('0x1')](_0x3fc77f,_0x4e02d2);};}function removeListener(_0x910986,_0x5c9939){return function(){PluginEvents[_0x9a33('0x2')](_0x910986,_0x5c9939);};}exports[_0x9a33('0x3')]=function(_0x5d046a){for(var _0x142323=0x0,_0x2944f5=events['length'];_0x142323<_0x2944f5;_0x142323++){var _0x466d39=events[_0x142323];var _0x5b0ac4=createListener(_0x9a33('0x4')+_0x466d39,_0x5d046a);PluginEvents['on'](_0x466d39,_0x5b0ac4);}};