Built motion from commit 753c950e.|2.5.42
[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 _0x6d73=['emit','removeListener','register','length','userProfile:','./userProfile.events','save','remove','update'];(function(_0x28fc08,_0x18b054){var _0xa6a26b=function(_0x3933b2){while(--_0x3933b2){_0x28fc08['push'](_0x28fc08['shift']());}};_0xa6a26b(++_0x18b054);}(_0x6d73,0x1b5));var _0x36d7=function(_0x378d18,_0x17362b){_0x378d18=_0x378d18-0x0;var _0x52d233=_0x6d73[_0x378d18];return _0x52d233;};'use strict';var UserProfileEvents=require(_0x36d7('0x0'));var events=[_0x36d7('0x1'),_0x36d7('0x2'),_0x36d7('0x3')];function createListener(_0x22ff7b,_0x773446){return function(_0x1f8131){_0x773446[_0x36d7('0x4')](_0x22ff7b,_0x1f8131);};}function removeListener(_0x3814a5,_0x1810f8){return function(){UserProfileEvents[_0x36d7('0x5')](_0x3814a5,_0x1810f8);};}exports[_0x36d7('0x6')]=function(_0x364ff3){for(var _0x13780b=0x0,_0x1a5adf=events[_0x36d7('0x7')];_0x13780b<_0x1a5adf;_0x13780b++){var _0x121187=events[_0x13780b];var _0x2e7cea=createListener(_0x36d7('0x8')+_0x121187,_0x364ff3);UserProfileEvents['on'](_0x121187,_0x2e7cea);}};