79c40e3e663aafdb642c4e127365d0f13b536f45
[motion2.git] / server / api / voiceDialReport / voiceDialReport.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 _0x7c2a=['report_dial','lodash','../../config/logger','api','rimraf','./voiceDialReport.attributes','exports','VoiceDialReport'];(function(_0x293561,_0x4d009e){var _0x3dafeb=function(_0x4f2c56){while(--_0x4f2c56){_0x293561['push'](_0x293561['shift']());}};_0x3dafeb(++_0x4d009e);}(_0x7c2a,0x169));var _0xa7c2=function(_0x3382c7,_0x27a896){_0x3382c7=_0x3382c7-0x0;var _0x10b2a8=_0x7c2a[_0x3382c7];return _0x10b2a8;};'use strict';var _=require(_0xa7c2('0x0'));var util=require('util');var logger=require(_0xa7c2('0x1'))(_0xa7c2('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0xa7c2('0x3'));var config=require('../../config/environment');var attributes=require(_0xa7c2('0x4'));module[_0xa7c2('0x5')]=function(_0x762da0,_0x4442f9){return _0x762da0['define'](_0xa7c2('0x6'),attributes,{'tableName':_0xa7c2('0x7'),'paranoid':![],'indexes':[{'fields':['uniqueid']}],'timestamps':!![]});};