Built motion from commit (unavailable).|2.5.3
[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 _0xfb0f=['./squareReport.attributes','SquareReport','report_square','project_name','leaveAt','util','../../config/logger','moment','request-promise','path','rimraf','../../config/environment'];(function(_0x2f31b1,_0x17daa8){var _0x448988=function(_0x540f6b){while(--_0x540f6b){_0x2f31b1['push'](_0x2f31b1['shift']());}};_0x448988(++_0x17daa8);}(_0xfb0f,0x1d9));var _0xffb0=function(_0x4ca667,_0x26a9ce){_0x4ca667=_0x4ca667-0x0;var _0x493540=_0xfb0f[_0x4ca667];return _0x493540;};'use strict';var _=require('lodash');var util=require(_0xffb0('0x0'));var logger=require(_0xffb0('0x1'))('api');var moment=require(_0xffb0('0x2'));var BPromise=require('bluebird');var rp=require(_0xffb0('0x3'));var fs=require('fs');var path=require(_0xffb0('0x4'));var rimraf=require(_0xffb0('0x5'));var config=require(_0xffb0('0x6'));var attributes=require(_0xffb0('0x7'));module['exports']=function(_0x439131,_0x3995ae){return _0x439131['define'](_0xffb0('0x8'),attributes,{'tableName':_0xffb0('0x9'),'paranoid':![],'indexes':[{'name':'uid_pname','fields':['uniqueid',_0xffb0('0xa')]},{'name':_0xffb0('0xb'),'fields':['leaveAt']}],'timestamps':!![]});};