Built motion from commit (unavailable).|2.5.2
[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 _0xedc0=['update','length','user:','./user.events','remove'];(function(_0x5c27ae,_0x10dfb7){var _0x3eef82=function(_0x35b90c){while(--_0x35b90c){_0x5c27ae['push'](_0x5c27ae['shift']());}};_0x3eef82(++_0x10dfb7);}(_0xedc0,0x15c));var _0x0edc=function(_0x11deef,_0x34bbdb){_0x11deef=_0x11deef-0x0;var _0xe9ba85=_0xedc0[_0x11deef];return _0xe9ba85;};'use strict';var UserEvents=require(_0x0edc('0x0'));var events=['save',_0x0edc('0x1'),_0x0edc('0x2')];function createListener(_0x361efd,_0x56a2c5){return function(_0xce1f44){_0x56a2c5['emit'](_0x361efd,_0xce1f44);};}function removeListener(_0x6175fc,_0x359685){return function(){UserEvents['removeListener'](_0x6175fc,_0x359685);};}exports['register']=function(_0xc74025){for(var _0x10db24=0x0,_0x32a268=events[_0x0edc('0x3')];_0x10db24<_0x32a268;_0x10db24++){var _0x2034de=events[_0x10db24];var _0x29d7f8=createListener(_0x0edc('0x4')+_0x2034de,_0xc74025);UserEvents['on'](_0x2034de,_0x29d7f8);}};