1008426b666a485497986c9436ad87259a8694b2
[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 _0x84c9=['length','faxQueue:','emit','removeListener','register'];(function(_0x520bdb,_0x4f3edd){var _0x24a525=function(_0x11cec2){while(--_0x11cec2){_0x520bdb['push'](_0x520bdb['shift']());}};_0x24a525(++_0x4f3edd);}(_0x84c9,0x124));var _0x984c=function(_0x3951ce,_0x1d66d4){_0x3951ce=_0x3951ce-0x0;var _0x448482=_0x84c9[_0x3951ce];return _0x448482;};'use strict';var FaxQueueEvents=require('./faxQueue.events');var events=['save','remove','update'];function createListener(_0x2f522c,_0x21c045){return function(_0x167d46){_0x21c045[_0x984c('0x0')](_0x2f522c,_0x167d46);};}function removeListener(_0x59dbbf,_0x561e7f){return function(){FaxQueueEvents[_0x984c('0x1')](_0x59dbbf,_0x561e7f);};}exports[_0x984c('0x2')]=function(_0x253d18){for(var _0x38b4ea=0x0,_0x1ef8e6=events[_0x984c('0x3')];_0x38b4ea<_0x1ef8e6;_0x38b4ea++){var _0x276acc=events[_0x38b4ea];var _0x327a20=createListener(_0x984c('0x4')+_0x276acc,_0x253d18);FaxQueueEvents['on'](_0x276acc,_0x327a20);}};