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 _0xd1e4=['faxQueue:','./faxQueue.events','remove','removeListener','length'];(function(_0x1cf1c6,_0x378916){var _0x2e08af=function(_0x49b13f){while(--_0x49b13f){_0x1cf1c6['push'](_0x1cf1c6['shift']());}};_0x2e08af(++_0x378916);}(_0xd1e4,0x8d));var _0x4d1e=function(_0x4565bf,_0x5ad9d6){_0x4565bf=_0x4565bf-0x0;var _0x5610ba=_0xd1e4[_0x4565bf];return _0x5610ba;};'use strict';var FaxQueueEvents=require(_0x4d1e('0x0'));var events=['save',_0x4d1e('0x1'),'update'];function createListener(_0x30e26e,_0x3ac18f){return function(_0x45b9ba){_0x3ac18f['emit'](_0x30e26e,_0x45b9ba);};}function removeListener(_0x4e0861,_0x470a16){return function(){FaxQueueEvents[_0x4d1e('0x2')](_0x4e0861,_0x470a16);};}exports['register']=function(_0x18c7d0){for(var _0x517f6d=0x0,_0x2a77a9=events[_0x4d1e('0x3')];_0x517f6d<_0x2a77a9;_0x517f6d++){var _0x40c054=events[_0x517f6d];var _0x44a421=createListener(_0x4d1e('0x4')+_0x40c054,_0x18c7d0);FaxQueueEvents['on'](_0x40c054,_0x44a421);}};