31fc646a813b4795d974875fff45845f72f63aa0
[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 _0xde13=['remove','update','emit','removeListener','length','voicePrefix:','./voicePrefix.events','save'];(function(_0x50918a,_0x3ba882){var _0x4fe766=function(_0x1f5203){while(--_0x1f5203){_0x50918a['push'](_0x50918a['shift']());}};_0x4fe766(++_0x3ba882);}(_0xde13,0x146));var _0x3de1=function(_0x2dadc5,_0x47e17d){_0x2dadc5=_0x2dadc5-0x0;var _0xa6a9c8=_0xde13[_0x2dadc5];return _0xa6a9c8;};'use strict';var VoicePrefixEvents=require(_0x3de1('0x0'));var events=[_0x3de1('0x1'),_0x3de1('0x2'),_0x3de1('0x3')];function createListener(_0x2dcc03,_0x5c4dbc){return function(_0x1594b3){_0x5c4dbc[_0x3de1('0x4')](_0x2dcc03,_0x1594b3);};}function removeListener(_0x420711,_0x4b5b09){return function(){VoicePrefixEvents[_0x3de1('0x5')](_0x420711,_0x4b5b09);};}exports['register']=function(_0xa7fd83){for(var _0x3d0c57=0x0,_0x3d2169=events[_0x3de1('0x6')];_0x3d0c57<_0x3d2169;_0x3d0c57++){var _0x5f1aff=events[_0x3d0c57];var _0x11df45=createListener(_0x3de1('0x7')+_0x5f1aff,_0xa7fd83);VoicePrefixEvents['on'](_0x5f1aff,_0x11df45);}};