Built motion from commit 3e059bc2.|2.5.32
[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 _0x2f7e=['length','faxQueue:','./faxQueue.events','save','update','emit','removeListener','register'];(function(_0x54c72a,_0x5dd092){var _0x4264a2=function(_0x4905e1){while(--_0x4905e1){_0x54c72a['push'](_0x54c72a['shift']());}};_0x4264a2(++_0x5dd092);}(_0x2f7e,0x122));var _0xe2f7=function(_0x23091a,_0x255082){_0x23091a=_0x23091a-0x0;var _0x4303b9=_0x2f7e[_0x23091a];return _0x4303b9;};'use strict';var FaxQueueEvents=require(_0xe2f7('0x0'));var events=[_0xe2f7('0x1'),'remove',_0xe2f7('0x2')];function createListener(_0x3292df,_0x407cc0){return function(_0x2df04d){_0x407cc0[_0xe2f7('0x3')](_0x3292df,_0x2df04d);};}function removeListener(_0x3f7b0f,_0x2adc0d){return function(){FaxQueueEvents[_0xe2f7('0x4')](_0x3f7b0f,_0x2adc0d);};}exports[_0xe2f7('0x5')]=function(_0x734e2){for(var _0x4dc5d0=0x0,_0x396b4d=events[_0xe2f7('0x6')];_0x4dc5d0<_0x396b4d;_0x4dc5d0++){var _0x3ca8d8=events[_0x4dc5d0];var _0xd55dc8=createListener(_0xe2f7('0x7')+_0x3ca8d8,_0x734e2);FaxQueueEvents['on'](_0x3ca8d8,_0xd55dc8);}};