Built motion from commit 753c950e.|2.5.42
[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 _0xcddb=['emit','removeListener','length','faxAccount:','save','remove','update'];(function(_0x1facfa,_0x1acf7d){var _0x9ec701=function(_0x115e37){while(--_0x115e37){_0x1facfa['push'](_0x1facfa['shift']());}};_0x9ec701(++_0x1acf7d);}(_0xcddb,0x19a));var _0xbcdd=function(_0x572cfd,_0x10d3ed){_0x572cfd=_0x572cfd-0x0;var _0x3f006f=_0xcddb[_0x572cfd];return _0x3f006f;};'use strict';var FaxAccountEvents=require('./faxAccount.events');var events=[_0xbcdd('0x0'),_0xbcdd('0x1'),_0xbcdd('0x2')];function createListener(_0x53e2a7,_0x22146f){return function(_0x2fa3b6){_0x22146f[_0xbcdd('0x3')](_0x53e2a7,_0x2fa3b6);};}function removeListener(_0x5e86fc,_0x24ff47){return function(){FaxAccountEvents[_0xbcdd('0x4')](_0x5e86fc,_0x24ff47);};}exports['register']=function(_0x31eac7){for(var _0x3e9bea=0x0,_0x2f2720=events[_0xbcdd('0x5')];_0x3e9bea<_0x2f2720;_0x3e9bea++){var _0x3cafbf=events[_0x3e9bea];var _0x2676dd=createListener(_0xbcdd('0x6')+_0x3cafbf,_0x31eac7);FaxAccountEvents['on'](_0x3cafbf,_0x2676dd);}};