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 _0x6d40=['length','team:','./team.events','save','update','emit','removeListener'];(function(_0x5f1116,_0x49762d){var _0x41c98b=function(_0x37ac90){while(--_0x37ac90){_0x5f1116['push'](_0x5f1116['shift']());}};_0x41c98b(++_0x49762d);}(_0x6d40,0x1ec));var _0x06d4=function(_0x448ddf,_0x4fa28c){_0x448ddf=_0x448ddf-0x0;var _0x567d9f=_0x6d40[_0x448ddf];return _0x567d9f;};'use strict';var TeamEvents=require(_0x06d4('0x0'));var events=[_0x06d4('0x1'),'remove',_0x06d4('0x2')];function createListener(_0x3fde81,_0x99c0cc){return function(_0x31af59){_0x99c0cc[_0x06d4('0x3')](_0x3fde81,_0x31af59);};}function removeListener(_0x22bdf7,_0x14ef32){return function(){TeamEvents[_0x06d4('0x4')](_0x22bdf7,_0x14ef32);};}exports['register']=function(_0xa29be3){for(var _0x41b21c=0x0,_0x36f174=events[_0x06d4('0x5')];_0x41b21c<_0x36f174;_0x41b21c++){var _0x35275f=events[_0x41b21c];var _0x4b5868=createListener(_0x06d4('0x6')+_0x35275f,_0xa29be3);TeamEvents['on'](_0x35275f,_0x4b5868);}};