Built motion from commit 97153652.|2.6.26
[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 _0x52af=['emit','register','length','squareProject:','./squareProject.events','update'];(function(_0x4c440b,_0x3ea627){var _0x2d48cf=function(_0x56bac7){while(--_0x56bac7){_0x4c440b['push'](_0x4c440b['shift']());}};_0x2d48cf(++_0x3ea627);}(_0x52af,0x11e));var _0xf52a=function(_0x57b54c,_0x54ce0d){_0x57b54c=_0x57b54c-0x0;var _0x59cc19=_0x52af[_0x57b54c];return _0x59cc19;};'use strict';var SquareProjectEvents=require(_0xf52a('0x0'));var events=['save','remove',_0xf52a('0x1')];function createListener(_0x3229dc,_0x343f22){return function(_0x3ae6ad){_0x343f22[_0xf52a('0x2')](_0x3229dc,_0x3ae6ad);};}function removeListener(_0x2a9088,_0x2425e4){return function(){SquareProjectEvents['removeListener'](_0x2a9088,_0x2425e4);};}exports[_0xf52a('0x3')]=function(_0x47ea48){for(var _0x38185b=0x0,_0x3cc59c=events[_0xf52a('0x4')];_0x38185b<_0x3cc59c;_0x38185b++){var _0x27ac24=events[_0x38185b];var _0x3001ff=createListener(_0xf52a('0x5')+_0x27ac24,_0x47ea48);SquareProjectEvents['on'](_0x27ac24,_0x3001ff);}};