Built motion from commit (unavailable).|2.5.22
[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 _0xb02f=['./voicePrefix.events','update','emit','removeListener','length'];(function(_0x54a1e4,_0x982c15){var _0x14d04f=function(_0xcb0d87){while(--_0xcb0d87){_0x54a1e4['push'](_0x54a1e4['shift']());}};_0x14d04f(++_0x982c15);}(_0xb02f,0xe1));var _0xfb02=function(_0x5bd49c,_0x5f4de2){_0x5bd49c=_0x5bd49c-0x0;var _0xb323fc=_0xb02f[_0x5bd49c];return _0xb323fc;};'use strict';var VoicePrefixEvents=require(_0xfb02('0x0'));var events=['save','remove',_0xfb02('0x1')];function createListener(_0x2f7527,_0x373137){return function(_0x2c8de2){_0x373137[_0xfb02('0x2')](_0x2f7527,_0x2c8de2);};}function removeListener(_0x305e65,_0x46ef0f){return function(){VoicePrefixEvents[_0xfb02('0x3')](_0x305e65,_0x46ef0f);};}exports['register']=function(_0x40015e){for(var _0x5c2e46=0x0,_0x1a4bb6=events[_0xfb02('0x4')];_0x5c2e46<_0x1a4bb6;_0x5c2e46++){var _0x511a81=events[_0x5c2e46];var _0x34cc90=createListener('voicePrefix:'+_0x511a81,_0x40015e);VoicePrefixEvents['on'](_0x511a81,_0x34cc90);}};