bc64bbb0e3ab472e02447c54d371c66ab052bdd3
[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 _0xf8c3=['./faxAccount.events','save','update','emit','removeListener','register','faxAccount:'];(function(_0x3c09bc,_0x54888a){var _0x39a44d=function(_0xfb340b){while(--_0xfb340b){_0x3c09bc['push'](_0x3c09bc['shift']());}};_0x39a44d(++_0x54888a);}(_0xf8c3,0x9a));var _0x3f8c=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xf8c3[_0x3dd15e];return _0x231fd0;};'use strict';var FaxAccountEvents=require(_0x3f8c('0x0'));var events=[_0x3f8c('0x1'),'remove',_0x3f8c('0x2')];function createListener(_0x55fd7c,_0x4c656d){return function(_0x17283){_0x4c656d[_0x3f8c('0x3')](_0x55fd7c,_0x17283);};}function removeListener(_0x40b29f,_0x5b80e2){return function(){FaxAccountEvents[_0x3f8c('0x4')](_0x40b29f,_0x5b80e2);};}exports[_0x3f8c('0x5')]=function(_0x169c32){for(var _0x24f364=0x0,_0x3d9798=events['length'];_0x24f364<_0x3d9798;_0x24f364++){var _0x898b70=events[_0x24f364];var _0x2e5e63=createListener(_0x3f8c('0x6')+_0x898b70,_0x169c32);FaxAccountEvents['on'](_0x898b70,_0x2e5e63);}};