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 _0x21c7=['cmContact:','save','remove','update','emit','removeListener','register','length'];(function(_0x302ab3,_0x21ab7b){var _0x12c0ca=function(_0x91ebf6){while(--_0x91ebf6){_0x302ab3['push'](_0x302ab3['shift']());}};_0x12c0ca(++_0x21ab7b);}(_0x21c7,0xf1));var _0x721c=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x21c7[_0x3dd15e];return _0x231fd0;};'use strict';var CmContactEvents=require('./cmContact.events');var events=[_0x721c('0x0'),_0x721c('0x1'),_0x721c('0x2')];function createListener(_0x1b6286,_0x4f052e){return function(_0x463fc3){_0x4f052e[_0x721c('0x3')](_0x1b6286,_0x463fc3);};}function removeListener(_0x2768ee,_0x4a8874){return function(){CmContactEvents[_0x721c('0x4')](_0x2768ee,_0x4a8874);};}exports[_0x721c('0x5')]=function(_0x10b602){for(var _0x485e17=0x0,_0x127b47=events[_0x721c('0x6')];_0x485e17<_0x127b47;_0x485e17++){var _0x3b4213=events[_0x485e17];var _0x1cb781=createListener(_0x721c('0x7')+_0x3b4213,_0x10b602);CmContactEvents['on'](_0x3b4213,_0x1cb781);}};