Built motion from commit (unavailable).|2.4.19
[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 _0xb3f3=['./faxQueue.events','emit','removeListener','register','length'];(function(_0x4a2f52,_0x5e4ae0){var _0x349980=function(_0x3fcbee){while(--_0x3fcbee){_0x4a2f52['push'](_0x4a2f52['shift']());}};_0x349980(++_0x5e4ae0);}(_0xb3f3,0x181));var _0x3b3f=function(_0x1b76e6,_0x598520){_0x1b76e6=_0x1b76e6-0x0;var _0x333b53=_0xb3f3[_0x1b76e6];return _0x333b53;};'use strict';var FaxQueueEvents=require(_0x3b3f('0x0'));var events=['save','remove','update'];function createListener(_0x5541c9,_0x26c88c){return function(_0x5c2c62){_0x26c88c[_0x3b3f('0x1')](_0x5541c9,_0x5c2c62);};}function removeListener(_0x50c713,_0x5cd8df){return function(){FaxQueueEvents[_0x3b3f('0x2')](_0x50c713,_0x5cd8df);};}exports[_0x3b3f('0x3')]=function(_0x343fbf){for(var _0x327f5f=0x0,_0x29f5c6=events[_0x3b3f('0x4')];_0x327f5f<_0x29f5c6;_0x327f5f++){var _0x5c6803=events[_0x327f5f];var _0x47983a=createListener('faxQueue:'+_0x5c6803,_0x343fbf);FaxQueueEvents['on'](_0x5c6803,_0x47983a);}};