11a4abbfb09eedf3fa7ec71eeb1e48fd472757a1
[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 _0xa6d8=['utf8mb4','utf8mb4_unicode_ci','lodash','util','../../config/logger','api','moment','rimraf','./smsApplication.attributes','exports','define','SmsApplication','sms_applications'];(function(_0xd9f335,_0x3bc4a2){var _0x4f015f=function(_0x33f408){while(--_0x33f408){_0xd9f335['push'](_0xd9f335['shift']());}};_0x4f015f(++_0x3bc4a2);}(_0xa6d8,0x6a));var _0x8a6d=function(_0x127bb2,_0x849c5f){_0x127bb2=_0x127bb2-0x0;var _0x596034=_0xa6d8[_0x127bb2];return _0x596034;};'use strict';var _=require(_0x8a6d('0x0'));var util=require(_0x8a6d('0x1'));var logger=require(_0x8a6d('0x2'))(_0x8a6d('0x3'));var moment=require(_0x8a6d('0x4'));var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require('path');var rimraf=require(_0x8a6d('0x5'));var config=require('../../config/environment');var attributes=require(_0x8a6d('0x6'));module[_0x8a6d('0x7')]=function(_0x16304e,_0x38f270){return _0x16304e[_0x8a6d('0x8')](_0x8a6d('0x9'),attributes,{'tableName':_0x8a6d('0xa'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0x8a6d('0xb'),'collate':_0x8a6d('0xc')});};