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 _0x075c=['cmContact:','save','update','emit','removeListener','length'];(function(_0x47f63d,_0x3375b0){var _0x1bdf5a=function(_0x5e9d90){while(--_0x5e9d90){_0x47f63d['push'](_0x47f63d['shift']());}};_0x1bdf5a(++_0x3375b0);}(_0x075c,0x109));var _0xc075=function(_0x35fe29,_0x3e0dcd){_0x35fe29=_0x35fe29-0x0;var _0x39d6ec=_0x075c[_0x35fe29];return _0x39d6ec;};'use strict';var CmContactEvents=require('./cmContact.events');var events=[_0xc075('0x0'),'remove',_0xc075('0x1')];function createListener(_0x5b6818,_0x4b02b6){return function(_0x48d079){_0x4b02b6[_0xc075('0x2')](_0x5b6818,_0x48d079);};}function removeListener(_0x3cbfcf,_0x26ca02){return function(){CmContactEvents[_0xc075('0x3')](_0x3cbfcf,_0x26ca02);};}exports['register']=function(_0x4f2a90){for(var _0x12fb1d=0x0,_0x57a8d9=events[_0xc075('0x4')];_0x12fb1d<_0x57a8d9;_0x12fb1d++){var _0x27d2a0=events[_0x12fb1d];var _0x379591=createListener(_0xc075('0x5')+_0x27d2a0,_0x4f2a90);CmContactEvents['on'](_0x27d2a0,_0x379591);}};