Built motion from commit (unavailable).|2.5.15
[motion2.git] / server / api / voiceQueue / voiceQueue.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 _0x352e=['remove','update','emit','removeListener','length','voiceQueue:','./voiceQueue.events','save'];(function(_0xb2c2b4,_0x4800b2){var _0x362374=function(_0x72ccae){while(--_0x72ccae){_0xb2c2b4['push'](_0xb2c2b4['shift']());}};_0x362374(++_0x4800b2);}(_0x352e,0x1a6));var _0xe352=function(_0x15930b,_0x413e4f){_0x15930b=_0x15930b-0x0;var _0x2b6640=_0x352e[_0x15930b];return _0x2b6640;};'use strict';var VoiceQueueEvents=require(_0xe352('0x0'));var events=[_0xe352('0x1'),_0xe352('0x2'),_0xe352('0x3')];function createListener(_0x2934bb,_0xe91dd1){return function(_0x383f5b){_0xe91dd1[_0xe352('0x4')](_0x2934bb,_0x383f5b);};}function removeListener(_0x4e85b5,_0x22f9c3){return function(){VoiceQueueEvents[_0xe352('0x5')](_0x4e85b5,_0x22f9c3);};}exports['register']=function(_0x2fed6a){for(var _0x31aac8=0x0,_0x32d7c6=events[_0xe352('0x6')];_0x31aac8<_0x32d7c6;_0x31aac8++){var _0x5b9266=events[_0x31aac8];var _0x2bd5e5=createListener(_0xe352('0x7')+_0x5b9266,_0x2fed6a);VoiceQueueEvents['on'](_0x5b9266,_0x2bd5e5);}};