Built motion from commit 37e1ed56.|2.6.29
[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 _0xf0cc=['length','userProfile:','remove','update','register'];(function(_0x3940e7,_0x5d7ea4){var _0x1f1f70=function(_0x1e5cda){while(--_0x1e5cda){_0x3940e7['push'](_0x3940e7['shift']());}};_0x1f1f70(++_0x5d7ea4);}(_0xf0cc,0x174));var _0xcf0c=function(_0x1bdd20,_0x30603b){_0x1bdd20=_0x1bdd20-0x0;var _0x263b81=_0xf0cc[_0x1bdd20];return _0x263b81;};'use strict';var UserProfileEvents=require('./userProfile.events');var events=['save',_0xcf0c('0x0'),_0xcf0c('0x1')];function createListener(_0x583e07,_0x1fcd14){return function(_0x555225){_0x1fcd14['emit'](_0x583e07,_0x555225);};}function removeListener(_0xfc81da,_0x221c6b){return function(){UserProfileEvents['removeListener'](_0xfc81da,_0x221c6b);};}exports[_0xcf0c('0x2')]=function(_0x18baf8){for(var _0x25cf5c=0x0,_0x4c1522=events[_0xcf0c('0x3')];_0x25cf5c<_0x4c1522;_0x25cf5c++){var _0xf79485=events[_0x25cf5c];var _0x5e167c=createListener(_0xcf0c('0x4')+_0xf79485,_0x18baf8);UserProfileEvents['on'](_0xf79485,_0x5e167c);}};