Built motion from commit ab870f9e.|2.5.44
[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 _0x7544=['emit','removeListener','register','length','plugin:','./plugin.events','save','remove'];(function(_0x209302,_0x5826ac){var _0x1df8e9=function(_0x16ae49){while(--_0x16ae49){_0x209302['push'](_0x209302['shift']());}};_0x1df8e9(++_0x5826ac);}(_0x7544,0xed));var _0x4754=function(_0x110945,_0x59d050){_0x110945=_0x110945-0x0;var _0xf70f9a=_0x7544[_0x110945];return _0xf70f9a;};'use strict';var PluginEvents=require(_0x4754('0x0'));var events=[_0x4754('0x1'),_0x4754('0x2'),'update'];function createListener(_0x3d85be,_0x109469){return function(_0x2c25d2){_0x109469[_0x4754('0x3')](_0x3d85be,_0x2c25d2);};}function removeListener(_0x50bc05,_0x2c74b8){return function(){PluginEvents[_0x4754('0x4')](_0x50bc05,_0x2c74b8);};}exports[_0x4754('0x5')]=function(_0xcfe6cd){for(var _0x42d852=0x0,_0x5f52e0=events[_0x4754('0x6')];_0x42d852<_0x5f52e0;_0x42d852++){var _0x47847a=events[_0x42d852];var _0x5e9f73=createListener(_0x4754('0x7')+_0x47847a,_0xcfe6cd);PluginEvents['on'](_0x47847a,_0x5e9f73);}};