d42f48fc249b2d5839339c0eb76722f0512b6d68
[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 _0x7406=['bluebird','path','./userVoiceQueue.attributes','exports','define','UserVoiceQueue','user_has_voice_queues','../../config/logger','api','moment'];(function(_0xb6a98d,_0x456d90){var _0x25295e=function(_0x45dfa9){while(--_0x45dfa9){_0xb6a98d['push'](_0xb6a98d['shift']());}};_0x25295e(++_0x456d90);}(_0x7406,0x1bf));var _0x6740=function(_0x1762b4,_0x33d836){_0x1762b4=_0x1762b4-0x0;var _0x29beda=_0x7406[_0x1762b4];return _0x29beda;};'use strict';var _=require('lodash');var util=require('util');var logger=require(_0x6740('0x0'))(_0x6740('0x1'));var moment=require(_0x6740('0x2'));var BPromise=require(_0x6740('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x6740('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x6740('0x5'));module[_0x6740('0x6')]=function(_0x7c02b2,_0x1d3fd3){return _0x7c02b2[_0x6740('0x7')](_0x6740('0x8'),attributes,{'tableName':_0x6740('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};