7f9eb2250723fcedb107bcc17e81a7b92c63315f
[motion2.git] / server / api / voiceQueuesLog / voiceQueuesLog.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 _0xdfbe=['moment','bluebird','request-promise','path','rimraf','../../config/environment','exports','VoiceQueuesLog','voice_queues_log','event_dtm','event','util','api'];(function(_0x5e3c25,_0x3e8711){var _0x4bdb0a=function(_0x1b82d1){while(--_0x1b82d1){_0x5e3c25['push'](_0x5e3c25['shift']());}};_0x4bdb0a(++_0x3e8711);}(_0xdfbe,0x1ab));var _0xedfb=function(_0x206677,_0x5d3dfb){_0x206677=_0x206677-0x0;var _0x46a858=_0xdfbe[_0x206677];return _0x46a858;};'use strict';var _=require('lodash');var util=require(_0xedfb('0x0'));var logger=require('../../config/logger')(_0xedfb('0x1'));var moment=require(_0xedfb('0x2'));var BPromise=require(_0xedfb('0x3'));var rp=require(_0xedfb('0x4'));var fs=require('fs');var path=require(_0xedfb('0x5'));var rimraf=require(_0xedfb('0x6'));var config=require(_0xedfb('0x7'));var attributes=require('./voiceQueuesLog.attributes');module[_0xedfb('0x8')]=function(_0x1962cd,_0x7c3a2c){return _0x1962cd['define'](_0xedfb('0x9'),attributes,{'tableName':_0xedfb('0xa'),'paranoid':![],'indexes':[{'name':_0xedfb('0xb'),'fields':[_0xedfb('0xc'),'dtm']}],'timestamps':![]});};