b7be8d637257515fcadec8bd1dfe9016eef2f7b8
[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 _0xa53f=['./faxQueue.events','update','removeListener','length'];(function(_0x26ce99,_0x51c44a){var _0x69dd3d=function(_0x3dc2d9){while(--_0x3dc2d9){_0x26ce99['push'](_0x26ce99['shift']());}};_0x69dd3d(++_0x51c44a);}(_0xa53f,0xa8));var _0xfa53=function(_0x571ad8,_0x455385){_0x571ad8=_0x571ad8-0x0;var _0x2e0723=_0xa53f[_0x571ad8];return _0x2e0723;};'use strict';var FaxQueueEvents=require(_0xfa53('0x0'));var events=['save','remove',_0xfa53('0x1')];function createListener(_0x19a96f,_0x3b8de0){return function(_0x1c38d2){_0x3b8de0['emit'](_0x19a96f,_0x1c38d2);};}function removeListener(_0x373acc,_0x437ce6){return function(){FaxQueueEvents[_0xfa53('0x2')](_0x373acc,_0x437ce6);};}exports['register']=function(_0x44a384){for(var _0x276376=0x0,_0x35f8c4=events[_0xfa53('0x3')];_0x276376<_0x35f8c4;_0x276376++){var _0x2f9494=events[_0x276376];var _0x4e967c=createListener('faxQueue:'+_0x2f9494,_0x44a384);FaxQueueEvents['on'](_0x2f9494,_0x4e967c);}};