e2e58a0f2a7ad906f7685aab7fa96534eeb6cc70
[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 _0xad8d=['emit','removeListener','register','voicePrefix:','remove','update'];(function(_0x11f0e5,_0x268799){var _0x923881=function(_0x1f4cca){while(--_0x1f4cca){_0x11f0e5['push'](_0x11f0e5['shift']());}};_0x923881(++_0x268799);}(_0xad8d,0x7c));var _0xdad8=function(_0x1a61a8,_0x2d263f){_0x1a61a8=_0x1a61a8-0x0;var _0x2387b6=_0xad8d[_0x1a61a8];return _0x2387b6;};'use strict';var VoicePrefixEvents=require('./voicePrefix.events');var events=['save',_0xdad8('0x0'),_0xdad8('0x1')];function createListener(_0x27f38a,_0x62b033){return function(_0x28c301){_0x62b033[_0xdad8('0x2')](_0x27f38a,_0x28c301);};}function removeListener(_0x5840b9,_0x2d3cfc){return function(){VoicePrefixEvents[_0xdad8('0x3')](_0x5840b9,_0x2d3cfc);};}exports[_0xdad8('0x4')]=function(_0x130c59){for(var _0x412d12=0x0,_0x3c0893=events['length'];_0x412d12<_0x3c0893;_0x412d12++){var _0x1e2806=events[_0x412d12];var _0x2182fd=createListener(_0xdad8('0x5')+_0x1e2806,_0x130c59);VoicePrefixEvents['on'](_0x1e2806,_0x2182fd);}};