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 _0x312f=['length','./faxQueue.events','save','update','removeListener'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x312f,0xbf));var _0xf312=function(_0x128ebe,_0x34500b){_0x128ebe=_0x128ebe-0x0;var _0x21fa74=_0x312f[_0x128ebe];return _0x21fa74;};'use strict';var FaxQueueEvents=require(_0xf312('0x0'));var events=[_0xf312('0x1'),'remove',_0xf312('0x2')];function createListener(_0x4bf09d,_0x34a1f5){return function(_0x582c49){_0x34a1f5['emit'](_0x4bf09d,_0x582c49);};}function removeListener(_0x12ed35,_0x5bf262){return function(){FaxQueueEvents[_0xf312('0x3')](_0x12ed35,_0x5bf262);};}exports['register']=function(_0x33f629){for(var _0xd9848d=0x0,_0x537930=events[_0xf312('0x4')];_0xd9848d<_0x537930;_0xd9848d++){var _0x52e37a=events[_0xd9848d];var _0x4f2197=createListener('faxQueue:'+_0x52e37a,_0x33f629);FaxQueueEvents['on'](_0x52e37a,_0x4f2197);}};