Built motion from commit (unavailable).|2.5.11
[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 _0xec4a=['removeListener','length','voicePrefix:','remove','emit'];(function(_0x3f1ad8,_0x43d4f1){var _0x232498=function(_0x2b62dd){while(--_0x2b62dd){_0x3f1ad8['push'](_0x3f1ad8['shift']());}};_0x232498(++_0x43d4f1);}(_0xec4a,0x1bb));var _0xaec4=function(_0x4f0e48,_0x565c25){_0x4f0e48=_0x4f0e48-0x0;var _0x76c22d=_0xec4a[_0x4f0e48];return _0x76c22d;};'use strict';var VoicePrefixEvents=require('./voicePrefix.events');var events=['save',_0xaec4('0x0'),'update'];function createListener(_0x41b2c9,_0x402eef){return function(_0x43cba){_0x402eef[_0xaec4('0x1')](_0x41b2c9,_0x43cba);};}function removeListener(_0x25f95a,_0x27132b){return function(){VoicePrefixEvents[_0xaec4('0x2')](_0x25f95a,_0x27132b);};}exports['register']=function(_0x2aabb7){for(var _0x19bea5=0x0,_0x31fd78=events[_0xaec4('0x3')];_0x19bea5<_0x31fd78;_0x19bea5++){var _0x508cd6=events[_0x19bea5];var _0x39ee03=createListener(_0xaec4('0x4')+_0x508cd6,_0x2aabb7);VoicePrefixEvents['on'](_0x508cd6,_0x39ee03);}};