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 _0xc9fb=['update','emit','length','faxQueue:','remove'];(function(_0x3e99cb,_0x1d2fe0){var _0x1bc729=function(_0x40006f){while(--_0x40006f){_0x3e99cb['push'](_0x3e99cb['shift']());}};_0x1bc729(++_0x1d2fe0);}(_0xc9fb,0x1b7));var _0xbc9f=function(_0x5db4e5,_0x1079ae){_0x5db4e5=_0x5db4e5-0x0;var _0x2fe234=_0xc9fb[_0x5db4e5];return _0x2fe234;};'use strict';var FaxQueueEvents=require('./faxQueue.events');var events=['save',_0xbc9f('0x0'),_0xbc9f('0x1')];function createListener(_0x523774,_0x4d5ffa){return function(_0x392fd4){_0x4d5ffa[_0xbc9f('0x2')](_0x523774,_0x392fd4);};}function removeListener(_0x53a26b,_0x1030fb){return function(){FaxQueueEvents['removeListener'](_0x53a26b,_0x1030fb);};}exports['register']=function(_0xe546ae){for(var _0x21c0e6=0x0,_0x15ec44=events[_0xbc9f('0x3')];_0x21c0e6<_0x15ec44;_0x21c0e6++){var _0x20024b=events[_0x21c0e6];var _0x3a1bcc=createListener(_0xbc9f('0x4')+_0x20024b,_0xe546ae);FaxQueueEvents['on'](_0x20024b,_0x3a1bcc);}};