Built motion from commit (unavailable).|2.4.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 _0xc03d=['register','voicePrefix:','./voicePrefix.events','save','update','removeListener'];(function(_0x33d754,_0xb6e079){var _0x38d013=function(_0x37a2e3){while(--_0x37a2e3){_0x33d754['push'](_0x33d754['shift']());}};_0x38d013(++_0xb6e079);}(_0xc03d,0x1f4));var _0xdc03=function(_0x5a881e,_0x30fa80){_0x5a881e=_0x5a881e-0x0;var _0x11f3ae=_0xc03d[_0x5a881e];return _0x11f3ae;};'use strict';var VoicePrefixEvents=require(_0xdc03('0x0'));var events=[_0xdc03('0x1'),'remove',_0xdc03('0x2')];function createListener(_0xf50e76,_0x51ea72){return function(_0x5e186c){_0x51ea72['emit'](_0xf50e76,_0x5e186c);};}function removeListener(_0x24660f,_0x10279f){return function(){VoicePrefixEvents[_0xdc03('0x3')](_0x24660f,_0x10279f);};}exports[_0xdc03('0x4')]=function(_0x1b7311){for(var _0x1d62c3=0x0,_0x14a120=events['length'];_0x1d62c3<_0x14a120;_0x1d62c3++){var _0x50962a=events[_0x1d62c3];var _0x2af24c=createListener(_0xdc03('0x5')+_0x50962a,_0x1b7311);VoicePrefixEvents['on'](_0x50962a,_0x2af24c);}};