Built motion from commit 85328c08.|2.5.50
[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 _0x878f=['save','remove','update','emit','removeListener','register','length'];(function(_0x419a92,_0x396a4c){var _0x4dc191=function(_0x2a38c7){while(--_0x2a38c7){_0x419a92['push'](_0x419a92['shift']());}};_0x4dc191(++_0x396a4c);}(_0x878f,0x173));var _0xf878=function(_0x3a25e4,_0x450bcc){_0x3a25e4=_0x3a25e4-0x0;var _0x4be64b=_0x878f[_0x3a25e4];return _0x4be64b;};'use strict';var VoicePrefixEvents=require('./voicePrefix.events');var events=[_0xf878('0x0'),_0xf878('0x1'),_0xf878('0x2')];function createListener(_0x12df2b,_0x1b3d0b){return function(_0x3d74cf){_0x1b3d0b[_0xf878('0x3')](_0x12df2b,_0x3d74cf);};}function removeListener(_0x45a37b,_0x240b48){return function(){VoicePrefixEvents[_0xf878('0x4')](_0x45a37b,_0x240b48);};}exports[_0xf878('0x5')]=function(_0x4bc9aa){for(var _0x4ac8d8=0x0,_0x3c5f5c=events[_0xf878('0x6')];_0x4ac8d8<_0x3c5f5c;_0x4ac8d8++){var _0x59e564=events[_0x4ac8d8];var _0x52851e=createListener('voicePrefix:'+_0x59e564,_0x4bc9aa);VoicePrefixEvents['on'](_0x59e564,_0x52851e);}};