a7912829f90c81478e2a63f26d25be503d667b49
[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 _0xd6fe=['util','moment','path','rimraf','../../config/environment','./chatQueue.attributes','exports','define','ChatQueue','chat_queues','lodash'];(function(_0x4e8376,_0x551124){var _0x3909fa=function(_0x427bc5){while(--_0x427bc5){_0x4e8376['push'](_0x4e8376['shift']());}};_0x3909fa(++_0x551124);}(_0xd6fe,0xe6));var _0xed6f=function(_0x205e4b,_0x4f4059){_0x205e4b=_0x205e4b-0x0;var _0x583b14=_0xd6fe[_0x205e4b];return _0x583b14;};'use strict';var _=require(_0xed6f('0x0'));var util=require(_0xed6f('0x1'));var logger=require('../../config/logger')('api');var moment=require(_0xed6f('0x2'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0xed6f('0x3'));var rimraf=require(_0xed6f('0x4'));var config=require(_0xed6f('0x5'));var attributes=require(_0xed6f('0x6'));module[_0xed6f('0x7')]=function(_0x13ae72,_0x17e244){return _0x13ae72[_0xed6f('0x8')](_0xed6f('0x9'),attributes,{'tableName':_0xed6f('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};