Built motion from commit 47436d59.|2.6.7
[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 _0x5f6a=['length','./voicePrefix.events','update','removeListener','register'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x5f6a,0xc4));var _0xa5f6=function(_0x495178,_0x5048e0){_0x495178=_0x495178-0x0;var _0x1ef789=_0x5f6a[_0x495178];return _0x1ef789;};'use strict';var VoicePrefixEvents=require(_0xa5f6('0x0'));var events=['save','remove',_0xa5f6('0x1')];function createListener(_0x4be333,_0x2e23f3){return function(_0x1ec17a){_0x2e23f3['emit'](_0x4be333,_0x1ec17a);};}function removeListener(_0x2e8b33,_0x8e175a){return function(){VoicePrefixEvents[_0xa5f6('0x2')](_0x2e8b33,_0x8e175a);};}exports[_0xa5f6('0x3')]=function(_0xb6a42e){for(var _0x9c569c=0x0,_0x19ac7d=events[_0xa5f6('0x4')];_0x9c569c<_0x19ac7d;_0x9c569c++){var _0x2505d7=events[_0x9c569c];var _0x135782=createListener('voicePrefix:'+_0x2505d7,_0xb6a42e);VoicePrefixEvents['on'](_0x2505d7,_0x135782);}};