Built motion from commit 3c2ce842.|2.6.31
[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 _0xdc9e=['FaxAccountId','name_openchannel','OpenchannelAccountId','name_whatsapp','WhatsappAccountId','lodash','util','../../config/logger','bluebird','request-promise','path','rimraf','exports','define','tools_dispositions','name_voice','name','name_chat','MailAccountId','name_sms','name_fax'];(function(_0x2dafbe,_0x5d04de){var _0x58a45a=function(_0x50ac96){while(--_0x50ac96){_0x2dafbe['push'](_0x2dafbe['shift']());}};_0x58a45a(++_0x5d04de);}(_0xdc9e,0x6e));var _0xedc9=function(_0x3cc912,_0x144b91){_0x3cc912=_0x3cc912-0x0;var _0x29024d=_0xdc9e[_0x3cc912];return _0x29024d;};'use strict';var _=require(_0xedc9('0x0'));var util=require(_0xedc9('0x1'));var logger=require(_0xedc9('0x2'))('api');var moment=require('moment');var BPromise=require(_0xedc9('0x3'));var rp=require(_0xedc9('0x4'));var fs=require('fs');var path=require(_0xedc9('0x5'));var rimraf=require(_0xedc9('0x6'));var config=require('../../config/environment');var attributes=require('./disposition.attributes');module[_0xedc9('0x7')]=function(_0x18aeb8,_0x1042a9){return _0x18aeb8[_0xedc9('0x8')]('Disposition',attributes,{'tableName':_0xedc9('0x9'),'paranoid':![],'indexes':[{'unique':!![],'name':_0xedc9('0xa'),'fields':[_0xedc9('0xb'),'ListId']},{'unique':!![],'name':_0xedc9('0xc'),'fields':[_0xedc9('0xb'),'ChatWebsiteId']},{'unique':!![],'name':'name_mail','fields':[_0xedc9('0xb'),_0xedc9('0xd')]},{'unique':!![],'name':_0xedc9('0xe'),'fields':[_0xedc9('0xb'),'SmsAccountId']},{'unique':!![],'name':_0xedc9('0xf'),'fields':[_0xedc9('0xb'),_0xedc9('0x10')]},{'unique':!![],'name':_0xedc9('0x11'),'fields':['name',_0xedc9('0x12')]},{'unique':!![],'name':_0xedc9('0x13'),'fields':[_0xedc9('0xb'),_0xedc9('0x14')]}],'timestamps':!![]});};