Built motion from commit (unavailable).|2.5.3
[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 _0x16ec=['length','userProfile:','./userProfile.events','remove','update','emit','register'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x16ec,0x6b));var _0xc16e=function(_0x4d0d3c,_0x3c82b0){_0x4d0d3c=_0x4d0d3c-0x0;var _0x31b282=_0x16ec[_0x4d0d3c];return _0x31b282;};'use strict';var UserProfileEvents=require(_0xc16e('0x0'));var events=['save',_0xc16e('0x1'),_0xc16e('0x2')];function createListener(_0x3996c4,_0x224266){return function(_0x18d934){_0x224266[_0xc16e('0x3')](_0x3996c4,_0x18d934);};}function removeListener(_0x56dde7,_0x511a43){return function(){UserProfileEvents['removeListener'](_0x56dde7,_0x511a43);};}exports[_0xc16e('0x4')]=function(_0x817b46){for(var _0x141c99=0x0,_0x31d193=events[_0xc16e('0x5')];_0x141c99<_0x31d193;_0x141c99++){var _0x5452de=events[_0x141c99];var _0x56a23b=createListener(_0xc16e('0x6')+_0x5452de,_0x817b46);UserProfileEvents['on'](_0x5452de,_0x56a23b);}};