16533f7e2394dac92536197f4f9926a2ea5fc625
[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 _0xaea9=['report_square','project_name','leaveAt','util','../../config/logger','api','moment','request-promise','path','rimraf','./squareReport.attributes','define','SquareReport'];(function(_0xe9575c,_0x393b1d){var _0x311b6f=function(_0x3e8bec){while(--_0x3e8bec){_0xe9575c['push'](_0xe9575c['shift']());}};_0x311b6f(++_0x393b1d);}(_0xaea9,0xc6));var _0x9aea=function(_0x36dfbd,_0x5bfe2d){_0x36dfbd=_0x36dfbd-0x0;var _0x4ecad9=_0xaea9[_0x36dfbd];return _0x4ecad9;};'use strict';var _=require('lodash');var util=require(_0x9aea('0x0'));var logger=require(_0x9aea('0x1'))(_0x9aea('0x2'));var moment=require(_0x9aea('0x3'));var BPromise=require('bluebird');var rp=require(_0x9aea('0x4'));var fs=require('fs');var path=require(_0x9aea('0x5'));var rimraf=require(_0x9aea('0x6'));var config=require('../../config/environment');var attributes=require(_0x9aea('0x7'));module['exports']=function(_0x57f21b,_0x4527ff){return _0x57f21b[_0x9aea('0x8')](_0x9aea('0x9'),attributes,{'tableName':_0x9aea('0xa'),'paranoid':![],'indexes':[{'name':'uid_pname','fields':['uniqueid',_0x9aea('0xb')]},{'name':_0x9aea('0xc'),'fields':[_0x9aea('0xc')]}],'timestamps':!![]});};