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 _0xfa85=['removeListener','length','cmContact:','save','remove','update','emit'];(function(_0x2d605c,_0xa51e5d){var _0x51f67c=function(_0x3e0f9c){while(--_0x3e0f9c){_0x2d605c['push'](_0x2d605c['shift']());}};_0x51f67c(++_0xa51e5d);}(_0xfa85,0x1f4));var _0x5fa8=function(_0x313841,_0x51bc20){_0x313841=_0x313841-0x0;var _0x26aec8=_0xfa85[_0x313841];return _0x26aec8;};'use strict';var CmContactEvents=require('./cmContact.events');var events=[_0x5fa8('0x0'),_0x5fa8('0x1'),_0x5fa8('0x2')];function createListener(_0x5451fa,_0x2c1a31){return function(_0x5e896f){_0x2c1a31[_0x5fa8('0x3')](_0x5451fa,_0x5e896f);};}function removeListener(_0x2e8815,_0x242e73){return function(){CmContactEvents[_0x5fa8('0x4')](_0x2e8815,_0x242e73);};}exports['register']=function(_0x5ae92b){for(var _0xbd8a73=0x0,_0x2cef87=events[_0x5fa8('0x5')];_0xbd8a73<_0x2cef87;_0xbd8a73++){var _0x2fc872=events[_0xbd8a73];var _0x5c3cbc=createListener(_0x5fa8('0x6')+_0x2fc872,_0x5ae92b);CmContactEvents['on'](_0x2fc872,_0x5c3cbc);}};