Built motion from commit (unavailable).|2.5.30
[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 _0x4314=['./faxQueue.events','save','remove','update','emit','register','length','faxQueue:'];(function(_0x1b9d45,_0x5709ff){var _0x32f20e=function(_0x44c757){while(--_0x44c757){_0x1b9d45['push'](_0x1b9d45['shift']());}};_0x32f20e(++_0x5709ff);}(_0x4314,0x1c0));var _0x4431=function(_0x1a7977,_0x16e41c){_0x1a7977=_0x1a7977-0x0;var _0x205077=_0x4314[_0x1a7977];return _0x205077;};'use strict';var FaxQueueEvents=require(_0x4431('0x0'));var events=[_0x4431('0x1'),_0x4431('0x2'),_0x4431('0x3')];function createListener(_0x1f5644,_0x445a0a){return function(_0x288bb1){_0x445a0a[_0x4431('0x4')](_0x1f5644,_0x288bb1);};}function removeListener(_0x1a0cbc,_0xcb9e7c){return function(){FaxQueueEvents['removeListener'](_0x1a0cbc,_0xcb9e7c);};}exports[_0x4431('0x5')]=function(_0x374ed2){for(var _0x448625=0x0,_0xf9c830=events[_0x4431('0x6')];_0x448625<_0xf9c830;_0x448625++){var _0x4e0d3e=events[_0x448625];var _0x19c31a=createListener(_0x4431('0x7')+_0x4e0d3e,_0x374ed2);FaxQueueEvents['on'](_0x4e0d3e,_0x19c31a);}};