fd396eecd5b2cf142d8e5d98b27c9a58e032eb88
[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 _0xae2b=['save','update','emit','removeListener','./voicePrefix.events'];(function(_0x2bda52,_0x51887a){var _0x533f0f=function(_0x29a5be){while(--_0x29a5be){_0x2bda52['push'](_0x2bda52['shift']());}};_0x533f0f(++_0x51887a);}(_0xae2b,0xb3));var _0xbae2=function(_0x522dde,_0x1e872a){_0x522dde=_0x522dde-0x0;var _0x2bdcd5=_0xae2b[_0x522dde];return _0x2bdcd5;};'use strict';var VoicePrefixEvents=require(_0xbae2('0x0'));var events=[_0xbae2('0x1'),'remove',_0xbae2('0x2')];function createListener(_0x247e63,_0x34de92){return function(_0x214f0e){_0x34de92[_0xbae2('0x3')](_0x247e63,_0x214f0e);};}function removeListener(_0x11edb2,_0x564f86){return function(){VoicePrefixEvents[_0xbae2('0x4')](_0x11edb2,_0x564f86);};}exports['register']=function(_0x365175){for(var _0xbfd83a=0x0,_0x18bc03=events['length'];_0xbfd83a<_0x18bc03;_0xbfd83a++){var _0x4788c4=events[_0xbfd83a];var _0x57f2ca=createListener('voicePrefix:'+_0x4788c4,_0x365175);VoicePrefixEvents['on'](_0x4788c4,_0x57f2ca);}};