Built motion from commit b5413ace.|2.6.9
[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 _0xceb0=['register','length','voicePrefix:','emit'];(function(_0x11d880,_0x5e3f03){var _0x3399b5=function(_0x486df1){while(--_0x486df1){_0x11d880['push'](_0x11d880['shift']());}};_0x3399b5(++_0x5e3f03);}(_0xceb0,0x173));var _0x0ceb=function(_0x467bb0,_0x2ba1e0){_0x467bb0=_0x467bb0-0x0;var _0x5a8a93=_0xceb0[_0x467bb0];return _0x5a8a93;};'use strict';var VoicePrefixEvents=require('./voicePrefix.events');var events=['save','remove','update'];function createListener(_0x3a9748,_0x48c8b1){return function(_0x1659e3){_0x48c8b1[_0x0ceb('0x0')](_0x3a9748,_0x1659e3);};}function removeListener(_0x2e72bb,_0x496d9f){return function(){VoicePrefixEvents['removeListener'](_0x2e72bb,_0x496d9f);};}exports[_0x0ceb('0x1')]=function(_0x218237){for(var _0x3f650d=0x0,_0x52e6bb=events[_0x0ceb('0x2')];_0x3f650d<_0x52e6bb;_0x3f650d++){var _0x19e438=events[_0x3f650d];var _0x4ec03a=createListener(_0x0ceb('0x3')+_0x19e438,_0x218237);VoicePrefixEvents['on'](_0x19e438,_0x4ec03a);}};