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 _0x22cb=['save','remove','emit','removeListener','length','./faxQueue.events'];(function(_0x5d93c1,_0x30a65f){var _0x26fbb9=function(_0x851274){while(--_0x851274){_0x5d93c1['push'](_0x5d93c1['shift']());}};_0x26fbb9(++_0x30a65f);}(_0x22cb,0x11f));var _0xb22c=function(_0x46698a,_0x8de1e4){_0x46698a=_0x46698a-0x0;var _0x356db0=_0x22cb[_0x46698a];return _0x356db0;};'use strict';var FaxQueueEvents=require(_0xb22c('0x0'));var events=[_0xb22c('0x1'),_0xb22c('0x2'),'update'];function createListener(_0x20cb70,_0x1bda76){return function(_0xf8a16c){_0x1bda76[_0xb22c('0x3')](_0x20cb70,_0xf8a16c);};}function removeListener(_0x548d53,_0x23f380){return function(){FaxQueueEvents[_0xb22c('0x4')](_0x548d53,_0x23f380);};}exports['register']=function(_0x2c88b5){for(var _0x335c23=0x0,_0x195e9f=events[_0xb22c('0x5')];_0x335c23<_0x195e9f;_0x335c23++){var _0x443919=events[_0x335c23];var _0x2771a6=createListener('faxQueue:'+_0x443919,_0x2c88b5);FaxQueueEvents['on'](_0x443919,_0x2771a6);}};