Built motion from commit da617fac.|2.6.6
[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 _0xc423=['length','./voicePrefix.events','save','remove','update','emit','removeListener','register'];(function(_0x549876,_0x66473f){var _0x242552=function(_0x368dfb){while(--_0x368dfb){_0x549876['push'](_0x549876['shift']());}};_0x242552(++_0x66473f);}(_0xc423,0x159));var _0x3c42=function(_0x2be8c2,_0x14a4b5){_0x2be8c2=_0x2be8c2-0x0;var _0x97f531=_0xc423[_0x2be8c2];return _0x97f531;};'use strict';var VoicePrefixEvents=require(_0x3c42('0x0'));var events=[_0x3c42('0x1'),_0x3c42('0x2'),_0x3c42('0x3')];function createListener(_0x206e02,_0x4c94ff){return function(_0x212d37){_0x4c94ff[_0x3c42('0x4')](_0x206e02,_0x212d37);};}function removeListener(_0x2f1f8b,_0x5e8278){return function(){VoicePrefixEvents[_0x3c42('0x5')](_0x2f1f8b,_0x5e8278);};}exports[_0x3c42('0x6')]=function(_0x14e395){for(var _0x1feba8=0x0,_0x3c3ac4=events[_0x3c42('0x7')];_0x1feba8<_0x3c3ac4;_0x1feba8++){var _0x278430=events[_0x1feba8];var _0x23c503=createListener('voicePrefix:'+_0x278430,_0x14e395);VoicePrefixEvents['on'](_0x278430,_0x23c503);}};