Built motion from commit (unavailable).|2.5.13
[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 _0x4da6=['emit','removeListener','register','length','userProfile:','./userProfile.events','save','remove'];(function(_0x2cad3d,_0x3a06da){var _0x569446=function(_0x38864e){while(--_0x38864e){_0x2cad3d['push'](_0x2cad3d['shift']());}};_0x569446(++_0x3a06da);}(_0x4da6,0x14d));var _0x64da=function(_0x15249c,_0x58bdd0){_0x15249c=_0x15249c-0x0;var _0x1ca6a1=_0x4da6[_0x15249c];return _0x1ca6a1;};'use strict';var UserProfileEvents=require(_0x64da('0x0'));var events=[_0x64da('0x1'),_0x64da('0x2'),'update'];function createListener(_0x23fa15,_0x5b4a98){return function(_0x563bd9){_0x5b4a98[_0x64da('0x3')](_0x23fa15,_0x563bd9);};}function removeListener(_0x604c,_0x59b27b){return function(){UserProfileEvents[_0x64da('0x4')](_0x604c,_0x59b27b);};}exports[_0x64da('0x5')]=function(_0xd0842e){for(var _0x3b6e6e=0x0,_0x38938f=events[_0x64da('0x6')];_0x3b6e6e<_0x38938f;_0x3b6e6e++){var _0x37eb2b=events[_0x3b6e6e];var _0x4f6aba=createListener(_0x64da('0x7')+_0x37eb2b,_0xd0842e);UserProfileEvents['on'](_0x37eb2b,_0x4f6aba);}};