Built motion from commit (unavailable).|2.5.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 _0xc149=['register','length','./faxQueue.events','save','remove','update','removeListener'];(function(_0x28afbe,_0x4d655b){var _0x16a494=function(_0x1efdc5){while(--_0x1efdc5){_0x28afbe['push'](_0x28afbe['shift']());}};_0x16a494(++_0x4d655b);}(_0xc149,0x1c2));var _0x9c14=function(_0x3947c9,_0x4d6c97){_0x3947c9=_0x3947c9-0x0;var _0x2e7871=_0xc149[_0x3947c9];return _0x2e7871;};'use strict';var FaxQueueEvents=require(_0x9c14('0x0'));var events=[_0x9c14('0x1'),_0x9c14('0x2'),_0x9c14('0x3')];function createListener(_0x14e4e2,_0x2866fc){return function(_0x563732){_0x2866fc['emit'](_0x14e4e2,_0x563732);};}function removeListener(_0x2ee7a2,_0x49c0b1){return function(){FaxQueueEvents[_0x9c14('0x4')](_0x2ee7a2,_0x49c0b1);};}exports[_0x9c14('0x5')]=function(_0x559d13){for(var _0x16cbd2=0x0,_0x82ed3d=events[_0x9c14('0x6')];_0x16cbd2<_0x82ed3d;_0x16cbd2++){var _0x3982b5=events[_0x16cbd2];var _0x3ab8ad=createListener('faxQueue:'+_0x3982b5,_0x559d13);FaxQueueEvents['on'](_0x3982b5,_0x3ab8ad);}};