Built motion from commit 85328c08.|2.5.50
[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 _0xc519=['register','remove'];(function(_0x5b876b,_0x347c4e){var _0x4c877f=function(_0x423ddc){while(--_0x423ddc){_0x5b876b['push'](_0x5b876b['shift']());}};_0x4c877f(++_0x347c4e);}(_0xc519,0x11b));var _0x9c51=function(_0x42c8dd,_0x3b00ed){_0x42c8dd=_0x42c8dd-0x0;var _0x488884=_0xc519[_0x42c8dd];return _0x488884;};'use strict';var FaxQueueEvents=require('./faxQueue.events');var events=['save',_0x9c51('0x0'),'update'];function createListener(_0xf80980,_0x535fdb){return function(_0x479a21){_0x535fdb['emit'](_0xf80980,_0x479a21);};}function removeListener(_0x207fcb,_0x21ae78){return function(){FaxQueueEvents['removeListener'](_0x207fcb,_0x21ae78);};}exports[_0x9c51('0x1')]=function(_0x5805e5){for(var _0x2b7d07=0x0,_0x46a370=events['length'];_0x2b7d07<_0x46a370;_0x2b7d07++){var _0x2a1834=events[_0x2b7d07];var _0x1813aa=createListener('faxQueue:'+_0x2a1834,_0x5805e5);FaxQueueEvents['on'](_0x2a1834,_0x1813aa);}};