2606e584c7ec11c85116efd4f928def844f1b4fa
[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 _0x5c38=['exports','ChatQueue','chat_queues','lodash','util','../../config/logger','api','bluebird','request-promise','rimraf','../../config/environment','./chatQueue.attributes'];(function(_0x3df0d7,_0x40b139){var _0xfd3567=function(_0x4ebbcc){while(--_0x4ebbcc){_0x3df0d7['push'](_0x3df0d7['shift']());}};_0xfd3567(++_0x40b139);}(_0x5c38,0x10b));var _0x85c3=function(_0x4683e5,_0x6a6fdf){_0x4683e5=_0x4683e5-0x0;var _0x336079=_0x5c38[_0x4683e5];return _0x336079;};'use strict';var _=require(_0x85c3('0x0'));var util=require(_0x85c3('0x1'));var logger=require(_0x85c3('0x2'))(_0x85c3('0x3'));var moment=require('moment');var BPromise=require(_0x85c3('0x4'));var rp=require(_0x85c3('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x85c3('0x6'));var config=require(_0x85c3('0x7'));var attributes=require(_0x85c3('0x8'));module[_0x85c3('0x9')]=function(_0x5cfaaf,_0x54b1ea){return _0x5cfaaf['define'](_0x85c3('0xa'),attributes,{'tableName':_0x85c3('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};