26cc1118b4ce252ff7707ee0b6660d8d6db0f2be
[motion2.git] / server / api / voicePrefix / voicePrefix.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 _0x80c7=['update','removeListener','register','length','voicePrefix:','./voicePrefix.events','save','remove'];(function(_0x301ca3,_0x4233c5){var _0x131292=function(_0x4b64fd){while(--_0x4b64fd){_0x301ca3['push'](_0x301ca3['shift']());}};_0x131292(++_0x4233c5);}(_0x80c7,0x8d));var _0x780c=function(_0x39661f,_0x28623c){_0x39661f=_0x39661f-0x0;var _0x55e00a=_0x80c7[_0x39661f];return _0x55e00a;};'use strict';var VoicePrefixEvents=require(_0x780c('0x0'));var events=[_0x780c('0x1'),_0x780c('0x2'),_0x780c('0x3')];function createListener(_0x56454c,_0x5589b0){return function(_0x381187){_0x5589b0['emit'](_0x56454c,_0x381187);};}function removeListener(_0x3a8676,_0xccccf8){return function(){VoicePrefixEvents[_0x780c('0x4')](_0x3a8676,_0xccccf8);};}exports[_0x780c('0x5')]=function(_0x26db15){for(var _0x93f0bb=0x0,_0x4170ef=events[_0x780c('0x6')];_0x93f0bb<_0x4170ef;_0x93f0bb++){var _0x4041cb=events[_0x93f0bb];var _0x2d858f=createListener(_0x780c('0x7')+_0x4041cb,_0x26db15);VoicePrefixEvents['on'](_0x4041cb,_0x2d858f);}};