Built motion from commit (unavailable).|2.5.31
[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 _0x2638=['project_name','lodash','util','../../config/logger','api','moment','request-promise','path','./squareReport.attributes','exports','SquareReport','uid_pname','uniqueid'];(function(_0x912ba,_0x488f84){var _0x54a7bb=function(_0x3c7407){while(--_0x3c7407){_0x912ba['push'](_0x912ba['shift']());}};_0x54a7bb(++_0x488f84);}(_0x2638,0x90));var _0x8263=function(_0x27415d,_0x293739){_0x27415d=_0x27415d-0x0;var _0x110228=_0x2638[_0x27415d];return _0x110228;};'use strict';var _=require(_0x8263('0x0'));var util=require(_0x8263('0x1'));var logger=require(_0x8263('0x2'))(_0x8263('0x3'));var moment=require(_0x8263('0x4'));var BPromise=require('bluebird');var rp=require(_0x8263('0x5'));var fs=require('fs');var path=require(_0x8263('0x6'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x8263('0x7'));module[_0x8263('0x8')]=function(_0x3ea5ad,_0x1698e1){return _0x3ea5ad['define'](_0x8263('0x9'),attributes,{'tableName':'report_square','paranoid':![],'indexes':[{'name':_0x8263('0xa'),'fields':[_0x8263('0xb'),_0x8263('0xc')]},{'name':'leaveAt','fields':['leaveAt']}],'timestamps':!![]});};