Built motion from commit (unavailable).|2.5.30
[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 _0x393c=['length','update','emit','removeListener'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x393c,0x1d5));var _0xc393=function(_0x648dea,_0x278360){_0x648dea=_0x648dea-0x0;var _0x1c88eb=_0x393c[_0x648dea];return _0x1c88eb;};'use strict';var UserProfileEvents=require('./userProfile.events');var events=['save','remove',_0xc393('0x0')];function createListener(_0x129aa3,_0x883cb2){return function(_0x4bde6c){_0x883cb2[_0xc393('0x1')](_0x129aa3,_0x4bde6c);};}function removeListener(_0x41d9b0,_0x12c166){return function(){UserProfileEvents[_0xc393('0x2')](_0x41d9b0,_0x12c166);};}exports['register']=function(_0x2dc8bf){for(var _0x325ed4=0x0,_0x32a565=events[_0xc393('0x3')];_0x325ed4<_0x32a565;_0x325ed4++){var _0x41eb55=events[_0x325ed4];var _0x2acd88=createListener('userProfile:'+_0x41eb55,_0x2dc8bf);UserProfileEvents['on'](_0x41eb55,_0x2acd88);}};