70cabde5e477de58221fb4e8696ec7f13721e8c1
[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 _0x2a41=['./voicePrefix.events','remove','update','emit','removeListener','voicePrefix:'];(function(_0x1f27df,_0x4f1a64){var _0x286ee2=function(_0x255ea7){while(--_0x255ea7){_0x1f27df['push'](_0x1f27df['shift']());}};_0x286ee2(++_0x4f1a64);}(_0x2a41,0x126));var _0x12a4=function(_0x461d52,_0x43604b){_0x461d52=_0x461d52-0x0;var _0x25d252=_0x2a41[_0x461d52];return _0x25d252;};'use strict';var VoicePrefixEvents=require(_0x12a4('0x0'));var events=['save',_0x12a4('0x1'),_0x12a4('0x2')];function createListener(_0xfc6b0b,_0x321075){return function(_0x1b4dd3){_0x321075[_0x12a4('0x3')](_0xfc6b0b,_0x1b4dd3);};}function removeListener(_0x2a2724,_0x28a00e){return function(){VoicePrefixEvents[_0x12a4('0x4')](_0x2a2724,_0x28a00e);};}exports['register']=function(_0x379b3c){for(var _0x7fc347=0x0,_0x58fffc=events['length'];_0x7fc347<_0x58fffc;_0x7fc347++){var _0x2042cc=events[_0x7fc347];var _0x5ae867=createListener(_0x12a4('0x5')+_0x2042cc,_0x379b3c);VoicePrefixEvents['on'](_0x2042cc,_0x5ae867);}};