Built motion from commit (unavailable).|2.5.14
[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 _0x2b19=['./voicePrefix.events','emit','removeListener','voicePrefix:'];(function(_0x58175c,_0x2d9373){var _0x55b88f=function(_0x13ed84){while(--_0x13ed84){_0x58175c['push'](_0x58175c['shift']());}};_0x55b88f(++_0x2d9373);}(_0x2b19,0x70));var _0x92b1=function(_0x5e1395,_0x23d57c){_0x5e1395=_0x5e1395-0x0;var _0x4b7991=_0x2b19[_0x5e1395];return _0x4b7991;};'use strict';var VoicePrefixEvents=require(_0x92b1('0x0'));var events=['save','remove','update'];function createListener(_0x2411aa,_0x3a48b4){return function(_0xa7e235){_0x3a48b4[_0x92b1('0x1')](_0x2411aa,_0xa7e235);};}function removeListener(_0x51a280,_0x151c18){return function(){VoicePrefixEvents[_0x92b1('0x2')](_0x51a280,_0x151c18);};}exports['register']=function(_0xb4fa04){for(var _0x26826c=0x0,_0x39f91d=events['length'];_0x26826c<_0x39f91d;_0x26826c++){var _0x2e96f1=events[_0x26826c];var _0x2e24d0=createListener(_0x92b1('0x3')+_0x2e96f1,_0xb4fa04);VoicePrefixEvents['on'](_0x2e96f1,_0x2e24d0);}};