1 // *************************************************************************
3 // * xCALLY Motion - The Omnichannel Contact Center *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved *
6 // *************************************************************************
8 // * Email: info@xcally.com *
9 // * Website: https://www.xcally.com *
11 // *************************************************************************
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. *
17 // *************************************************************************
18 var _0x87d9=['emit','removeListener','length','user:','./user.events','save','update'];(function(_0x253096,_0x179bfe){var _0x492423=function(_0x125b9c){while(--_0x125b9c){_0x253096['push'](_0x253096['shift']());}};_0x492423(++_0x179bfe);}(_0x87d9,0x14d));var _0x987d=function(_0xddb860,_0x344918){_0xddb860=_0xddb860-0x0;var _0x255df9=_0x87d9[_0xddb860];return _0x255df9;};'use strict';var UserEvents=require(_0x987d('0x0'));var events=[_0x987d('0x1'),'remove',_0x987d('0x2')];function createListener(_0x20d18a,_0x121415){return function(_0x422c64){_0x121415[_0x987d('0x3')](_0x20d18a,_0x422c64);};}function removeListener(_0x3b17c7,_0x7c4f02){return function(){UserEvents[_0x987d('0x4')](_0x3b17c7,_0x7c4f02);};}exports['register']=function(_0x47242e){for(var _0x5bb489=0x0,_0x5c393f=events[_0x987d('0x5')];_0x5bb489<_0x5c393f;_0x5bb489++){var _0x2dc8f4=events[_0x5bb489];var _0x15f9c6=createListener(_0x987d('0x6')+_0x2dc8f4,_0x47242e);UserEvents['on'](_0x2dc8f4,_0x15f9c6);}};