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 _0xc664=['remove','update','emit','length','cmContact:','./cmContact.events','save'];(function(_0x16b9ed,_0x56517a){var _0x66b1f8=function(_0x1c883){while(--_0x1c883){_0x16b9ed['push'](_0x16b9ed['shift']());}};_0x66b1f8(++_0x56517a);}(_0xc664,0x10f));var _0x4c66=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xc664[_0x3dd15e];return _0x231fd0;};'use strict';var CmContactEvents=require(_0x4c66('0x0'));var events=[_0x4c66('0x1'),_0x4c66('0x2'),_0x4c66('0x3')];function createListener(_0x1d792c,_0x5a6f88){return function(_0x1e20f1){_0x5a6f88[_0x4c66('0x4')](_0x1d792c,_0x1e20f1);};}function removeListener(_0x2525e1,_0x5cec28){return function(){CmContactEvents['removeListener'](_0x2525e1,_0x5cec28);};}exports['register']=function(_0x306b46){for(var _0x4690fc=0x0,_0xfeca0c=events[_0x4c66('0x5')];_0x4690fc<_0xfeca0c;_0x4690fc++){var _0x57e6be=events[_0x4690fc];var _0x4b8f07=createListener(_0x4c66('0x6')+_0x57e6be,_0x306b46);CmContactEvents['on'](_0x57e6be,_0x4b8f07);}};