Built motion from commit 377f727e.|2.6.28
[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 _0xb7d8=['register','length','faxQueue:','./faxQueue.events','save','update','emit','removeListener'];(function(_0x380039,_0x27f062){var _0xcb236b=function(_0x4b47b5){while(--_0x4b47b5){_0x380039['push'](_0x380039['shift']());}};_0xcb236b(++_0x27f062);}(_0xb7d8,0x163));var _0x8b7d=function(_0x31acc7,_0x23a019){_0x31acc7=_0x31acc7-0x0;var _0x452714=_0xb7d8[_0x31acc7];return _0x452714;};'use strict';var FaxQueueEvents=require(_0x8b7d('0x0'));var events=[_0x8b7d('0x1'),'remove',_0x8b7d('0x2')];function createListener(_0x4b4885,_0x5a1453){return function(_0x15a695){_0x5a1453[_0x8b7d('0x3')](_0x4b4885,_0x15a695);};}function removeListener(_0x52295d,_0x149252){return function(){FaxQueueEvents[_0x8b7d('0x4')](_0x52295d,_0x149252);};}exports[_0x8b7d('0x5')]=function(_0x1feb9f){for(var _0x3cc856=0x0,_0x31b4c8=events[_0x8b7d('0x6')];_0x3cc856<_0x31b4c8;_0x3cc856++){var _0x5d69ed=events[_0x3cc856];var _0x4da93c=createListener(_0x8b7d('0x7')+_0x5d69ed,_0x1feb9f);FaxQueueEvents['on'](_0x5d69ed,_0x4da93c);}};