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 _0x36ac=['remove','update','removeListener','register','length','./openchannelQueue.events','save'];(function(_0x59bcb1,_0x5a4b6c){var _0x4a737f=function(_0x546a49){while(--_0x546a49){_0x59bcb1['push'](_0x59bcb1['shift']());}};_0x4a737f(++_0x5a4b6c);}(_0x36ac,0x147));var _0xc36a=function(_0x15e55a,_0x2fc2b7){_0x15e55a=_0x15e55a-0x0;var _0x13ac48=_0x36ac[_0x15e55a];return _0x13ac48;};'use strict';var OpenchannelQueueEvents=require(_0xc36a('0x0'));var events=[_0xc36a('0x1'),_0xc36a('0x2'),_0xc36a('0x3')];function createListener(_0x2b2621,_0xabfe38){return function(_0x5b74d8){_0xabfe38['emit'](_0x2b2621,_0x5b74d8);};}function removeListener(_0x9fd95c,_0x5b0246){return function(){OpenchannelQueueEvents[_0xc36a('0x4')](_0x9fd95c,_0x5b0246);};}exports[_0xc36a('0x5')]=function(_0x72fe8e){for(var _0x1dbe46=0x0,_0x105a8d=events[_0xc36a('0x6')];_0x1dbe46<_0x105a8d;_0x1dbe46++){var _0x524d50=events[_0x1dbe46];var _0xca9251=createListener('openchannelQueue:'+_0x524d50,_0x72fe8e);OpenchannelQueueEvents['on'](_0x524d50,_0xca9251);}};