d5028ca27d2e6bca483a08a4fbeafccdf4b773a1
[motion2.git] / server / api / userWhatsappQueue / userWhatsappQueue.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 _0xe403=['user_has_whatsapp_queues','lodash','util','api','bluebird','path','rimraf','../../config/environment','./userWhatsappQueue.attributes','exports','define','UserWhatsappQueue'];(function(_0x4a7631,_0x2c85b9){var _0x1a5a6f=function(_0x1ee3fd){while(--_0x1ee3fd){_0x4a7631['push'](_0x4a7631['shift']());}};_0x1a5a6f(++_0x2c85b9);}(_0xe403,0xc1));var _0x3e40=function(_0x3dd15e,_0x1f0015){_0x3dd15e=_0x3dd15e-0x0;var _0x231fd0=_0xe403[_0x3dd15e];return _0x231fd0;};'use strict';var _=require(_0x3e40('0x0'));var util=require(_0x3e40('0x1'));var logger=require('../../config/logger')(_0x3e40('0x2'));var moment=require('moment');var BPromise=require(_0x3e40('0x3'));var rp=require('request-promise');var fs=require('fs');var path=require(_0x3e40('0x4'));var rimraf=require(_0x3e40('0x5'));var config=require(_0x3e40('0x6'));var attributes=require(_0x3e40('0x7'));module[_0x3e40('0x8')]=function(_0x5e3e12,_0x59101d){return _0x5e3e12[_0x3e40('0x9')](_0x3e40('0xa'),attributes,{'tableName':_0x3e40('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};