e9db2556e489fd509a0020a190a97f199be3af05
[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 _0x2ad5=['./chatQueue.attributes','exports','define','chat_queues','lodash','util','api','request-promise','path','rimraf','../../config/environment'];(function(_0x3823eb,_0x49f390){var _0x1cb824=function(_0x88cd58){while(--_0x88cd58){_0x3823eb['push'](_0x3823eb['shift']());}};_0x1cb824(++_0x49f390);}(_0x2ad5,0x138));var _0x52ad=function(_0x3be314,_0x560b9a){_0x3be314=_0x3be314-0x0;var _0x45f24b=_0x2ad5[_0x3be314];return _0x45f24b;};'use strict';var _=require(_0x52ad('0x0'));var util=require(_0x52ad('0x1'));var logger=require('../../config/logger')(_0x52ad('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0x52ad('0x3'));var fs=require('fs');var path=require(_0x52ad('0x4'));var rimraf=require(_0x52ad('0x5'));var config=require(_0x52ad('0x6'));var attributes=require(_0x52ad('0x7'));module[_0x52ad('0x8')]=function(_0x164538,_0x5dcba1){return _0x164538[_0x52ad('0x9')]('ChatQueue',attributes,{'tableName':_0x52ad('0xa'),'paranoid':![],'indexes':[],'timestamps':!![]});};