Built motion from commit 1fa89557.|2.6.10
[motion2.git] / server / api / userProfile / userProfile.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 _0x2466=['remove','emit','removeListener','register','length','userProfile:'];(function(_0x1979d8,_0x10d8f2){var _0x1d5bb3=function(_0x42e0b4){while(--_0x42e0b4){_0x1979d8['push'](_0x1979d8['shift']());}};_0x1d5bb3(++_0x10d8f2);}(_0x2466,0xf6));var _0x6246=function(_0x125339,_0x3e13b3){_0x125339=_0x125339-0x0;var _0x303dec=_0x2466[_0x125339];return _0x303dec;};'use strict';var UserProfileEvents=require('./userProfile.events');var events=['save',_0x6246('0x0'),'update'];function createListener(_0x38edbd,_0x163090){return function(_0x3e8b6f){_0x163090[_0x6246('0x1')](_0x38edbd,_0x3e8b6f);};}function removeListener(_0x218232,_0x2f43b6){return function(){UserProfileEvents[_0x6246('0x2')](_0x218232,_0x2f43b6);};}exports[_0x6246('0x3')]=function(_0x2b35d3){for(var _0x25f06c=0x0,_0xe378e3=events[_0x6246('0x4')];_0x25f06c<_0xe378e3;_0x25f06c++){var _0x10add8=events[_0x25f06c];var _0x3fe064=createListener(_0x6246('0x5')+_0x10add8,_0x2b35d3);UserProfileEvents['on'](_0x10add8,_0x3fe064);}};