Built motion from commit (unavailable).|2.5.3
[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 _0x7dab=['update','emit','removeListener','register','length','./plugin.events','save','remove'];(function(_0x549b3a,_0xa733d8){var _0x497386=function(_0x5c29e4){while(--_0x5c29e4){_0x549b3a['push'](_0x549b3a['shift']());}};_0x497386(++_0xa733d8);}(_0x7dab,0xe5));var _0xb7da=function(_0x177e77,_0x33a2dd){_0x177e77=_0x177e77-0x0;var _0x351db4=_0x7dab[_0x177e77];return _0x351db4;};'use strict';var PluginEvents=require(_0xb7da('0x0'));var events=[_0xb7da('0x1'),_0xb7da('0x2'),_0xb7da('0x3')];function createListener(_0x1e6b3e,_0x4eb83b){return function(_0x46e21c){_0x4eb83b[_0xb7da('0x4')](_0x1e6b3e,_0x46e21c);};}function removeListener(_0xf5b0c3,_0x35a473){return function(){PluginEvents[_0xb7da('0x5')](_0xf5b0c3,_0x35a473);};}exports[_0xb7da('0x6')]=function(_0x453be8){for(var _0x2601db=0x0,_0x4c980f=events[_0xb7da('0x7')];_0x2601db<_0x4c980f;_0x2601db++){var _0x16dd2e=events[_0x2601db];var _0x35b6c4=createListener('plugin:'+_0x16dd2e,_0x453be8);PluginEvents['on'](_0x16dd2e,_0x35b6c4);}};