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 _0x5021=['removeListener','length','./cmContact.events','save','remove','update'];(function(_0x16d10f,_0x2ba2d5){var _0x50c823=function(_0x44e43f){while(--_0x44e43f){_0x16d10f['push'](_0x16d10f['shift']());}};_0x50c823(++_0x2ba2d5);}(_0x5021,0xec));var _0x1502=function(_0x366fa0,_0x4e78ab){_0x366fa0=_0x366fa0-0x0;var _0x3f1962=_0x5021[_0x366fa0];return _0x3f1962;};'use strict';var CmContactEvents=require(_0x1502('0x0'));var events=[_0x1502('0x1'),_0x1502('0x2'),_0x1502('0x3')];function createListener(_0x2fcf6e,_0x3af73c){return function(_0x56b027){_0x3af73c['emit'](_0x2fcf6e,_0x56b027);};}function removeListener(_0x2dceab,_0x34ac79){return function(){CmContactEvents[_0x1502('0x4')](_0x2dceab,_0x34ac79);};}exports['register']=function(_0x3107d2){for(var _0x2b1a15=0x0,_0x3ed490=events[_0x1502('0x5')];_0x2b1a15<_0x3ed490;_0x2b1a15++){var _0x51e7aa=events[_0x2b1a15];var _0x4ebabb=createListener('cmContact:'+_0x51e7aa,_0x3107d2);CmContactEvents['on'](_0x51e7aa,_0x4ebabb);}};