Built motion from commit (unavailable).|2.5.8
[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 _0x30ad=['voicePrefix:','./voicePrefix.events','save','remove','update','emit','removeListener','register','length'];(function(_0x266962,_0x7804a){var _0xeb707=function(_0x529d9c){while(--_0x529d9c){_0x266962['push'](_0x266962['shift']());}};_0xeb707(++_0x7804a);}(_0x30ad,0x18d));var _0xd30a=function(_0x323d27,_0x47288c){_0x323d27=_0x323d27-0x0;var _0x9c918c=_0x30ad[_0x323d27];return _0x9c918c;};'use strict';var VoicePrefixEvents=require(_0xd30a('0x0'));var events=[_0xd30a('0x1'),_0xd30a('0x2'),_0xd30a('0x3')];function createListener(_0x4904c2,_0x528497){return function(_0x5a1f24){_0x528497[_0xd30a('0x4')](_0x4904c2,_0x5a1f24);};}function removeListener(_0x561302,_0x3a56ac){return function(){VoicePrefixEvents[_0xd30a('0x5')](_0x561302,_0x3a56ac);};}exports[_0xd30a('0x6')]=function(_0xf8b14a){for(var _0xede7a2=0x0,_0x461cbd=events[_0xd30a('0x7')];_0xede7a2<_0x461cbd;_0xede7a2++){var _0x129965=events[_0xede7a2];var _0x5ec42a=createListener(_0xd30a('0x8')+_0x129965,_0xf8b14a);VoicePrefixEvents['on'](_0x129965,_0x5ec42a);}};