Built motion from commit (unavailable).|2.5.13
[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 _0x0f61=['./faxQueue.events','save','remove','update','removeListener','length','faxQueue:'];(function(_0x2008bd,_0x252aa3){var _0x2f6329=function(_0x4be024){while(--_0x4be024){_0x2008bd['push'](_0x2008bd['shift']());}};_0x2f6329(++_0x252aa3);}(_0x0f61,0x1b2));var _0x10f6=function(_0x2c27d4,_0x3ec854){_0x2c27d4=_0x2c27d4-0x0;var _0xdc7909=_0x0f61[_0x2c27d4];return _0xdc7909;};'use strict';var FaxQueueEvents=require(_0x10f6('0x0'));var events=[_0x10f6('0x1'),_0x10f6('0x2'),_0x10f6('0x3')];function createListener(_0x439b5d,_0x435394){return function(_0x33647e){_0x435394['emit'](_0x439b5d,_0x33647e);};}function removeListener(_0x2ca258,_0x5936a6){return function(){FaxQueueEvents[_0x10f6('0x4')](_0x2ca258,_0x5936a6);};}exports['register']=function(_0x2ccf70){for(var _0x26b707=0x0,_0x598627=events[_0x10f6('0x5')];_0x26b707<_0x598627;_0x26b707++){var _0x4f7f43=events[_0x26b707];var _0x2b55dd=createListener(_0x10f6('0x6')+_0x4f7f43,_0x2ccf70);FaxQueueEvents['on'](_0x4f7f43,_0x2b55dd);}};