5c8ea44e5bf7d132eee343554a8b7ab195830a40
[motion2.git] / server / api / smsApplication / smsApplication.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 _0xd659=['path','rimraf','./smsApplication.attributes','exports','define','SmsApplication','sms_applications','utf8mb4','utf8mb4_unicode_ci','lodash','util','api','moment','bluebird','request-promise'];(function(_0xdb33d1,_0x1687a4){var _0x23ffde=function(_0x30e116){while(--_0x30e116){_0xdb33d1['push'](_0xdb33d1['shift']());}};_0x23ffde(++_0x1687a4);}(_0xd659,0xdb));var _0x9d65=function(_0x5bdbd1,_0x19afe7){_0x5bdbd1=_0x5bdbd1-0x0;var _0x5cb1b3=_0xd659[_0x5bdbd1];return _0x5cb1b3;};'use strict';var _=require(_0x9d65('0x0'));var util=require(_0x9d65('0x1'));var logger=require('../../config/logger')(_0x9d65('0x2'));var moment=require(_0x9d65('0x3'));var BPromise=require(_0x9d65('0x4'));var rp=require(_0x9d65('0x5'));var fs=require('fs');var path=require(_0x9d65('0x6'));var rimraf=require(_0x9d65('0x7'));var config=require('../../config/environment');var attributes=require(_0x9d65('0x8'));module[_0x9d65('0x9')]=function(_0x248af4,_0x534259){return _0x248af4[_0x9d65('0xa')](_0x9d65('0xb'),attributes,{'tableName':_0x9d65('0xc'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x9d65('0xd'),'collate':_0x9d65('0xe')});};