Built motion from commit da617fac.|2.6.6
[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 _0x651a=['emit','removeListener','faxInteraction:','./faxInteraction.events','save','remove'];(function(_0x4eb6ec,_0x7f2520){var _0x58881b=function(_0x4f375f){while(--_0x4f375f){_0x4eb6ec['push'](_0x4eb6ec['shift']());}};_0x58881b(++_0x7f2520);}(_0x651a,0x135));var _0xa651=function(_0x2f3ecd,_0x57976b){_0x2f3ecd=_0x2f3ecd-0x0;var _0xffdc44=_0x651a[_0x2f3ecd];return _0xffdc44;};'use strict';var FaxInteractionEvents=require(_0xa651('0x0'));var events=[_0xa651('0x1'),_0xa651('0x2'),'update'];function createListener(_0x5ced0d,_0x20ba14){return function(_0x5e2625){_0x20ba14[_0xa651('0x3')](_0x5ced0d,_0x5e2625);};}function removeListener(_0x592790,_0x2026e9){return function(){FaxInteractionEvents[_0xa651('0x4')](_0x592790,_0x2026e9);};}exports['register']=function(_0x38a876){for(var _0x33d3ad=0x0,_0x4d0a9a=events['length'];_0x33d3ad<_0x4d0a9a;_0x33d3ad++){var _0x53f05e=events[_0x33d3ad];var _0x46e04f=createListener(_0xa651('0x5')+_0x53f05e,_0x38a876);FaxInteractionEvents['on'](_0x53f05e,_0x46e04f);}};