f6b373f5bdf33291282f4b059578213abca0846d
[motion2.git] / server / api / voiceCallReport / voiceCallReport.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 _0xcc8b=['uniqueid','lodash','util','../../config/logger','moment','request-promise','path','../../config/environment','VoiceCallReport'];(function(_0x3e6f08,_0x4ec425){var _0x137c93=function(_0x5b3593){while(--_0x5b3593){_0x3e6f08['push'](_0x3e6f08['shift']());}};_0x137c93(++_0x4ec425);}(_0xcc8b,0xd9));var _0xbcc8=function(_0x1ea8b5,_0x5d3011){_0x1ea8b5=_0x1ea8b5-0x0;var _0x3a9df6=_0xcc8b[_0x1ea8b5];return _0x3a9df6;};'use strict';var _=require(_0xbcc8('0x0'));var util=require(_0xbcc8('0x1'));var logger=require(_0xbcc8('0x2'))('api');var moment=require(_0xbcc8('0x3'));var BPromise=require('bluebird');var rp=require(_0xbcc8('0x4'));var fs=require('fs');var path=require(_0xbcc8('0x5'));var rimraf=require('rimraf');var config=require(_0xbcc8('0x6'));var attributes=require('./voiceCallReport.attributes');module['exports']=function(_0x51a809,_0x15a65b){return _0x51a809['define'](_0xbcc8('0x7'),attributes,{'tableName':'report_call','paranoid':![],'indexes':[{'fields':[_0xbcc8('0x8')]}],'timestamps':!![]});};