Built motion from commit e1760111.|2.6.18
[motion2.git] / server / api / smsQueue / smsQueue.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 _0x1117=['moment','bluebird','request-promise','rimraf','../../config/environment','exports','SmsQueue','sms_queues','util','../../config/logger'];(function(_0x33ce4f,_0x351d9f){var _0x3f52b7=function(_0x58544e){while(--_0x58544e){_0x33ce4f['push'](_0x33ce4f['shift']());}};_0x3f52b7(++_0x351d9f);}(_0x1117,0x1ca));var _0x7111=function(_0x450f09,_0x59561d){_0x450f09=_0x450f09-0x0;var _0x4e22ec=_0x1117[_0x450f09];return _0x4e22ec;};'use strict';var _=require('lodash');var util=require(_0x7111('0x0'));var logger=require(_0x7111('0x1'))('api');var moment=require(_0x7111('0x2'));var BPromise=require(_0x7111('0x3'));var rp=require(_0x7111('0x4'));var fs=require('fs');var path=require('path');var rimraf=require(_0x7111('0x5'));var config=require(_0x7111('0x6'));var attributes=require('./smsQueue.attributes');module[_0x7111('0x7')]=function(_0x9fed74,_0x49dfa9){return _0x9fed74['define'](_0x7111('0x8'),attributes,{'tableName':_0x7111('0x9'),'paranoid':![],'indexes':[],'timestamps':!![]});};