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 _0x99e9=['update','emit','removeListener','length','chatQueue:','save','remove'];(function(_0x536c1d,_0x4bac2d){var _0x399e88=function(_0x6e5c69){while(--_0x6e5c69){_0x536c1d['push'](_0x536c1d['shift']());}};_0x399e88(++_0x4bac2d);}(_0x99e9,0xb4));var _0x999e=function(_0x345de7,_0x1de531){_0x345de7=_0x345de7-0x0;var _0x26ffc7=_0x99e9[_0x345de7];return _0x26ffc7;};'use strict';var ChatQueueEvents=require('./chatQueue.events');var events=[_0x999e('0x0'),_0x999e('0x1'),_0x999e('0x2')];function createListener(_0x1c6fa0,_0x4aaeb4){return function(_0x19a818){_0x4aaeb4[_0x999e('0x3')](_0x1c6fa0,_0x19a818);};}function removeListener(_0x3aac27,_0x4e2112){return function(){ChatQueueEvents[_0x999e('0x4')](_0x3aac27,_0x4e2112);};}exports['register']=function(_0x25421f){for(var _0x1bda0a=0x0,_0x100330=events[_0x999e('0x5')];_0x1bda0a<_0x100330;_0x1bda0a++){var _0x5c1c17=events[_0x1bda0a];var _0x46aeae=createListener(_0x999e('0x6')+_0x5c1c17,_0x25421f);ChatQueueEvents['on'](_0x5c1c17,_0x46aeae);}};