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 _0x3bcf=['update','emit','removeListener','length','./faxQueue.events','save','remove'];(function(_0x2053ea,_0x1ab2d4){var _0x2232c4=function(_0x4230df){while(--_0x4230df){_0x2053ea['push'](_0x2053ea['shift']());}};_0x2232c4(++_0x1ab2d4);}(_0x3bcf,0xdd));var _0xf3bc=function(_0x191a35,_0x2140be){_0x191a35=_0x191a35-0x0;var _0x1220f3=_0x3bcf[_0x191a35];return _0x1220f3;};'use strict';var FaxQueueEvents=require(_0xf3bc('0x0'));var events=[_0xf3bc('0x1'),_0xf3bc('0x2'),_0xf3bc('0x3')];function createListener(_0x13021e,_0x3a7b98){return function(_0x47c1d5){_0x3a7b98[_0xf3bc('0x4')](_0x13021e,_0x47c1d5);};}function removeListener(_0x412e93,_0x31d88a){return function(){FaxQueueEvents[_0xf3bc('0x5')](_0x412e93,_0x31d88a);};}exports['register']=function(_0x403472){for(var _0x3456d0=0x0,_0x37bae7=events[_0xf3bc('0x6')];_0x3456d0<_0x37bae7;_0x3456d0++){var _0x137de6=events[_0x3456d0];var _0x26960c=createListener('faxQueue:'+_0x137de6,_0x403472);FaxQueueEvents['on'](_0x137de6,_0x26960c);}};