Built motion from commit 092f8824.|2.5.49
[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 _0x615a=['emit','removeListener','register','length','faxQueue:','save','remove','update'];(function(_0x46e363,_0x45d7e2){var _0x3fb059=function(_0x5e6274){while(--_0x5e6274){_0x46e363['push'](_0x46e363['shift']());}};_0x3fb059(++_0x45d7e2);}(_0x615a,0x8d));var _0xa615=function(_0x2fdce0,_0x496242){_0x2fdce0=_0x2fdce0-0x0;var _0x36f07e=_0x615a[_0x2fdce0];return _0x36f07e;};'use strict';var FaxQueueEvents=require('./faxQueue.events');var events=[_0xa615('0x0'),_0xa615('0x1'),_0xa615('0x2')];function createListener(_0x20e150,_0x10d081){return function(_0x3e0dbe){_0x10d081[_0xa615('0x3')](_0x20e150,_0x3e0dbe);};}function removeListener(_0x235a36,_0x1c61dd){return function(){FaxQueueEvents[_0xa615('0x4')](_0x235a36,_0x1c61dd);};}exports[_0xa615('0x5')]=function(_0x4d38d5){for(var _0x3b1584=0x0,_0x5c97bc=events[_0xa615('0x6')];_0x3b1584<_0x5c97bc;_0x3b1584++){var _0x23e499=events[_0x3b1584];var _0x23d15c=createListener(_0xa615('0x7')+_0x23e499,_0x4d38d5);FaxQueueEvents['on'](_0x23e499,_0x23d15c);}};