Built motion from commit (unavailable).|2.5.22
[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 _0x0b64=['register','./userProfile.events','remove','removeListener'];(function(_0x187eae,_0x4680c7){var _0x455f40=function(_0x577553){while(--_0x577553){_0x187eae['push'](_0x187eae['shift']());}};_0x455f40(++_0x4680c7);}(_0x0b64,0x1b5));var _0x40b6=function(_0x24ce58,_0x5d8311){_0x24ce58=_0x24ce58-0x0;var _0x206d11=_0x0b64[_0x24ce58];return _0x206d11;};'use strict';var UserProfileEvents=require(_0x40b6('0x0'));var events=['save',_0x40b6('0x1'),'update'];function createListener(_0x1425c5,_0x3947ba){return function(_0x567dd5){_0x3947ba['emit'](_0x1425c5,_0x567dd5);};}function removeListener(_0x2d0ab1,_0xa797c2){return function(){UserProfileEvents[_0x40b6('0x2')](_0x2d0ab1,_0xa797c2);};}exports[_0x40b6('0x3')]=function(_0x5765bd){for(var _0x2fe593=0x0,_0x5c72f1=events['length'];_0x2fe593<_0x5c72f1;_0x2fe593++){var _0x48b742=events[_0x2fe593];var _0x5c6a1c=createListener('userProfile:'+_0x48b742,_0x5765bd);UserProfileEvents['on'](_0x48b742,_0x5c6a1c);}};