Built motion from commit 9d0783e6.|2.6.13
[motion2.git] / server / api / squareProject / squareProject.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 _0x5dc3=['save','remove','update','emit','register','length','squareProject:','./squareProject.events'];(function(_0x24061a,_0x1c9f4d){var _0x82054e=function(_0x2ec346){while(--_0x2ec346){_0x24061a['push'](_0x24061a['shift']());}};_0x82054e(++_0x1c9f4d);}(_0x5dc3,0x8f));var _0x35dc=function(_0x4dc4bd,_0x490bf0){_0x4dc4bd=_0x4dc4bd-0x0;var _0x22a362=_0x5dc3[_0x4dc4bd];return _0x22a362;};'use strict';var SquareProjectEvents=require(_0x35dc('0x0'));var events=[_0x35dc('0x1'),_0x35dc('0x2'),_0x35dc('0x3')];function createListener(_0x56365c,_0x541461){return function(_0x420357){_0x541461[_0x35dc('0x4')](_0x56365c,_0x420357);};}function removeListener(_0x349860,_0x4e85eb){return function(){SquareProjectEvents['removeListener'](_0x349860,_0x4e85eb);};}exports[_0x35dc('0x5')]=function(_0x154047){for(var _0x374381=0x0,_0x553628=events[_0x35dc('0x6')];_0x374381<_0x553628;_0x374381++){var _0x349295=events[_0x374381];var _0x52f631=createListener(_0x35dc('0x7')+_0x349295,_0x154047);SquareProjectEvents['on'](_0x349295,_0x52f631);}};