Built motion from commit 775e2a94.|2.6.3
[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 _0x64a5=['emit','register','length','faxAccount:','update'];(function(_0x31348f,_0x6f9c9){var _0x43d7eb=function(_0x6c97c5){while(--_0x6c97c5){_0x31348f['push'](_0x31348f['shift']());}};_0x43d7eb(++_0x6f9c9);}(_0x64a5,0x176));var _0x564a=function(_0x38dded,_0x4b3030){_0x38dded=_0x38dded-0x0;var _0x550772=_0x64a5[_0x38dded];return _0x550772;};'use strict';var FaxAccountEvents=require('./faxAccount.events');var events=['save','remove',_0x564a('0x0')];function createListener(_0x512c55,_0x1087c5){return function(_0x1211fb){_0x1087c5[_0x564a('0x1')](_0x512c55,_0x1211fb);};}function removeListener(_0x4d2574,_0xbc3fdc){return function(){FaxAccountEvents['removeListener'](_0x4d2574,_0xbc3fdc);};}exports[_0x564a('0x2')]=function(_0x574baa){for(var _0x401017=0x0,_0x12ff21=events[_0x564a('0x3')];_0x401017<_0x12ff21;_0x401017++){var _0x1afd70=events[_0x401017];var _0x31512f=createListener(_0x564a('0x4')+_0x1afd70,_0x574baa);FaxAccountEvents['on'](_0x1afd70,_0x31512f);}};