9d3459141e4e35451617aa53fa7e3f429a2d8294
[motion2.git] / server / api / teamVoiceQueue / teamVoiceQueue.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 _0x8e63=['exports','define','TeamVoiceQueue','team_has_voice_queues','util','moment','bluebird','request-promise','../../config/environment','./teamVoiceQueue.attributes'];(function(_0x2ec94a,_0x211406){var _0x5e4c25=function(_0x193d44){while(--_0x193d44){_0x2ec94a['push'](_0x2ec94a['shift']());}};_0x5e4c25(++_0x211406);}(_0x8e63,0x7c));var _0x38e6=function(_0x354853,_0x4b4abd){_0x354853=_0x354853-0x0;var _0x29e998=_0x8e63[_0x354853];return _0x29e998;};'use strict';var _=require('lodash');var util=require(_0x38e6('0x0'));var logger=require('../../config/logger')('api');var moment=require(_0x38e6('0x1'));var BPromise=require(_0x38e6('0x2'));var rp=require(_0x38e6('0x3'));var fs=require('fs');var path=require('path');var rimraf=require('rimraf');var config=require(_0x38e6('0x4'));var attributes=require(_0x38e6('0x5'));module[_0x38e6('0x6')]=function(_0x5af45e,_0x3048c0){return _0x5af45e[_0x38e6('0x7')](_0x38e6('0x8'),attributes,{'tableName':_0x38e6('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};