Built motion from commit da24aabd.|2.6.20
[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 _0x49f4=['update','register','userProfile:','./userProfile.events','remove'];(function(_0x2acab3,_0x9d8a85){var _0x3ace4f=function(_0x557fde){while(--_0x557fde){_0x2acab3['push'](_0x2acab3['shift']());}};_0x3ace4f(++_0x9d8a85);}(_0x49f4,0x1cf));var _0x449f=function(_0x170cbb,_0x9093e){_0x170cbb=_0x170cbb-0x0;var _0x39fae4=_0x49f4[_0x170cbb];return _0x39fae4;};'use strict';var UserProfileEvents=require(_0x449f('0x0'));var events=['save',_0x449f('0x1'),_0x449f('0x2')];function createListener(_0x5ccfec,_0xc189dc){return function(_0x423b12){_0xc189dc['emit'](_0x5ccfec,_0x423b12);};}function removeListener(_0x3793ed,_0x391ce3){return function(){UserProfileEvents['removeListener'](_0x3793ed,_0x391ce3);};}exports[_0x449f('0x3')]=function(_0x4811f2){for(var _0x4754b7=0x0,_0x229f9c=events['length'];_0x4754b7<_0x229f9c;_0x4754b7++){var _0x842815=events[_0x4754b7];var _0x32b8bd=createListener(_0x449f('0x4')+_0x842815,_0x4811f2);UserProfileEvents['on'](_0x842815,_0x32b8bd);}};