Built motion from commit bab6f49e.|2.6.17
[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 _0x1224=['util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','exports','define','VoiceAgentReport','report_agent','uniqueid','destuniqueid','lodash'];(function(_0x318a60,_0x5c9062){var _0x59d5de=function(_0x5ed910){while(--_0x5ed910){_0x318a60['push'](_0x318a60['shift']());}};_0x59d5de(++_0x5c9062);}(_0x1224,0x10d));var _0x4122=function(_0x5a3a81,_0x5e862f){_0x5a3a81=_0x5a3a81-0x0;var _0x59f7fa=_0x1224[_0x5a3a81];return _0x59f7fa;};'use strict';var _=require(_0x4122('0x0'));var util=require(_0x4122('0x1'));var logger=require(_0x4122('0x2'))(_0x4122('0x3'));var moment=require(_0x4122('0x4'));var BPromise=require(_0x4122('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x4122('0x6'));var rimraf=require(_0x4122('0x7'));var config=require(_0x4122('0x8'));var attributes=require('./voiceAgentReport.attributes');module[_0x4122('0x9')]=function(_0x76278c,_0xc6dfaf){return _0x76278c[_0x4122('0xa')](_0x4122('0xb'),attributes,{'tableName':_0x4122('0xc'),'paranoid':![],'indexes':[{'fields':[_0x4122('0xd'),_0x4122('0xe')]}],'timestamps':!![]});};