334a2a69111179f6cdbdae0db4998edb0b2c4b56
[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 _0x3c6c=['exports','ListId','name_chat','ChatWebsiteId','name_mail','name','MailAccountId','SmsAccountId','name_fax','name_openchannel','OpenchannelAccountId','name_whatsapp','WhatsappAccountId','lodash','../../config/logger','api','moment','bluebird','request-promise','path','rimraf','../../config/environment'];(function(_0x3dd15e,_0x1f0015){var _0x231fd0=function(_0x4f680a){while(--_0x4f680a){_0x3dd15e['push'](_0x3dd15e['shift']());}};_0x231fd0(++_0x1f0015);}(_0x3c6c,0x7b));var _0xc3c6=function(_0x7ee6a6,_0x3e7e41){_0x7ee6a6=_0x7ee6a6-0x0;var _0x36e0b5=_0x3c6c[_0x7ee6a6];return _0x36e0b5;};'use strict';var _=require(_0xc3c6('0x0'));var util=require('util');var logger=require(_0xc3c6('0x1'))(_0xc3c6('0x2'));var moment=require(_0xc3c6('0x3'));var BPromise=require(_0xc3c6('0x4'));var rp=require(_0xc3c6('0x5'));var fs=require('fs');var path=require(_0xc3c6('0x6'));var rimraf=require(_0xc3c6('0x7'));var config=require(_0xc3c6('0x8'));var attributes=require('./disposition.attributes');module[_0xc3c6('0x9')]=function(_0x4a2ca1,_0xe7731e){return _0x4a2ca1['define']('Disposition',attributes,{'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':'name_voice','fields':['name',_0xc3c6('0xa')]},{'unique':!![],'name':_0xc3c6('0xb'),'fields':['name',_0xc3c6('0xc')]},{'unique':!![],'name':_0xc3c6('0xd'),'fields':[_0xc3c6('0xe'),_0xc3c6('0xf')]},{'unique':!![],'name':'name_sms','fields':[_0xc3c6('0xe'),_0xc3c6('0x10')]},{'unique':!![],'name':_0xc3c6('0x11'),'fields':['name','FaxAccountId']},{'unique':!![],'name':_0xc3c6('0x12'),'fields':[_0xc3c6('0xe'),_0xc3c6('0x13')]},{'unique':!![],'name':_0xc3c6('0x14'),'fields':[_0xc3c6('0xe'),_0xc3c6('0x15')]}],'timestamps':!![]});};