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 _0xa969=['save','emit','removeListener','register','length','cmContact:','./cmContact.events'];(function(_0x291e64,_0x27569a){var _0x148254=function(_0x745295){while(--_0x745295){_0x291e64['push'](_0x291e64['shift']());}};_0x148254(++_0x27569a);}(_0xa969,0xdf));var _0x9a96=function(_0x16ea87,_0x378d8b){_0x16ea87=_0x16ea87-0x0;var _0x6e7b1c=_0xa969[_0x16ea87];return _0x6e7b1c;};'use strict';var CmContactEvents=require(_0x9a96('0x0'));var events=[_0x9a96('0x1'),'remove','update'];function createListener(_0x112096,_0x46cbfe){return function(_0x1c586f){_0x46cbfe[_0x9a96('0x2')](_0x112096,_0x1c586f);};}function removeListener(_0x510372,_0x1e0510){return function(){CmContactEvents[_0x9a96('0x3')](_0x510372,_0x1e0510);};}exports[_0x9a96('0x4')]=function(_0x5d5f5a){for(var _0x4d6611=0x0,_0x10ff5d=events[_0x9a96('0x5')];_0x4d6611<_0x10ff5d;_0x4d6611++){var _0x5ed0a0=events[_0x4d6611];var _0x38ba3d=createListener(_0x9a96('0x6')+_0x5ed0a0,_0x5d5f5a);CmContactEvents['on'](_0x5ed0a0,_0x38ba3d);}};