9f47c1bf6ebf9bc532b8a091f190393fc15ef285
[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 _0xf2c5=['./faxMessage.events','save','update','emit','removeListener','register','faxMessage:'];(function(_0x4e4e93,_0x19494d){var _0x2c11f4=function(_0x1d752c){while(--_0x1d752c){_0x4e4e93['push'](_0x4e4e93['shift']());}};_0x2c11f4(++_0x19494d);}(_0xf2c5,0x85));var _0x5f2c=function(_0x10d580,_0x121db4){_0x10d580=_0x10d580-0x0;var _0x5b2bfe=_0xf2c5[_0x10d580];return _0x5b2bfe;};'use strict';var FaxMessageEvents=require(_0x5f2c('0x0'));var events=[_0x5f2c('0x1'),'remove',_0x5f2c('0x2')];function createListener(_0x383589,_0x562bf3){return function(_0x2bb4d3){_0x562bf3[_0x5f2c('0x3')](_0x383589,_0x2bb4d3);};}function removeListener(_0x52b6df,_0x2ef812){return function(){FaxMessageEvents[_0x5f2c('0x4')](_0x52b6df,_0x2ef812);};}exports[_0x5f2c('0x5')]=function(_0x573da4){for(var _0x5a9464=0x0,_0x240bbd=events['length'];_0x5a9464<_0x240bbd;_0x5a9464++){var _0x524c82=events[_0x5a9464];var _0x41e5fe=createListener(_0x5f2c('0x6')+_0x524c82,_0x573da4);FaxMessageEvents['on'](_0x524c82,_0x41e5fe);}};