Built motion from commit e6806ed6.|2.6.0
[motion2.git] / server / api / userOpenchannelQueue / userOpenchannelQueue.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 _0x7c5e=['util','api','moment','request-promise','path','rimraf','../../config/environment','./userOpenchannelQueue.attributes','exports','define','UserOpenchannelQueue','user_has_openchannel_queues'];(function(_0x2dadb9,_0x42cfe6){var _0x2f0097=function(_0x21163f){while(--_0x21163f){_0x2dadb9['push'](_0x2dadb9['shift']());}};_0x2f0097(++_0x42cfe6);}(_0x7c5e,0xf0));var _0xe7c5=function(_0x12d9c8,_0x911a62){_0x12d9c8=_0x12d9c8-0x0;var _0x4c2c73=_0x7c5e[_0x12d9c8];return _0x4c2c73;};'use strict';var _=require('lodash');var util=require(_0xe7c5('0x0'));var logger=require('../../config/logger')(_0xe7c5('0x1'));var moment=require(_0xe7c5('0x2'));var BPromise=require('bluebird');var rp=require(_0xe7c5('0x3'));var fs=require('fs');var path=require(_0xe7c5('0x4'));var rimraf=require(_0xe7c5('0x5'));var config=require(_0xe7c5('0x6'));var attributes=require(_0xe7c5('0x7'));module[_0xe7c5('0x8')]=function(_0x4718b0,_0x32db19){return _0x4718b0[_0xe7c5('0x9')](_0xe7c5('0xa'),attributes,{'tableName':_0xe7c5('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};