Built motion from commit 5b761a7b.|2.5.36
[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 _0x8cf1=['remove','update','emit','register','length','./userProfile.events','save'];(function(_0x1345cc,_0x4272c1){var _0x334bba=function(_0x1fd8d6){while(--_0x1fd8d6){_0x1345cc['push'](_0x1345cc['shift']());}};_0x334bba(++_0x4272c1);}(_0x8cf1,0x186));var _0x18cf=function(_0xce8d2b,_0x2dc28e){_0xce8d2b=_0xce8d2b-0x0;var _0x26e772=_0x8cf1[_0xce8d2b];return _0x26e772;};'use strict';var UserProfileEvents=require(_0x18cf('0x0'));var events=[_0x18cf('0x1'),_0x18cf('0x2'),_0x18cf('0x3')];function createListener(_0x5e1bd0,_0x5da1f3){return function(_0x337673){_0x5da1f3[_0x18cf('0x4')](_0x5e1bd0,_0x337673);};}function removeListener(_0x3d9997,_0xe9c2ec){return function(){UserProfileEvents['removeListener'](_0x3d9997,_0xe9c2ec);};}exports[_0x18cf('0x5')]=function(_0x36e8d5){for(var _0x5f1a12=0x0,_0x37a40f=events[_0x18cf('0x6')];_0x5f1a12<_0x37a40f;_0x5f1a12++){var _0x1eac9f=events[_0x5f1a12];var _0x137630=createListener('userProfile:'+_0x1eac9f,_0x36e8d5);UserProfileEvents['on'](_0x1eac9f,_0x137630);}};