Built motion from commit 10af8726.|2.6.34
[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 _0x441d=['emit','removeListener','register','length','./faxQueue.events','save','update'];(function(_0x1966af,_0x3a85d3){var _0x2b834b=function(_0x3aad60){while(--_0x3aad60){_0x1966af['push'](_0x1966af['shift']());}};_0x2b834b(++_0x3a85d3);}(_0x441d,0x13f));var _0xd441=function(_0x22ef98,_0x17dc9c){_0x22ef98=_0x22ef98-0x0;var _0x138590=_0x441d[_0x22ef98];return _0x138590;};'use strict';var FaxQueueEvents=require(_0xd441('0x0'));var events=[_0xd441('0x1'),'remove',_0xd441('0x2')];function createListener(_0x233ba9,_0x56726d){return function(_0x58b9ff){_0x56726d[_0xd441('0x3')](_0x233ba9,_0x58b9ff);};}function removeListener(_0x55bdc0,_0x15a766){return function(){FaxQueueEvents[_0xd441('0x4')](_0x55bdc0,_0x15a766);};}exports[_0xd441('0x5')]=function(_0x3228d6){for(var _0xfb30a2=0x0,_0x463d35=events[_0xd441('0x6')];_0xfb30a2<_0x463d35;_0xfb30a2++){var _0x5997f3=events[_0xfb30a2];var _0xfb8567=createListener('faxQueue:'+_0x5997f3,_0x3228d6);FaxQueueEvents['on'](_0x5997f3,_0xfb8567);}};