Built motion from commit ffdca78c.|2.6.24
[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 _0x3144=['request-promise','../../config/environment','./squareReport.attributes','exports','define','SquareReport','uniqueid','project_name','leaveAt','util','../../config/logger','api','moment','bluebird'];(function(_0x57975f,_0x388556){var _0x4793b8=function(_0x652c05){while(--_0x652c05){_0x57975f['push'](_0x57975f['shift']());}};_0x4793b8(++_0x388556);}(_0x3144,0x6b));var _0x4314=function(_0x492123,_0x5e2b5e){_0x492123=_0x492123-0x0;var _0x56da63=_0x3144[_0x492123];return _0x56da63;};'use strict';var _=require('lodash');var util=require(_0x4314('0x0'));var logger=require(_0x4314('0x1'))(_0x4314('0x2'));var moment=require(_0x4314('0x3'));var BPromise=require(_0x4314('0x4'));var rp=require(_0x4314('0x5'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x4314('0x6'));var attributes=require(_0x4314('0x7'));module[_0x4314('0x8')]=function(_0x228fbe,_0x160d67){return _0x228fbe[_0x4314('0x9')](_0x4314('0xa'),attributes,{'tableName':'report_square','paranoid':![],'indexes':[{'name':'uid_pname','fields':[_0x4314('0xb'),_0x4314('0xc')]},{'name':_0x4314('0xd'),'fields':[_0x4314('0xd')]}],'timestamps':!![]});};