Built motion from commit 9d1906d1.|2.5.40
[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 _0x7cae=['squareProject:','./squareProject.events','save','update','emit','register','length'];(function(_0x42ca58,_0x423bf9){var _0x1a3a40=function(_0x1d4a8a){while(--_0x1d4a8a){_0x42ca58['push'](_0x42ca58['shift']());}};_0x1a3a40(++_0x423bf9);}(_0x7cae,0xe1));var _0xe7ca=function(_0x46ec98,_0x3f14a1){_0x46ec98=_0x46ec98-0x0;var _0x77df20=_0x7cae[_0x46ec98];return _0x77df20;};'use strict';var SquareProjectEvents=require(_0xe7ca('0x0'));var events=[_0xe7ca('0x1'),'remove',_0xe7ca('0x2')];function createListener(_0x53376d,_0x30d121){return function(_0x1fa624){_0x30d121[_0xe7ca('0x3')](_0x53376d,_0x1fa624);};}function removeListener(_0x583a98,_0x1e210e){return function(){SquareProjectEvents['removeListener'](_0x583a98,_0x1e210e);};}exports[_0xe7ca('0x4')]=function(_0xa9e1ca){for(var _0x401adc=0x0,_0x2a131d=events[_0xe7ca('0x5')];_0x401adc<_0x2a131d;_0x401adc++){var _0x3d85e8=events[_0x401adc];var _0x4de4c4=createListener(_0xe7ca('0x6')+_0x3d85e8,_0xa9e1ca);SquareProjectEvents['on'](_0x3d85e8,_0x4de4c4);}};