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 _0x27df=['user:','./user.events','save','remove','update','emit','removeListener','register'];(function(_0x512405,_0x334c72){var _0x2cc7be=function(_0x4b2af1){while(--_0x4b2af1){_0x512405['push'](_0x512405['shift']());}};_0x2cc7be(++_0x334c72);}(_0x27df,0x159));var _0xf27d=function(_0x439a54,_0x37dc2a){_0x439a54=_0x439a54-0x0;var _0x41053d=_0x27df[_0x439a54];return _0x41053d;};'use strict';var UserEvents=require(_0xf27d('0x0'));var events=[_0xf27d('0x1'),_0xf27d('0x2'),_0xf27d('0x3')];function createListener(_0x417446,_0x1ed889){return function(_0x5773b6){_0x1ed889[_0xf27d('0x4')](_0x417446,_0x5773b6);};}function removeListener(_0x5f14d4,_0x375b6c){return function(){UserEvents[_0xf27d('0x5')](_0x5f14d4,_0x375b6c);};}exports[_0xf27d('0x6')]=function(_0x521e5f){for(var _0x207f28=0x0,_0x1eb48c=events['length'];_0x207f28<_0x1eb48c;_0x207f28++){var _0x2734e5=events[_0x207f28];var _0x5f29e5=createListener(_0xf27d('0x7')+_0x2734e5,_0x521e5f);UserEvents['on'](_0x2734e5,_0x5f29e5);}};