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 _0x09f4=['faxQueue:','save','remove','emit','removeListener','register','length'];(function(_0x25ccbe,_0xc935c0){var _0x289529=function(_0x478776){while(--_0x478776){_0x25ccbe['push'](_0x25ccbe['shift']());}};_0x289529(++_0xc935c0);}(_0x09f4,0x1a5));var _0x409f=function(_0x74952f,_0x55e75d){_0x74952f=_0x74952f-0x0;var _0x51710c=_0x09f4[_0x74952f];return _0x51710c;};'use strict';var FaxQueueEvents=require('./faxQueue.events');var events=[_0x409f('0x0'),_0x409f('0x1'),'update'];function createListener(_0x188057,_0x21e534){return function(_0x55498f){_0x21e534[_0x409f('0x2')](_0x188057,_0x55498f);};}function removeListener(_0x1e52b5,_0x49d0df){return function(){FaxQueueEvents[_0x409f('0x3')](_0x1e52b5,_0x49d0df);};}exports[_0x409f('0x4')]=function(_0x96907f){for(var _0x44d4d1=0x0,_0x41f10a=events[_0x409f('0x5')];_0x44d4d1<_0x41f10a;_0x44d4d1++){var _0x210f96=events[_0x44d4d1];var _0x276232=createListener(_0x409f('0x6')+_0x210f96,_0x96907f);FaxQueueEvents['on'](_0x210f96,_0x276232);}};