Built motion from commit 4fa9d4a7.|2.6.31
[motion2.git] / server / api / faxMessage / faxMessage.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 _0x9ec1=['./faxMessage.events','save','remove','update','emit','length','faxMessage:'];(function(_0x2844d7,_0x322190){var _0x4d7829=function(_0x215ec2){while(--_0x215ec2){_0x2844d7['push'](_0x2844d7['shift']());}};_0x4d7829(++_0x322190);}(_0x9ec1,0x1c7));var _0x19ec=function(_0x443e72,_0x50737f){_0x443e72=_0x443e72-0x0;var _0x87c5e2=_0x9ec1[_0x443e72];return _0x87c5e2;};'use strict';var FaxMessageEvents=require(_0x19ec('0x0'));var events=[_0x19ec('0x1'),_0x19ec('0x2'),_0x19ec('0x3')];function createListener(_0x28e97b,_0x5289a6){return function(_0x49732d){_0x5289a6[_0x19ec('0x4')](_0x28e97b,_0x49732d);};}function removeListener(_0x309e6c,_0x186b71){return function(){FaxMessageEvents['removeListener'](_0x309e6c,_0x186b71);};}exports['register']=function(_0xe0c9c3){for(var _0x22079c=0x0,_0x2b60a8=events[_0x19ec('0x5')];_0x22079c<_0x2b60a8;_0x22079c++){var _0x54b542=events[_0x22079c];var _0x32c9d0=createListener(_0x19ec('0x6')+_0x54b542,_0xe0c9c3);FaxMessageEvents['on'](_0x54b542,_0x32c9d0);}};