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 _0x4261=['emit','register','./userProfile.events','save'];(function(_0x5447aa,_0x3afc00){var _0xb21e53=function(_0x2d05f6){while(--_0x2d05f6){_0x5447aa['push'](_0x5447aa['shift']());}};_0xb21e53(++_0x3afc00);}(_0x4261,0x1ea));var _0x1426=function(_0x28947d,_0x4cc9c6){_0x28947d=_0x28947d-0x0;var _0x12d2ee=_0x4261[_0x28947d];return _0x12d2ee;};'use strict';var UserProfileEvents=require(_0x1426('0x0'));var events=[_0x1426('0x1'),'remove','update'];function createListener(_0x2f5bc3,_0x5c62d6){return function(_0x400882){_0x5c62d6[_0x1426('0x2')](_0x2f5bc3,_0x400882);};}function removeListener(_0x58d34a,_0x468346){return function(){UserProfileEvents['removeListener'](_0x58d34a,_0x468346);};}exports[_0x1426('0x3')]=function(_0x1a1f53){for(var _0x243a93=0x0,_0x52b0a2=events['length'];_0x243a93<_0x52b0a2;_0x243a93++){var _0x443948=events[_0x243a93];var _0x27b14c=createListener('userProfile:'+_0x443948,_0x1a1f53);UserProfileEvents['on'](_0x443948,_0x27b14c);}};