Built motion from commit da617fac.|2.6.6
[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 _0x86ae=['update','removeListener','register','faxQueue:','save','remove'];(function(_0xc4001c,_0x1bf8f0){var _0x49f7bc=function(_0x1059b8){while(--_0x1059b8){_0xc4001c['push'](_0xc4001c['shift']());}};_0x49f7bc(++_0x1bf8f0);}(_0x86ae,0xfa));var _0xe86a=function(_0x2457c0,_0x15fd6b){_0x2457c0=_0x2457c0-0x0;var _0x1354b2=_0x86ae[_0x2457c0];return _0x1354b2;};'use strict';var FaxQueueEvents=require('./faxQueue.events');var events=[_0xe86a('0x0'),_0xe86a('0x1'),_0xe86a('0x2')];function createListener(_0x19ee7c,_0x2af036){return function(_0x463292){_0x2af036['emit'](_0x19ee7c,_0x463292);};}function removeListener(_0x5ea753,_0x20efe3){return function(){FaxQueueEvents[_0xe86a('0x3')](_0x5ea753,_0x20efe3);};}exports[_0xe86a('0x4')]=function(_0xe7da9f){for(var _0x5328ed=0x0,_0x39fe5a=events['length'];_0x5328ed<_0x39fe5a;_0x5328ed++){var _0x1003ba=events[_0x5328ed];var _0x4ef640=createListener(_0xe86a('0x5')+_0x1003ba,_0xe7da9f);FaxQueueEvents['on'](_0x1003ba,_0x4ef640);}};