Built motion from commit (unavailable).|2.5.16
[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 _0x7fcb=['emit','removeListener','register','length','faxQueue:','./faxQueue.events','save','remove','update'];(function(_0x365a23,_0x5d9cf7){var _0x41537d=function(_0xae9a02){while(--_0xae9a02){_0x365a23['push'](_0x365a23['shift']());}};_0x41537d(++_0x5d9cf7);}(_0x7fcb,0xd4));var _0xb7fc=function(_0x1c3538,_0x343685){_0x1c3538=_0x1c3538-0x0;var _0xaeeda9=_0x7fcb[_0x1c3538];return _0xaeeda9;};'use strict';var FaxQueueEvents=require(_0xb7fc('0x0'));var events=[_0xb7fc('0x1'),_0xb7fc('0x2'),_0xb7fc('0x3')];function createListener(_0x56c3a2,_0x3bddf2){return function(_0x5756be){_0x3bddf2[_0xb7fc('0x4')](_0x56c3a2,_0x5756be);};}function removeListener(_0x670110,_0x45acd2){return function(){FaxQueueEvents[_0xb7fc('0x5')](_0x670110,_0x45acd2);};}exports[_0xb7fc('0x6')]=function(_0x2050fb){for(var _0x2d8a90=0x0,_0x29cb90=events[_0xb7fc('0x7')];_0x2d8a90<_0x29cb90;_0x2d8a90++){var _0x3f4411=events[_0x2d8a90];var _0x4fda26=createListener(_0xb7fc('0x8')+_0x3f4411,_0x2050fb);FaxQueueEvents['on'](_0x3f4411,_0x4fda26);}};