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 _0x187e=['removeListener','register','length','user:','./user.events','save','remove','update','emit'];(function(_0x39d38e,_0x3da1f7){var _0x18e737=function(_0x373eef){while(--_0x373eef){_0x39d38e['push'](_0x39d38e['shift']());}};_0x18e737(++_0x3da1f7);}(_0x187e,0x15a));var _0xe187=function(_0x44f718,_0xceccdd){_0x44f718=_0x44f718-0x0;var _0x518542=_0x187e[_0x44f718];return _0x518542;};'use strict';var UserEvents=require(_0xe187('0x0'));var events=[_0xe187('0x1'),_0xe187('0x2'),_0xe187('0x3')];function createListener(_0x475af6,_0x3178e8){return function(_0x360b98){_0x3178e8[_0xe187('0x4')](_0x475af6,_0x360b98);};}function removeListener(_0x12493a,_0x3110a3){return function(){UserEvents[_0xe187('0x5')](_0x12493a,_0x3110a3);};}exports[_0xe187('0x6')]=function(_0x1dbfc2){for(var _0x22acc5=0x0,_0x5e901c=events[_0xe187('0x7')];_0x22acc5<_0x5e901c;_0x22acc5++){var _0x2974c6=events[_0x22acc5];var _0x35ed08=createListener(_0xe187('0x8')+_0x2974c6,_0x1dbfc2);UserEvents['on'](_0x2974c6,_0x35ed08);}};