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 _0xa995=['removeListener','length','openchannelQueue:','remove','emit'];(function(_0x1a84c4,_0x5d6bff){var _0x5bc853=function(_0x3016e6){while(--_0x3016e6){_0x1a84c4['push'](_0x1a84c4['shift']());}};_0x5bc853(++_0x5d6bff);}(_0xa995,0x134));var _0x5a99=function(_0x3337e3,_0x780ba5){_0x3337e3=_0x3337e3-0x0;var _0x1f3e60=_0xa995[_0x3337e3];return _0x1f3e60;};'use strict';var OpenchannelQueueEvents=require('./openchannelQueue.events');var events=['save',_0x5a99('0x0'),'update'];function createListener(_0x270f93,_0x19f2ae){return function(_0x1f359d){_0x19f2ae[_0x5a99('0x1')](_0x270f93,_0x1f359d);};}function removeListener(_0x1eba87,_0x2a0251){return function(){OpenchannelQueueEvents[_0x5a99('0x2')](_0x1eba87,_0x2a0251);};}exports['register']=function(_0x22a8e4){for(var _0x9e907c=0x0,_0x2c10e7=events[_0x5a99('0x3')];_0x9e907c<_0x2c10e7;_0x9e907c++){var _0x198ce7=events[_0x9e907c];var _0x1e049e=createListener(_0x5a99('0x4')+_0x198ce7,_0x22a8e4);OpenchannelQueueEvents['on'](_0x198ce7,_0x1e049e);}};