44b4390fee97d4e203bfd1247345f586ee678bae
[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 _0x167e=['register','length','./voicePrefix.events','save','remove','update','emit'];(function(_0x47a7d0,_0x4e182d){var _0xb9bd08=function(_0x588ee2){while(--_0x588ee2){_0x47a7d0['push'](_0x47a7d0['shift']());}};_0xb9bd08(++_0x4e182d);}(_0x167e,0xa3));var _0xe167=function(_0x543eb1,_0x28ed12){_0x543eb1=_0x543eb1-0x0;var _0x682a85=_0x167e[_0x543eb1];return _0x682a85;};'use strict';var VoicePrefixEvents=require(_0xe167('0x0'));var events=[_0xe167('0x1'),_0xe167('0x2'),_0xe167('0x3')];function createListener(_0x14457a,_0x398408){return function(_0x3958c5){_0x398408[_0xe167('0x4')](_0x14457a,_0x3958c5);};}function removeListener(_0x5e4863,_0x287097){return function(){VoicePrefixEvents['removeListener'](_0x5e4863,_0x287097);};}exports[_0xe167('0x5')]=function(_0x3563b8){for(var _0x3812f5=0x0,_0x3bad0c=events[_0xe167('0x6')];_0x3812f5<_0x3bad0c;_0x3812f5++){var _0x56cf9b=events[_0x3812f5];var _0x3a00d5=createListener('voicePrefix:'+_0x56cf9b,_0x3563b8);VoicePrefixEvents['on'](_0x56cf9b,_0x3a00d5);}};