Built motion from commit 85328c08.|2.5.50
[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 _0x46e1=['moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','define','VoiceAgentReport','report_agent','uniqueid','lodash','util','../../config/logger','api'];(function(_0x4a790a,_0x92ee7c){var _0x2f0d92=function(_0xf4a237){while(--_0xf4a237){_0x4a790a['push'](_0x4a790a['shift']());}};_0x2f0d92(++_0x92ee7c);}(_0x46e1,0x155));var _0x146e=function(_0x55cf90,_0x4b3d2f){_0x55cf90=_0x55cf90-0x0;var _0x454056=_0x46e1[_0x55cf90];return _0x454056;};'use strict';var _=require(_0x146e('0x0'));var util=require(_0x146e('0x1'));var logger=require(_0x146e('0x2'))(_0x146e('0x3'));var moment=require(_0x146e('0x4'));var BPromise=require(_0x146e('0x5'));var rp=require(_0x146e('0x6'));var fs=require('fs');var path=require(_0x146e('0x7'));var rimraf=require(_0x146e('0x8'));var config=require(_0x146e('0x9'));var attributes=require('./voiceAgentReport.attributes');module[_0x146e('0xa')]=function(_0x1f1f15,_0x3de564){return _0x1f1f15[_0x146e('0xb')](_0x146e('0xc'),attributes,{'tableName':_0x146e('0xd'),'paranoid':![],'indexes':[{'fields':[_0x146e('0xe'),'destuniqueid']}],'timestamps':!![]});};