Built motion from commit (unavailable).|2.5.29
[motion2.git] / server / api / squareReport / squareReport.model.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 _0x38d1=['uid_pname','uniqueid','project_name','leaveAt','../../config/logger','moment','bluebird','path','../../config/environment','exports','report_square'];(function(_0x2b91c5,_0x3b6db5){var _0xbd5531=function(_0x54783d){while(--_0x54783d){_0x2b91c5['push'](_0x2b91c5['shift']());}};_0xbd5531(++_0x3b6db5);}(_0x38d1,0x1d2));var _0x138d=function(_0x4797ff,_0x257488){_0x4797ff=_0x4797ff-0x0;var _0x1e9ee4=_0x38d1[_0x4797ff];return _0x1e9ee4;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x138d('0x0'))('api');var moment=require(_0x138d('0x1'));var BPromise=require(_0x138d('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x138d('0x3'));var rimraf=require('rimraf');var config=require(_0x138d('0x4'));var attributes=require('./squareReport.attributes');module[_0x138d('0x5')]=function(_0x2a61b3,_0x3466ac){return _0x2a61b3['define']('SquareReport',attributes,{'tableName':_0x138d('0x6'),'paranoid':![],'indexes':[{'name':_0x138d('0x7'),'fields':[_0x138d('0x8'),_0x138d('0x9')]},{'name':'leaveAt','fields':[_0x138d('0xa')]}],'timestamps':!![]});};