Built motion from commit 8c034dcd.|2.6.31
[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 _0x6ee7=['request-promise','path','rimraf','../../config/environment','./userWhatsappQueue.attributes','exports','define','UserWhatsappQueue','user_has_whatsapp_queues','lodash','api','moment'];(function(_0xd5d716,_0x48a8cb){var _0x2b4cd6=function(_0x151e2e){while(--_0x151e2e){_0xd5d716['push'](_0xd5d716['shift']());}};_0x2b4cd6(++_0x48a8cb);}(_0x6ee7,0xf9));var _0x76ee=function(_0x4de88b,_0x271c96){_0x4de88b=_0x4de88b-0x0;var _0x306a81=_0x6ee7[_0x4de88b];return _0x306a81;};'use strict';var _=require(_0x76ee('0x0'));var util=require('util');var logger=require('../../config/logger')(_0x76ee('0x1'));var moment=require(_0x76ee('0x2'));var BPromise=require('bluebird');var rp=require(_0x76ee('0x3'));var fs=require('fs');var path=require(_0x76ee('0x4'));var rimraf=require(_0x76ee('0x5'));var config=require(_0x76ee('0x6'));var attributes=require(_0x76ee('0x7'));module[_0x76ee('0x8')]=function(_0x3650f7,_0xdae0f0){return _0x3650f7[_0x76ee('0x9')](_0x76ee('0xa'),attributes,{'tableName':_0x76ee('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};