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 _0xd139=['length','faxQueue:','save','update','emit','removeListener'];(function(_0x1bfdf0,_0xedf14b){var _0x44ffc5=function(_0x13b36c){while(--_0x13b36c){_0x1bfdf0['push'](_0x1bfdf0['shift']());}};_0x44ffc5(++_0xedf14b);}(_0xd139,0x164));var _0x9d13=function(_0x5497ab,_0x5643d8){_0x5497ab=_0x5497ab-0x0;var _0x271a77=_0xd139[_0x5497ab];return _0x271a77;};'use strict';var FaxQueueEvents=require('./faxQueue.events');var events=[_0x9d13('0x0'),'remove',_0x9d13('0x1')];function createListener(_0x291ce8,_0x267276){return function(_0x507b4f){_0x267276[_0x9d13('0x2')](_0x291ce8,_0x507b4f);};}function removeListener(_0xaddd6b,_0x406f64){return function(){FaxQueueEvents[_0x9d13('0x3')](_0xaddd6b,_0x406f64);};}exports['register']=function(_0x133b79){for(var _0x236ffd=0x0,_0x4c6369=events[_0x9d13('0x4')];_0x236ffd<_0x4c6369;_0x236ffd++){var _0x430995=events[_0x236ffd];var _0x38e121=createListener(_0x9d13('0x5')+_0x430995,_0x133b79);FaxQueueEvents['on'](_0x430995,_0x38e121);}};