Built motion from commit 87cd5f02.|2.5.48
[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 _0x4517=['voicePrefix:','save','remove','emit','removeListener','register','length'];(function(_0x5e42f0,_0x3183ce){var _0x51d8a7=function(_0x2f6259){while(--_0x2f6259){_0x5e42f0['push'](_0x5e42f0['shift']());}};_0x51d8a7(++_0x3183ce);}(_0x4517,0x112));var _0x7451=function(_0x566a4f,_0x362468){_0x566a4f=_0x566a4f-0x0;var _0x53b736=_0x4517[_0x566a4f];return _0x53b736;};'use strict';var VoicePrefixEvents=require('./voicePrefix.events');var events=[_0x7451('0x0'),_0x7451('0x1'),'update'];function createListener(_0x121fa7,_0xd66e4){return function(_0x24505e){_0xd66e4[_0x7451('0x2')](_0x121fa7,_0x24505e);};}function removeListener(_0x355fbd,_0x21b34c){return function(){VoicePrefixEvents[_0x7451('0x3')](_0x355fbd,_0x21b34c);};}exports[_0x7451('0x4')]=function(_0x451332){for(var _0x3489f9=0x0,_0x3ac271=events[_0x7451('0x5')];_0x3489f9<_0x3ac271;_0x3489f9++){var _0x26306e=events[_0x3489f9];var _0x443b80=createListener(_0x7451('0x6')+_0x26306e,_0x451332);VoicePrefixEvents['on'](_0x26306e,_0x443b80);}};