Built motion from commit e02f907f.|2.6.14
[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 _0x9226=['user:','./user.events','save','remove','update','emit','removeListener','register','length'];(function(_0x2fec3b,_0x2407db){var _0xae739a=function(_0x5457c0){while(--_0x5457c0){_0x2fec3b['push'](_0x2fec3b['shift']());}};_0xae739a(++_0x2407db);}(_0x9226,0xd9));var _0x6922=function(_0x84c7fd,_0x13184d){_0x84c7fd=_0x84c7fd-0x0;var _0x91f936=_0x9226[_0x84c7fd];return _0x91f936;};'use strict';var UserEvents=require(_0x6922('0x0'));var events=[_0x6922('0x1'),_0x6922('0x2'),_0x6922('0x3')];function createListener(_0x1777d3,_0x1e5fc4){return function(_0x1f79c7){_0x1e5fc4[_0x6922('0x4')](_0x1777d3,_0x1f79c7);};}function removeListener(_0x2f703f,_0x101c50){return function(){UserEvents[_0x6922('0x5')](_0x2f703f,_0x101c50);};}exports[_0x6922('0x6')]=function(_0xe45c79){for(var _0xa88fcc=0x0,_0x4fe56c=events[_0x6922('0x7')];_0xa88fcc<_0x4fe56c;_0xa88fcc++){var _0x58957b=events[_0xa88fcc];var _0x1b2509=createListener(_0x6922('0x8')+_0x58957b,_0xe45c79);UserEvents['on'](_0x58957b,_0x1b2509);}};