Built motion from commit (unavailable).|2.5.31
[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 _0x9963=['./voicePrefix.events','remove','update','emit','removeListener','register','length'];(function(_0x172660,_0x260d9b){var _0x83204f=function(_0x4d6c80){while(--_0x4d6c80){_0x172660['push'](_0x172660['shift']());}};_0x83204f(++_0x260d9b);}(_0x9963,0x1ea));var _0x3996=function(_0x474bc0,_0x26989c){_0x474bc0=_0x474bc0-0x0;var _0x4b24cf=_0x9963[_0x474bc0];return _0x4b24cf;};'use strict';var VoicePrefixEvents=require(_0x3996('0x0'));var events=['save',_0x3996('0x1'),_0x3996('0x2')];function createListener(_0xa758ff,_0x1b38db){return function(_0x6b5a2d){_0x1b38db[_0x3996('0x3')](_0xa758ff,_0x6b5a2d);};}function removeListener(_0xf0af52,_0x17aa37){return function(){VoicePrefixEvents[_0x3996('0x4')](_0xf0af52,_0x17aa37);};}exports[_0x3996('0x5')]=function(_0x5e7d32){for(var _0x16b770=0x0,_0x29d8e7=events[_0x3996('0x6')];_0x16b770<_0x29d8e7;_0x16b770++){var _0x3acb82=events[_0x16b770];var _0x4bee25=createListener('voicePrefix:'+_0x3acb82,_0x5e7d32);VoicePrefixEvents['on'](_0x3acb82,_0x4bee25);}};