Built motion from commit 87cd5f02.|2.5.48
[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 _0xf3ea=['UserVoiceQueue','user_has_voice_queues','lodash','../../config/logger','api','request-promise','path','exports','define'];(function(_0x3085fa,_0xec2336){var _0x262282=function(_0x160892){while(--_0x160892){_0x3085fa['push'](_0x3085fa['shift']());}};_0x262282(++_0xec2336);}(_0xf3ea,0x1df));var _0xaf3e=function(_0x496434,_0x268c43){_0x496434=_0x496434-0x0;var _0x3c1e73=_0xf3ea[_0x496434];return _0x3c1e73;};'use strict';var _=require(_0xaf3e('0x0'));var util=require('util');var logger=require(_0xaf3e('0x1'))(_0xaf3e('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xaf3e('0x3'));var fs=require('fs');var path=require(_0xaf3e('0x4'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require('./userVoiceQueue.attributes');module[_0xaf3e('0x5')]=function(_0x22ff9a,_0x448459){return _0x22ff9a[_0xaf3e('0x6')](_0xaf3e('0x7'),attributes,{'tableName':_0xaf3e('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};