Built motion from commit (unavailable).|2.5.7
[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 _0x3d0e=['save','remove','update','emit','removeListener','length','./voicePrefix.events'];(function(_0x4f7fc6,_0x554d2f){var _0x235170=function(_0x489da4){while(--_0x489da4){_0x4f7fc6['push'](_0x4f7fc6['shift']());}};_0x235170(++_0x554d2f);}(_0x3d0e,0x1db));var _0xe3d0=function(_0x376b45,_0x5964fb){_0x376b45=_0x376b45-0x0;var _0x2341b3=_0x3d0e[_0x376b45];return _0x2341b3;};'use strict';var VoicePrefixEvents=require(_0xe3d0('0x0'));var events=[_0xe3d0('0x1'),_0xe3d0('0x2'),_0xe3d0('0x3')];function createListener(_0x1f49eb,_0x3fa30f){return function(_0x338db2){_0x3fa30f[_0xe3d0('0x4')](_0x1f49eb,_0x338db2);};}function removeListener(_0xae4739,_0x188879){return function(){VoicePrefixEvents[_0xe3d0('0x5')](_0xae4739,_0x188879);};}exports['register']=function(_0x1e7b77){for(var _0x46431a=0x0,_0x16d8bf=events[_0xe3d0('0x6')];_0x46431a<_0x16d8bf;_0x46431a++){var _0x2f846e=events[_0x46431a];var _0x21692f=createListener('voicePrefix:'+_0x2f846e,_0x1e7b77);VoicePrefixEvents['on'](_0x2f846e,_0x21692f);}};