Built motion from commit e02f907f.|2.6.14
[motion2.git] / server / api / faxQueue / faxQueue.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 _0x1867=['length','faxQueue:','./faxQueue.events','save','emit','removeListener'];(function(_0x1cc8fe,_0x105328){var _0x230054=function(_0x1a1b56){while(--_0x1a1b56){_0x1cc8fe['push'](_0x1cc8fe['shift']());}};_0x230054(++_0x105328);}(_0x1867,0x134));var _0x7186=function(_0x346cf9,_0x77dcb2){_0x346cf9=_0x346cf9-0x0;var _0x33b7c9=_0x1867[_0x346cf9];return _0x33b7c9;};'use strict';var FaxQueueEvents=require(_0x7186('0x0'));var events=[_0x7186('0x1'),'remove','update'];function createListener(_0x40ffa2,_0x235c57){return function(_0x46c6c9){_0x235c57[_0x7186('0x2')](_0x40ffa2,_0x46c6c9);};}function removeListener(_0x14cee4,_0x450ff2){return function(){FaxQueueEvents[_0x7186('0x3')](_0x14cee4,_0x450ff2);};}exports['register']=function(_0x31bde6){for(var _0xfcb4e=0x0,_0x2316c6=events[_0x7186('0x4')];_0xfcb4e<_0x2316c6;_0xfcb4e++){var _0x47094f=events[_0xfcb4e];var _0x4999d6=createListener(_0x7186('0x5')+_0x47094f,_0x31bde6);FaxQueueEvents['on'](_0x47094f,_0x4999d6);}};