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(_0x31377e,_0x4c41e7){var _0x3c2ae2=function(_0x52b3d0){while(--_0x52b3d0){_0x31377e['push'](_0x31377e['shift']());}};_0x3c2ae2(++_0x4c41e7);}(_0xf66d,0x152));var _0xdf66=function(_0x4dbaad,_0x730318){_0x4dbaad=_0x4dbaad-0x0;var _0x226c72=_0xf66d[_0x4dbaad];return _0x226c72;};'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);}};