Built motion from commit (unavailable).|2.5.2
[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 _0x7de0=['emit','removeListener','register','length','./plugin.events','save','remove','update'];(function(_0x131cc7,_0x430cd9){var _0x46f620=function(_0x88222f){while(--_0x88222f){_0x131cc7['push'](_0x131cc7['shift']());}};_0x46f620(++_0x430cd9);}(_0x7de0,0x17c));var _0x07de=function(_0x5b644e,_0x2e5e07){_0x5b644e=_0x5b644e-0x0;var _0x49c6bf=_0x7de0[_0x5b644e];return _0x49c6bf;};'use strict';var PluginEvents=require(_0x07de('0x0'));var events=[_0x07de('0x1'),_0x07de('0x2'),_0x07de('0x3')];function createListener(_0x26c8ba,_0x21862d){return function(_0x45a17f){_0x21862d[_0x07de('0x4')](_0x26c8ba,_0x45a17f);};}function removeListener(_0x115ae7,_0x857bbd){return function(){PluginEvents[_0x07de('0x5')](_0x115ae7,_0x857bbd);};}exports[_0x07de('0x6')]=function(_0x2f0643){for(var _0x550707=0x0,_0x1f596b=events[_0x07de('0x7')];_0x550707<_0x1f596b;_0x550707++){var _0x217fa5=events[_0x550707];var _0x3ee34a=createListener('plugin:'+_0x217fa5,_0x2f0643);PluginEvents['on'](_0x217fa5,_0x3ee34a);}};