7591e754527782296fc72ee131ee0af755b800a0
[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 _0xbec6=['emit','removeListener','register','length','./faxAccount.events','save','remove','update'];(function(_0x1da04e,_0x31024b){var _0xdd8c41=function(_0x2036f9){while(--_0x2036f9){_0x1da04e['push'](_0x1da04e['shift']());}};_0xdd8c41(++_0x31024b);}(_0xbec6,0x15c));var _0x6bec=function(_0x56a616,_0x5a3c7c){_0x56a616=_0x56a616-0x0;var _0xe94844=_0xbec6[_0x56a616];return _0xe94844;};'use strict';var FaxAccountEvents=require(_0x6bec('0x0'));var events=[_0x6bec('0x1'),_0x6bec('0x2'),_0x6bec('0x3')];function createListener(_0x597d4a,_0xe83d1f){return function(_0x386ffc){_0xe83d1f[_0x6bec('0x4')](_0x597d4a,_0x386ffc);};}function removeListener(_0x316821,_0x1b6623){return function(){FaxAccountEvents[_0x6bec('0x5')](_0x316821,_0x1b6623);};}exports[_0x6bec('0x6')]=function(_0x5bc77d){for(var _0x4ef1a4=0x0,_0x511ea2=events[_0x6bec('0x7')];_0x4ef1a4<_0x511ea2;_0x4ef1a4++){var _0x560acb=events[_0x4ef1a4];var _0x55eaf3=createListener('faxAccount:'+_0x560acb,_0x5bc77d);FaxAccountEvents['on'](_0x560acb,_0x55eaf3);}};