Built motion from commit (unavailable).|2.4.11
[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 _0x00cc=['remove','update','emit','register','voicePrefix:','./voicePrefix.events','save'];(function(_0x2cd4a5,_0x39b45d){var _0x59e4be=function(_0x55966d){while(--_0x55966d){_0x2cd4a5['push'](_0x2cd4a5['shift']());}};_0x59e4be(++_0x39b45d);}(_0x00cc,0x1a9));var _0xc00c=function(_0xeaf295,_0xad44e6){_0xeaf295=_0xeaf295-0x0;var _0x5b935a=_0x00cc[_0xeaf295];return _0x5b935a;};'use strict';var VoicePrefixEvents=require(_0xc00c('0x0'));var events=[_0xc00c('0x1'),_0xc00c('0x2'),_0xc00c('0x3')];function createListener(_0x5219f3,_0x3e40a8){return function(_0x491eb5){_0x3e40a8[_0xc00c('0x4')](_0x5219f3,_0x491eb5);};}function removeListener(_0x504aa6,_0x5c54fa){return function(){VoicePrefixEvents['removeListener'](_0x504aa6,_0x5c54fa);};}exports[_0xc00c('0x5')]=function(_0x297e03){for(var _0x482f72=0x0,_0x4cb3c9=events['length'];_0x482f72<_0x4cb3c9;_0x482f72++){var _0x4e64e9=events[_0x482f72];var _0x367278=createListener(_0xc00c('0x6')+_0x4e64e9,_0x297e03);VoicePrefixEvents['on'](_0x4e64e9,_0x367278);}};