Built motion from commit (unavailable).|2.4.20
[motion2.git] / server / api / voiceExtension / voiceExtension.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 _0x44aa=['emit','removeListener','register','length','voiceExtension:','save'];(function(_0x2113d8,_0x5a3232){var _0x1c8538=function(_0x4fc12d){while(--_0x4fc12d){_0x2113d8['push'](_0x2113d8['shift']());}};_0x1c8538(++_0x5a3232);}(_0x44aa,0x1bb));var _0xa44a=function(_0x5e374a,_0x525a8c){_0x5e374a=_0x5e374a-0x0;var _0x4460db=_0x44aa[_0x5e374a];return _0x4460db;};'use strict';var VoiceExtensionEvents=require('./voiceExtension.events');var events=[_0xa44a('0x0'),'remove','update'];function createListener(_0x596bef,_0x5d58a9){return function(_0x1b4f5e){_0x5d58a9[_0xa44a('0x1')](_0x596bef,_0x1b4f5e);};}function removeListener(_0x2ae5e9,_0x5de649){return function(){VoiceExtensionEvents[_0xa44a('0x2')](_0x2ae5e9,_0x5de649);};}exports[_0xa44a('0x3')]=function(_0x38ce6d){for(var _0x1c0e4b=0x0,_0x28ae1d=events[_0xa44a('0x4')];_0x1c0e4b<_0x28ae1d;_0x1c0e4b++){var _0x152ade=events[_0x1c0e4b];var _0x19cbd9=createListener(_0xa44a('0x5')+_0x152ade,_0x38ce6d);VoiceExtensionEvents['on'](_0x152ade,_0x19cbd9);}};