1f2d45ea328e714832246a4b4b32fb7c8619f539
[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 _0x205d=['remove','emit','removeListener','register','length','voicePrefix:','./voicePrefix.events','save'];(function(_0x385b5,_0x3f2144){var _0xb1d1af=function(_0x52cad6){while(--_0x52cad6){_0x385b5['push'](_0x385b5['shift']());}};_0xb1d1af(++_0x3f2144);}(_0x205d,0xf6));var _0xd205=function(_0x2a7812,_0x1ce83a){_0x2a7812=_0x2a7812-0x0;var _0x3e1342=_0x205d[_0x2a7812];return _0x3e1342;};'use strict';var VoicePrefixEvents=require(_0xd205('0x0'));var events=[_0xd205('0x1'),_0xd205('0x2'),'update'];function createListener(_0x4a640b,_0x1eaf09){return function(_0xbd11c7){_0x1eaf09[_0xd205('0x3')](_0x4a640b,_0xbd11c7);};}function removeListener(_0x4bc52b,_0xd8bd69){return function(){VoicePrefixEvents[_0xd205('0x4')](_0x4bc52b,_0xd8bd69);};}exports[_0xd205('0x5')]=function(_0x45a533){for(var _0x4c078b=0x0,_0x2614e7=events[_0xd205('0x6')];_0x4c078b<_0x2614e7;_0x4c078b++){var _0xdb99a8=events[_0x4c078b];var _0x372211=createListener(_0xd205('0x7')+_0xdb99a8,_0x45a533);VoicePrefixEvents['on'](_0xdb99a8,_0x372211);}};