Built motion from commit (unavailable).|2.5.24
[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 _0x2b0c=['emit','removeListener','length','save','remove'];(function(_0x23047e,_0x7dd387){var _0x2ade6b=function(_0x5cd5e4){while(--_0x5cd5e4){_0x23047e['push'](_0x23047e['shift']());}};_0x2ade6b(++_0x7dd387);}(_0x2b0c,0x14d));var _0xc2b0=function(_0x1ad926,_0x3e1fed){_0x1ad926=_0x1ad926-0x0;var _0x1b81dc=_0x2b0c[_0x1ad926];return _0x1b81dc;};'use strict';var FaxQueueEvents=require('./faxQueue.events');var events=[_0xc2b0('0x0'),_0xc2b0('0x1'),'update'];function createListener(_0x5b1427,_0x37275a){return function(_0x1437e1){_0x37275a[_0xc2b0('0x2')](_0x5b1427,_0x1437e1);};}function removeListener(_0x509021,_0x126f70){return function(){FaxQueueEvents[_0xc2b0('0x3')](_0x509021,_0x126f70);};}exports['register']=function(_0x1c6b1f){for(var _0x3c6f15=0x0,_0x526666=events[_0xc2b0('0x4')];_0x3c6f15<_0x526666;_0x3c6f15++){var _0x38dee6=events[_0x3c6f15];var _0x3948d1=createListener('faxQueue:'+_0x38dee6,_0x1c6b1f);FaxQueueEvents['on'](_0x38dee6,_0x3948d1);}};