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 _0x9b69=['removeListener','faxQueue:','./faxQueue.events','save','remove','update','emit'];(function(_0x37c22c,_0x28a70d){var _0x119d79=function(_0x243a13){while(--_0x243a13){_0x37c22c['push'](_0x37c22c['shift']());}};_0x119d79(++_0x28a70d);}(_0x9b69,0x183));var _0x99b6=function(_0x1813ab,_0x4647d2){_0x1813ab=_0x1813ab-0x0;var _0x9940c0=_0x9b69[_0x1813ab];return _0x9940c0;};'use strict';var FaxQueueEvents=require(_0x99b6('0x0'));var events=[_0x99b6('0x1'),_0x99b6('0x2'),_0x99b6('0x3')];function createListener(_0x99eb50,_0x14fabc){return function(_0x438331){_0x14fabc[_0x99b6('0x4')](_0x99eb50,_0x438331);};}function removeListener(_0x55ee36,_0x3fb51f){return function(){FaxQueueEvents[_0x99b6('0x5')](_0x55ee36,_0x3fb51f);};}exports['register']=function(_0x9705fa){for(var _0x26659f=0x0,_0x286986=events['length'];_0x26659f<_0x286986;_0x26659f++){var _0x460c5f=events[_0x26659f];var _0xfdc87f=createListener(_0x99b6('0x6')+_0x460c5f,_0x9705fa);FaxQueueEvents['on'](_0x460c5f,_0xfdc87f);}};