Built motion from commit 639a1a7f.|2.6.19
[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 _0x3454=['length','openchannelInteraction:','./openchannelInteraction.events','save','remove','update','emit','removeListener'];(function(_0x9afaeb,_0x3edcc3){var _0x590bcc=function(_0x36aa55){while(--_0x36aa55){_0x9afaeb['push'](_0x9afaeb['shift']());}};_0x590bcc(++_0x3edcc3);}(_0x3454,0x15a));var _0x4345=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0x3454[_0x3dd15e];return _0x231fd0;};'use strict';var OpenchannelInteractionEvents=require(_0x4345('0x0'));var events=[_0x4345('0x1'),_0x4345('0x2'),_0x4345('0x3')];function createListener(_0xe9770c,_0x3c303c){return function(_0x4fb21e){_0x3c303c[_0x4345('0x4')](_0xe9770c,_0x4fb21e);};}function removeListener(_0x16a938,_0x18bbb8){return function(){OpenchannelInteractionEvents[_0x4345('0x5')](_0x16a938,_0x18bbb8);};}exports['register']=function(_0x140ad8){for(var _0x594bd4=0x0,_0x159512=events[_0x4345('0x6')];_0x594bd4<_0x159512;_0x594bd4++){var _0x851274=events[_0x594bd4];var _0x47d299=createListener(_0x4345('0x7')+_0x851274,_0x140ad8);OpenchannelInteractionEvents['on'](_0x851274,_0x47d299);}};