Built motion from commit 4ffc18b1.|2.6.31
[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 _0xed92=['update','emit','removeListener','register','length','faxQueue:','save','remove'];(function(_0x4b0fdc,_0x149445){var _0x178926=function(_0x125360){while(--_0x125360){_0x4b0fdc['push'](_0x4b0fdc['shift']());}};_0x178926(++_0x149445);}(_0xed92,0x166));var _0x2ed9=function(_0x54f703,_0x51cc7e){_0x54f703=_0x54f703-0x0;var _0x33f7ed=_0xed92[_0x54f703];return _0x33f7ed;};'use strict';var FaxQueueEvents=require('./faxQueue.events');var events=[_0x2ed9('0x0'),_0x2ed9('0x1'),_0x2ed9('0x2')];function createListener(_0x3207ef,_0x1c93bc){return function(_0xa19fe7){_0x1c93bc[_0x2ed9('0x3')](_0x3207ef,_0xa19fe7);};}function removeListener(_0x2c055f,_0x344b1b){return function(){FaxQueueEvents[_0x2ed9('0x4')](_0x2c055f,_0x344b1b);};}exports[_0x2ed9('0x5')]=function(_0x183eea){for(var _0x52dcec=0x0,_0xaa14b8=events[_0x2ed9('0x6')];_0x52dcec<_0xaa14b8;_0x52dcec++){var _0x354875=events[_0x52dcec];var _0x314351=createListener(_0x2ed9('0x7')+_0x354875,_0x183eea);FaxQueueEvents['on'](_0x354875,_0x314351);}};