Built motion from commit (unavailable).|2.5.3
[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 _0x8a3f=['removeListener','register','length','user:','./user.events','remove','update','emit'];(function(_0x146f3a,_0x373e03){var _0x4ebd8a=function(_0x2b4ea9){while(--_0x2b4ea9){_0x146f3a['push'](_0x146f3a['shift']());}};_0x4ebd8a(++_0x373e03);}(_0x8a3f,0x1b4));var _0xf8a3=function(_0x22cd0c,_0x20ebbf){_0x22cd0c=_0x22cd0c-0x0;var _0x4dd65b=_0x8a3f[_0x22cd0c];return _0x4dd65b;};'use strict';var UserEvents=require(_0xf8a3('0x0'));var events=['save',_0xf8a3('0x1'),_0xf8a3('0x2')];function createListener(_0x193bdc,_0x31a369){return function(_0x34fa9b){_0x31a369[_0xf8a3('0x3')](_0x193bdc,_0x34fa9b);};}function removeListener(_0x5d7833,_0x1683d7){return function(){UserEvents[_0xf8a3('0x4')](_0x5d7833,_0x1683d7);};}exports[_0xf8a3('0x5')]=function(_0x28f014){for(var _0x16d829=0x0,_0x51156f=events[_0xf8a3('0x6')];_0x16d829<_0x51156f;_0x16d829++){var _0x42b789=events[_0x16d829];var _0x31c606=createListener(_0xf8a3('0x7')+_0x42b789,_0x28f014);UserEvents['on'](_0x42b789,_0x31c606);}};