3fef46430fb9d020a4a1c0ae5ca2899dff5a454a
[motion2.git] / server / api / userVoiceQueue / userVoiceQueue.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 _0xef40=['moment','bluebird','request-promise','path','rimraf','exports','UserVoiceQueue','user_has_voice_queues','lodash','../../config/logger','api'];(function(_0x5d24b8,_0x48a836){var _0x91b770=function(_0x182789){while(--_0x182789){_0x5d24b8['push'](_0x5d24b8['shift']());}};_0x91b770(++_0x48a836);}(_0xef40,0x152));var _0x0ef4=function(_0x3b380d,_0x4bf247){_0x3b380d=_0x3b380d-0x0;var _0x54502b=_0xef40[_0x3b380d];return _0x54502b;};'use strict';var _=require(_0x0ef4('0x0'));var util=require('util');var logger=require(_0x0ef4('0x1'))(_0x0ef4('0x2'));var moment=require(_0x0ef4('0x3'));var BPromise=require(_0x0ef4('0x4'));var rp=require(_0x0ef4('0x5'));var fs=require('fs');var path=require(_0x0ef4('0x6'));var rimraf=require(_0x0ef4('0x7'));var config=require('../../config/environment');var attributes=require('./userVoiceQueue.attributes');module[_0x0ef4('0x8')]=function(_0xf37998,_0x12d4c4){return _0xf37998['define'](_0x0ef4('0x9'),attributes,{'tableName':_0x0ef4('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};