Built motion from commit (unavailable).|2.5.12
[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 _0x5b45=['emit','removeListener','register','./user.events'];(function(_0x27842c,_0x324fcb){var _0x493de8=function(_0x1f6c85){while(--_0x1f6c85){_0x27842c['push'](_0x27842c['shift']());}};_0x493de8(++_0x324fcb);}(_0x5b45,0x73));var _0x55b4=function(_0x166e96,_0x55191d){_0x166e96=_0x166e96-0x0;var _0x553d73=_0x5b45[_0x166e96];return _0x553d73;};'use strict';var UserEvents=require(_0x55b4('0x0'));var events=['save','remove','update'];function createListener(_0x42d7aa,_0x491515){return function(_0x16f94b){_0x491515[_0x55b4('0x1')](_0x42d7aa,_0x16f94b);};}function removeListener(_0x2ab315,_0x2aa880){return function(){UserEvents[_0x55b4('0x2')](_0x2ab315,_0x2aa880);};}exports[_0x55b4('0x3')]=function(_0x3df318){for(var _0x35c7f0=0x0,_0xc4b063=events['length'];_0x35c7f0<_0xc4b063;_0x35c7f0++){var _0x3819e1=events[_0x35c7f0];var _0x188ea5=createListener('user:'+_0x3819e1,_0x3df318);UserEvents['on'](_0x3819e1,_0x188ea5);}};