9c1de0e8d128abde5737cd4b0b9025a6a7e66415
[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 _0x581e=['openchannel_applications','utf8mb4_unicode_ci','lodash','util','../../config/logger','api','moment','bluebird','path','rimraf','../../config/environment','./openchannelApplication.attributes','exports','define','OpenchannelApplication'];(function(_0x1c54cc,_0x14cc8b){var _0xa72ac1=function(_0x5348c8){while(--_0x5348c8){_0x1c54cc['push'](_0x1c54cc['shift']());}};_0xa72ac1(++_0x14cc8b);}(_0x581e,0x12e));var _0xe581=function(_0x13869a,_0x2f0db2){_0x13869a=_0x13869a-0x0;var _0x5ceb05=_0x581e[_0x13869a];return _0x5ceb05;};'use strict';var _=require(_0xe581('0x0'));var util=require(_0xe581('0x1'));var logger=require(_0xe581('0x2'))(_0xe581('0x3'));var moment=require(_0xe581('0x4'));var BPromise=require(_0xe581('0x5'));var rp=require('request-promise');var fs=require('fs');var path=require(_0xe581('0x6'));var rimraf=require(_0xe581('0x7'));var config=require(_0xe581('0x8'));var attributes=require(_0xe581('0x9'));module[_0xe581('0xa')]=function(_0x3ec7cf,_0x2a82e9){return _0x3ec7cf[_0xe581('0xb')](_0xe581('0xc'),attributes,{'tableName':_0xe581('0xd'),'paranoid':![],'indexes':[],'timestamps':!![],'charset':'utf8mb4','collate':_0xe581('0xe')});};