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 _0x8bbf=['emit','removeListener','length','faxQueue:','./faxQueue.events','save','remove','update'];(function(_0x95411e,_0x38b4c3){var _0x2c8718=function(_0x35c672){while(--_0x35c672){_0x95411e['push'](_0x95411e['shift']());}};_0x2c8718(++_0x38b4c3);}(_0x8bbf,0x184));var _0xf8bb=function(_0x223097,_0x3de0a8){_0x223097=_0x223097-0x0;var _0x144b40=_0x8bbf[_0x223097];return _0x144b40;};'use strict';var FaxQueueEvents=require(_0xf8bb('0x0'));var events=[_0xf8bb('0x1'),_0xf8bb('0x2'),_0xf8bb('0x3')];function createListener(_0x51aa74,_0x5248db){return function(_0x285f42){_0x5248db[_0xf8bb('0x4')](_0x51aa74,_0x285f42);};}function removeListener(_0x2bd69e,_0x377ab9){return function(){FaxQueueEvents[_0xf8bb('0x5')](_0x2bd69e,_0x377ab9);};}exports['register']=function(_0x2f140b){for(var _0x34387d=0x0,_0x8ca2ab=events[_0xf8bb('0x6')];_0x34387d<_0x8ca2ab;_0x34387d++){var _0x22143f=events[_0x34387d];var _0x183f5c=createListener(_0xf8bb('0x7')+_0x22143f,_0x2f140b);FaxQueueEvents['on'](_0x22143f,_0x183f5c);}};