6a4757f37f99030cb881fb5202ba7507a71adb9e
[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 _0x1c81=['exports','define','VoiceQueuesLog','voice_queues_log','event_dtm','event','dtm','lodash','api','moment','rimraf','../../config/environment'];(function(_0x316ad2,_0x5c6348){var _0x22462e=function(_0x7cf3d1){while(--_0x7cf3d1){_0x316ad2['push'](_0x316ad2['shift']());}};_0x22462e(++_0x5c6348);}(_0x1c81,0x8b));var _0x11c8=function(_0x24eccd,_0x553d43){_0x24eccd=_0x24eccd-0x0;var _0x555bf1=_0x1c81[_0x24eccd];return _0x555bf1;};'use strict';var _=require(_0x11c8('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x11c8('0x1'));var moment=require(_0x11c8('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x11c8('0x3'));var config=require(_0x11c8('0x4'));var attributes=require('./voiceQueuesLog.attributes');module[_0x11c8('0x5')]=function(_0x318930,_0xa530f3){return _0x318930[_0x11c8('0x6')](_0x11c8('0x7'),attributes,{'tableName':_0x11c8('0x8'),'paranoid':![],'indexes':[{'name':_0x11c8('0x9'),'fields':[_0x11c8('0xa'),_0x11c8('0xb')]}],'timestamps':![]});};