Built motion from commit 616d3211.|2.6.4
[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 _0x85b5=['voicePrefix:','./voicePrefix.events','save','update','removeListener','register'];(function(_0x591a90,_0x5525b0){var _0x551587=function(_0xd6ad8e){while(--_0xd6ad8e){_0x591a90['push'](_0x591a90['shift']());}};_0x551587(++_0x5525b0);}(_0x85b5,0x7f));var _0x585b=function(_0x352cf7,_0x104de5){_0x352cf7=_0x352cf7-0x0;var _0x3e1275=_0x85b5[_0x352cf7];return _0x3e1275;};'use strict';var VoicePrefixEvents=require(_0x585b('0x0'));var events=[_0x585b('0x1'),'remove',_0x585b('0x2')];function createListener(_0x4a79cf,_0x18ab39){return function(_0x5a7ff0){_0x18ab39['emit'](_0x4a79cf,_0x5a7ff0);};}function removeListener(_0x331fe8,_0x4f37a9){return function(){VoicePrefixEvents[_0x585b('0x3')](_0x331fe8,_0x4f37a9);};}exports[_0x585b('0x4')]=function(_0x9ccfca){for(var _0x5b9e48=0x0,_0x1605b5=events['length'];_0x5b9e48<_0x1605b5;_0x5b9e48++){var _0x432e2d=events[_0x5b9e48];var _0x2f8895=createListener(_0x585b('0x5')+_0x432e2d,_0x9ccfca);VoicePrefixEvents['on'](_0x432e2d,_0x2f8895);}};