Built motion from commit f94df7f0.|2.5.48
[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 _0x4a3c=['update','emit','removeListener','register','./voicePrefix.events','remove'];(function(_0x5056cc,_0x30b947){var _0x15410e=function(_0x49b327){while(--_0x49b327){_0x5056cc['push'](_0x5056cc['shift']());}};_0x15410e(++_0x30b947);}(_0x4a3c,0x13c));var _0xc4a3=function(_0x1f05b8,_0xa0da3a){_0x1f05b8=_0x1f05b8-0x0;var _0x8ce20a=_0x4a3c[_0x1f05b8];return _0x8ce20a;};'use strict';var VoicePrefixEvents=require(_0xc4a3('0x0'));var events=['save',_0xc4a3('0x1'),_0xc4a3('0x2')];function createListener(_0x353760,_0x132afa){return function(_0x296209){_0x132afa[_0xc4a3('0x3')](_0x353760,_0x296209);};}function removeListener(_0xea7843,_0x5785ed){return function(){VoicePrefixEvents[_0xc4a3('0x4')](_0xea7843,_0x5785ed);};}exports[_0xc4a3('0x5')]=function(_0x26db49){for(var _0x3a4100=0x0,_0x4b1c84=events['length'];_0x3a4100<_0x4b1c84;_0x3a4100++){var _0x596b01=events[_0x3a4100];var _0xc11c29=createListener('voicePrefix:'+_0x596b01,_0x26db49);VoicePrefixEvents['on'](_0x596b01,_0xc11c29);}};