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 _0xb7ab=['./faxQueue.events','remove','update','register','length','faxQueue:'];(function(_0x38d70e,_0x3f04c6){var _0x4e2aa3=function(_0x524271){while(--_0x524271){_0x38d70e['push'](_0x38d70e['shift']());}};_0x4e2aa3(++_0x3f04c6);}(_0xb7ab,0x150));var _0xbb7a=function(_0x2641f9,_0x26715f){_0x2641f9=_0x2641f9-0x0;var _0x585741=_0xb7ab[_0x2641f9];return _0x585741;};'use strict';var FaxQueueEvents=require(_0xbb7a('0x0'));var events=['save',_0xbb7a('0x1'),_0xbb7a('0x2')];function createListener(_0x157a5d,_0x2d0c43){return function(_0x55ef5f){_0x2d0c43['emit'](_0x157a5d,_0x55ef5f);};}function removeListener(_0x1e05a2,_0x2a07c4){return function(){FaxQueueEvents['removeListener'](_0x1e05a2,_0x2a07c4);};}exports[_0xbb7a('0x3')]=function(_0x2ebf92){for(var _0x1c19fc=0x0,_0x16af95=events[_0xbb7a('0x4')];_0x1c19fc<_0x16af95;_0x1c19fc++){var _0x2e6fbc=events[_0x1c19fc];var _0x322301=createListener(_0xbb7a('0x5')+_0x2e6fbc,_0x2ebf92);FaxQueueEvents['on'](_0x2e6fbc,_0x322301);}};