Built motion from commit f57cc866.|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 _0xa880=['register','faxMessage:','./faxMessage.events','save','update','emit','removeListener'];(function(_0x8563f2,_0x469029){var _0x4fa3a=function(_0x4d9816){while(--_0x4d9816){_0x8563f2['push'](_0x8563f2['shift']());}};_0x4fa3a(++_0x469029);}(_0xa880,0x12f));var _0x0a88=function(_0x352e09,_0x37a7da){_0x352e09=_0x352e09-0x0;var _0x1b7094=_0xa880[_0x352e09];return _0x1b7094;};'use strict';var FaxMessageEvents=require(_0x0a88('0x0'));var events=[_0x0a88('0x1'),'remove',_0x0a88('0x2')];function createListener(_0x2e252d,_0x4738f3){return function(_0x4947a3){_0x4738f3[_0x0a88('0x3')](_0x2e252d,_0x4947a3);};}function removeListener(_0x365a18,_0x510635){return function(){FaxMessageEvents[_0x0a88('0x4')](_0x365a18,_0x510635);};}exports[_0x0a88('0x5')]=function(_0x5035a4){for(var _0x4a5255=0x0,_0x50dc71=events['length'];_0x4a5255<_0x50dc71;_0x4a5255++){var _0x46b802=events[_0x4a5255];var _0x1f79f8=createListener(_0x0a88('0x6')+_0x46b802,_0x5035a4);FaxMessageEvents['on'](_0x46b802,_0x1f79f8);}};