Built motion from commit (unavailable).|2.4.17
[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 _0x8692=['emit','removeListener','./faxQueue.events','save','update'];(function(_0x4542a1,_0x34bac9){var _0x51abe3=function(_0x33653a){while(--_0x33653a){_0x4542a1['push'](_0x4542a1['shift']());}};_0x51abe3(++_0x34bac9);}(_0x8692,0x156));var _0x2869=function(_0x2ecd23,_0x394d5a){_0x2ecd23=_0x2ecd23-0x0;var _0x4bb522=_0x8692[_0x2ecd23];return _0x4bb522;};'use strict';var FaxQueueEvents=require(_0x2869('0x0'));var events=[_0x2869('0x1'),'remove',_0x2869('0x2')];function createListener(_0x559f19,_0x43fc08){return function(_0x2d6e3a){_0x43fc08[_0x2869('0x3')](_0x559f19,_0x2d6e3a);};}function removeListener(_0x37ef60,_0x3b9bd){return function(){FaxQueueEvents[_0x2869('0x4')](_0x37ef60,_0x3b9bd);};}exports['register']=function(_0x4dec1c){for(var _0x40b8ca=0x0,_0x91ed93=events['length'];_0x40b8ca<_0x91ed93;_0x40b8ca++){var _0x49c0d3=events[_0x40b8ca];var _0x2c6cdc=createListener('faxQueue:'+_0x49c0d3,_0x4dec1c);FaxQueueEvents['on'](_0x49c0d3,_0x2c6cdc);}};