Built motion from commit (unavailable).|2.5.3
[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 _0x1383=['remove','update','length'];(function(_0x375126,_0x514a8e){var _0x1f76bb=function(_0x22f2d0){while(--_0x22f2d0){_0x375126['push'](_0x375126['shift']());}};_0x1f76bb(++_0x514a8e);}(_0x1383,0x17d));var _0x3138=function(_0xaf53d0,_0x30c053){_0xaf53d0=_0xaf53d0-0x0;var _0x349550=_0x1383[_0xaf53d0];return _0x349550;};'use strict';var VoicePrefixEvents=require('./voicePrefix.events');var events=['save',_0x3138('0x0'),_0x3138('0x1')];function createListener(_0x1f97b0,_0x5b67c7){return function(_0x1124ec){_0x5b67c7['emit'](_0x1f97b0,_0x1124ec);};}function removeListener(_0x2fea71,_0x146472){return function(){VoicePrefixEvents['removeListener'](_0x2fea71,_0x146472);};}exports['register']=function(_0x5515c3){for(var _0x1e48d0=0x0,_0x4dfe71=events[_0x3138('0x2')];_0x1e48d0<_0x4dfe71;_0x1e48d0++){var _0x6d8acc=events[_0x1e48d0];var _0xdbdaa9=createListener('voicePrefix:'+_0x6d8acc,_0x5515c3);VoicePrefixEvents['on'](_0x6d8acc,_0xdbdaa9);}};