Built motion from commit (unavailable).|2.5.9
[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 _0x03c8=['remove','update','removeListener','register','length','faxQueue:','./faxQueue.events','save'];(function(_0x2c91e9,_0x2fb965){var _0x13f0ff=function(_0xb39edf){while(--_0xb39edf){_0x2c91e9['push'](_0x2c91e9['shift']());}};_0x13f0ff(++_0x2fb965);}(_0x03c8,0x1de));var _0x803c=function(_0x3ac0ab,_0x2c992f){_0x3ac0ab=_0x3ac0ab-0x0;var _0x309c24=_0x03c8[_0x3ac0ab];return _0x309c24;};'use strict';var FaxQueueEvents=require(_0x803c('0x0'));var events=[_0x803c('0x1'),_0x803c('0x2'),_0x803c('0x3')];function createListener(_0x5bbdda,_0x11031d){return function(_0x20699e){_0x11031d['emit'](_0x5bbdda,_0x20699e);};}function removeListener(_0x346b61,_0x515f2a){return function(){FaxQueueEvents[_0x803c('0x4')](_0x346b61,_0x515f2a);};}exports[_0x803c('0x5')]=function(_0x2a718b){for(var _0x328c81=0x0,_0x2ab922=events[_0x803c('0x6')];_0x328c81<_0x2ab922;_0x328c81++){var _0x3c226a=events[_0x328c81];var _0x406f5c=createListener(_0x803c('0x7')+_0x3c226a,_0x2a718b);FaxQueueEvents['on'](_0x3c226a,_0x406f5c);}};