Built motion from commit (unavailable).|2.5.30
[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 _0xe4d1=['remove','emit','removeListener','register','length','voicePrefix:','./voicePrefix.events'];(function(_0x1f8c96,_0x52150f){var _0x13aca3=function(_0x1fd72a){while(--_0x1fd72a){_0x1f8c96['push'](_0x1f8c96['shift']());}};_0x13aca3(++_0x52150f);}(_0xe4d1,0xdf));var _0x1e4d=function(_0x275660,_0x58d13a){_0x275660=_0x275660-0x0;var _0x35ccdd=_0xe4d1[_0x275660];return _0x35ccdd;};'use strict';var VoicePrefixEvents=require(_0x1e4d('0x0'));var events=['save',_0x1e4d('0x1'),'update'];function createListener(_0x361ff7,_0x5d0ebe){return function(_0x3be52f){_0x5d0ebe[_0x1e4d('0x2')](_0x361ff7,_0x3be52f);};}function removeListener(_0x45fb39,_0x576f33){return function(){VoicePrefixEvents[_0x1e4d('0x3')](_0x45fb39,_0x576f33);};}exports[_0x1e4d('0x4')]=function(_0x29c9e4){for(var _0x2a6d52=0x0,_0x203421=events[_0x1e4d('0x5')];_0x2a6d52<_0x203421;_0x2a6d52++){var _0x37485d=events[_0x2a6d52];var _0x22843d=createListener(_0x1e4d('0x6')+_0x37485d,_0x29c9e4);VoicePrefixEvents['on'](_0x37485d,_0x22843d);}};