7ed01f1b759cfcdc25dfc260c92cb4eae11706c6
[motion2.git] / server / api / userSmsQueue / userSmsQueue.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 _0xa3c1=['util','../../config/logger','api','moment','request-promise','path','rimraf','../../config/environment','exports','define','UserSmsQueue','user_has_sms_queues'];(function(_0x3b380d,_0x4bf247){var _0x54502b=function(_0x35d207){while(--_0x35d207){_0x3b380d['push'](_0x3b380d['shift']());}};_0x54502b(++_0x4bf247);}(_0xa3c1,0x114));var _0x1a3c=function(_0x1c0a64,_0x1ce719){_0x1c0a64=_0x1c0a64-0x0;var _0x31b37e=_0xa3c1[_0x1c0a64];return _0x31b37e;};'use strict';var _=require('lodash');var util=require(_0x1a3c('0x0'));var logger=require(_0x1a3c('0x1'))(_0x1a3c('0x2'));var moment=require(_0x1a3c('0x3'));var BPromise=require('bluebird');var rp=require(_0x1a3c('0x4'));var fs=require('fs');var path=require(_0x1a3c('0x5'));var rimraf=require(_0x1a3c('0x6'));var config=require(_0x1a3c('0x7'));var attributes=require('./userSmsQueue.attributes');module[_0x1a3c('0x8')]=function(_0x2e7404,_0x176e31){return _0x2e7404[_0x1a3c('0x9')](_0x1a3c('0xa'),attributes,{'tableName':_0x1a3c('0xb'),'paranoid':![],'indexes':[],'timestamps':!![]});};