Built motion from commit 9d0783e6.|2.6.13
[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 _0x40c2=['./faxQueue.events','save','update','removeListener','register'];(function(_0x12865f,_0x26e1da){var _0x14bdc9=function(_0x9b1ced){while(--_0x9b1ced){_0x12865f['push'](_0x12865f['shift']());}};_0x14bdc9(++_0x26e1da);}(_0x40c2,0x1b8));var _0x240c=function(_0x9fae93,_0x1a1156){_0x9fae93=_0x9fae93-0x0;var _0xed1c35=_0x40c2[_0x9fae93];return _0xed1c35;};'use strict';var FaxQueueEvents=require(_0x240c('0x0'));var events=[_0x240c('0x1'),'remove',_0x240c('0x2')];function createListener(_0x3b5e77,_0x4e3eb9){return function(_0x287696){_0x4e3eb9['emit'](_0x3b5e77,_0x287696);};}function removeListener(_0x58bff9,_0x42ae01){return function(){FaxQueueEvents[_0x240c('0x3')](_0x58bff9,_0x42ae01);};}exports[_0x240c('0x4')]=function(_0x1b1990){for(var _0x2d3030=0x0,_0x51432e=events['length'];_0x2d3030<_0x51432e;_0x2d3030++){var _0x3292c4=events[_0x2d3030];var _0x1d0b92=createListener('faxQueue:'+_0x3292c4,_0x1b1990);FaxQueueEvents['on'](_0x3292c4,_0x1d0b92);}};