Built motion from commit (unavailable).|2.5.10
[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 _0x6132=['name_whatsapp','WhatsappAccountId','lodash','util','../../config/logger','api','bluebird','request-promise','path','rimraf','./disposition.attributes','define','Disposition','tools_dispositions','name_voice','ListId','name_chat','name','name_mail','MailAccountId','name_sms','SmsAccountId','name_fax','FaxAccountId','name_openchannel','OpenchannelAccountId'];(function(_0x303950,_0x205300){var _0x93407c=function(_0x356cd7){while(--_0x356cd7){_0x303950['push'](_0x303950['shift']());}};_0x93407c(++_0x205300);}(_0x6132,0x13a));var _0x2613=function(_0x3faef3,_0x120023){_0x3faef3=_0x3faef3-0x0;var _0x4b46b9=_0x6132[_0x3faef3];return _0x4b46b9;};'use strict';var _=require(_0x2613('0x0'));var util=require(_0x2613('0x1'));var logger=require(_0x2613('0x2'))(_0x2613('0x3'));var moment=require('moment');var BPromise=require(_0x2613('0x4'));var rp=require(_0x2613('0x5'));var fs=require('fs');var path=require(_0x2613('0x6'));var rimraf=require(_0x2613('0x7'));var config=require('../../config/environment');var attributes=require(_0x2613('0x8'));module['exports']=function(_0x59240d,_0x30cac4){return _0x59240d[_0x2613('0x9')](_0x2613('0xa'),attributes,{'tableName':_0x2613('0xb'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x2613('0xc'),'fields':['name',_0x2613('0xd')]},{'unique':!![],'name':_0x2613('0xe'),'fields':[_0x2613('0xf'),'ChatWebsiteId']},{'unique':!![],'name':_0x2613('0x10'),'fields':[_0x2613('0xf'),_0x2613('0x11')]},{'unique':!![],'name':_0x2613('0x12'),'fields':[_0x2613('0xf'),_0x2613('0x13')]},{'unique':!![],'name':_0x2613('0x14'),'fields':[_0x2613('0xf'),_0x2613('0x15')]},{'unique':!![],'name':_0x2613('0x16'),'fields':['name',_0x2613('0x17')]},{'unique':!![],'name':_0x2613('0x18'),'fields':[_0x2613('0xf'),_0x2613('0x19')]}],'timestamps':!![]});};