Built motion from commit (unavailable).|2.5.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 _0xb9a6=['remove','update','emit','removeListener','register','./voicePrefix.events','save'];(function(_0x14add3,_0x13ce8d){var _0x4a174f=function(_0x2b3ed7){while(--_0x2b3ed7){_0x14add3['push'](_0x14add3['shift']());}};_0x4a174f(++_0x13ce8d);}(_0xb9a6,0xa6));var _0x6b9a=function(_0x319bdb,_0x524c65){_0x319bdb=_0x319bdb-0x0;var _0xe033f6=_0xb9a6[_0x319bdb];return _0xe033f6;};'use strict';var VoicePrefixEvents=require(_0x6b9a('0x0'));var events=[_0x6b9a('0x1'),_0x6b9a('0x2'),_0x6b9a('0x3')];function createListener(_0x378e3d,_0x496d18){return function(_0x7f5472){_0x496d18[_0x6b9a('0x4')](_0x378e3d,_0x7f5472);};}function removeListener(_0x472d65,_0x5b1507){return function(){VoicePrefixEvents[_0x6b9a('0x5')](_0x472d65,_0x5b1507);};}exports[_0x6b9a('0x6')]=function(_0x3b07db){for(var _0x215347=0x0,_0x559a31=events['length'];_0x215347<_0x559a31;_0x215347++){var _0x21b697=events[_0x215347];var _0x1da35d=createListener('voicePrefix:'+_0x21b697,_0x3b07db);VoicePrefixEvents['on'](_0x21b697,_0x1da35d);}};