Built motion from commit fe909640.|2.6.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 _0x885e=['removeListener','register','length','voicePrefix:','./voicePrefix.events','save','update','emit'];(function(_0x4fd96d,_0x3a5551){var _0xf7e94b=function(_0x30eeb5){while(--_0x30eeb5){_0x4fd96d['push'](_0x4fd96d['shift']());}};_0xf7e94b(++_0x3a5551);}(_0x885e,0xe4));var _0xe885=function(_0x17eb53,_0x4bd3b6){_0x17eb53=_0x17eb53-0x0;var _0xc9ac4b=_0x885e[_0x17eb53];return _0xc9ac4b;};'use strict';var VoicePrefixEvents=require(_0xe885('0x0'));var events=[_0xe885('0x1'),'remove',_0xe885('0x2')];function createListener(_0x1cd11a,_0x162982){return function(_0xfea0bc){_0x162982[_0xe885('0x3')](_0x1cd11a,_0xfea0bc);};}function removeListener(_0x4fcd9b,_0x499ab6){return function(){VoicePrefixEvents[_0xe885('0x4')](_0x4fcd9b,_0x499ab6);};}exports[_0xe885('0x5')]=function(_0x33286a){for(var _0x1a5fd6=0x0,_0x55d2b2=events[_0xe885('0x6')];_0x1a5fd6<_0x55d2b2;_0x1a5fd6++){var _0x597bdc=events[_0x1a5fd6];var _0x2e8fe0=createListener(_0xe885('0x7')+_0x597bdc,_0x33286a);VoicePrefixEvents['on'](_0x597bdc,_0x2e8fe0);}};