Built motion from commit b0a9a629.|2.6.33
[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 _0x91d4=['register','length','faxInteraction:','./faxInteraction.events','save','update','removeListener'];(function(_0x5aa184,_0x1293d9){var _0x5c785d=function(_0x17b6b8){while(--_0x17b6b8){_0x5aa184['push'](_0x5aa184['shift']());}};_0x5c785d(++_0x1293d9);}(_0x91d4,0x73));var _0x491d=function(_0x4ec216,_0xa8ac4d){_0x4ec216=_0x4ec216-0x0;var _0x24d4d5=_0x91d4[_0x4ec216];return _0x24d4d5;};'use strict';var FaxInteractionEvents=require(_0x491d('0x0'));var events=[_0x491d('0x1'),'remove',_0x491d('0x2')];function createListener(_0x301121,_0x1cade6){return function(_0x5bfcac){_0x1cade6['emit'](_0x301121,_0x5bfcac);};}function removeListener(_0x26ac17,_0x87a13f){return function(){FaxInteractionEvents[_0x491d('0x3')](_0x26ac17,_0x87a13f);};}exports[_0x491d('0x4')]=function(_0xc033c3){for(var _0x304a6e=0x0,_0x597137=events[_0x491d('0x5')];_0x304a6e<_0x597137;_0x304a6e++){var _0x583ebb=events[_0x304a6e];var _0xbadeb9=createListener(_0x491d('0x6')+_0x583ebb,_0xc033c3);FaxInteractionEvents['on'](_0x583ebb,_0xbadeb9);}};