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 _0x50c3=['register','length','faxQueue:','./faxQueue.events','save','remove','update','emit','removeListener'];(function(_0x21a9d9,_0x4d5ac8){var _0x46adce=function(_0xfdd336){while(--_0xfdd336){_0x21a9d9['push'](_0x21a9d9['shift']());}};_0x46adce(++_0x4d5ac8);}(_0x50c3,0x1aa));var _0x350c=function(_0x6494dc,_0x1ca181){_0x6494dc=_0x6494dc-0x0;var _0x42a167=_0x50c3[_0x6494dc];return _0x42a167;};'use strict';var FaxQueueEvents=require(_0x350c('0x0'));var events=[_0x350c('0x1'),_0x350c('0x2'),_0x350c('0x3')];function createListener(_0x239ed9,_0x19a7f0){return function(_0x557940){_0x19a7f0[_0x350c('0x4')](_0x239ed9,_0x557940);};}function removeListener(_0x5719c2,_0x4b03a7){return function(){FaxQueueEvents[_0x350c('0x5')](_0x5719c2,_0x4b03a7);};}exports[_0x350c('0x6')]=function(_0x4d3fa7){for(var _0x31317b=0x0,_0x52ea29=events[_0x350c('0x7')];_0x31317b<_0x52ea29;_0x31317b++){var _0x4d072f=events[_0x31317b];var _0x423a0f=createListener(_0x350c('0x8')+_0x4d072f,_0x4d3fa7);FaxQueueEvents['on'](_0x4d072f,_0x423a0f);}};