Built motion from commit 4fa9d4a7.|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 _0xa34c=['register','length','faxQueue:','remove','update','emit'];(function(_0x20a584,_0xe384a5){var _0x4b41a8=function(_0x2127c6){while(--_0x2127c6){_0x20a584['push'](_0x20a584['shift']());}};_0x4b41a8(++_0xe384a5);}(_0xa34c,0x111));var _0xca34=function(_0x39bd6b,_0x5cdd60){_0x39bd6b=_0x39bd6b-0x0;var _0x49c352=_0xa34c[_0x39bd6b];return _0x49c352;};'use strict';var FaxQueueEvents=require('./faxQueue.events');var events=['save',_0xca34('0x0'),_0xca34('0x1')];function createListener(_0x493fe6,_0x50bafa){return function(_0x1a6943){_0x50bafa[_0xca34('0x2')](_0x493fe6,_0x1a6943);};}function removeListener(_0x469823,_0x4aada0){return function(){FaxQueueEvents['removeListener'](_0x469823,_0x4aada0);};}exports[_0xca34('0x3')]=function(_0x3b4605){for(var _0x3e44e2=0x0,_0x14a870=events[_0xca34('0x4')];_0x3e44e2<_0x14a870;_0x3e44e2++){var _0x184409=events[_0x3e44e2];var _0x24ea4c=createListener(_0xca34('0x5')+_0x184409,_0x3b4605);FaxQueueEvents['on'](_0x184409,_0x24ea4c);}};