Built motion from commit (unavailable).|2.4.17
[motion2.git] / server / api / faxInteraction / faxInteraction.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 _0x30f9=['save','update','removeListener','register','faxInteraction:'];(function(_0x19367f,_0x57c05f){var _0x557882=function(_0xa2eaef){while(--_0xa2eaef){_0x19367f['push'](_0x19367f['shift']());}};_0x557882(++_0x57c05f);}(_0x30f9,0x190));var _0x930f=function(_0x12723c,_0x148a5a){_0x12723c=_0x12723c-0x0;var _0x3fc804=_0x30f9[_0x12723c];return _0x3fc804;};'use strict';var FaxInteractionEvents=require('./faxInteraction.events');var events=[_0x930f('0x0'),'remove',_0x930f('0x1')];function createListener(_0x54c255,_0x8fbaa8){return function(_0xb696a0){_0x8fbaa8['emit'](_0x54c255,_0xb696a0);};}function removeListener(_0x432732,_0x3a9f0c){return function(){FaxInteractionEvents[_0x930f('0x2')](_0x432732,_0x3a9f0c);};}exports[_0x930f('0x3')]=function(_0x359845){for(var _0x381dc8=0x0,_0x2854fa=events['length'];_0x381dc8<_0x2854fa;_0x381dc8++){var _0x1c46aa=events[_0x381dc8];var _0x23f820=createListener(_0x930f('0x4')+_0x1c46aa,_0x359845);FaxInteractionEvents['on'](_0x1c46aa,_0x23f820);}};