Built motion from commit 85328c08.|2.5.50
[motion2.git] / server / api / faxAccount / faxAccount.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 _0xb08a=['length','update','emit','removeListener'];(function(_0xc4001c,_0x1bf8f0){var _0x49f7bc=function(_0x1059b8){while(--_0x1059b8){_0xc4001c['push'](_0xc4001c['shift']());}};_0x49f7bc(++_0x1bf8f0);}(_0xb08a,0x155));var _0xab08=function(_0xfb0281,_0x3ff38b){_0xfb0281=_0xfb0281-0x0;var _0x408dd3=_0xb08a[_0xfb0281];return _0x408dd3;};'use strict';var FaxAccountEvents=require('./faxAccount.events');var events=['save','remove',_0xab08('0x0')];function createListener(_0x297646,_0x2a5045){return function(_0x1e09c4){_0x2a5045[_0xab08('0x1')](_0x297646,_0x1e09c4);};}function removeListener(_0x4c6fc9,_0x474d86){return function(){FaxAccountEvents[_0xab08('0x2')](_0x4c6fc9,_0x474d86);};}exports['register']=function(_0x2009d8){for(var _0x295790=0x0,_0x7575ad=events[_0xab08('0x3')];_0x295790<_0x7575ad;_0x295790++){var _0x4dd781=events[_0x295790];var _0x3d0d92=createListener('faxAccount:'+_0x4dd781,_0x2009d8);FaxAccountEvents['on'](_0x4dd781,_0x3d0d92);}};