54db98ca8bab5862ecab8a647138832a73c6f78e
[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 _0x1ee8=['faxQueue:','save','removeListener'];(function(_0x1c0bc1,_0x5f2143){var _0x2e083d=function(_0x2d22cc){while(--_0x2d22cc){_0x1c0bc1['push'](_0x1c0bc1['shift']());}};_0x2e083d(++_0x5f2143);}(_0x1ee8,0x6d));var _0x81ee=function(_0x1247a8,_0x5f2aca){_0x1247a8=_0x1247a8-0x0;var _0x41b965=_0x1ee8[_0x1247a8];return _0x41b965;};'use strict';var FaxQueueEvents=require('./faxQueue.events');var events=[_0x81ee('0x0'),'remove','update'];function createListener(_0x31e832,_0x471a84){return function(_0x1725ff){_0x471a84['emit'](_0x31e832,_0x1725ff);};}function removeListener(_0x54ba2a,_0x165e7a){return function(){FaxQueueEvents[_0x81ee('0x1')](_0x54ba2a,_0x165e7a);};}exports['register']=function(_0x333ceb){for(var _0x9b2f78=0x0,_0x309cb4=events['length'];_0x9b2f78<_0x309cb4;_0x9b2f78++){var _0x2cdaf7=events[_0x9b2f78];var _0x5affaf=createListener(_0x81ee('0x2')+_0x2cdaf7,_0x333ceb);FaxQueueEvents['on'](_0x2cdaf7,_0x5affaf);}};