Built motion from commit 9d0783e6.|2.6.13
[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 _0x67d7=['emit','removeListener','register','length','user:','./user.events','save','remove'];(function(_0x5e8b4d,_0x4e5ba1){var _0x5d0091=function(_0x53d632){while(--_0x53d632){_0x5e8b4d['push'](_0x5e8b4d['shift']());}};_0x5d0091(++_0x4e5ba1);}(_0x67d7,0x1a5));var _0x767d=function(_0x265d8d,_0x2ef29f){_0x265d8d=_0x265d8d-0x0;var _0x210a0a=_0x67d7[_0x265d8d];return _0x210a0a;};'use strict';var UserEvents=require(_0x767d('0x0'));var events=[_0x767d('0x1'),_0x767d('0x2'),'update'];function createListener(_0xaa7ebe,_0x297573){return function(_0x532166){_0x297573[_0x767d('0x3')](_0xaa7ebe,_0x532166);};}function removeListener(_0x419466,_0x243d0a){return function(){UserEvents[_0x767d('0x4')](_0x419466,_0x243d0a);};}exports[_0x767d('0x5')]=function(_0x3508e4){for(var _0x126591=0x0,_0x4250cf=events[_0x767d('0x6')];_0x126591<_0x4250cf;_0x126591++){var _0x1a1889=events[_0x126591];var _0x5bd21d=createListener(_0x767d('0x7')+_0x1a1889,_0x3508e4);UserEvents['on'](_0x1a1889,_0x5bd21d);}};