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 _0x8ebf=['emit','removeListener','register','length','openchannelQueue:','./openchannelQueue.events','save','remove','update'];(function(_0x10edeb,_0x1b93b8){var _0x1c5fea=function(_0x16a1c5){while(--_0x16a1c5){_0x10edeb['push'](_0x10edeb['shift']());}};_0x1c5fea(++_0x1b93b8);}(_0x8ebf,0x12e));var _0xf8eb=function(_0x3207aa,_0xe86a72){_0x3207aa=_0x3207aa-0x0;var _0x51758f=_0x8ebf[_0x3207aa];return _0x51758f;};'use strict';var OpenchannelQueueEvents=require(_0xf8eb('0x0'));var events=[_0xf8eb('0x1'),_0xf8eb('0x2'),_0xf8eb('0x3')];function createListener(_0x3d8bad,_0x2dab17){return function(_0x577ecd){_0x2dab17[_0xf8eb('0x4')](_0x3d8bad,_0x577ecd);};}function removeListener(_0x4fda95,_0x57959e){return function(){OpenchannelQueueEvents[_0xf8eb('0x5')](_0x4fda95,_0x57959e);};}exports[_0xf8eb('0x6')]=function(_0x3d9d56){for(var _0x46fb78=0x0,_0x45d19d=events[_0xf8eb('0x7')];_0x46fb78<_0x45d19d;_0x46fb78++){var _0x174d2d=events[_0x46fb78];var _0x366beb=createListener(_0xf8eb('0x8')+_0x174d2d,_0x3d9d56);OpenchannelQueueEvents['on'](_0x174d2d,_0x366beb);}};