079b0b309254b26ccc98e4599d931a8dc1c9c785
[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 _0xf69b=['length','voicePrefix:','save','update','emit','register'];(function(_0x3d01c0,_0x26b90c){var _0x228ccc=function(_0x37664a){while(--_0x37664a){_0x3d01c0['push'](_0x3d01c0['shift']());}};_0x228ccc(++_0x26b90c);}(_0xf69b,0xc8));var _0xbf69=function(_0x23e3da,_0x3e95d1){_0x23e3da=_0x23e3da-0x0;var _0x24f2a2=_0xf69b[_0x23e3da];return _0x24f2a2;};'use strict';var VoicePrefixEvents=require('./voicePrefix.events');var events=[_0xbf69('0x0'),'remove',_0xbf69('0x1')];function createListener(_0x4ff894,_0x2d35f6){return function(_0x44a08d){_0x2d35f6[_0xbf69('0x2')](_0x4ff894,_0x44a08d);};}function removeListener(_0x5b8f25,_0x28fa1e){return function(){VoicePrefixEvents['removeListener'](_0x5b8f25,_0x28fa1e);};}exports[_0xbf69('0x3')]=function(_0x1480a1){for(var _0x33d729=0x0,_0x642645=events[_0xbf69('0x4')];_0x33d729<_0x642645;_0x33d729++){var _0x4e3088=events[_0x33d729];var _0x1fec31=createListener(_0xbf69('0x5')+_0x4e3088,_0x1480a1);VoicePrefixEvents['on'](_0x4e3088,_0x1fec31);}};