98d783bd769c4acb0f49d919327c13e53877098e
[motion2.git] / server / api / voiceAgentReport / voiceAgentReport.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 _0x7d10=['./voiceAgentReport.attributes','exports','VoiceAgentReport','report_agent','uniqueid','destuniqueid','util','../../config/logger','moment','bluebird','path','rimraf'];(function(_0x526e42,_0x4b7e5d){var _0x36806a=function(_0xeed839){while(--_0xeed839){_0x526e42['push'](_0x526e42['shift']());}};_0x36806a(++_0x4b7e5d);}(_0x7d10,0x1ce));var _0x07d1=function(_0x3c4092,_0x21d371){_0x3c4092=_0x3c4092-0x0;var _0x447ad2=_0x7d10[_0x3c4092];return _0x447ad2;};'use strict';var _=require('lodash');var util=require(_0x07d1('0x0'));var logger=require(_0x07d1('0x1'))('api');var moment=require(_0x07d1('0x2'));var BPromise=require(_0x07d1('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x07d1('0x4'));var rimraf=require(_0x07d1('0x5'));var config=require('../../config/environment');var attributes=require(_0x07d1('0x6'));module[_0x07d1('0x7')]=function(_0x1c8f3d,_0x36198a){return _0x1c8f3d['define'](_0x07d1('0x8'),attributes,{'tableName':_0x07d1('0x9'),'paranoid':![],'indexes':[{'fields':[_0x07d1('0xa'),_0x07d1('0xb')]}],'timestamps':!![]});};