Built motion from commit (unavailable).|2.5.0
[motion2.git] / server / api / user / user.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 _0xf0f3=['./user.events','save','remove','update','emit','removeListener','register','length','user:'];(function(_0x29dda1,_0x508e13){var _0x21b0ef=function(_0x118906){while(--_0x118906){_0x29dda1['push'](_0x29dda1['shift']());}};_0x21b0ef(++_0x508e13);}(_0xf0f3,0xea));var _0x3f0f=function(_0x146cb6,_0x3ee1bc){_0x146cb6=_0x146cb6-0x0;var _0x69472=_0xf0f3[_0x146cb6];return _0x69472;};'use strict';var UserEvents=require(_0x3f0f('0x0'));var events=[_0x3f0f('0x1'),_0x3f0f('0x2'),_0x3f0f('0x3')];function createListener(_0x3cdfc7,_0x216a08){return function(_0x29b5ec){_0x216a08[_0x3f0f('0x4')](_0x3cdfc7,_0x29b5ec);};}function removeListener(_0x3f4c49,_0x484899){return function(){UserEvents[_0x3f0f('0x5')](_0x3f4c49,_0x484899);};}exports[_0x3f0f('0x6')]=function(_0x5e1f89){for(var _0xfdf297=0x0,_0x4c4885=events[_0x3f0f('0x7')];_0xfdf297<_0x4c4885;_0xfdf297++){var _0x4a5089=events[_0xfdf297];var _0x5a5539=createListener(_0x3f0f('0x8')+_0x4a5089,_0x5e1f89);UserEvents['on'](_0x4a5089,_0x5a5539);}};