Built motion from commit 9d1906d1.|2.5.40
[motion2.git] / server / api / chatQueue / chatQueue.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 _0xacf5=['lodash','util','api','bluebird','request-promise','path','./chatQueue.attributes','exports','ChatQueue','chat_queues'];(function(_0x1f46fd,_0x166f40){var _0x477cb1=function(_0x4c0e9a){while(--_0x4c0e9a){_0x1f46fd['push'](_0x1f46fd['shift']());}};_0x477cb1(++_0x166f40);}(_0xacf5,0x140));var _0x5acf=function(_0x3a89dc,_0x54bb1e){_0x3a89dc=_0x3a89dc-0x0;var _0x11c5c9=_0xacf5[_0x3a89dc];return _0x11c5c9;};'use strict';var _=require(_0x5acf('0x0'));var util=require(_0x5acf('0x1'));var logger=require('../../config/logger')(_0x5acf('0x2'));var moment=require('moment');var BPromise=require(_0x5acf('0x3'));var rp=require(_0x5acf('0x4'));var fs=require('fs');var path=require(_0x5acf('0x5'));var rimraf=require('rimraf');var config=require('../../config/environment');var attributes=require(_0x5acf('0x6'));module[_0x5acf('0x7')]=function(_0x5f2cb0,_0x1b653a){return _0x5f2cb0['define'](_0x5acf('0x8'),attributes,{'tableName':_0x5acf('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};