70c8d90988138cfe4db8a593e965437b0e3e295c
[motion2.git] / server / api / whatsappQueue / whatsappQueue.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 _0xd576=['../../config/logger','bluebird','rimraf','../../config/environment','./whatsappQueue.attributes','exports','WhatsappQueue','whatsapp_queues','util'];(function(_0x1a04e8,_0x35ef29){var _0x5120bc=function(_0x11729b){while(--_0x11729b){_0x1a04e8['push'](_0x1a04e8['shift']());}};_0x5120bc(++_0x35ef29);}(_0xd576,0x116));var _0x6d57=function(_0x5eac0f,_0x370a5f){_0x5eac0f=_0x5eac0f-0x0;var _0x598afa=_0xd576[_0x5eac0f];return _0x598afa;};'use strict';var _=require('lodash');var util=require(_0x6d57('0x0'));var logger=require(_0x6d57('0x1'))('api');var moment=require('moment');var BPromise=require(_0x6d57('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x6d57('0x3'));var config=require(_0x6d57('0x4'));var attributes=require(_0x6d57('0x5'));module[_0x6d57('0x6')]=function(_0x3baa60,_0x45a052){return _0x3baa60['define'](_0x6d57('0x7'),attributes,{'tableName':_0x6d57('0x8'),'paranoid':![],'indexes':[],'timestamps':!![]});};