3d7dc71f6d88f5957292391e96be01aa31e4ebbf
[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 _0xa973=['../../config/environment','./disposition.attributes','exports','define','name_voice','ListId','name_chat','name','ChatWebsiteId','name_sms','name_fax','name_openchannel','OpenchannelAccountId','name_whatsapp','WhatsappAccountId','lodash','util','../../config/logger','api','path'];(function(_0xedd2d7,_0x2f6ec7){var _0x5d1692=function(_0x4aa736){while(--_0x4aa736){_0xedd2d7['push'](_0xedd2d7['shift']());}};_0x5d1692(++_0x2f6ec7);}(_0xa973,0x73));var _0x3a97=function(_0x3182f2,_0x242888){_0x3182f2=_0x3182f2-0x0;var _0x5ed78d=_0xa973[_0x3182f2];return _0x5ed78d;};'use strict';var _=require(_0x3a97('0x0'));var util=require(_0x3a97('0x1'));var logger=require(_0x3a97('0x2'))(_0x3a97('0x3'));var moment=require('moment');var BPromise=require('bluebird');var rp=require('request-promise');var fs=require('fs');var path=require(_0x3a97('0x4'));var rimraf=require('rimraf');var config=require(_0x3a97('0x5'));var attributes=require(_0x3a97('0x6'));module[_0x3a97('0x7')]=function(_0x4a1f55,_0x508cc6){return _0x4a1f55[_0x3a97('0x8')]('Disposition',attributes,{'tableName':'tools_dispositions','paranoid':![],'indexes':[{'unique':!![],'name':_0x3a97('0x9'),'fields':['name',_0x3a97('0xa')]},{'unique':!![],'name':_0x3a97('0xb'),'fields':[_0x3a97('0xc'),_0x3a97('0xd')]},{'unique':!![],'name':'name_mail','fields':[_0x3a97('0xc'),'MailAccountId']},{'unique':!![],'name':_0x3a97('0xe'),'fields':[_0x3a97('0xc'),'SmsAccountId']},{'unique':!![],'name':_0x3a97('0xf'),'fields':[_0x3a97('0xc'),'FaxAccountId']},{'unique':!![],'name':_0x3a97('0x10'),'fields':[_0x3a97('0xc'),_0x3a97('0x11')]},{'unique':!![],'name':_0x3a97('0x12'),'fields':['name',_0x3a97('0x13')]}],'timestamps':!![]});};