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 _0x91a9=['update','register','openchannelQueue:','./openchannelQueue.events'];(function(_0x21cee1,_0xd8683){var _0x48f04c=function(_0x15c6f9){while(--_0x15c6f9){_0x21cee1['push'](_0x21cee1['shift']());}};_0x48f04c(++_0xd8683);}(_0x91a9,0x183));var _0x991a=function(_0x297889,_0x3d0c4e){_0x297889=_0x297889-0x0;var _0x531d5e=_0x91a9[_0x297889];return _0x531d5e;};'use strict';var OpenchannelQueueEvents=require(_0x991a('0x0'));var events=['save','remove',_0x991a('0x1')];function createListener(_0x1e6b7f,_0x422e96){return function(_0x8b7200){_0x422e96['emit'](_0x1e6b7f,_0x8b7200);};}function removeListener(_0x55b541,_0x34bb16){return function(){OpenchannelQueueEvents['removeListener'](_0x55b541,_0x34bb16);};}exports[_0x991a('0x2')]=function(_0x1edb14){for(var _0x353f05=0x0,_0x3b2fa9=events['length'];_0x353f05<_0x3b2fa9;_0x353f05++){var _0xb4c656=events[_0x353f05];var _0x59a8dd=createListener(_0x991a('0x3')+_0xb4c656,_0x1edb14);OpenchannelQueueEvents['on'](_0xb4c656,_0x59a8dd);}};