Built motion from commit d1eab355.|2.6.28
[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 _0xea8b=['save','update','emit','removeListener','register'];(function(_0x4d5b8c,_0x244935){var _0x35bb52=function(_0x404639){while(--_0x404639){_0x4d5b8c['push'](_0x4d5b8c['shift']());}};_0x35bb52(++_0x244935);}(_0xea8b,0x122));var _0xbea8=function(_0x47aa64,_0xfb8a07){_0x47aa64=_0x47aa64-0x0;var _0x549c7a=_0xea8b[_0x47aa64];return _0x549c7a;};'use strict';var UserProfileEvents=require('./userProfile.events');var events=[_0xbea8('0x0'),'remove',_0xbea8('0x1')];function createListener(_0x461541,_0x64f72f){return function(_0x4ba549){_0x64f72f[_0xbea8('0x2')](_0x461541,_0x4ba549);};}function removeListener(_0x1403f4,_0x3c6bdf){return function(){UserProfileEvents[_0xbea8('0x3')](_0x1403f4,_0x3c6bdf);};}exports[_0xbea8('0x4')]=function(_0x37679b){for(var _0x568f66=0x0,_0x3382ae=events['length'];_0x568f66<_0x3382ae;_0x568f66++){var _0x519f41=events[_0x568f66];var _0x1bc10f=createListener('userProfile:'+_0x519f41,_0x37679b);UserProfileEvents['on'](_0x519f41,_0x1bc10f);}};