Built motion from commit ddca4d0d.|2.5.47
[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 _0x13f6=['./voicePrefix.events','save','removeListener','voicePrefix:'];(function(_0x4fd0cb,_0x5d4bea){var _0x1de96c=function(_0x246e12){while(--_0x246e12){_0x4fd0cb['push'](_0x4fd0cb['shift']());}};_0x1de96c(++_0x5d4bea);}(_0x13f6,0x124));var _0x613f=function(_0x38652c,_0x4dc1e3){_0x38652c=_0x38652c-0x0;var _0x485c41=_0x13f6[_0x38652c];return _0x485c41;};'use strict';var VoicePrefixEvents=require(_0x613f('0x0'));var events=[_0x613f('0x1'),'remove','update'];function createListener(_0xd04cfd,_0x13b50a){return function(_0x12dc5a){_0x13b50a['emit'](_0xd04cfd,_0x12dc5a);};}function removeListener(_0x179f6e,_0x1e01e3){return function(){VoicePrefixEvents[_0x613f('0x2')](_0x179f6e,_0x1e01e3);};}exports['register']=function(_0x3f3525){for(var _0x2367b3=0x0,_0x5618fa=events['length'];_0x2367b3<_0x5618fa;_0x2367b3++){var _0x5a84f2=events[_0x2367b3];var _0x5c93c0=createListener(_0x613f('0x3')+_0x5a84f2,_0x3f3525);VoicePrefixEvents['on'](_0x5a84f2,_0x5c93c0);}};