b4f3e069cee019b3f6f418021371c1652d287327
[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 _0x9dd9=['register','length','voicePrefix:','./voicePrefix.events','save','remove','update','emit'];(function(_0x576257,_0x3b187b){var _0x10ee41=function(_0x38ede6){while(--_0x38ede6){_0x576257['push'](_0x576257['shift']());}};_0x10ee41(++_0x3b187b);}(_0x9dd9,0x1c3));var _0x99dd=function(_0x2a2673,_0x26cf9b){_0x2a2673=_0x2a2673-0x0;var _0x4914ec=_0x9dd9[_0x2a2673];return _0x4914ec;};'use strict';var VoicePrefixEvents=require(_0x99dd('0x0'));var events=[_0x99dd('0x1'),_0x99dd('0x2'),_0x99dd('0x3')];function createListener(_0x4f73d2,_0x5c61ff){return function(_0x214063){_0x5c61ff[_0x99dd('0x4')](_0x4f73d2,_0x214063);};}function removeListener(_0x1d08c3,_0x401ae6){return function(){VoicePrefixEvents['removeListener'](_0x1d08c3,_0x401ae6);};}exports[_0x99dd('0x5')]=function(_0x3b77a4){for(var _0x15b1cf=0x0,_0x42a5bc=events[_0x99dd('0x6')];_0x15b1cf<_0x42a5bc;_0x15b1cf++){var _0x41f0b8=events[_0x15b1cf];var _0x193c5a=createListener(_0x99dd('0x7')+_0x41f0b8,_0x3b77a4);VoicePrefixEvents['on'](_0x41f0b8,_0x193c5a);}};