11592c40b2b3fb10ddeeb9438185226b01f771e2
[motion2.git] / server / api / disposition / disposition.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 _0x101a=['define','Disposition','tools_dispositions','name_voice','name','name_chat','ChatWebsiteId','name_mail','name_sms','name_fax','FaxAccountId','name_openchannel','OpenchannelAccountId','WhatsappAccountId','lodash','util','api','request-promise','rimraf','./disposition.attributes'];(function(_0x2a55f8,_0x540ac4){var _0x245efd=function(_0x4dbc19){while(--_0x4dbc19){_0x2a55f8['push'](_0x2a55f8['shift']());}};_0x245efd(++_0x540ac4);}(_0x101a,0x162));var _0xa101=function(_0xa60a88,_0x52dc31){_0xa60a88=_0xa60a88-0x0;var _0x4307ef=_0x101a[_0xa60a88];return _0x4307ef;};'use strict';var _=require(_0xa101('0x0'));var util=require(_0xa101('0x1'));var logger=require('../../config/logger')(_0xa101('0x2'));var moment=require('moment');var BPromise=require('bluebird');var rp=require(_0xa101('0x3'));var fs=require('fs');var path=require('path');var rimraf=require(_0xa101('0x4'));var config=require('../../config/environment');var attributes=require(_0xa101('0x5'));module['exports']=function(_0x21fc3,_0x2245b3){return _0x21fc3[_0xa101('0x6')](_0xa101('0x7'),attributes,{'tableName':_0xa101('0x8'),'paranoid':![],'indexes':[{'unique':!![],'name':_0xa101('0x9'),'fields':[_0xa101('0xa'),'ListId']},{'unique':!![],'name':_0xa101('0xb'),'fields':[_0xa101('0xa'),_0xa101('0xc')]},{'unique':!![],'name':_0xa101('0xd'),'fields':['name','MailAccountId']},{'unique':!![],'name':_0xa101('0xe'),'fields':[_0xa101('0xa'),'SmsAccountId']},{'unique':!![],'name':_0xa101('0xf'),'fields':[_0xa101('0xa'),_0xa101('0x10')]},{'unique':!![],'name':_0xa101('0x11'),'fields':['name',_0xa101('0x12')]},{'unique':!![],'name':'name_whatsapp','fields':['name',_0xa101('0x13')]}],'timestamps':!![]});};