ed45e9565a015448487c4ae871f74c3c6e74c321
[motion2.git] / server / api / faxQueue / faxQueue.socket.js
1 // *************************************************************************
2 // *                                                                       *
3 // * xCALLY Motion -  The Omnichannel Contact Center                       *
4 // * Copyright (c) Xenialab s.r.l. All Rights Reserved                     *
5 // *                                                                       *
6 // *************************************************************************
7 // *                                                                       *
8 // * Email: info@xcally.com                                                *
9 // * Website: https://www.xcally.com                                       *
10 // *                                                                       *
11 // *************************************************************************
12 // *                                                                       *
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.                         *
16 // *                                                                       *
17 // *************************************************************************
18 var _0x1ee6=['faxQueue:','./faxQueue.events','update','emit','length'];(function(_0x54defc,_0x627178){var _0x1955d3=function(_0x299afe){while(--_0x299afe){_0x54defc['push'](_0x54defc['shift']());}};_0x1955d3(++_0x627178);}(_0x1ee6,0x1dc));var _0x61ee=function(_0x2f73b3,_0x32ce81){_0x2f73b3=_0x2f73b3-0x0;var _0x407a4f=_0x1ee6[_0x2f73b3];return _0x407a4f;};'use strict';var FaxQueueEvents=require(_0x61ee('0x0'));var events=['save','remove',_0x61ee('0x1')];function createListener(_0x518e8d,_0x3f6513){return function(_0xe136a2){_0x3f6513[_0x61ee('0x2')](_0x518e8d,_0xe136a2);};}function removeListener(_0x597fab,_0x44a872){return function(){FaxQueueEvents['removeListener'](_0x597fab,_0x44a872);};}exports['register']=function(_0x136fcb){for(var _0x248c62=0x0,_0x3daa1a=events[_0x61ee('0x3')];_0x248c62<_0x3daa1a;_0x248c62++){var _0x1be2ff=events[_0x248c62];var _0x4bf486=createListener(_0x61ee('0x4')+_0x1be2ff,_0x136fcb);FaxQueueEvents['on'](_0x1be2ff,_0x4bf486);}};