0ddd81aba0a5a1843d8dc3d890596e6ce5173b8a
[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 _0x5fc7=['removeListener','register','length','voicePrefix:','./voicePrefix.events','save','remove','update','emit'];(function(_0x429620,_0x1328b4){var _0x2b79f4=function(_0x2c1f50){while(--_0x2c1f50){_0x429620['push'](_0x429620['shift']());}};_0x2b79f4(++_0x1328b4);}(_0x5fc7,0x1e1));var _0x75fc=function(_0x2becba,_0x4ea656){_0x2becba=_0x2becba-0x0;var _0x90b5dd=_0x5fc7[_0x2becba];return _0x90b5dd;};'use strict';var VoicePrefixEvents=require(_0x75fc('0x0'));var events=[_0x75fc('0x1'),_0x75fc('0x2'),_0x75fc('0x3')];function createListener(_0x196e85,_0xca767f){return function(_0x2e89f5){_0xca767f[_0x75fc('0x4')](_0x196e85,_0x2e89f5);};}function removeListener(_0x756c32,_0x51e8b4){return function(){VoicePrefixEvents[_0x75fc('0x5')](_0x756c32,_0x51e8b4);};}exports[_0x75fc('0x6')]=function(_0x52c644){for(var _0x1d1303=0x0,_0xc85b45=events[_0x75fc('0x7')];_0x1d1303<_0xc85b45;_0x1d1303++){var _0x347ce8=events[_0x1d1303];var _0x17a1d5=createListener(_0x75fc('0x8')+_0x347ce8,_0x52c644);VoicePrefixEvents['on'](_0x347ce8,_0x17a1d5);}};