Built motion from commit (unavailable).|2.5.24
[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 _0xd83c=['register','length','user:','save','update','emit','removeListener'];(function(_0x5ef690,_0x50026c){var _0x5e6f96=function(_0xeaf59d){while(--_0xeaf59d){_0x5ef690['push'](_0x5ef690['shift']());}};_0x5e6f96(++_0x50026c);}(_0xd83c,0x192));var _0xcd83=function(_0x50f392,_0x1d8441){_0x50f392=_0x50f392-0x0;var _0x5926f2=_0xd83c[_0x50f392];return _0x5926f2;};'use strict';var UserEvents=require('./user.events');var events=[_0xcd83('0x0'),'remove',_0xcd83('0x1')];function createListener(_0x352cdd,_0x4b5508){return function(_0x139237){_0x4b5508[_0xcd83('0x2')](_0x352cdd,_0x139237);};}function removeListener(_0x21645a,_0x33ca38){return function(){UserEvents[_0xcd83('0x3')](_0x21645a,_0x33ca38);};}exports[_0xcd83('0x4')]=function(_0x4cb228){for(var _0x447c23=0x0,_0x2e1fcc=events[_0xcd83('0x5')];_0x447c23<_0x2e1fcc;_0x447c23++){var _0x55b008=events[_0x447c23];var _0x4b19b7=createListener(_0xcd83('0x6')+_0x55b008,_0x4cb228);UserEvents['on'](_0x55b008,_0x4b19b7);}};