Built motion from commit (unavailable).|2.5.13
[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 _0x8d83=['save','remove','update','emit','removeListener','register','length'];(function(_0x479160,_0x3ab560){var _0x47ac6d=function(_0x3f7314){while(--_0x3f7314){_0x479160['push'](_0x479160['shift']());}};_0x47ac6d(++_0x3ab560);}(_0x8d83,0x196));var _0x38d8=function(_0x94b8b5,_0x1a53a1){_0x94b8b5=_0x94b8b5-0x0;var _0x321698=_0x8d83[_0x94b8b5];return _0x321698;};'use strict';var VoicePrefixEvents=require('./voicePrefix.events');var events=[_0x38d8('0x0'),_0x38d8('0x1'),_0x38d8('0x2')];function createListener(_0x47e8b5,_0x541e3e){return function(_0x5bee65){_0x541e3e[_0x38d8('0x3')](_0x47e8b5,_0x5bee65);};}function removeListener(_0xf81b,_0x4c4495){return function(){VoicePrefixEvents[_0x38d8('0x4')](_0xf81b,_0x4c4495);};}exports[_0x38d8('0x5')]=function(_0xf80340){for(var _0x31d5be=0x0,_0x293c47=events[_0x38d8('0x6')];_0x31d5be<_0x293c47;_0x31d5be++){var _0x248064=events[_0x31d5be];var _0x152b1d=createListener('voicePrefix:'+_0x248064,_0xf80340);VoicePrefixEvents['on'](_0x248064,_0x152b1d);}};