611c64222dc499bccef7f0610a9883d2fcd19437
[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 _0x58bd=['exports','define','VoiceAgentReport','report_agent','destuniqueid','lodash','util','../../config/logger','moment','path','rimraf','../../config/environment','./voiceAgentReport.attributes'];(function(_0x405c4e,_0x31d4d6){var _0x444c5f=function(_0x3d31d1){while(--_0x3d31d1){_0x405c4e['push'](_0x405c4e['shift']());}};_0x444c5f(++_0x31d4d6);}(_0x58bd,0x18b));var _0xd58b=function(_0x5ea930,_0x239101){_0x5ea930=_0x5ea930-0x0;var _0x49fc5b=_0x58bd[_0x5ea930];return _0x49fc5b;};'use strict';var _=require(_0xd58b('0x0'));var util=require(_0xd58b('0x1'));var logger=require(_0xd58b('0x2'))('api');var moment=require(_0xd58b('0x3'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xd58b('0x4'));var rimraf=require(_0xd58b('0x5'));var config=require(_0xd58b('0x6'));var attributes=require(_0xd58b('0x7'));module[_0xd58b('0x8')]=function(_0x58d13f,_0x43b935){return _0x58d13f[_0xd58b('0x9')](_0xd58b('0xa'),attributes,{'tableName':_0xd58b('0xb'),'paranoid':![],'indexes':[{'fields':['uniqueid',_0xd58b('0xc')]}],'timestamps':!![]});};