Built motion from commit (unavailable).|2.5.4
[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 _0xd3f1=['save','emit','removeListener','register'];(function(_0x5aef17,_0x592cd4){var _0x43f9d0=function(_0x49ea9c){while(--_0x49ea9c){_0x5aef17['push'](_0x5aef17['shift']());}};_0x43f9d0(++_0x592cd4);}(_0xd3f1,0x94));var _0x1d3f=function(_0x88994f,_0x26aff0){_0x88994f=_0x88994f-0x0;var _0x89eef9=_0xd3f1[_0x88994f];return _0x89eef9;};'use strict';var UserProfileEvents=require('./userProfile.events');var events=[_0x1d3f('0x0'),'remove','update'];function createListener(_0x567af8,_0x5a4fb7){return function(_0x7b5540){_0x5a4fb7[_0x1d3f('0x1')](_0x567af8,_0x7b5540);};}function removeListener(_0x111496,_0x192dbc){return function(){UserProfileEvents[_0x1d3f('0x2')](_0x111496,_0x192dbc);};}exports[_0x1d3f('0x3')]=function(_0x11d29e){for(var _0x26e0d0=0x0,_0x5ebcad=events['length'];_0x26e0d0<_0x5ebcad;_0x26e0d0++){var _0x3ac053=events[_0x26e0d0];var _0x2a8db3=createListener('userProfile:'+_0x3ac053,_0x11d29e);UserProfileEvents['on'](_0x3ac053,_0x2a8db3);}};