Built motion from commit 43538d75.|2.5.35
[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 _0xb97d=['remove','emit','userProfile:','save'];(function(_0x30ae5e,_0x391fc4){var _0x1f2e93=function(_0x60307d){while(--_0x60307d){_0x30ae5e['push'](_0x30ae5e['shift']());}};_0x1f2e93(++_0x391fc4);}(_0xb97d,0xfb));var _0xdb97=function(_0x34bf97,_0xc60f9d){_0x34bf97=_0x34bf97-0x0;var _0x292719=_0xb97d[_0x34bf97];return _0x292719;};'use strict';var UserProfileEvents=require('./userProfile.events');var events=[_0xdb97('0x0'),_0xdb97('0x1'),'update'];function createListener(_0x1be0aa,_0x1e3612){return function(_0x290e27){_0x1e3612[_0xdb97('0x2')](_0x1be0aa,_0x290e27);};}function removeListener(_0x37950c,_0x274395){return function(){UserProfileEvents['removeListener'](_0x37950c,_0x274395);};}exports['register']=function(_0x4b3816){for(var _0x49d477=0x0,_0x104b21=events['length'];_0x49d477<_0x104b21;_0x49d477++){var _0x364cb4=events[_0x49d477];var _0x26e2de=createListener(_0xdb97('0x3')+_0x364cb4,_0x4b3816);UserProfileEvents['on'](_0x364cb4,_0x26e2de);}};