Built motion from commit (unavailable).|2.2.0
[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 _0x9c01=['emit','removeListener','register','save','update'];(function(_0x336376,_0xe4b28d){var _0x1d2a8e=function(_0x3afe68){while(--_0x3afe68){_0x336376['push'](_0x336376['shift']());}};_0x1d2a8e(++_0xe4b28d);}(_0x9c01,0x99));var _0x19c0=function(_0x463caf,_0x58d707){_0x463caf=_0x463caf-0x0;var _0x2b3224=_0x9c01[_0x463caf];return _0x2b3224;};'use strict';var VoicePrefixEvents=require('./voicePrefix.events');var events=[_0x19c0('0x0'),'remove',_0x19c0('0x1')];function createListener(_0x262256,_0x17bd80){return function(_0x4f33fc){_0x17bd80[_0x19c0('0x2')](_0x262256,_0x4f33fc);};}function removeListener(_0x1db619,_0x3013ce){return function(){VoicePrefixEvents[_0x19c0('0x3')](_0x1db619,_0x3013ce);};}exports[_0x19c0('0x4')]=function(_0xb4ebfc){for(var _0x1bf6e2=0x0,_0x9537e6=events['length'];_0x1bf6e2<_0x9537e6;_0x1bf6e2++){var _0x570de0=events[_0x1bf6e2];var _0x4c648e=createListener('voicePrefix:'+_0x570de0,_0xb4ebfc);VoicePrefixEvents['on'](_0x570de0,_0x4c648e);}};