7203a4226dea1810c80a4dcc254036ee78dddf94
[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 _0xe132=['name_openchannel','OpenchannelAccountId','name_whatsapp','WhatsappAccountId','lodash','../../config/logger','api','moment','bluebird','request-promise','rimraf','../../config/environment','define','Disposition','tools_dispositions','name_voice','name','ListId','name_chat','name_mail','MailAccountId','name_sms','SmsAccountId','name_fax','FaxAccountId'];(function(_0x21a9d9,_0x4d5ac8){var _0x46adce=function(_0xfdd336){while(--_0xfdd336){_0x21a9d9['push'](_0x21a9d9['shift']());}};_0x46adce(++_0x4d5ac8);}(_0xe132,0x162));var _0x2e13=function(_0x2630b3,_0x5f1eee){_0x2630b3=_0x2630b3-0x0;var _0x5f15ae=_0xe132[_0x2630b3];return _0x5f15ae;};'use strict';var _=require(_0x2e13('0x0'));var util=require('util');var logger=require(_0x2e13('0x1'))(_0x2e13('0x2'));var moment=require(_0x2e13('0x3'));var BPromise=require(_0x2e13('0x4'));var rp=require(_0x2e13('0x5'));var fs=require('fs');var path=require('path');var rimraf=require(_0x2e13('0x6'));var config=require(_0x2e13('0x7'));var attributes=require('./disposition.attributes');module['exports']=function(_0x260dc1,_0x2f9d00){return _0x260dc1[_0x2e13('0x8')](_0x2e13('0x9'),attributes,{'tableName':_0x2e13('0xa'),'paranoid':![],'indexes':[{'unique':!![],'name':_0x2e13('0xb'),'fields':[_0x2e13('0xc'),_0x2e13('0xd')]},{'unique':!![],'name':_0x2e13('0xe'),'fields':[_0x2e13('0xc'),'ChatWebsiteId']},{'unique':!![],'name':_0x2e13('0xf'),'fields':[_0x2e13('0xc'),_0x2e13('0x10')]},{'unique':!![],'name':_0x2e13('0x11'),'fields':[_0x2e13('0xc'),_0x2e13('0x12')]},{'unique':!![],'name':_0x2e13('0x13'),'fields':['name',_0x2e13('0x14')]},{'unique':!![],'name':_0x2e13('0x15'),'fields':[_0x2e13('0xc'),_0x2e13('0x16')]},{'unique':!![],'name':_0x2e13('0x17'),'fields':[_0x2e13('0xc'),_0x2e13('0x18')]}],'timestamps':!![]});};