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 _0x5d40=['register','faxAccount:','save','emit'];(function(_0x344a3f,_0x579a22){var _0x264712=function(_0x34c9f0){while(--_0x34c9f0){_0x344a3f['push'](_0x344a3f['shift']());}};_0x264712(++_0x579a22);}(_0x5d40,0x76));var _0x05d4=function(_0x2a3343,_0x26d99f){_0x2a3343=_0x2a3343-0x0;var _0x3610a2=_0x5d40[_0x2a3343];return _0x3610a2;};'use strict';var FaxAccountEvents=require('./faxAccount.events');var events=[_0x05d4('0x0'),'remove','update'];function createListener(_0x821851,_0xd8e5e4){return function(_0x244e42){_0xd8e5e4[_0x05d4('0x1')](_0x821851,_0x244e42);};}function removeListener(_0x599a69,_0x16c3fc){return function(){FaxAccountEvents['removeListener'](_0x599a69,_0x16c3fc);};}exports[_0x05d4('0x2')]=function(_0x5acfcd){for(var _0x4318d4=0x0,_0x310a96=events['length'];_0x4318d4<_0x310a96;_0x4318d4++){var _0xc4f450=events[_0x4318d4];var _0x1d13a5=createListener(_0x05d4('0x3')+_0xc4f450,_0x5acfcd);FaxAccountEvents['on'](_0xc4f450,_0x1d13a5);}};