Built motion from commit (unavailable).|2.5.16
[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 _0x69d3=['length','plugin:','./plugin.events','update','emit','removeListener','register'];(function(_0x50b1c5,_0x1cf2a9){var _0x344f99=function(_0x5d6ef0){while(--_0x5d6ef0){_0x50b1c5['push'](_0x50b1c5['shift']());}};_0x344f99(++_0x1cf2a9);}(_0x69d3,0x13d));var _0x369d=function(_0x415499,_0x41451b){_0x415499=_0x415499-0x0;var _0xc08cd8=_0x69d3[_0x415499];return _0xc08cd8;};'use strict';var PluginEvents=require(_0x369d('0x0'));var events=['save','remove',_0x369d('0x1')];function createListener(_0xf54146,_0x388d04){return function(_0x35c15d){_0x388d04[_0x369d('0x2')](_0xf54146,_0x35c15d);};}function removeListener(_0x1ae9b9,_0x3e6b89){return function(){PluginEvents[_0x369d('0x3')](_0x1ae9b9,_0x3e6b89);};}exports[_0x369d('0x4')]=function(_0x3e7f3e){for(var _0xa468a3=0x0,_0x5cf425=events[_0x369d('0x5')];_0xa468a3<_0x5cf425;_0xa468a3++){var _0x5161b5=events[_0xa468a3];var _0x4e3133=createListener(_0x369d('0x6')+_0x5161b5,_0x3e7f3e);PluginEvents['on'](_0x5161b5,_0x4e3133);}};