Built motion from commit efa66e19.|2.6.22
[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 _0x2551=['VoiceDialReport','report_dial','uniqueid','lodash','util','api','bluebird','path','rimraf','./voiceDialReport.attributes','exports'];(function(_0x30060f,_0x364743){var _0x69db02=function(_0x5d0e8a){while(--_0x5d0e8a){_0x30060f['push'](_0x30060f['shift']());}};_0x69db02(++_0x364743);}(_0x2551,0x9d));var _0x1255=function(_0x3124f8,_0x1a8b23){_0x3124f8=_0x3124f8-0x0;var _0x5bab5f=_0x2551[_0x3124f8];return _0x5bab5f;};'use strict';var _=require(_0x1255('0x0'));var util=require(_0x1255('0x1'));var logger=require('../../config/logger')(_0x1255('0x2'));var moment=require('moment');var BPromise=require(_0x1255('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x1255('0x4'));var rimraf=require(_0x1255('0x5'));var config=require('../../config/environment');var attributes=require(_0x1255('0x6'));module[_0x1255('0x7')]=function(_0x175ea5,_0x352934){return _0x175ea5['define'](_0x1255('0x8'),attributes,{'tableName':_0x1255('0x9'),'paranoid':![],'indexes':[{'fields':[_0x1255('0xa')]}],'timestamps':!![]});};