Built motion from commit e6806ed6.|2.6.0
[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 _0xe700=['update','emit','register','length','faxQueue:','./faxQueue.events','save','remove'];(function(_0x474d10,_0x1b2d34){var _0x166ec9=function(_0xac72f0){while(--_0xac72f0){_0x474d10['push'](_0x474d10['shift']());}};_0x166ec9(++_0x1b2d34);}(_0xe700,0x75));var _0x0e70=function(_0x2a7e0d,_0x3c9c74){_0x2a7e0d=_0x2a7e0d-0x0;var _0x595e05=_0xe700[_0x2a7e0d];return _0x595e05;};'use strict';var FaxQueueEvents=require(_0x0e70('0x0'));var events=[_0x0e70('0x1'),_0x0e70('0x2'),_0x0e70('0x3')];function createListener(_0x22ef20,_0x162ace){return function(_0x3f212c){_0x162ace[_0x0e70('0x4')](_0x22ef20,_0x3f212c);};}function removeListener(_0x27ba59,_0xb9349a){return function(){FaxQueueEvents['removeListener'](_0x27ba59,_0xb9349a);};}exports[_0x0e70('0x5')]=function(_0x5e1b28){for(var _0x44a1ee=0x0,_0x30303a=events[_0x0e70('0x6')];_0x44a1ee<_0x30303a;_0x44a1ee++){var _0x28fcf2=events[_0x44a1ee];var _0x235881=createListener(_0x0e70('0x7')+_0x28fcf2,_0x5e1b28);FaxQueueEvents['on'](_0x28fcf2,_0x235881);}};