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 _0xf66d=['length','faxQueue:','./faxQueue.events','save','remove','update','emit','removeListener'];(function(_0x194494,_0x57c76e){var _0x45acaf=function(_0x37e62f){while(--_0x37e62f){_0x194494['push'](_0x194494['shift']());}};_0x45acaf(++_0x57c76e);}(_0xf66d,0x152));var _0xdf66=function(_0x110c3d,_0x12ee06){_0x110c3d=_0x110c3d-0x0;var _0x226d67=_0xf66d[_0x110c3d];return _0x226d67;};'use strict';var FaxQueueEvents=require(_0xdf66('0x0'));var events=[_0xdf66('0x1'),_0xdf66('0x2'),_0xdf66('0x3')];function createListener(_0x3cf97b,_0x3b89db){return function(_0x3da7ef){_0x3b89db[_0xdf66('0x4')](_0x3cf97b,_0x3da7ef);};}function removeListener(_0x3b6543,_0xf6623){return function(){FaxQueueEvents[_0xdf66('0x5')](_0x3b6543,_0xf6623);};}exports['register']=function(_0x15a79f){for(var _0x3e186f=0x0,_0x310cc2=events[_0xdf66('0x6')];_0x3e186f<_0x310cc2;_0x3e186f++){var _0xa2db19=events[_0x3e186f];var _0x46b345=createListener(_0xdf66('0x7')+_0xa2db19,_0x15a79f);FaxQueueEvents['on'](_0xa2db19,_0x46b345);}};