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 _0x5cff=['remove','emit','removeListener','length','faxQueue:','save'];(function(_0x2e3545,_0x20a6ec){var _0xcf18f=function(_0x3c85dd){while(--_0x3c85dd){_0x2e3545['push'](_0x2e3545['shift']());}};_0xcf18f(++_0x20a6ec);}(_0x5cff,0x107));var _0xf5cf=function(_0x520f86,_0x240cc0){_0x520f86=_0x520f86-0x0;var _0x4b6523=_0x5cff[_0x520f86];return _0x4b6523;};'use strict';var FaxQueueEvents=require('./faxQueue.events');var events=[_0xf5cf('0x0'),_0xf5cf('0x1'),'update'];function createListener(_0x403fe9,_0x49b105){return function(_0xf35361){_0x49b105[_0xf5cf('0x2')](_0x403fe9,_0xf35361);};}function removeListener(_0x5b803c,_0x3bf260){return function(){FaxQueueEvents[_0xf5cf('0x3')](_0x5b803c,_0x3bf260);};}exports['register']=function(_0x326b54){for(var _0x3cce6f=0x0,_0x36e2f7=events[_0xf5cf('0x4')];_0x3cce6f<_0x36e2f7;_0x3cce6f++){var _0x47d518=events[_0x3cce6f];var _0x1eb3df=createListener(_0xf5cf('0x5')+_0x47d518,_0x326b54);FaxQueueEvents['on'](_0x47d518,_0x1eb3df);}};