Built motion from commit efa66e19.|2.6.22
[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 _0x702d=['remove','update','emit','register','length','./voicePrefix.events','save'];(function(_0x2c9782,_0x21b6cb){var _0x2e3906=function(_0x34fbcf){while(--_0x34fbcf){_0x2c9782['push'](_0x2c9782['shift']());}};_0x2e3906(++_0x21b6cb);}(_0x702d,0x147));var _0xd702=function(_0x28b87e,_0x15d4b8){_0x28b87e=_0x28b87e-0x0;var _0x1b26aa=_0x702d[_0x28b87e];return _0x1b26aa;};'use strict';var VoicePrefixEvents=require(_0xd702('0x0'));var events=[_0xd702('0x1'),_0xd702('0x2'),_0xd702('0x3')];function createListener(_0x37ed5c,_0x5c2b9e){return function(_0x20c11a){_0x5c2b9e[_0xd702('0x4')](_0x37ed5c,_0x20c11a);};}function removeListener(_0x27b260,_0x1c5a32){return function(){VoicePrefixEvents['removeListener'](_0x27b260,_0x1c5a32);};}exports[_0xd702('0x5')]=function(_0x544e94){for(var _0x1aecfc=0x0,_0x3a2c03=events[_0xd702('0x6')];_0x1aecfc<_0x3a2c03;_0x1aecfc++){var _0x5af246=events[_0x1aecfc];var _0x12bb75=createListener('voicePrefix:'+_0x5af246,_0x544e94);VoicePrefixEvents['on'](_0x5af246,_0x12bb75);}};