7539cecb66109fd3192e7bffa57600702275901c
[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 _0x61d4=['removeListener','register','length','faxQueue:','./faxQueue.events','save','emit'];(function(_0x201c75,_0x1b8b35){var _0x39c1a8=function(_0x131b7d){while(--_0x131b7d){_0x201c75['push'](_0x201c75['shift']());}};_0x39c1a8(++_0x1b8b35);}(_0x61d4,0xb3));var _0x461d=function(_0x128bef,_0xc7a0af){_0x128bef=_0x128bef-0x0;var _0x1ba862=_0x61d4[_0x128bef];return _0x1ba862;};'use strict';var FaxQueueEvents=require(_0x461d('0x0'));var events=[_0x461d('0x1'),'remove','update'];function createListener(_0xa21c39,_0x2bf24a){return function(_0x3c99a7){_0x2bf24a[_0x461d('0x2')](_0xa21c39,_0x3c99a7);};}function removeListener(_0x59de9c,_0x3a2eb9){return function(){FaxQueueEvents[_0x461d('0x3')](_0x59de9c,_0x3a2eb9);};}exports[_0x461d('0x4')]=function(_0x3f5d5b){for(var _0x3bb5dd=0x0,_0x17536c=events[_0x461d('0x5')];_0x3bb5dd<_0x17536c;_0x3bb5dd++){var _0x75492b=events[_0x3bb5dd];var _0x3df354=createListener(_0x461d('0x6')+_0x75492b,_0x3f5d5b);FaxQueueEvents['on'](_0x75492b,_0x3df354);}};