3a0510a8652a9c8ac68772f5343dd930cbd0f3eb
[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 _0x2edc=['register','length','faxQueue:','./faxQueue.events','save','update','emit','removeListener'];(function(_0xd04ca2,_0x39f91e){var _0x2f40cb=function(_0x5a49d5){while(--_0x5a49d5){_0xd04ca2['push'](_0xd04ca2['shift']());}};_0x2f40cb(++_0x39f91e);}(_0x2edc,0xc3));var _0xc2ed=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x2edc[_0x3dd15e];return _0x231fd0;};'use strict';var FaxQueueEvents=require(_0xc2ed('0x0'));var events=[_0xc2ed('0x1'),'remove',_0xc2ed('0x2')];function createListener(_0x369ed0,_0x36d894){return function(_0x41ed51){_0x36d894[_0xc2ed('0x3')](_0x369ed0,_0x41ed51);};}function removeListener(_0x54a08c,_0x297438){return function(){FaxQueueEvents[_0xc2ed('0x4')](_0x54a08c,_0x297438);};}exports[_0xc2ed('0x5')]=function(_0x53d511){for(var _0x54ed3e=0x0,_0x560f0e=events[_0xc2ed('0x6')];_0x54ed3e<_0x560f0e;_0x54ed3e++){var _0x192273=events[_0x54ed3e];var _0x336c1c=createListener(_0xc2ed('0x7')+_0x192273,_0x53d511);FaxQueueEvents['on'](_0x192273,_0x336c1c);}};