31962ce6ad1812c49784d9721bb203c558459e5d
[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 _0x33f2=['remove','update','emit','removeListener','register','voicePrefix:','save'];(function(_0x45145a,_0x151315){var _0xe85329=function(_0x5d7a25){while(--_0x5d7a25){_0x45145a['push'](_0x45145a['shift']());}};_0xe85329(++_0x151315);}(_0x33f2,0x68));var _0x233f=function(_0xe30e17,_0xce02be){_0xe30e17=_0xe30e17-0x0;var _0x2342c9=_0x33f2[_0xe30e17];return _0x2342c9;};'use strict';var VoicePrefixEvents=require('./voicePrefix.events');var events=[_0x233f('0x0'),_0x233f('0x1'),_0x233f('0x2')];function createListener(_0x2bc0b5,_0x6c379){return function(_0x4b0025){_0x6c379[_0x233f('0x3')](_0x2bc0b5,_0x4b0025);};}function removeListener(_0x12e176,_0x260c5c){return function(){VoicePrefixEvents[_0x233f('0x4')](_0x12e176,_0x260c5c);};}exports[_0x233f('0x5')]=function(_0x2ace32){for(var _0x559968=0x0,_0x1235de=events['length'];_0x559968<_0x1235de;_0x559968++){var _0x5c553f=events[_0x559968];var _0x257a5d=createListener(_0x233f('0x6')+_0x5c553f,_0x2ace32);VoicePrefixEvents['on'](_0x5c553f,_0x257a5d);}};