Built motion from commit b5996064.|2.6.21
[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 _0xe1d0=['save','update','emit','register','length'];(function(_0x377679,_0x42a1e6){var _0x3dd40c=function(_0x371a42){while(--_0x371a42){_0x377679['push'](_0x377679['shift']());}};_0x3dd40c(++_0x42a1e6);}(_0xe1d0,0x87));var _0x0e1d=function(_0xaddaf3,_0x114a29){_0xaddaf3=_0xaddaf3-0x0;var _0x3203c5=_0xe1d0[_0xaddaf3];return _0x3203c5;};'use strict';var FaxMessageEvents=require('./faxMessage.events');var events=[_0x0e1d('0x0'),'remove',_0x0e1d('0x1')];function createListener(_0x4501f4,_0x1a2d13){return function(_0x112ee1){_0x1a2d13[_0x0e1d('0x2')](_0x4501f4,_0x112ee1);};}function removeListener(_0x4eac16,_0x14c725){return function(){FaxMessageEvents['removeListener'](_0x4eac16,_0x14c725);};}exports[_0x0e1d('0x3')]=function(_0x3d68c3){for(var _0x2d91f3=0x0,_0xa0f3d7=events[_0x0e1d('0x4')];_0x2d91f3<_0xa0f3d7;_0x2d91f3++){var _0x485f82=events[_0x2d91f3];var _0x4ab3fc=createListener('faxMessage:'+_0x485f82,_0x3d68c3);FaxMessageEvents['on'](_0x485f82,_0x4ab3fc);}};