Built motion from commit (unavailable).|2.5.21
[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 _0xcc24=['register','length','user:','update','removeListener'];(function(_0xd1d19a,_0x1933f0){var _0x52a79d=function(_0x5199e2){while(--_0x5199e2){_0xd1d19a['push'](_0xd1d19a['shift']());}};_0x52a79d(++_0x1933f0);}(_0xcc24,0x111));var _0x4cc2=function(_0x5d6f1b,_0x3bf4be){_0x5d6f1b=_0x5d6f1b-0x0;var _0x27e728=_0xcc24[_0x5d6f1b];return _0x27e728;};'use strict';var UserEvents=require('./user.events');var events=['save','remove',_0x4cc2('0x0')];function createListener(_0x5cdf91,_0x3d1714){return function(_0x23ce2e){_0x3d1714['emit'](_0x5cdf91,_0x23ce2e);};}function removeListener(_0x29414e,_0x2b13f7){return function(){UserEvents[_0x4cc2('0x1')](_0x29414e,_0x2b13f7);};}exports[_0x4cc2('0x2')]=function(_0xfdd2f8){for(var _0x582bc4=0x0,_0x20e01b=events[_0x4cc2('0x3')];_0x582bc4<_0x20e01b;_0x582bc4++){var _0x4bb446=events[_0x582bc4];var _0x177197=createListener(_0x4cc2('0x4')+_0x4bb446,_0xfdd2f8);UserEvents['on'](_0x4bb446,_0x177197);}};