Built motion from commit e1760111.|2.6.18
[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 _0x8cfd=['emit','removeListener','register','voicePrefix:','./voicePrefix.events','save','remove','update'];(function(_0x2f7608,_0x419c1c){var _0x502d59=function(_0x346a04){while(--_0x346a04){_0x2f7608['push'](_0x2f7608['shift']());}};_0x502d59(++_0x419c1c);}(_0x8cfd,0xe4));var _0xd8cf=function(_0x427d3a,_0x23724c){_0x427d3a=_0x427d3a-0x0;var _0xe5c521=_0x8cfd[_0x427d3a];return _0xe5c521;};'use strict';var VoicePrefixEvents=require(_0xd8cf('0x0'));var events=[_0xd8cf('0x1'),_0xd8cf('0x2'),_0xd8cf('0x3')];function createListener(_0x6ea39,_0x30dc05){return function(_0x562c81){_0x30dc05[_0xd8cf('0x4')](_0x6ea39,_0x562c81);};}function removeListener(_0x1146ed,_0x35b295){return function(){VoicePrefixEvents[_0xd8cf('0x5')](_0x1146ed,_0x35b295);};}exports[_0xd8cf('0x6')]=function(_0x318a72){for(var _0x305768=0x0,_0x4b41b7=events['length'];_0x305768<_0x4b41b7;_0x305768++){var _0x3fe2d2=events[_0x305768];var _0xa5b446=createListener(_0xd8cf('0x7')+_0x3fe2d2,_0x318a72);VoicePrefixEvents['on'](_0x3fe2d2,_0xa5b446);}};