Built motion from commit (unavailable).|2.5.4
[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 _0x654a=['save','remove','emit','register','length','voicePrefix:'];(function(_0x17b16c,_0xa9b1a2){var _0x218e8c=function(_0xeb1b25){while(--_0xeb1b25){_0x17b16c['push'](_0x17b16c['shift']());}};_0x218e8c(++_0xa9b1a2);}(_0x654a,0x1d4));var _0xa654=function(_0x3ee5df,_0x583073){_0x3ee5df=_0x3ee5df-0x0;var _0x446d24=_0x654a[_0x3ee5df];return _0x446d24;};'use strict';var VoicePrefixEvents=require('./voicePrefix.events');var events=[_0xa654('0x0'),_0xa654('0x1'),'update'];function createListener(_0x1b79e0,_0x463187){return function(_0x41b6a1){_0x463187[_0xa654('0x2')](_0x1b79e0,_0x41b6a1);};}function removeListener(_0x49abea,_0x3d404c){return function(){VoicePrefixEvents['removeListener'](_0x49abea,_0x3d404c);};}exports[_0xa654('0x3')]=function(_0x53d1e1){for(var _0x5671c3=0x0,_0x39542d=events[_0xa654('0x4')];_0x5671c3<_0x39542d;_0x5671c3++){var _0x8e688a=events[_0x5671c3];var _0x3b0d5c=createListener(_0xa654('0x5')+_0x8e688a,_0x53d1e1);VoicePrefixEvents['on'](_0x8e688a,_0x3b0d5c);}};