a141181a6cd447c949326ce9f8b3d596778ba198
[motion2.git] / server / api / openchannelApplication / openchannelApplication.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 _0x20ea=['lodash','util','bluebird','path','rimraf','../../config/environment','./openchannelApplication.attributes','define','OpenchannelApplication','openchannel_applications','utf8mb4','utf8mb4_unicode_ci'];(function(_0x46d0c9,_0x526bfa){var _0x174506=function(_0x654bc6){while(--_0x654bc6){_0x46d0c9['push'](_0x46d0c9['shift']());}};_0x174506(++_0x526bfa);}(_0x20ea,0x120));var _0xa20e=function(_0x4a6b8f,_0x5970ab){_0x4a6b8f=_0x4a6b8f-0x0;var _0x5bdc40=_0x20ea[_0x4a6b8f];return _0x5bdc40;};'use strict';var _=require(_0xa20e('0x0'));var util=require(_0xa20e('0x1'));var logger=require('../../config/logger')('api');var moment=require('moment');var BPromise=require(_0xa20e('0x2'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xa20e('0x3'));var rimraf=require(_0xa20e('0x4'));var config=require(_0xa20e('0x5'));var attributes=require(_0xa20e('0x6'));module['exports']=function(_0x1dd915,_0x12da01){return _0x1dd915[_0xa20e('0x7')](_0xa20e('0x8'),attributes,{'tableName':_0xa20e('0x9'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':_0xa20e('0xa'),'collate':_0xa20e('0xb')});};