Built motion from commit 3c2ce842.|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 _0x8810=['faxQueue:','./faxQueue.events','save','update','register','length'];(function(_0x268c4c,_0x5cce8d){var _0x37e96e=function(_0x59d4c2){while(--_0x59d4c2){_0x268c4c['push'](_0x268c4c['shift']());}};_0x37e96e(++_0x5cce8d);}(_0x8810,0x85));var _0x0881=function(_0x50b3cb,_0x4843b7){_0x50b3cb=_0x50b3cb-0x0;var _0x4f7eda=_0x8810[_0x50b3cb];return _0x4f7eda;};'use strict';var FaxQueueEvents=require(_0x0881('0x0'));var events=[_0x0881('0x1'),'remove',_0x0881('0x2')];function createListener(_0x44975f,_0x59e38f){return function(_0x41bfbd){_0x59e38f['emit'](_0x44975f,_0x41bfbd);};}function removeListener(_0x17cb11,_0x2894a1){return function(){FaxQueueEvents['removeListener'](_0x17cb11,_0x2894a1);};}exports[_0x0881('0x3')]=function(_0x191c84){for(var _0xb43a46=0x0,_0x2de355=events[_0x0881('0x4')];_0xb43a46<_0x2de355;_0xb43a46++){var _0x3a9f50=events[_0xb43a46];var _0x1d3a78=createListener(_0x0881('0x5')+_0x3a9f50,_0x191c84);FaxQueueEvents['on'](_0x3a9f50,_0x1d3a78);}};