Built motion from commit (unavailable).|2.5.14
[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 _0x6d06=['removeListener','./userProfile.events','save'];(function(_0x3e5086,_0x48f4a2){var _0xfeb102=function(_0x5a945f){while(--_0x5a945f){_0x3e5086['push'](_0x3e5086['shift']());}};_0xfeb102(++_0x48f4a2);}(_0x6d06,0x181));var _0x66d0=function(_0x5d8018,_0x588592){_0x5d8018=_0x5d8018-0x0;var _0x151ac4=_0x6d06[_0x5d8018];return _0x151ac4;};'use strict';var UserProfileEvents=require(_0x66d0('0x0'));var events=[_0x66d0('0x1'),'remove','update'];function createListener(_0x5a9a83,_0xca90){return function(_0x586bee){_0xca90['emit'](_0x5a9a83,_0x586bee);};}function removeListener(_0x426139,_0x53812c){return function(){UserProfileEvents[_0x66d0('0x2')](_0x426139,_0x53812c);};}exports['register']=function(_0x3d4ee9){for(var _0x488e04=0x0,_0x91a723=events['length'];_0x488e04<_0x91a723;_0x488e04++){var _0x32e471=events[_0x488e04];var _0x3d9ae4=createListener('userProfile:'+_0x32e471,_0x3d4ee9);UserProfileEvents['on'](_0x32e471,_0x3d9ae4);}};