Built motion from commit ffdca78c.|2.6.24
[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 _0xda55=['voicePrefix:','./voicePrefix.events','save','emit','removeListener','length'];(function(_0x5b0796,_0x12dff6){var _0x52d809=function(_0x3d6d1e){while(--_0x3d6d1e){_0x5b0796['push'](_0x5b0796['shift']());}};_0x52d809(++_0x12dff6);}(_0xda55,0x6d));var _0x5da5=function(_0xaa1cab,_0x5f54b2){_0xaa1cab=_0xaa1cab-0x0;var _0x48cbeb=_0xda55[_0xaa1cab];return _0x48cbeb;};'use strict';var VoicePrefixEvents=require(_0x5da5('0x0'));var events=[_0x5da5('0x1'),'remove','update'];function createListener(_0x13ecbc,_0x240a49){return function(_0x26a443){_0x240a49[_0x5da5('0x2')](_0x13ecbc,_0x26a443);};}function removeListener(_0x1c3afd,_0x5da254){return function(){VoicePrefixEvents[_0x5da5('0x3')](_0x1c3afd,_0x5da254);};}exports['register']=function(_0x356a37){for(var _0x58e7b3=0x0,_0x2fd877=events[_0x5da5('0x4')];_0x58e7b3<_0x2fd877;_0x58e7b3++){var _0x71b187=events[_0x58e7b3];var _0x46290d=createListener(_0x5da5('0x5')+_0x71b187,_0x356a37);VoicePrefixEvents['on'](_0x71b187,_0x46290d);}};