Built motion from commit (unavailable).|2.5.28
[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 _0x23f2=['length','user:','./user.events','save','remove','update','emit','removeListener','register'];(function(_0x2419c9,_0x262667){var _0x7605e=function(_0x1e5c11){while(--_0x1e5c11){_0x2419c9['push'](_0x2419c9['shift']());}};_0x7605e(++_0x262667);}(_0x23f2,0xa4));var _0x223f=function(_0xdf244c,_0x4d942e){_0xdf244c=_0xdf244c-0x0;var _0x1c1bae=_0x23f2[_0xdf244c];return _0x1c1bae;};'use strict';var UserEvents=require(_0x223f('0x0'));var events=[_0x223f('0x1'),_0x223f('0x2'),_0x223f('0x3')];function createListener(_0x1627a0,_0x4dea63){return function(_0x42d8f3){_0x4dea63[_0x223f('0x4')](_0x1627a0,_0x42d8f3);};}function removeListener(_0x16e0b8,_0x5348fd){return function(){UserEvents[_0x223f('0x5')](_0x16e0b8,_0x5348fd);};}exports[_0x223f('0x6')]=function(_0x24d047){for(var _0x235e5e=0x0,_0x4a006d=events[_0x223f('0x7')];_0x235e5e<_0x4a006d;_0x235e5e++){var _0x46ceea=events[_0x235e5e];var _0x43dd30=createListener(_0x223f('0x8')+_0x46ceea,_0x24d047);UserEvents['on'](_0x46ceea,_0x43dd30);}};