Built motion from commit 25580385.|2.6.2
[motion2.git] / server / api / openchannelInteraction / openchannelInteraction.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 _0xb3c9=['remove','update','removeListener','register','./openchannelInteraction.events','save'];(function(_0x2dad1c,_0x8eb2e7){var _0x5a283d=function(_0x535f46){while(--_0x535f46){_0x2dad1c['push'](_0x2dad1c['shift']());}};_0x5a283d(++_0x8eb2e7);}(_0xb3c9,0xee));var _0x9b3c=function(_0x2d7a2f,_0x119417){_0x2d7a2f=_0x2d7a2f-0x0;var _0x1f0717=_0xb3c9[_0x2d7a2f];return _0x1f0717;};'use strict';var OpenchannelInteractionEvents=require(_0x9b3c('0x0'));var events=[_0x9b3c('0x1'),_0x9b3c('0x2'),_0x9b3c('0x3')];function createListener(_0x587293,_0x273071){return function(_0x33e898){_0x273071['emit'](_0x587293,_0x33e898);};}function removeListener(_0x14e24d,_0x50168f){return function(){OpenchannelInteractionEvents[_0x9b3c('0x4')](_0x14e24d,_0x50168f);};}exports[_0x9b3c('0x5')]=function(_0x1eaa56){for(var _0x479052=0x0,_0x2fbf15=events['length'];_0x479052<_0x2fbf15;_0x479052++){var _0x3b6c6f=events[_0x479052];var _0x459411=createListener('openchannelInteraction:'+_0x3b6c6f,_0x1eaa56);OpenchannelInteractionEvents['on'](_0x3b6c6f,_0x459411);}};