953b0ee628fa272a4f3f7e9da0fd46ffc4c86e20
[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 _0x741d=['leaveAt','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','./squareReport.attributes','report_square','uid_pname','uniqueid','project_name'];(function(_0x9972d9,_0x2afda8){var _0x1ee4cb=function(_0x5ceded){while(--_0x5ceded){_0x9972d9['push'](_0x9972d9['shift']());}};_0x1ee4cb(++_0x2afda8);}(_0x741d,0x71));var _0xd741=function(_0x507d71,_0x260c61){_0x507d71=_0x507d71-0x0;var _0xa8f225=_0x741d[_0x507d71];return _0xa8f225;};'use strict';var _=require(_0xd741('0x0'));var util=require(_0xd741('0x1'));var logger=require(_0xd741('0x2'))(_0xd741('0x3'));var moment=require('moment');var BPromise=require(_0xd741('0x4'));var rp=require(_0xd741('0x5'));var fs=require('fs');var path=require(_0xd741('0x6'));var rimraf=require(_0xd741('0x7'));var config=require('../../config/environment');var attributes=require(_0xd741('0x8'));module['exports']=function(_0x53298f,_0x3fda09){return _0x53298f['define']('SquareReport',attributes,{'tableName':_0xd741('0x9'),'paranoid':![],'indexes':[{'name':_0xd741('0xa'),'fields':[_0xd741('0xb'),_0xd741('0xc')]},{'name':'leaveAt','fields':[_0xd741('0xd')]}],'timestamps':!![]});};