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 _0x893a=['update','register','length','./faxQueue.events','save'];(function(_0x54105,_0x12af79){var _0x56ea83=function(_0x37f1e6){while(--_0x37f1e6){_0x54105['push'](_0x54105['shift']());}};_0x56ea83(++_0x12af79);}(_0x893a,0x7b));var _0xa893=function(_0x14ddc4,_0x3847a3){_0x14ddc4=_0x14ddc4-0x0;var _0x28e482=_0x893a[_0x14ddc4];return _0x28e482;};'use strict';var FaxQueueEvents=require(_0xa893('0x0'));var events=[_0xa893('0x1'),'remove',_0xa893('0x2')];function createListener(_0x4fbcd3,_0x479477){return function(_0x214f16){_0x479477['emit'](_0x4fbcd3,_0x214f16);};}function removeListener(_0xd75a00,_0x2f6324){return function(){FaxQueueEvents['removeListener'](_0xd75a00,_0x2f6324);};}exports[_0xa893('0x3')]=function(_0x38b214){for(var _0xc9c8b=0x0,_0x591982=events[_0xa893('0x4')];_0xc9c8b<_0x591982;_0xc9c8b++){var _0x40829c=events[_0xc9c8b];var _0x548831=createListener('faxQueue:'+_0x40829c,_0x38b214);FaxQueueEvents['on'](_0x40829c,_0x548831);}};