5131ffb6e0a8287bb215880c6d1a891f87f16c04
[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 _0xe94f=['length','removeListener'];(function(_0x502c7d,_0x2f1285){var _0x30b7ed=function(_0x2d92f3){while(--_0x2d92f3){_0x502c7d['push'](_0x502c7d['shift']());}};_0x30b7ed(++_0x2f1285);}(_0xe94f,0xef));var _0xfe94=function(_0x53f402,_0x326920){_0x53f402=_0x53f402-0x0;var _0x45a76d=_0xe94f[_0x53f402];return _0x45a76d;};'use strict';var VoicePrefixEvents=require('./voicePrefix.events');var events=['save','remove','update'];function createListener(_0x915100,_0x6bbc9e){return function(_0x31898c){_0x6bbc9e['emit'](_0x915100,_0x31898c);};}function removeListener(_0xe5fa56,_0x4aa89a){return function(){VoicePrefixEvents[_0xfe94('0x0')](_0xe5fa56,_0x4aa89a);};}exports['register']=function(_0x15b538){for(var _0x395034=0x0,_0x160362=events[_0xfe94('0x1')];_0x395034<_0x160362;_0x395034++){var _0x53191c=events[_0x395034];var _0x123e8b=createListener('voicePrefix:'+_0x53191c,_0x15b538);VoicePrefixEvents['on'](_0x53191c,_0x123e8b);}};