26500948cffd29f854090da0f33aeb83f363b1d0
[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 _0xbf99=['moment','bluebird','request-promise','path','rimraf','../../config/environment','./squareReport.attributes','SquareReport','uid_pname','project_name','leaveAt','lodash','util','api'];(function(_0x1e68d0,_0x1cdf10){var _0x3ed421=function(_0x2b175b){while(--_0x2b175b){_0x1e68d0['push'](_0x1e68d0['shift']());}};_0x3ed421(++_0x1cdf10);}(_0xbf99,0x14d));var _0x9bf9=function(_0x6afc07,_0x531bd1){_0x6afc07=_0x6afc07-0x0;var _0x4493c5=_0xbf99[_0x6afc07];return _0x4493c5;};'use strict';var _=require(_0x9bf9('0x0'));var util=require(_0x9bf9('0x1'));var logger=require('../../config/logger')(_0x9bf9('0x2'));var moment=require(_0x9bf9('0x3'));var BPromise=require(_0x9bf9('0x4'));var rp=require(_0x9bf9('0x5'));var fs=require('fs');var path=require(_0x9bf9('0x6'));var rimraf=require(_0x9bf9('0x7'));var config=require(_0x9bf9('0x8'));var attributes=require(_0x9bf9('0x9'));module['exports']=function(_0x5d5da2,_0x3539b6){return _0x5d5da2['define'](_0x9bf9('0xa'),attributes,{'tableName':'report_square','paranoid':![],'indexes':[{'name':_0x9bf9('0xb'),'fields':['uniqueid',_0x9bf9('0xc')]},{'name':_0x9bf9('0xd'),'fields':[_0x9bf9('0xd')]}],'timestamps':!![]});};